diff --git a/apt-0.5.15cnc5-alt-debsystem.patch b/apt-0.5.15cnc5-alt-debsystem.patch index a0cf1d4..7f2296e 100644 --- a/apt-0.5.15cnc5-alt-debsystem.patch +++ b/apt-0.5.15cnc5-alt-debsystem.patch @@ -6,7 +6,7 @@ diff -uprk.orig apt-0.5.15cnc5.orig/apt-pkg/deb/debsystem.cc apt-0.5.15cnc5/apt- { signed Score = 0; + if (Cnf.FindB("APT::Ignore-dpkg",true) == true) -+ return Score; ++ return Score; if (FileExists(Cnf.FindFile("Dir::State::status","/var/lib/dpkg/status")) == true) Score += 10; if (FileExists(Cnf.FindFile("Dir::Bin::dpkg","/usr/bin/dpkg")) == true) diff --git a/apt-0.5.15cnc5-alt-rpm_cmd.patch b/apt-0.5.15cnc5-alt-execrpm-cmd.patch similarity index 100% rename from apt-0.5.15cnc5-alt-rpm_cmd.patch rename to apt-0.5.15cnc5-alt-execrpm-cmd.patch diff --git a/apt-0.5.15cnc5-alt-findrepos.patch b/apt-0.5.15cnc5-alt-findrepos.patch deleted file mode 100644 index 1b2e30f..0000000 --- a/apt-0.5.15cnc5-alt-findrepos.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff -uprk.orig apt-0.5.15cnc5.orig/apt-pkg/rpm/rpmindexfile.cc apt-0.5.15cnc5/apt-pkg/rpm/rpmindexfile.cc ---- apt-0.5.15cnc5.orig/apt-pkg/rpm/rpmindexfile.cc 2003-12-23 23:19:55 +0300 -+++ apt-0.5.15cnc5/apt-pkg/rpm/rpmindexfile.cc 2004-01-19 16:13:47 +0300 -@@ -638,7 +638,8 @@ class rpmSLTypeGen : public pkgSourceLis - { - // The registered object has no vendor, but the new one does - // so, we make the previous one have the vendor too. -- if ((*iter)->Vendor == NULL && Vendor != NULL) -+ if (Vendor != NULL -+ && ((*iter)->Vendor == NULL || (*iter)->Vendor != Vendor)) - (*iter)->Vendor = Vendor; - return *iter; - } diff --git a/apt-0.5.15cnc5-alt-methods_gpg_homedir.patch b/apt-0.5.15cnc5-alt-gpg-homedir.patch similarity index 100% rename from apt-0.5.15cnc5-alt-methods_gpg_homedir.patch rename to apt-0.5.15cnc5-alt-gpg-homedir.patch diff --git a/apt-0.5.15cnc5-alt-tinfo.patch b/apt-0.5.15cnc5-alt-tinfo.patch deleted file mode 100644 index a9b9d7b..0000000 --- a/apt-0.5.15cnc5-alt-tinfo.patch +++ /dev/null @@ -1,39 +0,0 @@ -diff -uprk.orig apt-0.5.15cnc5.orig/cmdline/Makefile.am apt-0.5.15cnc5/cmdline/Makefile.am ---- apt-0.5.15cnc5.orig/cmdline/Makefile.am 2003-12-23 23:31:00 +0300 -+++ apt-0.5.15cnc5/cmdline/Makefile.am 2004-01-16 15:10:00 +0300 -@@ -12,6 +12,6 @@ LDADD = ../apt-pkg/libapt-pkg.la $(RPMLI - apt_cache_SOURCES = apt-cache.cc - apt_get_SOURCES = apt-get.cc acqprogress.cc acqprogress.h - apt_shell_SOURCES = apt-shell.cc acqprogress.cc acqprogress.h --apt_shell_LDADD = $(LDADD) -lreadline -lncurses -+apt_shell_LDADD = $(LDADD) -lreadline -ltinfo - apt_config_SOURCES = apt-config.cc - apt_cdrom_SOURCES = apt-cdrom.cc rpmindexcopy.cc rpmindexcopy.h -diff -uprk.orig apt-0.5.15cnc5.orig/cmdline/Makefile.in apt-0.5.15cnc5/cmdline/Makefile.in ---- apt-0.5.15cnc5.orig/cmdline/Makefile.in 2003-12-23 23:30:26 +0300 -+++ apt-0.5.15cnc5/cmdline/Makefile.in 2004-01-16 15:10:00 +0300 -@@ -181,7 +181,7 @@ LDADD = ../apt-pkg/libapt-pkg.la $(RPMLI - apt_cache_SOURCES = apt-cache.cc - apt_get_SOURCES = apt-get.cc acqprogress.cc acqprogress.h - apt_shell_SOURCES = apt-shell.cc acqprogress.cc acqprogress.h --apt_shell_LDADD = $(LDADD) -lreadline -lncurses -+apt_shell_LDADD = $(LDADD) -lreadline -ltinfo - apt_config_SOURCES = apt-config.cc - apt_cdrom_SOURCES = apt-cdrom.cc rpmindexcopy.cc rpmindexcopy.h - subdir = cmdline -diff -uprk.orig apt-0.5.15cnc5.orig/configure.in apt-0.5.15cnc5/configure.in ---- apt-0.5.15cnc5.orig/configure.in 2003-12-23 23:15:40 +0300 -+++ apt-0.5.15cnc5/configure.in 2004-01-16 15:10:00 +0300 -@@ -121,10 +121,10 @@ fi - AM_CONDITIONAL(WITH_LUA, test "$enable_scripts" != "no") - - dnl Check for apt-shell dependencies --AC_CHECK_LIB(ncurses,tputs, -+AC_CHECK_LIB(tinfo,tputs, - [AC_CHECK_HEADER(readline/readline.h, - [AC_CHECK_LIB(readline,rl_completion_matches, -- [compile_aptshell=yes],,[-lncurses])])]) -+ [compile_aptshell=yes],,[-ltinfo])])]) - AM_CONDITIONAL(COMPILE_APTSHELL, test "$compile_aptshell" = "yes") - - dnl Converts the ARCH to be something singular for this general CPU family diff --git a/apt-0.5.15cnc6-alt-aclocal-warnings.patch b/apt-0.5.15cnc6-alt-aclocal-warnings.patch deleted file mode 100644 index ae466fd..0000000 --- a/apt-0.5.15cnc6-alt-aclocal-warnings.patch +++ /dev/null @@ -1,79 +0,0 @@ -Quoting 'info '(automake)Extending aclocal'': - -Starting with Automake 1.8, `aclocal' will warn about all -underquoted calls to `AC_DEFUN'. We realize this will annoy a lot of -people, because `aclocal' was not so strict in the past and many third -party macros are underquoted; and we have to apologize for this -temporary inconvenience. - ---- apt-0.5.15cnc6.orig/buildlib/tools.m4 2003-03-26 10:45:36 +1200 -+++ apt-0.5.15cnc6/buildlib/tools.m4 2004-05-14 22:00:16 +1300 -@@ -1,4 +1,4 @@ --AC_DEFUN(ah_HAVE_GETCONF, -+AC_DEFUN([ah_HAVE_GETCONF], - [AC_ARG_WITH(getconf, - [ --with-getconf Enable automagical buildtime configuration], - [if test "$withval" = "yes"; then -@@ -14,7 +14,7 @@ AC_DEFUN(ah_HAVE_GETCONF, - ]) - - dnl ah_GET_CONF(variable, value ..., [default]) --AC_DEFUN(ah_GET_GETCONF, -+AC_DEFUN([ah_GET_GETCONF], - [AC_REQUIRE([ah_HAVE_GETCONF]) - if test ! -z "$GETCONF";then - old_args="[$]@" -@@ -28,7 +28,7 @@ AC_DEFUN(ah_GET_GETCONF, - eval $1="$3" - fi - ]) --AC_DEFUN(ah_NUM_CPUS, -+AC_DEFUN([ah_NUM_CPUS], - [AC_MSG_CHECKING([number of cpus]) - AC_ARG_WITH(cpus, - [ --with-cpus The number of cpus to be used for building(see --with-procs, default 1)], -@@ -56,7 +56,7 @@ AC_DEFUN(ah_NUM_CPUS, - AC_MSG_RESULT([$ah_NUM_CPUS_msg]) - AC_SUBST(NUM_CPUS) - ]) --AC_DEFUN(ah_PROC_MULTIPLY, -+AC_DEFUN([ah_PROC_MULTIPLY], - [AC_REQUIRE([ah_NUM_CPUS]) - AC_MSG_CHECKING([processor multiplier]) - AC_ARG_WITH(proc-multiply, -@@ -72,7 +72,7 @@ AC_DEFUN(ah_PROC_MULTIPLY, - AC_SUBST(PROC_MULTIPLY) - ]) - --AC_DEFUN(ah_NUM_PROCS, -+AC_DEFUN([ah_NUM_PROCS], - [AC_REQUIRE([ah_PROC_MULTIPLY]) - AC_REQUIRE([ah_NUM_CPUS]) - AC_MSG_CHECKING([number of processes to run during make]) -@@ -89,7 +89,7 @@ AC_DEFUN(ah_NUM_PROCS, - AC_SUBST(NUM_PROCS) - ]) - --AC_DEFUN(rc_GLIBC_VER, -+AC_DEFUN([rc_GLIBC_VER], - [AC_MSG_CHECKING([glibc version]) - dummy=if$$ - cat <<_GLIBC_>$dummy.c -@@ -111,7 +111,7 @@ _GLIBC_ - AC_SUBST(GLIBC_VER) - ]) - --AC_DEFUN(rc_LIBSTDCPP_VER, -+AC_DEFUN([rc_LIBSTDCPP_VER], - [AC_MSG_CHECKING([libstdc++ version]) - dummy=if$$ - cat <<_LIBSTDCPP_>$dummy.cc -@@ -138,7 +138,7 @@ _LIBSTDCPP_ - AC_SUBST(LIBSTDCPP_VER) - ]) - --AC_DEFUN(ah_GCC3DEP,[ -+AC_DEFUN([ah_GCC3DEP],[ - AC_MSG_CHECKING(if $CXX -MD works) - touch gcc3dep.cc - ${CXX-c++} -MD -o gcc3dep_test.o -c gcc3dep.cc diff --git a/apt-0.5.15cnc6-alt-apt-pipe.patch b/apt-0.5.15cnc6-alt-apt-pipe.patch index 7c3397c..f7450ff 100644 --- a/apt-0.5.15cnc6-alt-apt-pipe.patch +++ b/apt-0.5.15cnc6-alt-apt-pipe.patch @@ -594,7 +594,7 @@ @@ -16,6 +16,9 @@ apt_cache_SOURCES = apt-cache.cc apt_shell_SOURCES = apt-shell.cc acqprogress.cc acqprogress.h - apt_shell_LDADD = $(LDADD) -lreadline -ltinfo + apt_shell_LDADD = $(LDADD) -lreadline +apt_pipe_SOURCES = $(apt_shell_SOURCES) apt-pipe.c +apt_pipe_CPPFLAGS = -DAPT_PIPE +apt_pipe_LDADD = $(LDADD) -lsetproctitle diff --git a/apt-0.5.15cnc6-alt-apt-shell.patch b/apt-0.5.15cnc6-alt-apt-shell.patch index abcc1ef..d90c711 100644 --- a/apt-0.5.15cnc6-alt-apt-shell.patch +++ b/apt-0.5.15cnc6-alt-apt-shell.patch @@ -1,5 +1,5 @@ ---- apt-0.5.15cnc6/cmdline/apt-shell.cc.orig 2004-06-07 18:53:30 +0400 -+++ apt-0.5.15cnc6/cmdline/apt-shell.cc 2004-06-07 19:13:44 +0400 +--- apt-0.5.15lorg2/cmdline/apt-shell.cc.orig 2006-03-17 17:56:01 +0300 ++++ apt-0.5.15lorg2/cmdline/apt-shell.cc 2006-03-17 17:56:02 +0300 @@ -1285,10 +1285,24 @@ if (Cache[Pkg].CandidateVer == 0 && Pkg->ProvidesList != 0) { @@ -36,25 +36,7 @@ continue; } pkgCache::VerIterator PrvPkgCandVer = -@@ -1324,13 +1340,15 @@ - { - // Yes, it is. This is a good solution. - GoodSolutions.push_back(PrvPkg); -+ if (instVirtual) -+ break; - continue; - } - } - vector GoodSolutionNames; -- for (unsigned int i = 0; i != GoodSolutionNames.size(); i++) -+ for (unsigned int i = 0; i != GoodSolutions.size(); i++) - { -- pkgCache::PkgIterator GoodPkg(Cache, GoodSolutions[0]); -+ pkgCache::PkgIterator GoodPkg(Cache, GoodSolutions[i]); - GoodSolutionNames.push_back(GoodPkg.Name()); - } - #ifdef WITH_LUA -@@ -4511,8 +4514,8 @@ +@@ -4536,8 +4552,8 @@ largv[largc] = 0; // Make our own copy of the configuration. diff --git a/apt-0.5.15cnc6-alt-defaults.patch b/apt-0.5.15cnc6-alt-defaults.patch index 34fa4bd..972f52b 100644 --- a/apt-0.5.15cnc6-alt-defaults.patch +++ b/apt-0.5.15cnc6-alt-defaults.patch @@ -6,14 +6,14 @@ diff -upk.orig apt-0.5.15cnc6.orig/apt-pkg/rpm/rpmpackagedata.cc apt-0.5.15cnc6/ { // Populate priorities - string FileName = _config->FindFile("Dir::Etc::rpmpriorities"); -+ string FileName = _config->FindFile("Dir::Etc") + "pkgpriorities"; ++ string FileName = _config->FindFile("Dir::Etc::pkgpriorities"); FileFd F(FileName, FileFd::ReadOnly); if (_error->PendingError()) { diff -upk.orig apt-0.5.15cnc6.orig/apt-pkg/rpm/rpmsystem.cc apt-0.5.15cnc6/apt-pkg/rpm/rpmsystem.cc --- apt-0.5.15cnc6.orig/apt-pkg/rpm/rpmsystem.cc 2005-05-18 16:01:23 +0000 +++ apt-0.5.15cnc6/apt-pkg/rpm/rpmsystem.cc 2005-05-18 16:07:32 +0000 -@@ -129,13 +129,13 @@ pkgPackageManager *rpmSystem::CreatePM(p +@@ -136,13 +136,13 @@ bool rpmSystem::Initialize(Configuration &Cnf) { Cnf.CndSet("Dir::Bin::rpm","/bin/rpm"); @@ -29,15 +29,15 @@ diff -upk.orig apt-0.5.15cnc6.orig/apt-pkg/rpm/rpmsystem.cc apt-0.5.15cnc6/apt-p Cnf.CndSet("Acquire::CDROM::Copy-All", "true"); // Compatibility with obsoleted options -@@ -530,7 +530,7 @@ unsigned long rpmSystem::OptionsHash() c - HashOption(Hash, "RPM::Architecture"); +@@ -577,7 +577,7 @@ HashOptionTree(Hash, "RPM::Allow-Duplicated"); + HashOptionTree(Hash, "RPM::MultiArch"); HashOptionTree(Hash, "RPM::Ignore"); - HashOptionFile(Hash, "Dir::Etc::rpmpriorities"); + HashOptionFile(Hash, "Dir::Etc::pkgpriorities"); - return Hash; - } - /*}}}*/ + HashEnv(Hash, "LANG"); + HashEnv(Hash, "LC_ALL"); + HashEnv(Hash, "LC_MESSAGES"); diff -upk.orig apt-0.5.15cnc6.orig/buildlib/archtable apt-0.5.15cnc6/buildlib/archtable --- apt-0.5.15cnc6.orig/buildlib/archtable 2003-04-14 17:15:31 +0000 +++ apt-0.5.15cnc6/buildlib/archtable 2005-05-18 16:07:03 +0000 @@ -54,3 +54,27 @@ diff -upk.orig apt-0.5.15cnc6.orig/buildlib/archtable apt-0.5.15cnc6/buildlib/ar sparc sparc sparc64 sparc alpha.* alpha +diff -upk.orig apt-0.5.15lorg2.orig/cmdline/apt-get.cc apt-0.5.15lorg2/cmdline/apt-get.cc +--- apt-0.5.15lorg2.orig/cmdline/apt-get.cc 2006-01-17 18:41:29 +0000 ++++ apt-0.5.15lorg2/cmdline/apt-get.cc 2006-04-01 16:26:19 +0000 +@@ -1752,7 +1752,7 @@ bool DoUpdate(CommandLine &CmdL) + #endif + + // CNC:2004-04-19 +- if (Failed == false && _config->FindB("APT::Get::Archive-Cleanup",true) == true) ++ if (Failed == false && _config->FindB("APT::Get::Archive-Cleanup",false) == true) + { + UpdateLogCleaner Cleaner; + Cleaner.Go(_config->FindDir("Dir::Cache::archives"), *Cache); +diff -upk.orig apt-0.5.15lorg2.orig/cmdline/apt-shell.cc apt-0.5.15lorg2/cmdline/apt-shell.cc +--- apt-0.5.15lorg2.orig/cmdline/apt-shell.cc 2006-01-16 23:10:47 +0000 ++++ apt-0.5.15lorg2/cmdline/apt-shell.cc 2006-04-01 16:26:29 +0000 +@@ -1812,7 +1812,7 @@ bool DoUpdate(CommandLine &CmdL) + #endif + + // CNC:2004-04-19 +- if (Failed == false && _config->FindB("APT::Get::Archive-Cleanup",true) == true) ++ if (Failed == false && _config->FindB("APT::Get::Archive-Cleanup",false) == true) + { + UpdateLogCleaner Cleaner; + Cleaner.Go(_config->FindDir("Dir::Cache::archives"), *GCache); diff --git a/apt-0.5.15cnc6-alt-lsgroup.patch b/apt-0.5.15cnc6-alt-lsgroup.patch index fc77dd2..90dec30 100644 --- a/apt-0.5.15cnc6-alt-lsgroup.patch +++ b/apt-0.5.15cnc6-alt-lsgroup.patch @@ -5,7 +5,7 @@ diff -uNr apt-0.5.15cnc6-orig/cmdline/apt-shell.cc apt-0.5.15cnc6/cmdline/apt-sh bool ShowVersion = _config->FindB("APT::Cache::ShowVersion", false); bool ShowSummary = _config->FindB("APT::Cache::ShowSummary", false); -+ const char *MatchSection = _config->Find("APT::Cache::MatchGroup","").c_str(); ++ std::string MatchSection = _config->Find("APT::Cache::MatchGroup",""); + bool ShowGroup = _config->FindB("APT::Cache::ShowGroup", false); const char *PkgName; @@ -22,7 +22,7 @@ diff -uNr apt-0.5.15cnc6-orig/cmdline/apt-shell.cc apt-0.5.15cnc6/cmdline/apt-sh (Pkg->CurrentVer == 0 || Cache[Pkg].Upgradable() == false)) continue; + PkgSection = Pkg.Section(); -+ if (strlen(MatchSection) > 0 && strcmp(MatchSection,PkgSection) != 0) ++ if (!MatchSection.empty() && MatchSection != std::string(PkgSection)) + continue; + PkgName = Pkg.Name(); @@ -68,7 +68,7 @@ diff -uNr apt-0.5.15cnc6-orig/cmdline/apt-shell.cc apt-0.5.15cnc6/cmdline/apt-sh + else + { + c2out << Str; -+ if (strlen(MatchSection) > 0) ++ if (!MatchSection.empty()) + cout << "\t" << status; + cout << endl; + } diff --git a/apt-0.5.15cnc6-alt-vendor.patch b/apt-0.5.15cnc6-alt-vendor.patch index c2c0bf8..02a4cfa 100644 --- a/apt-0.5.15cnc6-alt-vendor.patch +++ b/apt-0.5.15cnc6-alt-vendor.patch @@ -1,44 +1,60 @@ -diff -Naurp apt-0.5.15cnc6.orig/apt-pkg/acquire-item.cc apt-0.5.15cnc6/apt-pkg/acquire-item.cc ---- apt-0.5.15cnc6.orig/apt-pkg/acquire-item.cc 2005-07-08 15:02:30 +0400 -+++ apt-0.5.15cnc6/apt-pkg/acquire-item.cc 2005-07-08 16:14:04 +0400 -@@ -476,14 +476,29 @@ void pkgAcqIndexRel::Done(string Message +diff -ur apt-0.5.15lorg2.orig/apt-pkg/acquire-item.cc apt-0.5.15lorg2.vendor/apt-pkg/acquire-item.cc +--- apt-0.5.15lorg2.orig/apt-pkg/acquire-item.cc 2006-03-20 20:30:36 +0300 ++++ apt-0.5.15lorg2.vendor/apt-pkg/acquire-item.cc 2006-03-20 20:31:00 +0300 +@@ -476,14 +476,29 @@ return; } - // Match fingerprint of Release file -- if (Repository->Vendor->FingerPrint != FingerPrint) -+ bool found = false; -+ for (vector::const_iterator I = Repository->Vendor->FingerPrint.begin(); -+ I != Repository->Vendor->FingerPrint.end(); I++) -+ { -+ // Match fingerprint of Release file -+ if ((*I) == FingerPrint) -+ { -+ found = true; -+ break; -+ } -+ } -+ -+ if (!found) - { - Status = StatError; +- if (Repository->FingerPrint != FingerPrint) +- { +- Status = StatError; - ErrorText = _("Signature fingerprint of Release file does not match (expected ") -- +Repository->Vendor->FingerPrint+_(", got ")+FingerPrint+")"; -+ ErrorText = _("Signature fingerprint of Release file does not match (expected "); -+ for (vector::const_iterator I = Repository->Vendor->FingerPrint.begin(); -+ I != Repository->Vendor->FingerPrint.end(); I++) -+ ErrorText += "\n"+(*I); -+ ErrorText += _(", got ")+FingerPrint+")"; - return; - } +- +Repository->FingerPrint+_(", got ")+FingerPrint+")"; +- return; +- } ++ bool found = false; ++ for (vector::const_iterator I = Repository->FingerPrint.begin(); ++ I != Repository->FingerPrint.end(); I++) ++ { ++ // Match fingerprint of Release file ++ if ((*I) == FingerPrint) ++ { ++ found = true; ++ break; ++ } ++ } ++ ++ if (!found) ++ { ++ Status = StatError; ++ ErrorText = _("Signature fingerprint of Release file does not match (expected "); ++ for (vector::const_iterator I = Repository->FingerPrint.begin(); ++ I != Repository->FingerPrint.end(); I++) ++ ErrorText += "\n"+(*I); ++ ErrorText += _(", got ")+FingerPrint+")"; ++ return; ++ } + } // Done, move it into position -diff -Naurp apt-0.5.15cnc6.orig/apt-pkg/sourcelist.cc apt-0.5.15cnc6/apt-pkg/sourcelist.cc ---- apt-0.5.15cnc6.orig/apt-pkg/sourcelist.cc 2003-12-10 14:56:28 +0300 -+++ apt-0.5.15cnc6/apt-pkg/sourcelist.cc 2005-07-08 17:20:32 +0400 -@@ -145,7 +145,7 @@ pkgSourceList::~pkgSourceList() +diff -ur apt-0.5.15lorg2.orig/apt-pkg/repository.h apt-0.5.15lorg2.vendor/apt-pkg/repository.h +--- apt-0.5.15lorg2.orig/apt-pkg/repository.h 2006-01-17 02:10:47 +0300 ++++ apt-0.5.15lorg2.vendor/apt-pkg/repository.h 2006-03-20 20:32:17 +0300 +@@ -33,7 +33,7 @@ + + string URI; + string Dist; +- string FingerPrint; ++ vector FingerPrint; + string RootURI; + + bool Acquire; +diff -ur apt-0.5.15lorg2.orig/apt-pkg/sourcelist.cc apt-0.5.15lorg2.vendor/apt-pkg/sourcelist.cc +--- apt-0.5.15lorg2.orig/apt-pkg/sourcelist.cc 2006-02-06 22:11:06 +0300 ++++ apt-0.5.15lorg2.vendor/apt-pkg/sourcelist.cc 2006-03-20 20:31:00 +0300 +@@ -150,7 +150,7 @@ { for (const_iterator I = SrcList.begin(); I != SrcList.end(); I++) delete *I; @@ -47,7 +63,7 @@ diff -Naurp apt-0.5.15cnc6.orig/apt-pkg/sourcelist.cc apt-0.5.15cnc6/apt-pkg/sou I != VendorList.end(); I++) delete *I; } -@@ -169,38 +169,54 @@ bool pkgSourceList::ReadVendors() +@@ -174,38 +174,54 @@ if (ReadConfigFile(Cnf,CnfFile,true) == false) return false; @@ -89,7 +105,7 @@ diff -Naurp apt-0.5.15cnc6.orig/apt-pkg/sourcelist.cc apt-0.5.15cnc6/apt-pkg/sou + Vendor = new pkgSourceList::Vendor; + + Vendor->Description = Block.Find("Name"); -+ Vendor->VendorID = Top->Tag; ++ Vendor->VendorID = Top->Tag; + } + string FingerPrint = Block.Find("Fingerprint"); @@ -115,7 +131,7 @@ diff -Naurp apt-0.5.15cnc6.orig/apt-pkg/sourcelist.cc apt-0.5.15cnc6/apt-pkg/sou Vendor->Description.empty() == true) { _error->Error(_("Vendor block %s is invalid"), Vendor->VendorID.c_str()); -@@ -208,7 +225,8 @@ bool pkgSourceList::ReadVendors() +@@ -213,7 +229,8 @@ continue; } @@ -125,7 +141,7 @@ diff -Naurp apt-0.5.15cnc6.orig/apt-pkg/sourcelist.cc apt-0.5.15cnc6/apt-pkg/sou } /* XXX Process 'group-key' type sections -@@ -350,7 +368,7 @@ bool pkgSourceList::ReadAppend(string Fi +@@ -355,7 +372,7 @@ return _error->Error(_("Malformed line %u in source list %s (vendor id)"),CurLine,File.c_str()); VendorID = string(VendorID,1,VendorID.size()-2); @@ -134,10 +150,10 @@ diff -Naurp apt-0.5.15cnc6.orig/apt-pkg/sourcelist.cc apt-0.5.15cnc6/apt-pkg/sou iter != VendorList.end(); iter++) { if ((*iter)->VendorID == VendorID) -diff -Naurp apt-0.5.15cnc6.orig/apt-pkg/sourcelist.h apt-0.5.15cnc6/apt-pkg/sourcelist.h ---- apt-0.5.15cnc6.orig/apt-pkg/sourcelist.h 2003-03-03 23:15:04 +0300 -+++ apt-0.5.15cnc6/apt-pkg/sourcelist.h 2005-07-08 17:07:17 +0400 -@@ -48,8 +48,8 @@ class pkgSourceList +diff -ur apt-0.5.15lorg2.orig/apt-pkg/sourcelist.h apt-0.5.15lorg2.vendor/apt-pkg/sourcelist.h +--- apt-0.5.15lorg2.orig/apt-pkg/sourcelist.h 2006-01-17 02:10:47 +0300 ++++ apt-0.5.15lorg2.vendor/apt-pkg/sourcelist.h 2006-03-20 20:31:00 +0300 +@@ -48,7 +48,7 @@ struct Vendor { string VendorID; @@ -146,8 +162,7 @@ diff -Naurp apt-0.5.15cnc6.orig/apt-pkg/sourcelist.h apt-0.5.15cnc6/apt-pkg/sour string Description; /* Lets revisit these.. - bool MatchFingerPrint(string FingerPrint); -@@ -87,8 +88,8 @@ class pkgSourceList +@@ -87,8 +87,8 @@ protected: vector SrcList; diff --git a/apt-0.5.15cnc6-alt-virtual_scores.patch b/apt-0.5.15cnc6-alt-virtual-scores.patch similarity index 98% rename from apt-0.5.15cnc6-alt-virtual_scores.patch rename to apt-0.5.15cnc6-alt-virtual-scores.patch index 5e56e89..7952dd6 100644 --- a/apt-0.5.15cnc6-alt-virtual_scores.patch +++ b/apt-0.5.15cnc6-alt-virtual-scores.patch @@ -107,9 +107,9 @@ diff -uprk.orig apt-0.5.15cnc6.orig/cmdline/apt-get.cc apt-0.5.15cnc6/cmdline/ap + { + bool instVirtual = _config->FindB("APT::Install::Virtual", false); + pkgCache::PkgIterator PrvPkg = pkgCache::PkgIterator(*Pkg.Cache(), PList[p]); -+ pkgCache::PrvIterator Prv = Pkg.ProvidesList(); ++ pkgCache::PrvIterator Prv = Pkg.ProvidesList(); + for (; Prv.end() == false && Prv.OwnerPkg() != PrvPkg; Prv++) -+ ; ++ ; // Check if it's a different version of a package already // considered as a good solution. bool AlreadySeen = false; diff --git a/apt-0.5.15lorg2-alt-apt-shell-resetconfig.patch b/apt-0.5.15lorg2-alt-apt-shell-resetconfig.patch new file mode 100644 index 0000000..29b93db --- /dev/null +++ b/apt-0.5.15lorg2-alt-apt-shell-resetconfig.patch @@ -0,0 +1,23 @@ +--- apt-0.5.15lorg2/cmdline/apt-shell.cc.orig 2006-03-30 12:21:31 +0400 ++++ apt-0.5.15lorg2/cmdline/apt-shell.cc 2006-03-30 12:22:24 +0400 +@@ -4644,6 +4644,7 @@ + // Make a copy of the configuration. Each command will modify its + // own copy of the whole configuration. + Configuration GlobalConfig(*_config); ++ Configuration _Config(*_config); + + ReadLineInit(); + c1out << _("Welcome to the APT shell. Type \"help\" for more information.") << endl; +@@ -4758,6 +4759,12 @@ + CmdL.DispatchArg(Cmds); + + free(line); ++ if (!_config->FindB("quit")) ++ { ++ // restore saved config ++ delete _config; ++ _config = new Configuration(_Config); ++ } + } + + ReadLineFinish(); diff --git a/apt-0.5.15lorg2-alt-buildlib.patch b/apt-0.5.15lorg2-alt-buildlib.patch new file mode 100644 index 0000000..d537981 --- /dev/null +++ b/apt-0.5.15lorg2-alt-buildlib.patch @@ -0,0 +1,22 @@ +--- apt-0.5.15lorg2/buildlib/tools.m4.orig 2006-01-16 23:18:56 +0000 ++++ apt-0.5.15lorg2/buildlib/tools.m4 2006-04-01 21:44:55 +0000 +@@ -115,16 +115,13 @@ AC_DEFUN([rc_LIBSTDCPP_VER], + [AC_MSG_CHECKING([libstdc++ version]) + dummy=if$$ + cat <<_LIBSTDCPP_>$dummy.cc +-#include +-#include +-#include +-int main(int argc, char **argv) { exit(0); } ++#include ++int main(void) { std::cout << std::endl; return 0; } + _LIBSTDCPP_ + ${CXX-c++} $dummy.cc -o $dummy > /dev/null 2>&1 + + if test "$?" = 0; then +- soname=`objdump -p ./$dummy |grep NEEDED|grep libstd` +- LIBSTDCPP_VER=`echo $soname | sed -e 's/.*NEEDED.*libstdc++\(-libc.*\(-.*\)\)\?.so.\(.*\)/\3\2/'` ++ LIBSTDCPP_VER=`objdump -p ./$dummy | sed -ne 's/.*NEEDED.*libstdc++\(-libc.*\(-.*\)\)\?.so.\(.*\)/\3\2/p'` + fi + rm -f $dummy $dummy.cc + diff --git a/apt-0.5.15cnc6-alt-fixes.patch b/apt-0.5.15lorg2-alt-fixes.patch similarity index 57% rename from apt-0.5.15cnc6-alt-fixes.patch rename to apt-0.5.15lorg2-alt-fixes.patch index 3523e7d..a702d88 100644 --- a/apt-0.5.15cnc6-alt-fixes.patch +++ b/apt-0.5.15lorg2-alt-fixes.patch @@ -1,6 +1,15 @@ -diff -uprk.orig apt-0.5.15cnc6.orig/apt-pkg/acquire-item.cc apt-0.5.15cnc6/apt-pkg/acquire-item.cc ---- apt-0.5.15cnc6.orig/apt-pkg/acquire-item.cc 2004-03-05 12:02:14 +0000 -+++ apt-0.5.15cnc6/apt-pkg/acquire-item.cc 2004-05-16 17:12:43 +0000 +diff -upk.orig apt-0.5.15lorg2.orig/apt-pkg/acquire-item.cc apt-0.5.15lorg2/apt-pkg/acquire-item.cc +--- apt-0.5.15lorg2.orig/apt-pkg/acquire-item.cc 2006-01-16 23:10:47 +0000 ++++ apt-0.5.15lorg2/apt-pkg/acquire-item.cc 2006-04-01 17:25:00 +0000 +@@ -48,7 +48,7 @@ using std::string; + // --------------------------------------------------------------------- + /* Returns false only if the checksums fail (the file not existing is not + a checksum mismatch) */ +-bool VerifyChecksums(string File,unsigned long Size,string MD5) ++static bool VerifyChecksums(string File, unsigned long Size, string MD5) + { + struct stat Buf; + @@ -283,7 +283,7 @@ void pkgAcqIndex::Done(string Message,un ErrorText = _("Size mismatch"); Rename(DestFile,DestFile + ".FAILED"); @@ -19,9 +28,9 @@ diff -uprk.orig apt-0.5.15cnc6.orig/apt-pkg/acquire-item.cc apt-0.5.15cnc6/apt-p RealURI.c_str(), Size, FSize); return; } -diff -uprk.orig apt-0.5.15cnc6.orig/apt-pkg/luaiface.h apt-0.5.15cnc6/apt-pkg/luaiface.h ---- apt-0.5.15cnc6.orig/apt-pkg/luaiface.h 2004-03-19 14:56:52 +0000 -+++ apt-0.5.15cnc6/apt-pkg/luaiface.h 2004-05-16 17:12:45 +0000 +diff -upk.orig apt-0.5.15lorg2.orig/apt-pkg/luaiface.h apt-0.5.15lorg2/apt-pkg/luaiface.h +--- apt-0.5.15lorg2.orig/apt-pkg/luaiface.h 2006-01-16 23:10:47 +0000 ++++ apt-0.5.15lorg2/apt-pkg/luaiface.h 2006-04-01 17:19:39 +0000 @@ -54,8 +54,9 @@ class Lua { void RunInteractive(const string &PlaceHint) { RunInteractive(PlaceHint.c_str()); }; @@ -29,26 +38,26 @@ diff -uprk.orig apt-0.5.15cnc6.orig/apt-pkg/luaiface.h apt-0.5.15cnc6/apt-pkg/lu + //or all of this RunScript should be void? bool RunScript(const string &Script, const string &ChunkCacheKey="") - { RunScript(Script.c_str(), (ChunkCacheKey.length() == 0) ? -+ { return RunScript(Script.c_str(), (ChunkCacheKey.length() == 0) ? ++ { return RunScript(Script.c_str(), ChunkCacheKey.empty() ? NULL : ChunkCacheKey.c_str()); }; bool RunScript(const char *Script, const char *ChunkCacheKey=NULL); bool RunScripts(const char *ConfListKey, bool CacheChunks=false); -diff -uprk.orig apt-0.5.15cnc6.orig/apt-pkg/pkgrecords.cc apt-0.5.15cnc6/apt-pkg/pkgrecords.cc ---- apt-0.5.15cnc6.orig/apt-pkg/pkgrecords.cc 2003-11-03 21:25:47 +0000 -+++ apt-0.5.15cnc6/apt-pkg/pkgrecords.cc 2004-05-16 17:12:43 +0000 +diff -upk.orig apt-0.5.15lorg2.orig/apt-pkg/pkgrecords.cc apt-0.5.15lorg2/apt-pkg/pkgrecords.cc +--- apt-0.5.15lorg2.orig/apt-pkg/pkgrecords.cc 2006-01-16 23:10:47 +0000 ++++ apt-0.5.15lorg2/apt-pkg/pkgrecords.cc 2006-04-01 17:19:39 +0000 @@ -56,7 +56,8 @@ pkgRecords::~pkgRecords() { // CNC:2002-11-28 // See comments above. - for (unsigned I = 0; I != PackageFileCount; I++) -+ // PackageFileCount is int in apt-pkg/pkgrecords.h ++ // PackageFileCount is int according to apt-pkg/pkgrecords.h + for (int I = 0; I != PackageFileCount; I++) delete Files[I]; delete [] Files; } -diff -uprk.orig apt-0.5.15cnc6.orig/apt-pkg/pkgsystem.h apt-0.5.15cnc6/apt-pkg/pkgsystem.h ---- apt-0.5.15cnc6.orig/apt-pkg/pkgsystem.h 2003-11-24 16:55:37 +0000 -+++ apt-0.5.15cnc6/apt-pkg/pkgsystem.h 2004-05-16 17:12:41 +0000 +diff -upk.orig apt-0.5.15lorg2.orig/apt-pkg/pkgsystem.h apt-0.5.15lorg2/apt-pkg/pkgsystem.h +--- apt-0.5.15lorg2.orig/apt-pkg/pkgsystem.h 2006-02-06 19:11:06 +0000 ++++ apt-0.5.15lorg2/apt-pkg/pkgsystem.h 2006-04-01 17:19:39 +0000 @@ -90,7 +90,7 @@ class pkgSystem // Return a list of system index files.. virtual bool AddStatusFiles(std::vector &List) = 0; @@ -58,9 +67,9 @@ diff -uprk.orig apt-0.5.15cnc6.orig/apt-pkg/pkgsystem.h apt-0.5.15cnc6/apt-pkg/p virtual bool FindIndex(pkgCache::PkgFileIterator File, pkgIndexFile *&Found) const = 0; -diff -uprk.orig apt-0.5.15cnc6.orig/apt-pkg/rpm/rpmhandler.cc apt-0.5.15cnc6/apt-pkg/rpm/rpmhandler.cc ---- apt-0.5.15cnc6.orig/apt-pkg/rpm/rpmhandler.cc 2004-03-05 11:29:09 +0000 -+++ apt-0.5.15cnc6/apt-pkg/rpm/rpmhandler.cc 2004-05-16 17:12:45 +0000 +diff -upk.orig apt-0.5.15lorg2.orig/apt-pkg/rpm/rpmhandler.cc apt-0.5.15lorg2/apt-pkg/rpm/rpmhandler.cc +--- apt-0.5.15lorg2.orig/apt-pkg/rpm/rpmhandler.cc 2006-02-06 19:11:06 +0000 ++++ apt-0.5.15lorg2/apt-pkg/rpm/rpmhandler.cc 2006-04-01 17:19:39 +0000 @@ -87,7 +87,7 @@ bool RPMFileHandler::Jump(unsigned Offse { if (FD == NULL) @@ -70,7 +79,7 @@ diff -uprk.orig apt-0.5.15cnc6.orig/apt-pkg/rpm/rpmhandler.cc apt-0.5.15cnc6/apt return false; return Skip(); } -@@ -343,7 +343,7 @@ string RPMDirHandler::MD5Sum() +@@ -347,7 +347,7 @@ string RPMDirHandler::MD5Sum() RPMDBHandler::RPMDBHandler(bool WriteLock) @@ -79,10 +88,21 @@ diff -uprk.orig apt-0.5.15cnc6.orig/apt-pkg/rpm/rpmhandler.cc apt-0.5.15cnc6/apt { #if RPM_VERSION >= 0x040000 RpmIter = NULL; -diff -uprk.orig apt-0.5.15cnc6.orig/apt-pkg/rpm/rpmpm.cc apt-0.5.15cnc6/apt-pkg/rpm/rpmpm.cc ---- apt-0.5.15cnc6.orig/apt-pkg/rpm/rpmpm.cc 2004-03-15 22:10:41 +0000 -+++ apt-0.5.15cnc6/apt-pkg/rpm/rpmpm.cc 2004-05-16 17:12:41 +0000 -@@ -393,7 +393,7 @@ bool pkgRPMExtPM::ExecRPM(Item::RPMOps o +diff -upk.orig apt-0.5.15lorg2.orig/apt-pkg/rpm/rpmpackagedata.cc apt-0.5.15lorg2/apt-pkg/rpm/rpmpackagedata.cc +--- apt-0.5.15lorg2.orig/apt-pkg/rpm/rpmpackagedata.cc 2006-02-06 17:21:43 +0000 ++++ apt-0.5.15lorg2/apt-pkg/rpm/rpmpackagedata.cc 2006-04-01 17:22:48 +0000 +@@ -296,7 +296,6 @@ int RPMPackageData::RpmArchScore(const c + + bool RPMPackageData::IsCompatArch(string Arch) + { +- bool compat = false; + for (vector::iterator I = CompatArch[BaseArch].begin(); + I != CompatArch[BaseArch].end(); I++) { + if (Arch == *I) +diff -upk.orig apt-0.5.15lorg2.orig/apt-pkg/rpm/rpmpm.cc apt-0.5.15lorg2/apt-pkg/rpm/rpmpm.cc +--- apt-0.5.15lorg2.orig/apt-pkg/rpm/rpmpm.cc 2006-01-16 23:10:47 +0000 ++++ apt-0.5.15lorg2/apt-pkg/rpm/rpmpm.cc 2006-04-01 17:19:39 +0000 +@@ -398,7 +398,7 @@ bool pkgRPMExtPM::ExecRPM(Item::RPMOps o Args[n++] = _config->Find("Dir::Bin::rpm","rpm").c_str(); @@ -91,7 +111,7 @@ diff -uprk.orig apt-0.5.15cnc6.orig/apt-pkg/rpm/rpmpm.cc apt-0.5.15cnc6/apt-pkg/ switch (op) { -@@ -416,6 +416,8 @@ bool pkgRPMExtPM::ExecRPM(Item::RPMOps o +@@ -421,6 +421,8 @@ bool pkgRPMExtPM::ExecRPM(Item::RPMOps o operation = "-e"; nodeps = true; break; @@ -100,7 +120,7 @@ diff -uprk.orig apt-0.5.15cnc6.orig/apt-pkg/rpm/rpmpm.cc apt-0.5.15cnc6/apt-pkg/ } Args[n++] = operation; -@@ -657,8 +659,7 @@ pkgRPMLibPM::~pkgRPMLibPM() +@@ -662,8 +664,7 @@ pkgRPMLibPM::~pkgRPMLibPM() bool pkgRPMLibPM::AddToTransaction(Item::RPMOps op, vector &files) { @@ -110,7 +130,7 @@ diff -uprk.orig apt-0.5.15cnc6.orig/apt-pkg/rpm/rpmpm.cc apt-0.5.15cnc6/apt-pkg/ FD_t fd; rpmHeader hdr; -@@ -739,7 +740,6 @@ bool pkgRPMLibPM::Process(vectorFindB("RPM::Interactive",true); @@ -118,9 +138,9 @@ diff -uprk.orig apt-0.5.15cnc6.orig/apt-pkg/rpm/rpmpm.cc apt-0.5.15cnc6/apt-pkg/ string Dir = _config->Find("RPM::RootDir"); rpmReadConfigFiles(NULL, NULL); -diff -uprk.orig apt-0.5.15cnc6.orig/apt-pkg/rpm/rpmrecords.cc apt-0.5.15cnc6/apt-pkg/rpm/rpmrecords.cc ---- apt-0.5.15cnc6.orig/apt-pkg/rpm/rpmrecords.cc 2004-03-13 18:21:45 +0000 -+++ apt-0.5.15cnc6/apt-pkg/rpm/rpmrecords.cc 2004-05-16 17:12:43 +0000 +diff -upk.orig apt-0.5.15lorg2.orig/apt-pkg/rpm/rpmrecords.cc apt-0.5.15lorg2/apt-pkg/rpm/rpmrecords.cc +--- apt-0.5.15lorg2.orig/apt-pkg/rpm/rpmrecords.cc 2006-01-16 23:10:47 +0000 ++++ apt-0.5.15lorg2/apt-pkg/rpm/rpmrecords.cc 2006-04-01 17:19:39 +0000 @@ -407,7 +407,7 @@ void rpmRecordParser::GetRec(const char headerGetEntry(HeaderP, RPMTAG_ARCH, &type, (void **)&str, &count); BufCatTag("\nArchitecture: ", str); @@ -130,10 +150,10 @@ diff -uprk.orig apt-0.5.15cnc6.orig/apt-pkg/rpm/rpmrecords.cc apt-0.5.15cnc6/apt BufCatTag("\nSize: ", buf); BufCatTag("\nMD5Sum: ", Handler->MD5Sum().c_str()); -diff -uprk.orig apt-0.5.15cnc6.orig/apt-pkg/rpm/rpmsystem.cc apt-0.5.15cnc6/apt-pkg/rpm/rpmsystem.cc ---- apt-0.5.15cnc6.orig/apt-pkg/rpm/rpmsystem.cc 2004-03-22 16:51:38 +0000 -+++ apt-0.5.15cnc6/apt-pkg/rpm/rpmsystem.cc 2004-05-16 17:12:41 +0000 -@@ -251,7 +251,7 @@ bool rpmSystem::AddStatusFiles(vectorTree("APT::Arguments"); -@@ -268,7 +268,6 @@ bool rpmSystem::AddSourceFiles(vector &List); - virtual bool AddSourceFiles(vector &List); + virtual void AddSourceFiles(vector &List); virtual bool FindIndex(pkgCache::PkgFileIterator File, pkgIndexFile *&Found) const; virtual bool ProcessCache(pkgDepCache &Cache,pkgProblemResolver &Fix); -diff -uprk.orig apt-0.5.15cnc6.orig/cmdline/apt-get.cc apt-0.5.15cnc6/cmdline/apt-get.cc ---- apt-0.5.15cnc6.orig/cmdline/apt-get.cc 2004-03-22 20:40:03 +0000 -+++ apt-0.5.15cnc6/cmdline/apt-get.cc 2004-05-16 17:12:43 +0000 +diff -upk.orig apt-0.5.15lorg2.orig/cmdline/apt-get.cc apt-0.5.15lorg2/cmdline/apt-get.cc +--- apt-0.5.15lorg2.orig/cmdline/apt-get.cc 2006-01-17 18:41:29 +0000 ++++ apt-0.5.15lorg2/cmdline/apt-get.cc 2006-04-01 17:19:39 +0000 @@ -1223,7 +1223,7 @@ bool TryToInstall(pkgCache::PkgIterator // Check if it's a different version of a package already // considered as a good solution. @@ -192,9 +212,9 @@ diff -uprk.orig apt-0.5.15cnc6.orig/cmdline/apt-get.cc apt-0.5.15cnc6/cmdline/ap { pkgCache::PkgIterator GoodPkg(Cache, GoodSolutions[i]); if (GoodPkg.CurrentVer().end() == false) -diff -uprk.orig apt-0.5.15cnc6.orig/cmdline/apt-shell.cc apt-0.5.15cnc6/cmdline/apt-shell.cc ---- apt-0.5.15cnc6.orig/cmdline/apt-shell.cc 2004-03-15 22:10:41 +0000 -+++ apt-0.5.15cnc6/cmdline/apt-shell.cc 2004-05-16 17:12:43 +0000 +diff -upk.orig apt-0.5.15lorg2.orig/cmdline/apt-shell.cc apt-0.5.15lorg2/cmdline/apt-shell.cc +--- apt-0.5.15lorg2.orig/cmdline/apt-shell.cc 2006-01-16 23:10:47 +0000 ++++ apt-0.5.15lorg2/cmdline/apt-shell.cc 2006-04-01 17:19:39 +0000 @@ -1292,7 +1292,7 @@ bool TryToInstall(pkgCache::PkgIterator // Check if it's a different version of a package already // considered as a good solution. @@ -208,12 +228,12 @@ diff -uprk.orig apt-0.5.15cnc6.orig/cmdline/apt-shell.cc apt-0.5.15cnc6/cmdline/ } } vector GoodSolutionNames; -- for (int i = 0; i != GoodSolutionNames.size(); i++) -+ for (unsigned int i = 0; i != GoodSolutionNames.size(); i++) +- for (int i = 0; i != GoodSolutions.size(); i++) ++ for (unsigned int i = 0; i != GoodSolutions.size(); i++) { - pkgCache::PkgIterator GoodPkg(Cache, GoodSolutions[0]); + pkgCache::PkgIterator GoodPkg(Cache, GoodSolutions[i]); GoodSolutionNames.push_back(GoodPkg.Name()); -@@ -1376,7 +1376,7 @@ bool TryToInstall(pkgCache::PkgIterator +@@ -1377,7 +1377,7 @@ bool TryToInstall(pkgCache::PkgIterator { ioprintf(c1out,_("Package %s is a virtual package provided by:\n"), Pkg.Name()); @@ -222,7 +242,7 @@ diff -uprk.orig apt-0.5.15cnc6.orig/cmdline/apt-shell.cc apt-0.5.15cnc6/cmdline/ { pkgCache::PkgIterator GoodPkg(Cache, GoodSolutions[i]); if (GoodPkg.CurrentVer().end() == false) -@@ -4439,7 +4439,7 @@ int main(int argc,const char *argv[]) +@@ -4464,7 +4464,7 @@ int main(int argc,const char *argv[]) _lua->HasScripts("Scripts::AptCache::Command")); #endif @@ -231,3 +251,16 @@ diff -uprk.orig apt-0.5.15cnc6.orig/cmdline/apt-shell.cc apt-0.5.15cnc6/cmdline/ const char *largv[1024]; char *line, *p, *q; largv[0] = ""; +diff -upk.orig apt-0.5.15lorg2.orig/methods/gpg.cc apt-0.5.15lorg2/methods/gpg.cc +--- apt-0.5.15lorg2.orig/methods/gpg.cc 2006-01-16 23:10:47 +0000 ++++ apt-0.5.15lorg2/methods/gpg.cc 2006-04-01 17:27:16 +0000 +@@ -255,7 +255,8 @@ char *getFileSigner(const char *file, co + { + char *sig; + ptr = sig = ptr1 + sizeof(SIGPACK); +- while (isxdigit(*ptr) && (ptr-sig) < sizeof(keyid)) ptr++; ++ while (ptr < sig + sizeof(keyid) && isxdigit(*ptr)) ++ ptr++; + *ptr = 0; + strcpy(keyid, sig); + } diff --git a/apt-0.5.15lorg2-alt-pkgInitConfig-cpu.patch b/apt-0.5.15lorg2-alt-pkgInitConfig-cpu.patch new file mode 100644 index 0000000..41d39b6 --- /dev/null +++ b/apt-0.5.15lorg2-alt-pkgInitConfig-cpu.patch @@ -0,0 +1,29 @@ +--- apt-0.5.15lorg2/apt-pkg/init.cc.orig 2006-04-02 12:00:56 +0000 ++++ apt-0.5.15lorg2/apt-pkg/init.cc 2006-04-02 12:01:38 +0000 +@@ -15,6 +15,7 @@ + #include + #include + #include ++#include + + // CNC:2003-03-17 + #include +@@ -37,9 +38,16 @@ const char *pkgOS = COMMON_OS; + is prepended, this allows a fair degree of flexability. */ + bool pkgInitConfig(Configuration &Cnf) + { ++ const char *cpu = NULL; ++ struct utsname name; ++ if (uname(&name) == 0) ++ cpu = strdup(name.machine); ++ if (cpu == NULL) ++ cpu = COMMON_CPU; ++ + // General APT things + if (strcmp(COMMON_OS,"linux") == 0 || + strcmp(COMMON_OS,"unknown") == 0) +- Cnf.CndSet("APT::Architecture",COMMON_CPU); ++ Cnf.CndSet("APT::Architecture",cpu); + else + Cnf.CndSet("APT::Architecture",COMMON_OS "-" COMMON_CPU); + Cnf.CndSet("APT::Architecture",COMMON_OS "-" cpu); diff --git a/apt-0.5.15lorg2-alt-readline.patch b/apt-0.5.15lorg2-alt-readline.patch new file mode 100644 index 0000000..da88cc4 --- /dev/null +++ b/apt-0.5.15lorg2-alt-readline.patch @@ -0,0 +1,41 @@ +diff -upk.orig apt-0.5.15lorg2.orig/cmdline/Makefile.am apt-0.5.15lorg2/cmdline/Makefile.am +--- apt-0.5.15lorg2.orig/cmdline/Makefile.am 2006-01-16 23:10:47 +0000 ++++ apt-0.5.15lorg2/cmdline/Makefile.am 2006-04-01 15:03:29 +0000 +@@ -15,7 +15,7 @@ LDADD = ../apt-pkg/libapt-pkg.la $(RPMLI + apt_get_SOURCES = apt-get.cc acqprogress.cc acqprogress.h + apt_cache_SOURCES = apt-cache.cc + apt_shell_SOURCES = apt-shell.cc acqprogress.cc acqprogress.h +-apt_shell_LDADD = $(LDADD) -lreadline -lncurses ++apt_shell_LDADD = $(LDADD) -lreadline + apt_config_SOURCES = apt-config.cc + apt_cdrom_SOURCES = apt-cdrom.cc rpmindexcopy.cc rpmindexcopy.h + +diff -upk.orig apt-0.5.15lorg2.orig/cmdline/Makefile.in apt-0.5.15lorg2/cmdline/Makefile.in +--- apt-0.5.15lorg2.orig/cmdline/Makefile.in 2006-01-17 00:01:33 +0000 ++++ apt-0.5.15lorg2/cmdline/Makefile.in 2006-04-01 15:03:29 +0000 +@@ -289,7 +289,7 @@ LDADD = ../apt-pkg/libapt-pkg.la $(RPMLI + apt_get_SOURCES = apt-get.cc acqprogress.cc acqprogress.h + apt_cache_SOURCES = apt-cache.cc + apt_shell_SOURCES = apt-shell.cc acqprogress.cc acqprogress.h +-apt_shell_LDADD = $(LDADD) -lreadline -lncurses ++apt_shell_LDADD = $(LDADD) -lreadline + apt_config_SOURCES = apt-config.cc + apt_cdrom_SOURCES = apt-cdrom.cc rpmindexcopy.cc rpmindexcopy.h + apt_get_static_SOURCES = $(apt_get_SOURCES) +diff -upk.orig apt-0.5.15lorg2.orig/configure.in apt-0.5.15lorg2/configure.in +--- apt-0.5.15lorg2.orig/configure.in 2006-02-06 19:12:19 +0000 ++++ apt-0.5.15lorg2/configure.in 2006-04-01 15:05:18 +0000 +@@ -134,10 +134,9 @@ else + fi + + dnl Check for apt-shell dependencies +-AC_CHECK_LIB(ncurses,tputs, +- [AC_CHECK_HEADER(readline/readline.h, +- [AC_CHECK_LIB(readline,rl_completion_matches, +- [compile_aptshell=yes],,[-lncurses])])]) ++AC_CHECK_HEADER(readline/readline.h, ++ [AC_CHECK_LIB(readline,rl_completion_matches, ++ [compile_aptshell=yes])]) + AM_CONDITIONAL(COMPILE_APTSHELL, test "$compile_aptshell" = "yes") + + dnl Converts the ARCH to be something singular for this general CPU family diff --git a/apt-0.5.15lorg2-alt-rpmSystem-DistroVer.patch b/apt-0.5.15lorg2-alt-rpmSystem-DistroVer.patch new file mode 100644 index 0000000..3742018 --- /dev/null +++ b/apt-0.5.15lorg2-alt-rpmSystem-DistroVer.patch @@ -0,0 +1,74 @@ +diff -upk.orig apt-0.5.15lorg2.orig/apt-pkg/rpm/rpmsystem.cc apt-0.5.15lorg2/apt-pkg/rpm/rpmsystem.cc +--- apt-0.5.15lorg2.orig/apt-pkg/rpm/rpmsystem.cc 2006-02-06 19:11:06 +0000 ++++ apt-0.5.15lorg2/apt-pkg/rpm/rpmsystem.cc 2006-04-01 16:14:46 +0000 +@@ -248,31 +248,50 @@ signed rpmSystem::Score(Configuration co + string rpmSystem::DistroVer(Configuration const &Cnf) + { + string DistroVerPkg = _config->Find("Apt::DistroVerPkg"); +- string DistroVersion = ""; ++ string DistroVersion; + ++ if (DistroVerPkg.empty()) ++ return DistroVersion; + +- if (! DistroVerPkg.empty()) { +- rpmts ts; +- char *version; +- int type, count, rc; +- rpmdbMatchIterator iter; +- +- ts = rpmtsCreate(); +- rpmtsSetVSFlags(ts, (rpmVSFlags_e)-1); +- rpmtsSetRootDir(ts, NULL); +- rc = rpmtsOpenDB(ts, O_RDWR); +- +- Header hdr; +- iter = rpmtsInitIterator(ts, (rpmTag)RPMDBI_LABEL, DistroVerPkg.c_str(), 0); +- while ((hdr = rpmdbNextIterator(iter)) != NULL) { +- headerGetEntry(hdr, RPMTAG_VERSION, &type, (void **)&version, &count); +- DistroVersion = version; ++#if RPM_VERSION >= 0x040100 ++ rpmts ts; ++ ts = rpmtsCreate(); ++ rpmtsSetVSFlags(ts, (rpmVSFlags_e)-1); ++ rpmtsSetRootDir(ts, NULL); ++ if (rpmtsOpenDB(ts, O_RDONLY)) ++ return DistroVersion; ++#else ++ rpmdb DB; ++ string RootDir = _config->Find("RPM::RootDir"); ++ const char *RootDirStr = RootDir.empty() ? NULL : RootDir.c_str(); ++ if (rpmdbOpen(RootDirStr, &DB, O_RDONLY, 0644)) ++ return DistroVersion; ++#endif ++ ++ rpmdbMatchIterator iter; ++#if RPM_VERSION >= 0x040100 ++ iter = rpmtsInitIterator(ts, (rpmTag)RPMDBI_LABEL, DistroVerPkg.c_str(), 0); ++#else ++ iter = rpmdbInitIterator(DB, RPMDBI_LABEL, DistroVerPkg.c_str(), 0); ++#endif ++ Header hdr; ++ while ((hdr = rpmdbNextIterator(iter)) != NULL) { ++ void *version; ++ int type, count; ++ ++ if (headerGetEntry(hdr, RPMTAG_VERSION, &type, &version, &count)) { ++ DistroVersion = (char *)version; ++ headerFreeData(&version, (rpmTagType)type); + break; + } +- rpmdbFreeIterator(iter); +- rpmtsFree(ts); + } +- ++ rpmdbFreeIterator(iter); ++#if RPM_VERSION >= 0x040100 ++ rpmtsFree(ts); ++#else ++ rpmdbClose(DB); ++#endif ++ + return DistroVersion; + } + diff --git a/apt-0.5.4cnc9-alt-pkgorderlist_score.patch b/apt-0.5.4cnc9-alt-pkgorderlist-score.patch similarity index 100% rename from apt-0.5.4cnc9-alt-pkgorderlist_score.patch rename to apt-0.5.4cnc9-alt-pkgorderlist-score.patch diff --git a/apt-0.5.5cnc4.1-alt-fixpriorsort.patch b/apt-0.5.5cnc4.1-alt-PrioComp.patch similarity index 100% rename from apt-0.5.5cnc4.1-alt-fixpriorsort.patch rename to apt-0.5.5cnc4.1-alt-PrioComp.patch diff --git a/apt-0.5.5cnc5-alt-rsync.patch b/apt-0.5.5cnc5-alt-rsync.patch index d9f1bda..ee97e60 100644 --- a/apt-0.5.5cnc5-alt-rsync.patch +++ b/apt-0.5.5cnc5-alt-rsync.patch @@ -41,27 +41,16 @@ Index: apt-rpm.rsync/apt-pkg/acquire-method.cc =================================================================== --- apt-rpm.rsync/apt-pkg/acquire-method.cc (revision 137) +++ apt-rpm.rsync/apt-pkg/acquire-method.cc (working copy) -@@ -135,7 +135,7 @@ - if (Queue == 0) - abort(); - -- char S[1024] = ""; -+ char S[2048] = ""; - char *End = S; - - End += snprintf(S,sizeof(S),"200 URI Start\nURI: %s\n",Queue->Uri.c_str()); -@@ -150,6 +150,10 @@ - End += snprintf(End,sizeof(S)-4 - (End - S),"Resume-Point: %lu\n", - Res.ResumePoint); - -+ if (!Res.TmpFilename.empty()) -+ End += snprintf(End,sizeof(S)-4 - (End - S),"Tmp-Filename: %s\n", -+ Res.TmpFilename.c_str()); -+ - strcat(End,"\n"); - if (write(STDOUT_FILENO,S,strlen(S)) != (signed)strlen(S)) - exit(100); -Index: apt-rpm.rsync/apt-pkg/acquire-method.h +@@ -152,6 +152,9 @@ + if (Res.ResumePoint != 0) + s << "Resume-Point: " << Res.ResumePoint << "\n"; + ++ if (Res.TmpFilename.size() != 0) ++ s << "Tmp-Filename: " << Res.TmpFilename << "\n"; ++ + s << "\n"; + string S = s.str(); + if (write(STDOUT_FILENO,S.c_str(),S.size()) != (ssize_t)S.size()) =================================================================== --- apt-rpm.rsync/apt-pkg/acquire-method.h (revision 137) +++ apt-rpm.rsync/apt-pkg/acquire-method.h (working copy) diff --git a/apt.spec b/apt.spec index eee3a36..a871f89 100644 --- a/apt.spec +++ b/apt.spec @@ -1,8 +1,8 @@ # $Id: apt,v 1.22 2005/07/15 17:25:46 me Exp $ Name: apt -Version: 0.5.15cnc6 -Release: alt18 +Version: 0.5.15lorg2 +Release: alt3 Summary: Debian's Advanced Packaging Tool with RPM support Summary(ru_RU.KOI8-R): Debian APT - Усовершенствованное средство управления пакетами с поддержкой RPM @@ -19,27 +19,27 @@ Source4: apt.ru.po Source5: apt.be.po Source6: ChangeLog-rpm.old -Patch9: apt-0.5.15cnc6-alt-aclocal-warnings.patch -Patch10: apt-0.5.15cnc5-alt-libtool.patch -Patch11: apt-0.5.15cnc6-alt-fixes.patch -Patch12: apt-0.5.15cnc5-alt-tinfo.patch -Patch13: apt-0.5.15cnc5-alt-rpm-build.patch -Patch14: apt-0.5.15cnc5-alt-distro.patch -Patch15: apt-0.5.15cnc5-alt-debsystem.patch -Patch16: apt-0.5.15cnc6-alt-defaults.patch -Patch17: apt-0.5.5cnc5-alt-rsync.patch -Patch18: apt-0.5.15cnc5-alt-getsrc.patch -Patch19: apt-0.5.15cnc6-alt-parseargs.patch -Patch20: apt-0.5.15cnc5-alt-rpm_cmd.patch -Patch21: apt-0.5.15cnc6-alt-rpm-fancypercent.patch -Patch22: apt-0.5.15cnc5-alt-methods_gpg_homedir.patch -Patch23: apt-0.5.15cnc5-alt-md5hash-debug.patch -Patch24: apt-0.5.15cnc5-alt-packagemanager-CheckRConflicts.patch -Patch25: apt-0.5.5cnc4.1-alt-fixpriorsort.patch -Patch26: apt-0.5.4cnc9-alt-pkgorderlist_score.patch -Patch27: apt-0.5.15cnc6-alt-virtual_scores.patch -Patch28: apt-0.5.15cnc5-alt-system-lua5.patch -Patch29: apt-0.5.15cnc5-alt-findrepos.patch +Patch9: apt-0.5.15lorg2-alt-buildlib.patch +Patch10: apt-0.5.15lorg2-alt-rpmSystem-DistroVer.patch +Patch11: apt-0.5.15lorg2-alt-fixes.patch +Patch12: apt-0.5.15cnc5-alt-libtool.patch +Patch13: apt-0.5.15lorg2-alt-readline.patch +Patch14: apt-0.5.15cnc5-alt-rpm-build.patch +Patch15: apt-0.5.15cnc5-alt-distro.patch +Patch16: apt-0.5.15cnc5-alt-debsystem.patch +Patch17: apt-0.5.15cnc6-alt-defaults.patch +Patch18: apt-0.5.5cnc5-alt-rsync.patch +Patch19: apt-0.5.15cnc5-alt-getsrc.patch +Patch20: apt-0.5.15cnc6-alt-parseargs.patch +Patch21: apt-0.5.15cnc5-alt-execrpm-cmd.patch +Patch22: apt-0.5.15cnc6-alt-rpm-fancypercent.patch +Patch23: apt-0.5.15cnc5-alt-gpg-homedir.patch +Patch24: apt-0.5.15cnc5-alt-md5hash-debug.patch +Patch25: apt-0.5.15cnc5-alt-packagemanager-CheckRConflicts.patch +Patch26: apt-0.5.5cnc4.1-alt-PrioComp.patch +Patch27: apt-0.5.4cnc9-alt-pkgorderlist-score.patch +Patch28: apt-0.5.15cnc6-alt-virtual-scores.patch +Patch29: apt-0.5.15cnc5-alt-system-lua5.patch Patch30: apt-0.5.15cnc5-alt-gettext.patch Patch31: apt-0.5.15cnc6-alt-rpm-order.patch Patch32: apt-0.5.15cnc6-alt-pkgcachegen.patch @@ -54,6 +54,8 @@ Patch40: apt-0.5.15cnc6-alt-vendor.patch Patch41: apt-0.5.15cnc6-alt-apt-pipe.patch Patch42: apt-0.5.15cnc6-alt-PrintLocalFile.patch Patch43: apt-0.5.15cnc6-apt-utils-locale.patch +Patch44: apt-0.5.15lorg2-alt-apt-shell-resetconfig.patch +Patch45: apt-0.5.15lorg2-alt-pkgInitConfig-cpu.patch # Normally not applied, but useful. Patch101: apt-0.5.4cnc9-alt-getsrc-debug.patch @@ -72,14 +74,17 @@ BuildPreReq: docbook-utils # lua5. BuildPreReq: liblua5-devel -# autopoint +# for autopoint. BuildPreReq: cvs +# for apt-pipe. +BuildPreReq: setproctitle-devel + %def_disable static %{?_enable_static:BuildPreReq: glibc-devel-static} # all the rest. -BuildPreReq: gcc-c++ libreadline-devel libstdc++-devel libtinfo-devel setproctitle-devel +BuildPreReq: gcc-c++ libreadline-devel %package -n libapt Summary: APT's core libraries @@ -249,58 +254,62 @@ This package contains method 'rsync' for APT. %patch41 -p1 %patch42 -p1 %patch43 -p1 +%patch44 -p1 +%patch45 -p1 find -type f -name \*.orig -delete -print # Use system-wide lua5 pushd lua # keep only local/ and lua/ -%__rm -rfv include lib luac *.[ch] +rm -rfv include lib luac *.[ch] popd # Turn it on only if you want to see the debugging messages: #%patch101 -p1 -b .getsrc-debug -%__install -p -m644 %SOURCE3 %SOURCE6 . -%__install -p -m644 %SOURCE4 po/ru.po -%__install -p -m644 %SOURCE5 po/be.po +install -p -m644 %SOURCE3 %SOURCE6 . +install -p -m644 %SOURCE4 po/ru.po +install -p -m644 %SOURCE5 po/be.po %__subst 's|^\(.\+\)$|\1 be|' po/LINGUAS %build # Fix url. %__subst -p 's,/usr/share/common-licenses/GPL,/usr/share/license/GPL,' COPYING +# Unhide potential cc/c++ errors. +%__subst 's, > /dev/null 2>&1,,' buildlib/tools.m4 + autoreconf -fisv -# --disable-dependency-tracking Speeds up one-time builds %configure --includedir=%_includedir/apt-pkg %{subst_enable static} # Probably this obsolete now? find -type f -print0 | - xargs -r0 %__grep -EZl '/var(/lib)?/state/apt' -- | + xargs -r0 grep -EZl '/var(/lib)?/state/apt' -- | xargs -r0 %__subst -p 's,/var\(/lib\)\?/state/apt,%_localstatedir/%name,g' -- %make_build %install -%__mkdir_p %buildroot%_sysconfdir/%name/{%name.conf,sources.list,vendors.list}.d -%__mkdir_p %buildroot%_libdir/%name/scripts -%__mkdir_p %buildroot%_localstatedir/%name/{lists/partial,prefetch} -%__mkdir_p %buildroot%_cachedir/%name/{archives/partial,gen{pkg,src}list} +mkdir -p %buildroot%_sysconfdir/%name/{%name.conf,sources.list,vendors.list}.d +mkdir -p %buildroot%_libdir/%name/scripts +mkdir -p %buildroot%_localstatedir/%name/{lists/partial,prefetch} +mkdir -p %buildroot%_cachedir/%name/{archives/partial,gen{pkg,src}list} %makeinstall includedir=%buildroot%_includedir/apt-pkg -%__install -p -m755 %SOURCE2 %buildroot%_bindir/ -%__install -p -m644 %SOURCE1 %buildroot%_sysconfdir/%name/ +install -p -m755 %SOURCE2 %buildroot%_bindir/ +install -p -m644 %SOURCE1 %buildroot%_sysconfdir/%name/ # This is still needed. -%__ln_s -f rsh %buildroot%_libdir/%name/methods/ssh -%__ln_s -f gzip %buildroot%_libdir/%name/methods/bzip2 +ln -sf rsh %buildroot%_libdir/%name/methods/ssh +ln -sf gzip %buildroot%_libdir/%name/methods/bzip2 # Cleanup -find %buildroot%_includedir -type f -name rpmshowprogress.h -print -delete -%__rm -f %buildroot%_libdir/*.la +find %buildroot%_includedir -type f -name rpmshowprogress.h -delete -print +rm -f %buildroot%_libdir/*.la -%__bzip2 -9fk ChangeLog-rpm.old +bzip2 -9fk ChangeLog-rpm.old %find_lang %name @@ -364,6 +373,15 @@ fi # Probably %%doc with README.rsync? %changelog +* Sat Apr 01 2006 Dmitry V. Levin 0.5.15lorg2-alt3 +- Resolved a few issues introduced after cnc6. + +* Wed Mar 29 2006 Anton Farygin 0.5.15lorg2-alt2 +- apt-shell: use string for MatchSection. + +* Tue Mar 21 2006 Anton Farygin 0.5.15lorg2-alt1 +- Updated to 0.5.15lorg2. + * Tue Feb 21 2006 Dmitry V. Levin 0.5.15cnc6-alt18 - apt-get: Fixed APT::Get::PrintLocalFile for local files (#8902). diff --git a/apt/Makefile.in b/apt/Makefile.in index aa83d12..5748996 100644 --- a/apt/Makefile.in +++ b/apt/Makefile.in @@ -1,8 +1,8 @@ -# Makefile.in generated by automake 1.7.9 from Makefile.am. +# Makefile.in generated by automake 1.9.5 from Makefile.am. # @configure_input@ -# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 -# Free Software Foundation, Inc. +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -13,7 +13,6 @@ # PARTICULAR PURPOSE. @SET_MAKE@ - srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ @@ -21,7 +20,6 @@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = . - am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 @@ -35,12 +33,59 @@ POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : +build_triplet = @build@ host_triplet = @host@ +subdir = . +DIST_COMMON = $(am__configure_deps) $(srcdir)/Makefile.am \ + $(srcdir)/Makefile.in $(top_srcdir)/buildlib/config.h.in \ + $(top_srcdir)/configure $(top_srcdir)/intl/Makefile.in \ + ABOUT-NLS AUTHORS COPYING TODO +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/buildlib/tools.m4 \ + $(top_srcdir)/m4/codeset.m4 $(top_srcdir)/m4/gettext.m4 \ + $(top_srcdir)/m4/glibc21.m4 $(top_srcdir)/m4/iconv.m4 \ + $(top_srcdir)/m4/intdiv0.m4 $(top_srcdir)/m4/inttypes-pri.m4 \ + $(top_srcdir)/m4/inttypes.m4 $(top_srcdir)/m4/inttypes_h.m4 \ + $(top_srcdir)/m4/lcmessage.m4 $(top_srcdir)/m4/lib-ld.m4 \ + $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ + $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/stdint_h.m4 \ + $(top_srcdir)/m4/uintmax_t.m4 $(top_srcdir)/m4/ulonglong.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ + configure.lineno configure.status.lineno +mkinstalldirs = $(SHELL) $(top_srcdir)/buildlib/mkinstalldirs +CONFIG_HEADER = $(top_builddir)/include/config.h +CONFIG_CLEAN_FILES = intl/Makefile +SOURCES = +DIST_SOURCES = +RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ + html-recursive info-recursive install-data-recursive \ + install-exec-recursive install-info-recursive \ + install-recursive installcheck-recursive installdirs-recursive \ + pdf-recursive ps-recursive uninstall-info-recursive \ + uninstall-recursive +ETAGS = etags +CTAGS = ctags +DIST_SUBDIRS = $(SUBDIRS) +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +distdir = $(PACKAGE)-$(VERSION) +top_distdir = $(distdir) +am__remove_distdir = \ + { test ! -d $(distdir) \ + || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ + && rm -fr $(distdir); }; } +DIST_ARCHIVES = $(distdir).tar.gz $(distdir).tar.bz2 +GZIP_ENV = --best +distuninstallcheck_listfiles = find . -type f -print +distcleancheck_listfiles = find . -type f -print ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ +AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ @@ -59,6 +104,7 @@ COMPILE_STATIC_TRUE = @COMPILE_STATIC_TRUE@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ +CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ @@ -72,6 +118,8 @@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ +F77 = @F77@ +FFLAGS = @FFLAGS@ GENCAT = @GENCAT@ GLIBC21 = @GLIBC21@ GLIBC_VER = @GLIBC_VER@ @@ -134,8 +182,10 @@ VERSION = @VERSION@ WITH_LUA_FALSE = @WITH_LUA_FALSE@ WITH_LUA_TRUE = @WITH_LUA_TRUE@ XGETTEXT = @XGETTEXT@ +ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ ac_ct_RANLIB = @ac_ct_RANLIB@ ac_ct_STRIP = @ac_ct_STRIP@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ @@ -145,6 +195,8 @@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ @@ -165,6 +217,7 @@ libdir = @libdir@ libexecdir = @libexecdir@ localstatedir = @localstatedir@ mandir = @mandir@ +mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ prefix = @prefix@ program_transform_name = @program_transform_name@ @@ -172,11 +225,8 @@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ - SUBDIRS = buildlib intl lua apt-pkg methods cmdline tools doc m4 po - ACLOCAL_AMFLAGS = -I m4 -I buildlib - EXTRA_DIST = \ AUTHORS.RPM \ COPYING.GPL \ @@ -213,40 +263,41 @@ EXTRA_DIST = \ contrib/proxypasswd/README \ contrib/proxypasswd/proxypasswd.lua -subdir = . -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -mkinstalldirs = $(SHELL) $(top_srcdir)/buildlib/mkinstalldirs -CONFIG_HEADER = $(top_builddir)/include/config.h -CONFIG_CLEAN_FILES = intl/Makefile -DIST_SOURCES = - -RECURSIVE_TARGETS = info-recursive dvi-recursive pdf-recursive \ - ps-recursive install-info-recursive uninstall-info-recursive \ - all-recursive install-data-recursive install-exec-recursive \ - installdirs-recursive install-recursive uninstall-recursive \ - check-recursive installcheck-recursive -DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/configure \ - ./buildlib/config.h.in ABOUT-NLS AUTHORS COPYING Makefile.am \ - TODO aclocal.m4 configure configure.in -DIST_SUBDIRS = $(SUBDIRS) all: all-recursive .SUFFIXES: - -am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ - configure.lineno -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) +am--refresh: + @: +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \ + cd $(srcdir) && $(AUTOMAKE) --foreign \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign Makefile -Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in $(top_builddir)/config.status - cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe) +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + echo ' $(SHELL) ./config.status'; \ + $(SHELL) ./config.status;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ + esac; -$(top_builddir)/config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck -$(srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES) - cd $(srcdir) && $(AUTOCONF) -$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ configure.in m4/codeset.m4 m4/gettext.m4 m4/glibc21.m4 m4/iconv.m4 m4/intdiv0.m4 m4/inttypes-pri.m4 m4/inttypes.m4 m4/inttypes_h.m4 m4/isc-posix.m4 m4/lcmessage.m4 m4/lib-ld.m4 m4/lib-link.m4 m4/lib-prefix.m4 m4/progtest.m4 m4/stdint_h.m4 m4/uintmax_t.m4 m4/ulonglong.m4 buildlib/tools.m4 +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(srcdir) && $(AUTOCONF) +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) include/config.h: include/stamp-h1 @@ -255,13 +306,13 @@ include/config.h: include/stamp-h1 $(MAKE) include/stamp-h1; \ else :; fi -include/stamp-h1: $(srcdir)/./buildlib/config.h.in $(top_builddir)/config.status +include/stamp-h1: $(top_srcdir)/buildlib/config.h.in $(top_builddir)/config.status @rm -f include/stamp-h1 cd $(top_builddir) && $(SHELL) ./config.status include/config.h - -$(srcdir)/./buildlib/config.h.in: @MAINTAINER_MODE_TRUE@ $(top_srcdir)/configure.in $(ACLOCAL_M4) +$(top_srcdir)/buildlib/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) cd $(top_srcdir) && $(AUTOHEADER) - touch $(srcdir)/./buildlib/config.h.in + rm -f include/stamp-h1 + touch $@ distclean-hdr: -rm -f include/config.h include/stamp-h1 @@ -285,7 +336,13 @@ uninstall-info-am: # (which will cause the Makefiles to be regenerated when you run `make'); # (2) otherwise, pass the desired values on the `make' command line. $(RECURSIVE_TARGETS): - @set fnord $$MAKEFLAGS; amf=$$2; \ + @failcom='exit 1'; \ + for f in x $$MAKEFLAGS; do \ + case $$f in \ + *=* | --[!k]*);; \ + *k*) failcom='fail=yes';; \ + esac; \ + done; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ list='$(SUBDIRS)'; for subdir in $$list; do \ @@ -297,7 +354,7 @@ $(RECURSIVE_TARGETS): local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ - || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ + || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ @@ -305,7 +362,13 @@ $(RECURSIVE_TARGETS): mostlyclean-recursive clean-recursive distclean-recursive \ maintainer-clean-recursive: - @set fnord $$MAKEFLAGS; amf=$$2; \ + @failcom='exit 1'; \ + for f in x $$MAKEFLAGS; do \ + case $$f in \ + *=* | --[!k]*);; \ + *k*) failcom='fail=yes';; \ + esac; \ + done; \ dot_seen=no; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ @@ -326,7 +389,7 @@ maintainer-clean-recursive: local_target="$$target"; \ fi; \ (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ - || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ + || eval $$failcom; \ done && test -z "$$fail" tags-recursive: list='$(SUBDIRS)'; for subdir in $$list; do \ @@ -337,14 +400,6 @@ ctags-recursive: test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ done -ETAGS = etags -ETAGSFLAGS = - -CTAGS = ctags -CTAGSFLAGS = - -tags: TAGS - ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ @@ -353,19 +408,22 @@ ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique +tags: TAGS TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) tags=; \ here=`pwd`; \ - if (etags --etags-include --version) >/dev/null 2>&1; then \ + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ + empty_fix=.; \ else \ include_option=--include; \ + empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ - test -f $$subdir/TAGS && \ + test ! -f $$subdir/TAGS || \ tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ @@ -375,10 +433,11 @@ TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ - test -z "$(ETAGS_ARGS)$$tags$$unique" \ - || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$tags $$unique - + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi ctags: CTAGS CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) @@ -401,24 +460,11 @@ GTAGS: distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) - -top_distdir = . -distdir = $(PACKAGE)-$(VERSION) - -am__remove_distdir = \ - { test ! -d $(distdir) \ - || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ - && rm -fr $(distdir); }; } - -GZIP_ENV = --best -distuninstallcheck_listfiles = find . -type f -print -distcleancheck_listfiles = find . -type f -print distdir: $(DISTFILES) $(am__remove_distdir) mkdir $(distdir) - $(mkinstalldirs) $(distdir)/./buildlib $(distdir)/contrib/apt-files $(distdir)/contrib/apt-groupinstall $(distdir)/contrib/apt-rpm $(distdir)/contrib/install-devel $(distdir)/contrib/proxypasswd $(distdir)/intl $(distdir)/po $(distdir)/python $(distdir)/test + $(mkdir_p) $(distdir)/buildlib $(distdir)/contrib/apt-files $(distdir)/contrib/apt-groupinstall $(distdir)/contrib/apt-rpm $(distdir)/contrib/install-devel $(distdir)/contrib/proxypasswd $(distdir)/intl $(distdir)/m4 $(distdir)/po $(distdir)/python $(distdir)/test @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ @@ -430,7 +476,7 @@ distdir: $(DISTFILES) dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ - $(mkinstalldirs) "$(distdir)$$dir"; \ + $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ @@ -445,15 +491,17 @@ distdir: $(DISTFILES) || exit 1; \ fi; \ done - list='$(SUBDIRS)'; for subdir in $$list; do \ + list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ - test -d $(distdir)/$$subdir \ - || mkdir $(distdir)/$$subdir \ + test -d "$(distdir)/$$subdir" \ + || $(mkdir_p) "$(distdir)/$$subdir" \ || exit 1; \ + distdir=`$(am__cd) $(distdir) && pwd`; \ + top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ (cd $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ - top_distdir="$(top_distdir)" \ - distdir=../$(distdir)/$$subdir \ + top_distdir="$$top_distdir" \ + distdir="$$distdir/$$subdir" \ distdir) \ || exit 1; \ fi; \ @@ -464,24 +512,46 @@ distdir: $(DISTFILES) ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \ || chmod -R a+r $(distdir) dist-gzip: distdir - $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz + $(am__remove_distdir) +dist-bzip2: distdir + tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 $(am__remove_distdir) -dist-bzip2: distdir - $(AMTAR) chof - $(distdir) | bzip2 -9 -c >$(distdir).tar.bz2 +dist-tarZ: distdir + tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z + $(am__remove_distdir) + +dist-shar: distdir + shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz + $(am__remove_distdir) + +dist-zip: distdir + -rm -f $(distdir).zip + zip -rq $(distdir).zip $(distdir) $(am__remove_distdir) dist dist-all: distdir - $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz - $(AMTAR) chof - $(distdir) | bzip2 -9 -c >$(distdir).tar.bz2 + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz + tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 $(am__remove_distdir) # This target untars the dist file and tries a VPATH configuration. Then # it guarantees that the distribution is self-contained by making another # tarfile. distcheck: dist - $(am__remove_distdir) - GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(AMTAR) xf - + case '$(DIST_ARCHIVES)' in \ + *.tar.gz*) \ + GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\ + *.tar.bz2*) \ + bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\ + *.tar.Z*) \ + uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ + *.shar.gz*) \ + GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\ + *.zip*) \ + unzip $(distdir).zip ;;\ + esac chmod -R a-w $(distdir); chmod a+w $(distdir) mkdir $(distdir)/_build mkdir $(distdir)/_inst @@ -502,19 +572,20 @@ distcheck: dist distuninstallcheck \ && chmod -R a-w "$$dc_install_base" \ && ({ \ - (cd ../.. && $(mkinstalldirs) "$$dc_destdir") \ + (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ } || { rm -rf "$$dc_destdir"; exit 1; }) \ && rm -rf "$$dc_destdir" \ - && $(MAKE) $(AM_MAKEFLAGS) dist-gzip \ - && rm -f $(distdir).tar.gz \ + && $(MAKE) $(AM_MAKEFLAGS) dist \ + && rm -rf $(DIST_ARCHIVES) \ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck $(am__remove_distdir) - @echo "$(distdir).tar.gz is ready for distribution" | \ - sed 'h;s/./=/g;p;x;p;x' + @(echo "$(distdir) archives ready for distribution: "; \ + list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ + sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}' distuninstallcheck: @cd $(distuninstallcheck_dir) \ && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ @@ -538,7 +609,6 @@ check: check-recursive all-am: Makefile installdirs: installdirs-recursive installdirs-am: - install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive @@ -558,7 +628,7 @@ mostlyclean-generic: clean-generic: distclean-generic: - -rm -f $(CONFIG_CLEAN_FILES) + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @@ -570,13 +640,15 @@ clean-am: clean-generic clean-libtool mostlyclean-am distclean: distclean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -f Makefile -distclean-am: clean-am distclean-generic distclean-hdr distclean-libtool \ - distclean-tags +distclean-am: clean-am distclean-generic distclean-hdr \ + distclean-libtool distclean-tags dvi: dvi-recursive dvi-am: +html: html-recursive + info: info-recursive info-am: @@ -613,23 +685,20 @@ uninstall-am: uninstall-info-am uninstall-info: uninstall-info-recursive -.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am clean \ - clean-generic clean-libtool clean-recursive ctags \ - ctags-recursive dist dist-all dist-bzip2 dist-gzip distcheck \ - distclean distclean-generic distclean-hdr distclean-libtool \ +.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \ + check-am clean clean-generic clean-libtool clean-recursive \ + ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \ + dist-shar dist-tarZ dist-zip distcheck distclean \ + distclean-generic distclean-hdr distclean-libtool \ distclean-recursive distclean-tags distcleancheck distdir \ - distuninstallcheck dvi dvi-am dvi-recursive info info-am \ - info-recursive install install-am install-data install-data-am \ - install-data-recursive install-exec install-exec-am \ - install-exec-recursive install-info install-info-am \ - install-info-recursive install-man install-recursive \ + distuninstallcheck dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-exec \ + install-exec-am install-info install-info-am install-man \ install-strip installcheck installcheck-am installdirs \ - installdirs-am installdirs-recursive maintainer-clean \ - maintainer-clean-generic maintainer-clean-recursive mostlyclean \ - mostlyclean-generic mostlyclean-libtool mostlyclean-recursive \ - pdf pdf-am pdf-recursive ps ps-am ps-recursive tags \ - tags-recursive uninstall uninstall-am uninstall-info-am \ - uninstall-info-recursive uninstall-recursive + installdirs-am maintainer-clean maintainer-clean-generic \ + maintainer-clean-recursive mostlyclean mostlyclean-generic \ + mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \ + tags tags-recursive uninstall uninstall-am uninstall-info-am contrib/guess/README \ contrib/guess/guess.lua \ diff --git a/apt/aclocal.m4 b/apt/aclocal.m4 index fb04597..dc1b8f0 100644 --- a/apt/aclocal.m4 +++ b/apt/aclocal.m4 @@ -1,7 +1,7 @@ -# generated automatically by aclocal 1.7.9 -*- Autoconf -*- +# generated automatically by aclocal 1.9.5 -*- Autoconf -*- -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002 -# Free Software Foundation, Inc. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, +# 2005 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -11,873 +11,63 @@ # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. -# Do all the work for Automake. -*- Autoconf -*- +# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- -# This macro actually does too much some checks are only needed if -# your package does certain things. But this isn't really a big deal. - -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 -# Free Software Foundation, Inc. - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. - -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA -# 02111-1307, USA. - -# serial 10 - -AC_PREREQ([2.54]) - -# Autoconf 2.50 wants to disallow AM_ names. We explicitly allow -# the ones we care about. -m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl - -# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) -# AM_INIT_AUTOMAKE([OPTIONS]) -# ----------------------------------------------- -# The call with PACKAGE and VERSION arguments is the old style -# call (pre autoconf-2.50), which is being phased out. PACKAGE -# and VERSION should now be passed to AC_INIT and removed from -# the call to AM_INIT_AUTOMAKE. -# We support both call styles for the transition. After -# the next Automake release, Autoconf can make the AC_INIT -# arguments mandatory, and then we can depend on a new Autoconf -# release and drop the old call support. -AC_DEFUN([AM_INIT_AUTOMAKE], -[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl - AC_REQUIRE([AC_PROG_INSTALL])dnl -# test to see if srcdir already configured -if test "`cd $srcdir && pwd`" != "`pwd`" && - test -f $srcdir/config.status; then - AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) -fi - -# test whether we have cygpath -if test -z "$CYGPATH_W"; then - if (cygpath --version) >/dev/null 2>/dev/null; then - CYGPATH_W='cygpath -w' - else - CYGPATH_W=echo - fi -fi -AC_SUBST([CYGPATH_W]) - -# Define the identity of the package. -dnl Distinguish between old-style and new-style calls. -m4_ifval([$2], -[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl - AC_SUBST([PACKAGE], [$1])dnl - AC_SUBST([VERSION], [$2])], -[_AM_SET_OPTIONS([$1])dnl - AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl - AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl - -_AM_IF_OPTION([no-define],, -[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) - AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl - -# Some tools Automake needs. -AC_REQUIRE([AM_SANITY_CHECK])dnl -AC_REQUIRE([AC_ARG_PROGRAM])dnl -AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) -AM_MISSING_PROG(AUTOCONF, autoconf) -AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) -AM_MISSING_PROG(AUTOHEADER, autoheader) -AM_MISSING_PROG(MAKEINFO, makeinfo) -AM_MISSING_PROG(AMTAR, tar) -AM_PROG_INSTALL_SH -AM_PROG_INSTALL_STRIP -# We need awk for the "check" target. The system "awk" is bad on -# some platforms. -AC_REQUIRE([AC_PROG_AWK])dnl -AC_REQUIRE([AC_PROG_MAKE_SET])dnl -AC_REQUIRE([AM_SET_LEADING_DOT])dnl - -_AM_IF_OPTION([no-dependencies],, -[AC_PROVIDE_IFELSE([AC_PROG_CC], - [_AM_DEPENDENCIES(CC)], - [define([AC_PROG_CC], - defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl -AC_PROVIDE_IFELSE([AC_PROG_CXX], - [_AM_DEPENDENCIES(CXX)], - [define([AC_PROG_CXX], - defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl -]) -]) +# serial 47 AC_PROG_LIBTOOL -# When config.status generates a header, we must update the stamp-h file. -# This file resides in the same directory as the config header -# that is generated. The stamp files are numbered to have different names. +# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) +# ----------------------------------------------------------- +# If this macro is not defined by Autoconf, define it here. +m4_ifdef([AC_PROVIDE_IFELSE], + [], + [m4_define([AC_PROVIDE_IFELSE], + [m4_ifdef([AC_PROVIDE_$1], + [$2], [$3])])]) -# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the -# loop where config.status creates the headers, so we can generate -# our stamp files there. -AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], -[# Compute $1's index in $config_headers. -_am_stamp_count=1 -for _am_header in $config_headers :; do - case $_am_header in - $1 | $1:* ) - break ;; - * ) - _am_stamp_count=`expr $_am_stamp_count + 1` ;; - esac -done -echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) -# Copyright 2002 Free Software Foundation, Inc. - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. - -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - -# AM_AUTOMAKE_VERSION(VERSION) -# ---------------------------- -# Automake X.Y traces this macro to ensure aclocal.m4 has been -# generated from the m4 files accompanying Automake X.Y. -AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.7"]) - -# AM_SET_CURRENT_AUTOMAKE_VERSION -# ------------------------------- -# Call AM_AUTOMAKE_VERSION so it can be traced. -# This function is AC_REQUIREd by AC_INIT_AUTOMAKE. -AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], - [AM_AUTOMAKE_VERSION([1.7.9])]) - -# Helper functions for option handling. -*- Autoconf -*- - -# Copyright 2001, 2002 Free Software Foundation, Inc. - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. - -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA -# 02111-1307, USA. - -# serial 2 - -# _AM_MANGLE_OPTION(NAME) -# ----------------------- -AC_DEFUN([_AM_MANGLE_OPTION], -[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) - -# _AM_SET_OPTION(NAME) -# ------------------------------ -# Set option NAME. Presently that only means defining a flag for this option. -AC_DEFUN([_AM_SET_OPTION], -[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) - -# _AM_SET_OPTIONS(OPTIONS) -# ---------------------------------- -# OPTIONS is a space-separated list of Automake options. -AC_DEFUN([_AM_SET_OPTIONS], -[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) - -# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) -# ------------------------------------------- -# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. -AC_DEFUN([_AM_IF_OPTION], -[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) - -# -# Check to make sure that the build environment is sane. -# - -# Copyright 1996, 1997, 2000, 2001 Free Software Foundation, Inc. - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. - -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA -# 02111-1307, USA. - -# serial 3 - -# AM_SANITY_CHECK +# AC_PROG_LIBTOOL # --------------- -AC_DEFUN([AM_SANITY_CHECK], -[AC_MSG_CHECKING([whether build environment is sane]) -# Just in case -sleep 1 -echo timestamp > conftest.file -# Do `set' in a subshell so we don't clobber the current shell's -# arguments. Must try -L first in case configure is actually a -# symlink; some systems play weird games with the mod time of symlinks -# (eg FreeBSD returns the mod time of the symlink's containing -# directory). -if ( - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` - if test "$[*]" = "X"; then - # -L didn't work. - set X `ls -t $srcdir/configure conftest.file` - fi - rm -f conftest.file - if test "$[*]" != "X $srcdir/configure conftest.file" \ - && test "$[*]" != "X conftest.file $srcdir/configure"; then - - # If neither matched, then we have a broken ls. This can happen - # if, for instance, CONFIG_SHELL is bash and it inherits a - # broken ls alias from the environment. This has actually - # happened. Such a system could not be considered "sane". - AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken -alias in your environment]) - fi - - test "$[2]" = conftest.file - ) -then - # Ok. - : -else - AC_MSG_ERROR([newly created file is older than distributed files! -Check your system clock]) -fi -AC_MSG_RESULT(yes)]) - -# -*- Autoconf -*- - - -# Copyright 1997, 1999, 2000, 2001 Free Software Foundation, Inc. - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. - -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA -# 02111-1307, USA. - -# serial 3 - -# AM_MISSING_PROG(NAME, PROGRAM) -# ------------------------------ -AC_DEFUN([AM_MISSING_PROG], -[AC_REQUIRE([AM_MISSING_HAS_RUN]) -$1=${$1-"${am_missing_run}$2"} -AC_SUBST($1)]) - - -# AM_MISSING_HAS_RUN -# ------------------ -# Define MISSING if not defined so far and test if it supports --run. -# If it does, set am_missing_run to use it, otherwise, to nothing. -AC_DEFUN([AM_MISSING_HAS_RUN], -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" -# Use eval to expand $SHELL -if eval "$MISSING --run true"; then - am_missing_run="$MISSING --run " -else - am_missing_run= - AC_MSG_WARN([`missing' script is too old or missing]) -fi -]) - -# AM_AUX_DIR_EXPAND - -# Copyright 2001 Free Software Foundation, Inc. - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. - -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA -# 02111-1307, USA. - -# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets -# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to -# `$srcdir', `$srcdir/..', or `$srcdir/../..'. -# -# Of course, Automake must honor this variable whenever it calls a -# tool from the auxiliary directory. The problem is that $srcdir (and -# therefore $ac_aux_dir as well) can be either absolute or relative, -# depending on how configure is run. This is pretty annoying, since -# it makes $ac_aux_dir quite unusable in subdirectories: in the top -# source directory, any form will work fine, but in subdirectories a -# relative path needs to be adjusted first. -# -# $ac_aux_dir/missing -# fails when called from a subdirectory if $ac_aux_dir is relative -# $top_srcdir/$ac_aux_dir/missing -# fails if $ac_aux_dir is absolute, -# fails when called from a subdirectory in a VPATH build with -# a relative $ac_aux_dir -# -# The reason of the latter failure is that $top_srcdir and $ac_aux_dir -# are both prefixed by $srcdir. In an in-source build this is usually -# harmless because $srcdir is `.', but things will broke when you -# start a VPATH build or use an absolute $srcdir. -# -# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, -# iff we strip the leading $srcdir from $ac_aux_dir. That would be: -# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` -# and then we would define $MISSING as -# MISSING="\${SHELL} $am_aux_dir/missing" -# This will work as long as MISSING is not called from configure, because -# unfortunately $(top_srcdir) has no meaning in configure. -# However there are other variables, like CC, which are often used in -# configure, and could therefore not use this "fixed" $ac_aux_dir. -# -# Another solution, used here, is to always expand $ac_aux_dir to an -# absolute PATH. The drawback is that using absolute paths prevent a -# configured tree to be moved without reconfiguration. - -# Rely on autoconf to set up CDPATH properly. -AC_PREREQ([2.50]) - -AC_DEFUN([AM_AUX_DIR_EXPAND], [ -# expand $ac_aux_dir to an absolute path -am_aux_dir=`cd $ac_aux_dir && pwd` -]) - -# AM_PROG_INSTALL_SH -# ------------------ -# Define $install_sh. - -# Copyright 2001 Free Software Foundation, Inc. - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. - -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA -# 02111-1307, USA. - -AC_DEFUN([AM_PROG_INSTALL_SH], -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl -install_sh=${install_sh-"$am_aux_dir/install-sh"} -AC_SUBST(install_sh)]) - -# AM_PROG_INSTALL_STRIP - -# Copyright 2001 Free Software Foundation, Inc. - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. - -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA -# 02111-1307, USA. - -# One issue with vendor `install' (even GNU) is that you can't -# specify the program used to strip binaries. This is especially -# annoying in cross-compiling environments, where the build's strip -# is unlikely to handle the host's binaries. -# Fortunately install-sh will honor a STRIPPROG variable, so we -# always use install-sh in `make install-strip', and initialize -# STRIPPROG with the value of the STRIP variable (set by the user). -AC_DEFUN([AM_PROG_INSTALL_STRIP], -[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl -# Installed binaries are usually stripped using `strip' when the user -# run `make install-strip'. However `strip' might not be the right -# tool to use in cross-compilation environments, therefore Automake -# will honor the `STRIP' environment variable to overrule this program. -dnl Don't test for $cross_compiling = yes, because it might be `maybe'. -if test "$cross_compiling" != no; then - AC_CHECK_TOOL([STRIP], [strip], :) -fi -INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" -AC_SUBST([INSTALL_STRIP_PROGRAM])]) - -# -*- Autoconf -*- -# Copyright (C) 2003 Free Software Foundation, Inc. - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. - -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA -# 02111-1307, USA. - -# serial 1 - -# Check whether the underlying file-system supports filenames -# with a leading dot. For instance MS-DOS doesn't. -AC_DEFUN([AM_SET_LEADING_DOT], -[rm -rf .tst 2>/dev/null -mkdir .tst 2>/dev/null -if test -d .tst; then - am__leading_dot=. -else - am__leading_dot=_ -fi -rmdir .tst 2>/dev/null -AC_SUBST([am__leading_dot])]) - -# serial 5 -*- Autoconf -*- - -# Copyright (C) 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. - -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA -# 02111-1307, USA. - - -# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be -# written in clear, in which case automake, when reading aclocal.m4, -# will think it sees a *use*, and therefore will trigger all it's -# C support machinery. Also note that it means that autoscan, seeing -# CC etc. in the Makefile, will ask for an AC_PROG_CC use... - - - -# _AM_DEPENDENCIES(NAME) -# ---------------------- -# See how the compiler implements dependency checking. -# NAME is "CC", "CXX", "GCJ", or "OBJC". -# We try a few techniques and use that to set a single cache variable. -# -# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was -# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular -# dependency, and given that the user is not expected to run this macro, -# just rely on AC_PROG_CC. -AC_DEFUN([_AM_DEPENDENCIES], -[AC_REQUIRE([AM_SET_DEPDIR])dnl -AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl -AC_REQUIRE([AM_MAKE_INCLUDE])dnl -AC_REQUIRE([AM_DEP_TRACK])dnl - -ifelse([$1], CC, [depcc="$CC" am_compiler_list=], - [$1], CXX, [depcc="$CXX" am_compiler_list=], - [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], - [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], - [depcc="$$1" am_compiler_list=]) - -AC_CACHE_CHECK([dependency style of $depcc], - [am_cv_$1_dependencies_compiler_type], -[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then - # We make a subdir and do the tests there. Otherwise we can end up - # making bogus files that we don't know about and never remove. For - # instance it was reported that on HP-UX the gcc test will end up - # making a dummy file named `D' -- because `-MD' means `put the output - # in D'. - mkdir conftest.dir - # Copy depcomp to subdir because otherwise we won't find it if we're - # using a relative directory. - cp "$am_depcomp" conftest.dir - cd conftest.dir - # We will build objects and dependencies in a subdirectory because - # it helps to detect inapplicable dependency modes. For instance - # both Tru64's cc and ICC support -MD to output dependencies as a - # side effect of compilation, but ICC will put the dependencies in - # the current directory while Tru64 will put them in the object - # directory. - mkdir sub - - am_cv_$1_dependencies_compiler_type=none - if test "$am_compiler_list" = ""; then - am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` - fi - for depmode in $am_compiler_list; do - # Setup a source with many dependencies, because some compilers - # like to wrap large dependency lists on column 80 (with \), and - # we should not choose a depcomp mode which is confused by this. - # - # We need to recreate these files for each test, as the compiler may - # overwrite some of them when testing with obscure command lines. - # This happens at least with the AIX C compiler. - : > sub/conftest.c - for i in 1 2 3 4 5 6; do - echo '#include "conftst'$i'.h"' >> sub/conftest.c - : > sub/conftst$i.h - done - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf - - case $depmode in - nosideeffect) - # after this tag, mechanisms are not by side-effect, so they'll - # only be used when explicitly requested - if test "x$enable_dependency_tracking" = xyes; then - continue - else - break - fi - ;; - none) break ;; - esac - # We check with `-c' and `-o' for the sake of the "dashmstdout" - # mode. It turns out that the SunPro C++ compiler does not properly - # handle `-M -o', and we need to detect this. - if depmode=$depmode \ - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ - >/dev/null 2>conftest.err && - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then - # icc doesn't choke on unknown options, it will just issue warnings - # (even with -Werror). So we grep stderr for any message - # that says an option was ignored. - if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else - am_cv_$1_dependencies_compiler_type=$depmode - break - fi - fi - done - - cd .. - rm -rf conftest.dir -else - am_cv_$1_dependencies_compiler_type=none -fi -]) -AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) -AM_CONDITIONAL([am__fastdep$1], [ - test "x$enable_dependency_tracking" != xno \ - && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) -]) - - -# AM_SET_DEPDIR -# ------------- -# Choose a directory name for dependency files. -# This macro is AC_REQUIREd in _AM_DEPENDENCIES -AC_DEFUN([AM_SET_DEPDIR], -[AC_REQUIRE([AM_SET_LEADING_DOT])dnl -AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl -]) - - -# AM_DEP_TRACK -# ------------ -AC_DEFUN([AM_DEP_TRACK], -[AC_ARG_ENABLE(dependency-tracking, -[ --disable-dependency-tracking Speeds up one-time builds - --enable-dependency-tracking Do not reject slow dependency extractors]) -if test "x$enable_dependency_tracking" != xno; then - am_depcomp="$ac_aux_dir/depcomp" - AMDEPBACKSLASH='\' -fi -AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) -AC_SUBST([AMDEPBACKSLASH]) -]) - -# Generate code to set up dependency tracking. -*- Autoconf -*- - -# Copyright 1999, 2000, 2001, 2002 Free Software Foundation, Inc. - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. - -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA -# 02111-1307, USA. - -#serial 2 - -# _AM_OUTPUT_DEPENDENCY_COMMANDS -# ------------------------------ -AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], -[for mf in $CONFIG_FILES; do - # Strip MF so we end up with the name of the file. - mf=`echo "$mf" | sed -e 's/:.*$//'` - # Check whether this is an Automake generated Makefile or not. - # We used to match only the files named `Makefile.in', but - # some people rename them; so instead we look at the file content. - # Grep'ing the first line is not enough: some people post-process - # each Makefile.in and add a new line on top of each file to say so. - # So let's grep whole file. - if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then - dirpart=`AS_DIRNAME("$mf")` - else - continue - fi - grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue - # Extract the definition of DEP_FILES from the Makefile without - # running `make'. - DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` - test -z "$DEPDIR" && continue - # When using ansi2knr, U may be empty or an underscore; expand it - U=`sed -n -e '/^U = / s///p' < "$mf"` - test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" - # We invoke sed twice because it is the simplest approach to - # changing $(DEPDIR) to its actual value in the expansion. - for file in `sed -n -e ' - /^DEP_FILES = .*\\\\$/ { - s/^DEP_FILES = // - :loop - s/\\\\$// - p - n - /\\\\$/ b loop - p - } - /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do - # Make sure the directory exists. - test -f "$dirpart/$file" && continue - fdir=`AS_DIRNAME(["$file"])` - AS_MKDIR_P([$dirpart/$fdir]) - # echo "creating $dirpart/$file" - echo '# dummy' > "$dirpart/$file" - done -done -])# _AM_OUTPUT_DEPENDENCY_COMMANDS - - -# AM_OUTPUT_DEPENDENCY_COMMANDS -# ----------------------------- -# This macro should only be invoked once -- use via AC_REQUIRE. -# -# This code is only required when automatic dependency tracking -# is enabled. FIXME. This creates each `.P' file that we will -# need in order to bootstrap the dependency handling code. -AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], -[AC_CONFIG_COMMANDS([depfiles], - [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], - [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) -]) - -# Check to see how 'make' treats includes. -*- Autoconf -*- - -# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc. - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. - -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA -# 02111-1307, USA. - -# serial 2 - -# AM_MAKE_INCLUDE() -# ----------------- -# Check to see how make treats includes. -AC_DEFUN([AM_MAKE_INCLUDE], -[am_make=${MAKE-make} -cat > confinc << 'END' -am__doit: - @echo done -.PHONY: am__doit -END -# If we don't find an include directive, just comment out the code. -AC_MSG_CHECKING([for style of include used by $am_make]) -am__include="#" -am__quote= -_am_result=none -# First try GNU make style include. -echo "include confinc" > confmf -# We grep out `Entering directory' and `Leaving directory' -# messages which can occur if `w' ends up in MAKEFLAGS. -# In particular we don't look at `^make:' because GNU make might -# be invoked under some other name (usually "gmake"), in which -# case it prints its new name instead of `make'. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then - am__include=include - am__quote= - _am_result=GNU -fi -# Now try BSD make style include. -if test "$am__include" = "#"; then - echo '.include "confinc"' > confmf - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then - am__include=.include - am__quote="\"" - _am_result=BSD - fi -fi -AC_SUBST([am__include]) -AC_SUBST([am__quote]) -AC_MSG_RESULT([$_am_result]) -rm -f confinc confmf -]) - -# AM_CONDITIONAL -*- Autoconf -*- - -# Copyright 1997, 2000, 2001 Free Software Foundation, Inc. - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. - -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA -# 02111-1307, USA. - -# serial 5 - -AC_PREREQ(2.52) - -# AM_CONDITIONAL(NAME, SHELL-CONDITION) -# ------------------------------------- -# Define a conditional. -AC_DEFUN([AM_CONDITIONAL], -[ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], - [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl -AC_SUBST([$1_TRUE]) -AC_SUBST([$1_FALSE]) -if $2; then - $1_TRUE= - $1_FALSE='#' -else - $1_TRUE='#' - $1_FALSE= -fi -AC_CONFIG_COMMANDS_PRE( -[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then - AC_MSG_ERROR([conditional "$1" was never defined. -Usually this means the macro was only invoked conditionally.]) -fi])]) - -# Add --enable-maintainer-mode option to configure. -# From Jim Meyering - -# Copyright 1996, 1998, 2000, 2001, 2002 Free Software Foundation, Inc. - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. - -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA -# 02111-1307, USA. - -# serial 2 - -AC_DEFUN([AM_MAINTAINER_MODE], -[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) - dnl maintainer-mode is disabled by default - AC_ARG_ENABLE(maintainer-mode, -[ --enable-maintainer-mode enable make rules and dependencies not useful - (and sometimes confusing) to the casual installer], - USE_MAINTAINER_MODE=$enableval, - USE_MAINTAINER_MODE=no) - AC_MSG_RESULT([$USE_MAINTAINER_MODE]) - AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes]) - MAINT=$MAINTAINER_MODE_TRUE - AC_SUBST(MAINT)dnl -] -) - -AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) - -# libtool.m4 - Configure libtool for the host system. -*-Shell-script-*- - -# serial 46 AC_PROG_LIBTOOL - AC_DEFUN([AC_PROG_LIBTOOL], +[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl +dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX +dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX. + AC_PROVIDE_IFELSE([AC_PROG_CXX], + [AC_LIBTOOL_CXX], + [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX + ])]) +dnl And a similar setup for Fortran 77 support + AC_PROVIDE_IFELSE([AC_PROG_F77], + [AC_LIBTOOL_F77], + [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77 +])]) + +dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly. +dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run +dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both. + AC_PROVIDE_IFELSE([AC_PROG_GCJ], + [AC_LIBTOOL_GCJ], + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], + [AC_LIBTOOL_GCJ], + [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ], + [AC_LIBTOOL_GCJ], + [ifdef([AC_PROG_GCJ], + [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])]) + ifdef([A][M_PROG_GCJ], + [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])]) + ifdef([LT_AC_PROG_GCJ], + [define([LT_AC_PROG_GCJ], + defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])]) +])])# AC_PROG_LIBTOOL + + +# _AC_PROG_LIBTOOL +# ---------------- +AC_DEFUN([_AC_PROG_LIBTOOL], [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl +AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl +AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl +AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl # This can be used to rebuild libtool when needed LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" @@ -888,10 +78,13 @@ AC_SUBST(LIBTOOL)dnl # Prevent multiple expansion define([AC_PROG_LIBTOOL], []) -]) +])# _AC_PROG_LIBTOOL + +# AC_LIBTOOL_SETUP +# ---------------- AC_DEFUN([AC_LIBTOOL_SETUP], -[AC_PREREQ(2.13)dnl +[AC_PREREQ(2.50)dnl AC_REQUIRE([AC_ENABLE_SHARED])dnl AC_REQUIRE([AC_ENABLE_STATIC])dnl AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl @@ -901,15 +94,105 @@ AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_PROG_LD])dnl AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl AC_REQUIRE([AC_PROG_NM])dnl -AC_REQUIRE([LT_AC_PROG_SED])dnl AC_REQUIRE([AC_PROG_LN_S])dnl AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl +# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! AC_REQUIRE([AC_OBJEXT])dnl AC_REQUIRE([AC_EXEEXT])dnl dnl +AC_LIBTOOL_SYS_MAX_CMD_LEN +AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE +AC_LIBTOOL_OBJDIR + +AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl _LT_AC_PROG_ECHO_BACKSLASH + +case $host_os in +aix3*) + # AIX sometimes has problems with the GCC collect2 program. For some + # reason, if we set the COLLECT_NAMES environment variable, the problems + # vanish in a puff of smoke. + if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES + fi + ;; +esac + +# Sed substitution that helps us do robust quoting. It backslashifies +# metacharacters that are still active within double-quoted strings. +Xsed='sed -e 1s/^X//' +[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] + +# Same as above, but do not quote variable references. +[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'] + +# Sed substitution to delay expansion of an escaped shell variable in a +# double_quote_subst'ed string. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' + +# Sed substitution to avoid accidental globbing in evaled expressions +no_glob_subst='s/\*/\\\*/g' + +# Constants: +rm="rm -f" + +# Global variables: +default_ofile=libtool +can_build_shared=yes + +# All known linkers require a `.a' archive for static linking (except M$VC, +# which needs '.lib'). +libext=a +ltmain="$ac_aux_dir/ltmain.sh" +ofile="$default_ofile" +with_gnu_ld="$lt_cv_prog_gnu_ld" + +AC_CHECK_TOOL(AR, ar, false) +AC_CHECK_TOOL(RANLIB, ranlib, :) +AC_CHECK_TOOL(STRIP, strip, :) + +old_CC="$CC" +old_CFLAGS="$CFLAGS" + +# Set sane defaults for various variables +test -z "$AR" && AR=ar +test -z "$AR_FLAGS" && AR_FLAGS=cru +test -z "$AS" && AS=as +test -z "$CC" && CC=cc +test -z "$LTCC" && LTCC=$CC +test -z "$DLLTOOL" && DLLTOOL=dlltool +test -z "$LD" && LD=ld +test -z "$LN_S" && LN_S="ln -s" +test -z "$MAGIC_CMD" && MAGIC_CMD=file +test -z "$NM" && NM=nm +test -z "$SED" && SED=sed +test -z "$OBJDUMP" && OBJDUMP=objdump +test -z "$RANLIB" && RANLIB=: +test -z "$STRIP" && STRIP=: +test -z "$ac_objext" && ac_objext=o + +# Determine commands to create old-style static archives. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' +old_postinstall_cmds='chmod 644 $oldlib' +old_postuninstall_cmds= + +if test -n "$RANLIB"; then + case $host_os in + openbsd*) + old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" + ;; + *) + old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" + ;; + esac + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" +fi + +_LT_CC_BASENAME([$compiler]) + # Only perform the check for file, if the check method requires it case $deplibs_check_method in file_magic*) @@ -919,327 +202,120 @@ file_magic*) ;; esac -AC_CHECK_TOOL(RANLIB, ranlib, :) -AC_CHECK_TOOL(STRIP, strip, :) - -ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) -ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL], +AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) +AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], enable_win32_dll=yes, enable_win32_dll=no) -AC_ARG_ENABLE(libtool-lock, - [ --disable-libtool-lock avoid locking (might break parallel builds)]) +AC_ARG_ENABLE([libtool-lock], + [AC_HELP_STRING([--disable-libtool-lock], + [avoid locking (might break parallel builds)])]) test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes -# Some flags need to be propagated to the compiler or linker for good -# libtool support. -case $host in -*-*-irix6*) - # Find out which ABI we are using. - echo '[#]line __oline__ "configure"' > conftest.$ac_ext - if AC_TRY_EVAL(ac_compile); then - case `/usr/bin/file conftest.$ac_objext` in - *32-bit*) - LD="${LD-ld} -32" - ;; - *N32*) - LD="${LD-ld} -n32" - ;; - *64-bit*) - LD="${LD-ld} -64" - ;; - esac - fi - rm -rf conftest* - ;; +AC_ARG_WITH([pic], + [AC_HELP_STRING([--with-pic], + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], + [pic_mode="$withval"], + [pic_mode=default]) +test -z "$pic_mode" && pic_mode=default -*-*-sco3.2v5*) - # On SCO OpenServer 5, we need -belf to get full-featured binaries. - SAVE_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS -belf" - AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, - [AC_LANG_SAVE - AC_LANG_C - AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) - AC_LANG_RESTORE]) - if test x"$lt_cv_cc_needs_belf" != x"yes"; then - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf - CFLAGS="$SAVE_CFLAGS" - fi - ;; +# Use C for the default configuration in the libtool script +tagname= +AC_LIBTOOL_LANG_C_CONFIG +_LT_AC_TAGCONFIG +])# AC_LIBTOOL_SETUP -ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL], -[*-*-cygwin* | *-*-mingw* | *-*-pw32*) - AC_CHECK_TOOL(DLLTOOL, dlltool, false) - AC_CHECK_TOOL(AS, as, false) - AC_CHECK_TOOL(OBJDUMP, objdump, false) - # recent cygwin and mingw systems supply a stub DllMain which the user - # can override, but on older systems we have to supply one - AC_CACHE_CHECK([if libtool should supply DllMain function], lt_cv_need_dllmain, - [AC_TRY_LINK([], - [extern int __attribute__((__stdcall__)) DllMain(void*, int, void*); - DllMain (0, 0, 0);], - [lt_cv_need_dllmain=no],[lt_cv_need_dllmain=yes])]) +# _LT_AC_SYS_COMPILER +# ------------------- +AC_DEFUN([_LT_AC_SYS_COMPILER], +[AC_REQUIRE([AC_PROG_CC])dnl - case $host/$CC in - *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*) - # old mingw systems require "-dll" to link a DLL, while more recent ones - # require "-mdll" - SAVE_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS -mdll" - AC_CACHE_CHECK([how to link DLLs], lt_cv_cc_dll_switch, - [AC_TRY_LINK([], [], [lt_cv_cc_dll_switch=-mdll],[lt_cv_cc_dll_switch=-dll])]) - CFLAGS="$SAVE_CFLAGS" ;; - *-*-cygwin* | *-*-pw32*) - # cygwin systems need to pass --dll to the linker, and not link - # crt.o which will require a WinMain@16 definition. - lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;; +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# Allow CC to be a program name with arguments. +compiler=$CC +])# _LT_AC_SYS_COMPILER + + +# _LT_CC_BASENAME(CC) +# ------------------- +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. +AC_DEFUN([_LT_CC_BASENAME], +[for cc_temp in $1""; do + case $cc_temp in + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; + \-*) ;; + *) break;; esac - ;; - ]) -esac - -_LT_AC_LTCONFIG_HACK - -]) - -# AC_LIBTOOL_HEADER_ASSERT -# ------------------------ -AC_DEFUN([AC_LIBTOOL_HEADER_ASSERT], -[AC_CACHE_CHECK([whether $CC supports assert without backlinking], - [lt_cv_func_assert_works], - [case $host in - *-*-solaris*) - if test "$GCC" = yes && test "$with_gnu_ld" != yes; then - case `$CC --version 2>/dev/null` in - [[12]].*) lt_cv_func_assert_works=no ;; - *) lt_cv_func_assert_works=yes ;; - esac - fi - ;; - esac]) - -if test "x$lt_cv_func_assert_works" = xyes; then - AC_CHECK_HEADERS(assert.h) -fi -])# AC_LIBTOOL_HEADER_ASSERT - -# _LT_AC_CHECK_DLFCN -# -------------------- -AC_DEFUN([_LT_AC_CHECK_DLFCN], -[AC_CHECK_HEADERS(dlfcn.h) -])# _LT_AC_CHECK_DLFCN - -# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE -# --------------------------------- -AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], -[AC_REQUIRE([AC_CANONICAL_HOST]) -AC_REQUIRE([AC_PROG_NM]) -AC_REQUIRE([AC_OBJEXT]) -# Check for command to grab the raw symbol name followed by C symbol from nm. -AC_MSG_CHECKING([command to parse $NM output]) -AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [dnl - -# These are sane defaults that work on at least a few old systems. -# [They come from Ultrix. What could be older than Ultrix?!! ;)] - -# Character class describing NM global symbol codes. -symcode='[[BCDEGRST]]' - -# Regexp to match symbols that can be accessed directly from C. -sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' - -# Transform the above into a raw symbol and a C symbol. -symxfrm='\1 \2\3 \3' - -# Transform an extracted symbol line into a proper C declaration -lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'" - -# Transform an extracted symbol line into symbol name and symbol address -lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" - -# Define system-specific variables. -case $host_os in -aix*) - symcode='[[BCDT]]' - ;; -cygwin* | mingw* | pw32*) - symcode='[[ABCDGISTW]]' - ;; -hpux*) # Its linker distinguishes data from code symbols - lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" - lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" - ;; -irix* | nonstopux*) - symcode='[[BCDEGRST]]' - ;; -osf*) - symcode='[[BCDEGQRST]]' - ;; -solaris* | sysv5*) - symcode='[[BDT]]' - ;; -sysv4) - symcode='[[DFNSTU]]' - ;; -esac - -# Handle CRLF in mingw tool chain -opt_cr= -case $host_os in -mingw*) - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp - ;; -esac - -# If we're using GNU nm, then use its standard symbol codes. -if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then - symcode='[[ABCDGISTW]]' -fi - -# Try without a prefix undercore, then with it. -for ac_symprfx in "" "_"; do - - # Write the raw and C identifiers. -lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" - - # Check to see that the pipe works correctly. - pipe_works=no - rm -f conftest* - cat > conftest.$ac_ext < $nlist) && test -s "$nlist"; then - # Try sorting and uniquifying the output. - if sort "$nlist" | uniq > "$nlist"T; then - mv -f "$nlist"T "$nlist" - else - rm -f "$nlist"T - fi - - # Make sure that we snagged all the symbols we need. - if egrep ' nm_test_var$' "$nlist" >/dev/null; then - if egrep ' nm_test_func$' "$nlist" >/dev/null; then - cat < conftest.$ac_ext -#ifdef __cplusplus -extern "C" { -#endif - -EOF - # Now generate the symbol file. - eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext' - - cat <> conftest.$ac_ext -#if defined (__STDC__) && __STDC__ -# define lt_ptr void * -#else -# define lt_ptr char * -# define const -#endif - -/* The mapping between symbol names and symbols. */ -const struct { - const char *name; - lt_ptr address; -} -lt_preloaded_symbols[[]] = -{ -EOF - sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext - cat <<\EOF >> conftest.$ac_ext - {0, (lt_ptr) 0} -}; - -#ifdef __cplusplus -} -#endif -EOF - # Now try linking the two files. - mv conftest.$ac_objext conftstm.$ac_objext - save_LIBS="$LIBS" - save_CFLAGS="$CFLAGS" - LIBS="conftstm.$ac_objext" - CFLAGS="$CFLAGS$no_builtin_flag" - if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then - pipe_works=yes - fi - LIBS="$save_LIBS" - CFLAGS="$save_CFLAGS" - else - echo "cannot find nm_test_func in $nlist" >&AC_FD_CC - fi - else - echo "cannot find nm_test_var in $nlist" >&AC_FD_CC - fi - else - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AC_FD_CC - fi - else - echo "$progname: failed program was:" >&AC_FD_CC - cat conftest.$ac_ext >&5 - fi - rm -f conftest* conftst* - - # Do not use the global_symbol_pipe unless it works. - if test "$pipe_works" = yes; then - break - else - lt_cv_sys_global_symbol_pipe= - fi done +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` ]) -global_symbol_pipe="$lt_cv_sys_global_symbol_pipe" -if test -z "$lt_cv_sys_global_symbol_pipe"; then - global_symbol_to_cdecl= - global_symbol_to_c_name_address= -else - global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl" - global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address" -fi -if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address"; -then - AC_MSG_RESULT(failed) -else - AC_MSG_RESULT(ok) -fi -]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE -# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR -# --------------------------------- -AC_DEFUN([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR], -[# Find the correct PATH separator. Usually this is `:', but -# DJGPP uses `;' like DOS. -if test "X${PATH_SEPARATOR+set}" != Xset; then - UNAME=${UNAME-`uname 2>/dev/null`} - case X$UNAME in - *-DOS) lt_cv_sys_path_separator=';' ;; - *) lt_cv_sys_path_separator=':' ;; - esac - PATH_SEPARATOR=$lt_cv_sys_path_separator -fi -])# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR + +# _LT_COMPILER_BOILERPLATE +# ------------------------ +# Check for compiler boilerplate output or warnings with +# the simple compiler test code. +AC_DEFUN([_LT_COMPILER_BOILERPLATE], +[ac_outfile=conftest.$ac_objext +printf "$lt_simple_compile_test_code" >conftest.$ac_ext +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err +_lt_compiler_boilerplate=`cat conftest.err` +$rm conftest* +])# _LT_COMPILER_BOILERPLATE + + +# _LT_LINKER_BOILERPLATE +# ---------------------- +# Check for linker boilerplate output or warnings with +# the simple link test code. +AC_DEFUN([_LT_LINKER_BOILERPLATE], +[ac_outfile=conftest.$ac_objext +printf "$lt_simple_link_test_code" >conftest.$ac_ext +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err +_lt_linker_boilerplate=`cat conftest.err` +$rm conftest* +])# _LT_LINKER_BOILERPLATE + + +# _LT_AC_SYS_LIBPATH_AIX +# ---------------------- +# Links a minimal program and checks the executable +# for the system default hardcoded library path. In most cases, +# this is /usr/lib:/lib, but when the MPI compilers are used +# the location of the communication and MPI libs are included too. +# If we don't find anything, use the default library path according +# to the aix ld manual. +AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], +[AC_LINK_IFELSE(AC_LANG_PROGRAM,[ +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } +}'` +# Check for a 64-bit object if we didn't find anything. +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } +}'`; fi],[]) +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi +])# _LT_AC_SYS_LIBPATH_AIX + + +# _LT_AC_SHELL_INIT(ARG) +# ---------------------- +AC_DEFUN([_LT_AC_SHELL_INIT], +[ifdef([AC_DIVERSION_NOTICE], + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], + [AC_DIVERT_PUSH(NOTICE)]) +$1 +AC_DIVERT_POP +])# _LT_AC_SHELL_INIT + # _LT_AC_PROG_ECHO_BACKSLASH # -------------------------- # Add some code to the start of the generated configure script which # will find an echo command which doesn't interpret backslashes. AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], -[ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], - [AC_DIVERT_PUSH(NOTICE)]) -_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR - +[_LT_AC_SHELL_INIT([ # Check that we are running under the correct shell. SHELL=${CONFIG_SHELL-/bin/sh} @@ -1257,7 +333,7 @@ if test "X[$]1" = X--no-reexec; then elif test "X[$]1" = X--fallback-echo; then # Avoid inline document here, it may be left over : -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then # Yippee, $echo works! : else @@ -1269,14 +345,14 @@ if test "X[$]1" = X--fallback-echo; then # used as fallback echo shift cat </dev/null 2>&1 && unset CDPATH if test -z "$ECHO"; then if test "X${echo_test_string+set}" != Xset; then @@ -1303,8 +379,9 @@ else # # So, first we look for a working echo in the user's PATH. - IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for dir in $PATH /usr/ucb; do + IFS="$lt_save_ifs" if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && @@ -1313,7 +390,7 @@ else break fi done - IFS="$save_ifs" + IFS="$lt_save_ifs" if test "X$echo" = Xecho; then # We didn't find a better echo, so look for alternatives. @@ -1386,17 +463,332 @@ if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then fi AC_SUBST(ECHO) -AC_DIVERT_POP -])# _LT_AC_PROG_ECHO_BACKSLASH +])])# _LT_AC_PROG_ECHO_BACKSLASH + + +# _LT_AC_LOCK +# ----------- +AC_DEFUN([_LT_AC_LOCK], +[AC_ARG_ENABLE([libtool-lock], + [AC_HELP_STRING([--disable-libtool-lock], + [avoid locking (might break parallel builds)])]) +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes + +# Some flags need to be propagated to the compiler or linker for good +# libtool support. +case $host in +ia64-*-hpux*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if AC_TRY_EVAL(ac_compile); then + case `/usr/bin/file conftest.$ac_objext` in + *ELF-32*) + HPUX_IA64_MODE="32" + ;; + *ELF-64*) + HPUX_IA64_MODE="64" + ;; + esac + fi + rm -rf conftest* + ;; +*-*-irix6*) + # Find out which ABI we are using. + echo '[#]line __oline__ "configure"' > conftest.$ac_ext + if AC_TRY_EVAL(ac_compile); then + if test "$lt_cv_prog_gnu_ld" = yes; then + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -melf32bsmip" + ;; + *N32*) + LD="${LD-ld} -melf32bmipn32" + ;; + *64-bit*) + LD="${LD-ld} -melf64bmip" + ;; + esac + else + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -32" + ;; + *N32*) + LD="${LD-ld} -n32" + ;; + *64-bit*) + LD="${LD-ld} -64" + ;; + esac + fi + fi + rm -rf conftest* + ;; + +x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if AC_TRY_EVAL(ac_compile); then + case "`/usr/bin/file conftest.o`" in + *32-bit*) + case $host in + x86_64-*linux*) + LD="${LD-ld} -m elf_i386" + ;; + ppc64-*linux*|powerpc64-*linux*) + LD="${LD-ld} -m elf32ppclinux" + ;; + s390x-*linux*) + LD="${LD-ld} -m elf_s390" + ;; + sparc64-*linux*) + LD="${LD-ld} -m elf32_sparc" + ;; + esac + ;; + *64-bit*) + case $host in + x86_64-*linux*) + LD="${LD-ld} -m elf_x86_64" + ;; + ppc*-*linux*|powerpc*-*linux*) + LD="${LD-ld} -m elf64ppc" + ;; + s390*-*linux*) + LD="${LD-ld} -m elf64_s390" + ;; + sparc*-*linux*) + LD="${LD-ld} -m elf64_sparc" + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; + +*-*-sco3.2v5*) + # On SCO OpenServer 5, we need -belf to get full-featured binaries. + SAVE_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -belf" + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, + [AC_LANG_PUSH(C) + AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) + AC_LANG_POP]) + if test x"$lt_cv_cc_needs_belf" != x"yes"; then + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf + CFLAGS="$SAVE_CFLAGS" + fi + ;; +AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], +[*-*-cygwin* | *-*-mingw* | *-*-pw32*) + AC_CHECK_TOOL(DLLTOOL, dlltool, false) + AC_CHECK_TOOL(AS, as, false) + AC_CHECK_TOOL(OBJDUMP, objdump, false) + ;; + ]) +esac + +need_locks="$enable_libtool_lock" + +])# _LT_AC_LOCK + + +# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) +# ---------------------------------------------------------------- +# Check whether the given compiler option works +AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], +[AC_REQUIRE([LT_AC_PROG_SED]) +AC_CACHE_CHECK([$1], [$2], + [$2=no + ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) + printf "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="$3" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&AS_MESSAGE_LOG_FD + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp + $SED '/^$/d' conftest.err >conftest.er2 + if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then + $2=yes + fi + fi + $rm conftest* +]) + +if test x"[$]$2" = xyes; then + ifelse([$5], , :, [$5]) +else + ifelse([$6], , :, [$6]) +fi +])# AC_LIBTOOL_COMPILER_OPTION + + +# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, +# [ACTION-SUCCESS], [ACTION-FAILURE]) +# ------------------------------------------------------------ +# Check whether the given compiler option works +AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], +[AC_CACHE_CHECK([$1], [$2], + [$2=no + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS $3" + printf "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&AS_MESSAGE_LOG_FD + $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp + $SED '/^$/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + $2=yes + fi + else + $2=yes + fi + fi + $rm conftest* + LDFLAGS="$save_LDFLAGS" +]) + +if test x"[$]$2" = xyes; then + ifelse([$4], , :, [$4]) +else + ifelse([$5], , :, [$5]) +fi +])# AC_LIBTOOL_LINKER_OPTION + + +# AC_LIBTOOL_SYS_MAX_CMD_LEN +# -------------------------- +AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], +[# find the maximum length of command line arguments +AC_MSG_CHECKING([the maximum length of command line arguments]) +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl + i=0 + teststring="ABCD" + + case $build_os in + msdosdjgpp*) + # On DJGPP, this test can blow up pretty badly due to problems in libc + # (any single argument exceeding 2000 bytes causes a buffer overrun + # during glob expansion). Even if it were fixed, the result of this + # check would be larger than it should be. + lt_cv_sys_max_cmd_len=12288; # 12K is about right + ;; + + gnu*) + # Under GNU Hurd, this test is not required because there is + # no limit to the length of command line arguments. + # Libtool will interpret -1 as no limit whatsoever + lt_cv_sys_max_cmd_len=-1; + ;; + + cygwin* | mingw*) + # On Win9x/ME, this test blows up -- it succeeds, but takes + # about 5 minutes as the teststring grows exponentially. + # Worse, since 9x/ME are not pre-emptively multitasking, + # you end up with a "frozen" computer, even though with patience + # the test eventually succeeds (with a max line length of 256k). + # Instead, let's just punt: use the minimum linelength reported by + # all of the supported platforms: 8192 (on NT/2K/XP). + lt_cv_sys_max_cmd_len=8192; + ;; + + amigaos*) + # On AmigaOS with pdksh, this test takes hours, literally. + # So we just punt and use a minimum line length of 8192. + lt_cv_sys_max_cmd_len=8192; + ;; + + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) + # This has been around since 386BSD, at least. Likely further. + if test -x /sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` + elif test -x /usr/sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` + else + lt_cv_sys_max_cmd_len=65536 # usable default for *BSD + fi + # And add a safety zone + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + ;; + osf*) + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not + # nice to cause kernel panics so lets avoid the loop below. + # First set a reasonable default. + lt_cv_sys_max_cmd_len=16384 + # + if test -x /sbin/sysconfig; then + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in + *1*) lt_cv_sys_max_cmd_len=-1 ;; + esac + fi + ;; + *) + # If test is not a shell built-in, we'll probably end up computing a + # maximum length that is only half of the actual maximum length, but + # we can't tell. + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} + while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ + = "XX$teststring") >/dev/null 2>&1 && + new_result=`expr "X$teststring" : ".*" 2>&1` && + lt_cv_sys_max_cmd_len=$new_result && + test $i != 17 # 1/2 MB should be enough + do + i=`expr $i + 1` + teststring=$teststring$teststring + done + teststring= + # Add a significant safety factor because C++ compilers can tack on massive + # amounts of additional arguments before passing them to the linker. + # It appears as though 1/2 is a usable value. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` + ;; + esac +]) +if test -n $lt_cv_sys_max_cmd_len ; then + AC_MSG_RESULT($lt_cv_sys_max_cmd_len) +else + AC_MSG_RESULT(none) +fi +])# AC_LIBTOOL_SYS_MAX_CMD_LEN + + +# _LT_AC_CHECK_DLFCN +# -------------------- +AC_DEFUN([_LT_AC_CHECK_DLFCN], +[AC_CHECK_HEADERS(dlfcn.h)dnl +])# _LT_AC_CHECK_DLFCN + # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) # ------------------------------------------------------------------ AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], -[if test "$cross_compiling" = yes; then : +[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl +if test "$cross_compiling" = yes; then : [$4] else - AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext </dev/null + mkdir conftest + cd conftest + mkdir out + printf "$lt_simple_compile_test_code" > conftest.$ac_ext -# Sed substitution to delay expansion of an escaped shell variable in a -# double_quote_subst'ed string. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' - -# Constants: -rm="rm -f" - -# Global variables: -default_ofile=libtool -can_build_shared=yes - -# All known linkers require a `.a' archive for static linking (except M$VC, -# which needs '.lib'). -libext=a -ltmain="$ac_aux_dir/ltmain.sh" -ofile="$default_ofile" -with_gnu_ld="$lt_cv_prog_gnu_ld" -need_locks="$enable_libtool_lock" - -old_CC="$CC" -old_CFLAGS="$CFLAGS" - -# Set sane defaults for various variables -test -z "$AR" && AR=ar -test -z "$AR_FLAGS" && AR_FLAGS=cru -test -z "$AS" && AS=as -test -z "$CC" && CC=cc -test -z "$DLLTOOL" && DLLTOOL=dlltool -test -z "$LD" && LD=ld -test -z "$LN_S" && LN_S="ln -s" -test -z "$MAGIC_CMD" && MAGIC_CMD=file -test -z "$NM" && NM=nm -test -z "$OBJDUMP" && OBJDUMP=objdump -test -z "$RANLIB" && RANLIB=: -test -z "$STRIP" && STRIP=: -test -z "$ac_objext" && ac_objext=o - -if test x"$host" != x"$build"; then - ac_tool_prefix=${host_alias}- -else - ac_tool_prefix= -fi - -# Transform linux* to *-*-linux-gnu*, to support old configure scripts. -case $host_os in -linux-gnu*) ;; -linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` -esac - -case $host_os in -aix3*) - # AIX sometimes has problems with the GCC collect2 program. For some - # reason, if we set the COLLECT_NAMES environment variable, the problems - # vanish in a puff of smoke. - if test "X${COLLECT_NAMES+set}" != Xset; then - COLLECT_NAMES= - export COLLECT_NAMES - fi - ;; -esac - -# Determine commands to create old-style static archives. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' -old_postinstall_cmds='chmod 644 $oldlib' -old_postuninstall_cmds= - -if test -n "$RANLIB"; then - case $host_os in - openbsd*) - old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" - ;; - *) - old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" - ;; - esac - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" -fi - -# Allow CC to be a program name with arguments. -set dummy $CC -compiler="[$]2" - -AC_MSG_CHECKING([for objdir]) -rm -f .libs 2>/dev/null -mkdir .libs 2>/dev/null -if test -d .libs; then - objdir=.libs -else - # MS-DOS does not allow filenames that begin with a dot. - objdir=_libs -fi -rmdir .libs 2>/dev/null -AC_MSG_RESULT($objdir) - - -AC_ARG_WITH(pic, -[ --with-pic try to use only PIC/non-PIC objects [default=use both]], -pic_mode="$withval", pic_mode=default) -test -z "$pic_mode" && pic_mode=default - -# We assume here that the value for lt_cv_prog_cc_pic will not be cached -# in isolation, and that seeing it set (from the cache) indicates that -# the associated values are set (in the cache) correctly too. -AC_MSG_CHECKING([for $compiler option to produce PIC]) -AC_CACHE_VAL(lt_cv_prog_cc_pic, -[ lt_cv_prog_cc_pic= - lt_cv_prog_cc_shlib= - lt_cv_prog_cc_wl= - lt_cv_prog_cc_static= - lt_cv_prog_cc_no_builtin= - lt_cv_prog_cc_can_build_shared=$can_build_shared - - if test "$GCC" = yes; then - lt_cv_prog_cc_wl='-Wl,' - lt_cv_prog_cc_static='-static' - - case $host_os in - aix*) - # Below there is a dirty hack to force normal static linking with -ldl - # The problem is because libdl dynamically linked with both libc and - # libC (AIX C++ library), which obviously doesn't included in libraries - # list by gcc. This cause undefined symbols with -static flags. - # This hack allows C programs to be linked with "-static -ldl", but - # not sure about C++ programs. - lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC" - ;; - amigaos*) - # FIXME: we need at least 68020 code to build shared libraries, but - # adding the `-m68020' flag to GCC prevents building anything better, - # like `-m68040'. - lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4' - ;; - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; - darwin* | rhapsody*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - lt_cv_prog_cc_pic='-fno-common' - ;; - cygwin* | mingw* | pw32* | os2*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - lt_cv_prog_cc_pic='-DDLL_EXPORT' - ;; - sysv4*MP*) - if test -d /usr/nec; then - lt_cv_prog_cc_pic=-Kconform_pic - fi - ;; - *) - lt_cv_prog_cc_pic='-fPIC' - ;; - esac - else - # PORTME Check for PIC flags for the system compiler. - case $host_os in - aix3* | aix4* | aix5*) - lt_cv_prog_cc_wl='-Wl,' - # All AIX code is PIC. - if test "$host_cpu" = ia64; then - # AIX 5 now supports IA64 processor - lt_cv_prog_cc_static='-Bstatic' - else - lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp' - fi - ;; - - hpux9* | hpux10* | hpux11*) - # Is there a better lt_cv_prog_cc_static that works with the bundled CC? - lt_cv_prog_cc_wl='-Wl,' - lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive" - lt_cv_prog_cc_pic='+Z' - ;; - - irix5* | irix6* | nonstopux*) - lt_cv_prog_cc_wl='-Wl,' - lt_cv_prog_cc_static='-non_shared' - # PIC (with -KPIC) is the default. - ;; - - cygwin* | mingw* | pw32* | os2*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - lt_cv_prog_cc_pic='-DDLL_EXPORT' - ;; - - newsos6) - lt_cv_prog_cc_pic='-KPIC' - lt_cv_prog_cc_static='-Bstatic' - ;; - - osf3* | osf4* | osf5*) - # All OSF/1 code is PIC. - lt_cv_prog_cc_wl='-Wl,' - lt_cv_prog_cc_static='-non_shared' - ;; - - sco3.2v5*) - lt_cv_prog_cc_pic='-Kpic' - lt_cv_prog_cc_static='-dn' - lt_cv_prog_cc_shlib='-belf' - ;; - - solaris*) - lt_cv_prog_cc_pic='-KPIC' - lt_cv_prog_cc_static='-Bstatic' - lt_cv_prog_cc_wl='-Wl,' - ;; - - sunos4*) - lt_cv_prog_cc_pic='-PIC' - lt_cv_prog_cc_static='-Bstatic' - lt_cv_prog_cc_wl='-Qoption ld ' - ;; - - sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) - lt_cv_prog_cc_pic='-KPIC' - lt_cv_prog_cc_static='-Bstatic' - lt_cv_prog_cc_wl='-Wl,' - ;; - - uts4*) - lt_cv_prog_cc_pic='-pic' - lt_cv_prog_cc_static='-Bstatic' - ;; - - sysv4*MP*) - if test -d /usr/nec ;then - lt_cv_prog_cc_pic='-Kconform_pic' - lt_cv_prog_cc_static='-Bstatic' - fi - ;; - - *) - lt_cv_prog_cc_can_build_shared=no - ;; - esac - fi + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&AS_MESSAGE_LOG_FD + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp + $SED '/^$/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then + _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes + fi + fi + chmod u+w . + $rm conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files + $rm out/* && rmdir out + cd .. + rmdir conftest + $rm conftest* ]) -if test -z "$lt_cv_prog_cc_pic"; then - AC_MSG_RESULT([none]) -else - AC_MSG_RESULT([$lt_cv_prog_cc_pic]) - - # Check to make sure the pic_flag actually works. - AC_MSG_CHECKING([if $compiler PIC flag $lt_cv_prog_cc_pic works]) - AC_CACHE_VAL(lt_cv_prog_cc_pic_works, [dnl - save_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC" - AC_TRY_COMPILE([], [], [dnl - case $host_os in - hpux9* | hpux10* | hpux11*) - # On HP-UX, both CC and GCC only warn that PIC is supported... then - # they create non-PIC objects. So, if there were any warnings, we - # assume that PIC is not supported. - if test -s conftest.err; then - lt_cv_prog_cc_pic_works=no - else - lt_cv_prog_cc_pic_works=yes - fi - ;; - *) - lt_cv_prog_cc_pic_works=yes - ;; - esac - ], [dnl - lt_cv_prog_cc_pic_works=no - ]) - CFLAGS="$save_CFLAGS" - ]) - - if test "X$lt_cv_prog_cc_pic_works" = Xno; then - lt_cv_prog_cc_pic= - lt_cv_prog_cc_can_build_shared=no - else - lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic" - fi - - AC_MSG_RESULT([$lt_cv_prog_cc_pic_works]) -fi - -# Check for any special shared library compilation flags. -if test -n "$lt_cv_prog_cc_shlib"; then - AC_MSG_WARN([\`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries]) - if echo "$old_CC $old_CFLAGS " | egrep -e "[[ ]]$lt_cv_prog_cc_shlib[[ ]]" >/dev/null; then : - else - AC_MSG_WARN([add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure]) - lt_cv_prog_cc_can_build_shared=no - fi -fi - -AC_MSG_CHECKING([if $compiler static flag $lt_cv_prog_cc_static works]) -AC_CACHE_VAL([lt_cv_prog_cc_static_works], [dnl - lt_cv_prog_cc_static_works=no - save_LDFLAGS="$LDFLAGS" - LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static" - AC_TRY_LINK([], [], [lt_cv_prog_cc_static_works=yes]) - LDFLAGS="$save_LDFLAGS" -]) - -# Belt *and* braces to stop my trousers falling down: -test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static= -AC_MSG_RESULT([$lt_cv_prog_cc_static_works]) - -pic_flag="$lt_cv_prog_cc_pic" -special_shlib_compile_flags="$lt_cv_prog_cc_shlib" -wl="$lt_cv_prog_cc_wl" -link_static_flag="$lt_cv_prog_cc_static" -no_builtin_flag="$lt_cv_prog_cc_no_builtin" -can_build_shared="$lt_cv_prog_cc_can_build_shared" +])# AC_LIBTOOL_PROG_CC_C_O -# Check to see if options -o and -c are simultaneously supported by compiler -AC_MSG_CHECKING([if $compiler supports -c -o file.$ac_objext]) -AC_CACHE_VAL([lt_cv_compiler_c_o], [ -$rm -r conftest 2>/dev/null -mkdir conftest -cd conftest -echo "int some_variable = 0;" > conftest.$ac_ext -mkdir out -# According to Tom Tromey, Ian Lance Taylor reported there are C compilers -# that will create temporary files in the current directory regardless of -# the output directory. Thus, making CWD read-only will cause this test -# to fail, enabling locking or at least warning the user not to do parallel -# builds. -chmod -w . -save_CFLAGS="$CFLAGS" -CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" -compiler_c_o=no -if { (eval echo configure:__oline__: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings - if test -s out/conftest.err; then - lt_cv_compiler_c_o=no - else - lt_cv_compiler_c_o=yes - fi -else - # Append any errors to the config.log. - cat out/conftest.err 1>&AC_FD_CC - lt_cv_compiler_c_o=no -fi -CFLAGS="$save_CFLAGS" -chmod u+w . -$rm conftest* out/* -rmdir out -cd .. -rmdir conftest -$rm -r conftest 2>/dev/null -]) -compiler_c_o=$lt_cv_compiler_c_o -AC_MSG_RESULT([$compiler_c_o]) - -if test x"$compiler_c_o" = x"yes"; then - # Check to see if we can write to a .lo - AC_MSG_CHECKING([if $compiler supports -c -o file.lo]) - AC_CACHE_VAL([lt_cv_compiler_o_lo], [ - lt_cv_compiler_o_lo=no - save_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS -c -o conftest.lo" - save_objext="$ac_objext" - ac_objext=lo - AC_TRY_COMPILE([], [int some_variable = 0;], [dnl - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings - if test -s conftest.err; then - lt_cv_compiler_o_lo=no - else - lt_cv_compiler_o_lo=yes - fi - ]) - ac_objext="$save_objext" - CFLAGS="$save_CFLAGS" - ]) - compiler_o_lo=$lt_cv_compiler_o_lo - AC_MSG_RESULT([$compiler_o_lo]) -else - compiler_o_lo=no -fi - +# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME]) +# ----------------------------------------- # Check to see if we can do hard links to lock some files if needed +AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], +[AC_REQUIRE([_LT_AC_LOCK])dnl + hard_links="nottested" -if test "$compiler_c_o" = no && test "$need_locks" != no; then +if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user AC_MSG_CHECKING([if we can lock with hard links]) hard_links=yes @@ -1978,764 +1052,77 @@ if test "$compiler_c_o" = no && test "$need_locks" != no; then ln conftest.a conftest.b 2>/dev/null && hard_links=no AC_MSG_RESULT([$hard_links]) if test "$hard_links" = no; then - AC_MSG_WARN([\`$CC' does not support \`-c -o', so \`make -j' may be unsafe]) + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) need_locks=warn fi else need_locks=no fi +])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS -if test "$GCC" = yes; then - # Check to see if options -fno-rtti -fno-exceptions are supported by compiler - AC_MSG_CHECKING([if $compiler supports -fno-rtti -fno-exceptions]) - echo "int some_variable = 0;" > conftest.$ac_ext - save_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" - compiler_rtti_exceptions=no - AC_TRY_COMPILE([], [int some_variable = 0;], [dnl - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings - if test -s conftest.err; then - compiler_rtti_exceptions=no - else - compiler_rtti_exceptions=yes - fi - ]) - CFLAGS="$save_CFLAGS" - AC_MSG_RESULT([$compiler_rtti_exceptions]) - if test "$compiler_rtti_exceptions" = "yes"; then - no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions' - else - no_builtin_flag=' -fno-builtin' - fi -fi - -# See if the linker supports building shared libraries. -AC_MSG_CHECKING([whether the linker ($LD) supports shared libraries]) - -allow_undefined_flag= -no_undefined_flag= -need_lib_prefix=unknown -need_version=unknown -# when you set need_version to no, make sure it does not cause -set_version -# flags to be left without arguments -archive_cmds= -archive_expsym_cmds= -old_archive_from_new_cmds= -old_archive_from_expsyms_cmds= -export_dynamic_flag_spec= -whole_archive_flag_spec= -thread_safe_flag_spec= -hardcode_into_libs=no -hardcode_libdir_flag_spec= -hardcode_libdir_separator= -hardcode_direct=no -hardcode_minus_L=no -hardcode_shlibpath_var=unsupported -runpath_var= -link_all_deplibs=unknown -always_export_symbols=no -export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' -# include_expsyms should be a list of space-separated symbols to be *always* -# included in the symbol list -include_expsyms= -# exclude_expsyms can be an egrep regular expression of symbols to exclude -# it will be wrapped by ` (' and `)$', so one must not match beginning or -# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', -# as well as any symbol that contains `d'. -exclude_expsyms="_GLOBAL_OFFSET_TABLE_" -# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out -# platforms (ab)use it in PIC code, but their linkers get confused if -# the symbol is explicitly referenced. Since portable code cannot -# rely on this symbol name, it's probably fine to never include it in -# preloaded symbol tables. -extract_expsyms_cmds= - -case $host_os in -cygwin* | mingw* | pw32*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - if test "$GCC" != yes; then - with_gnu_ld=no - fi - ;; -openbsd*) - with_gnu_ld=no - ;; -esac - -ld_shlibs=yes -if test "$with_gnu_ld" = yes; then - # If archive_cmds runs LD, not CC, wlarc should be empty - wlarc='${wl}' - - # See if GNU ld supports shared libraries. - case $host_os in - aix3* | aix4* | aix5*) - # On AIX, the GNU linker is very broken - # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available. - ld_shlibs=no - cat <&2 - -*** Warning: the GNU linker, at least up to release 2.9.1, is reported -*** to be unable to reliably create shared libraries on AIX. -*** Therefore, libtool is disabling shared libraries support. If you -*** really care for shared libraries, you may want to modify your PATH -*** so that a non-GNU linker is found, and then restart. - -EOF - ;; - - amigaos*) - archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - hardcode_libdir_flag_spec='-L$libdir' - hardcode_minus_L=yes - - # Samuel A. Falvo II reports - # that the semantics of dynamic libraries on AmigaOS, at least up - # to version 4, is to share data among multiple programs linked - # with the same dynamic library. Since this doesn't match the - # behavior of shared libraries on other platforms, we can use - # them. - ld_shlibs=no - ;; - - beos*) - if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then - allow_undefined_flag=unsupported - # Joseph Beckenbach says some releases of gcc - # support --undefined. This deserves some investigation. FIXME - archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - else - ld_shlibs=no - fi - ;; - - cygwin* | mingw* | pw32*) - # hardcode_libdir_flag_spec is actually meaningless, as there is - # no search path for DLLs. - hardcode_libdir_flag_spec='-L$libdir' - allow_undefined_flag=unsupported - always_export_symbols=yes - - extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ - sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ - test -f $output_objdir/impgen.exe || (cd $output_objdir && \ - if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ - else $CC -o impgen impgen.c ; fi)~ - $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' - - old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' - - # cygwin and mingw dlls have different entry points and sets of symbols - # to exclude. - # FIXME: what about values for MSVC? - dll_entry=__cygwin_dll_entry@12 - dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ - case $host_os in - mingw*) - # mingw values - dll_entry=_DllMainCRTStartup@12 - dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ - ;; - esac - - # mingw and cygwin differ, and it's simplest to just exclude the union - # of the two symbol sets. - dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 - - # recent cygwin and mingw systems supply a stub DllMain which the user - # can override, but on older systems we have to supply one (in ltdll.c) - if test "x$lt_cv_need_dllmain" = "xyes"; then - ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " - ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~ - test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' - else - ltdll_obj= - ltdll_cmds= - fi - - # Extract the symbol export list from an `--export-all' def file, - # then regenerate the def file from the symbol export list, so that - # the compiled dll only exports the symbol export list. - # Be careful not to strip the DATA tag left be newer dlltools. - export_symbols_cmds="$ltdll_cmds"' - $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ - sed -e "1,/EXPORTS/d" -e "s/ @ [[0-9]]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' - - # If the export-symbols file already is a .def file (1st line - # is EXPORTS), use it as is. - # If DATA tags from a recent dlltool are present, honour them! - archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then - cp $export_symbols $output_objdir/$soname-def; - else - echo EXPORTS > $output_objdir/$soname-def; - _lt_hint=1; - cat $export_symbols | while read symbol; do - set dummy \$symbol; - case \[$]# in - 2) echo " \[$]2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; - 4) echo " \[$]2 \[$]3 \[$]4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;; - *) echo " \[$]2 @ \$_lt_hint \[$]3 ; " >> $output_objdir/$soname-def;; - esac; - _lt_hint=`expr 1 + \$_lt_hint`; - done; - fi~ - '"$ltdll_cmds"' - $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ - $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~ - $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ - $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~ - $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags' - ;; - - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' - wlarc= - else - archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - fi - ;; - - solaris* | sysv5*) - if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then - ld_shlibs=no - cat <&2 - -*** Warning: The releases 2.8.* of the GNU linker cannot reliably -*** create shared libraries on Solaris systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.9.1 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. - -EOF - elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - ld_shlibs=no - fi - ;; - - sunos4*) - archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' - wlarc= - hardcode_direct=yes - hardcode_shlibpath_var=no - ;; - - *) - if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - ld_shlibs=no - fi - ;; - esac - - if test "$ld_shlibs" = yes; then - runpath_var=LD_RUN_PATH - hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' - export_dynamic_flag_spec='${wl}--export-dynamic' - case $host_os in - cygwin* | mingw* | pw32*) - # dlltool doesn't understand --whole-archive et. al. - whole_archive_flag_spec= - ;; - *) - # ancient GNU ld didn't support --whole-archive et. al. - if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then - whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - else - whole_archive_flag_spec= - fi - ;; - esac - fi +# AC_LIBTOOL_OBJDIR +# ----------------- +AC_DEFUN([AC_LIBTOOL_OBJDIR], +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], +[rm -f .libs 2>/dev/null +mkdir .libs 2>/dev/null +if test -d .libs; then + lt_cv_objdir=.libs else - # PORTME fill in a description of your system's linker (not GNU ld) - case $host_os in - aix3*) - allow_undefined_flag=unsupported - always_export_symbols=yes - archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' - # Note: this linker hardcodes the directories in LIBPATH if there - # are no directories specified by -L. - hardcode_minus_L=yes - if test "$GCC" = yes && test -z "$link_static_flag"; then - # Neither direct hardcoding nor static linking is supported with a - # broken collect2. - hardcode_direct=unsupported - fi - ;; - - aix4* | aix5*) - if test "$host_cpu" = ia64; then - # On IA64, the linker does run time linking by default, so we don't - # have to do anything special. - aix_use_runtimelinking=no - exp_sym_flag='-Bexport' - no_entry_flag="" - else - aix_use_runtimelinking=no - - # Test if we are trying to use run time linking or normal - # AIX style linking. If -brtl is somewhere in LDFLAGS, we - # need to do runtime linking. - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) - for ld_flag in $LDFLAGS; do - case $ld_flag in - *-brtl*) - aix_use_runtimelinking=yes - break - ;; - esac - done - esac - - exp_sym_flag='-bexport' - no_entry_flag='-bnoentry' - fi - - # When large executables or shared objects are built, AIX ld can - # have problems creating the table of contents. If linking a library - # or program results in "error TOC overflow" add -mminimal-toc to - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. - - hardcode_direct=yes - archive_cmds='' - hardcode_libdir_separator=':' - if test "$GCC" = yes; then - case $host_os in aix4.[[012]]|aix4.[[012]].*) - collect2name=`${CC} -print-prog-name=collect2` - if test -f "$collect2name" && \ - strings "$collect2name" | grep resolve_lib_name >/dev/null - then - # We have reworked collect2 - hardcode_direct=yes - else - # We have old collect2 - hardcode_direct=unsupported - # It fails to find uninstalled libraries when the uninstalled - # path is not listed in the libpath. Setting hardcode_minus_L - # to unsupported forces relinking - hardcode_minus_L=yes - hardcode_libdir_flag_spec='-L$libdir' - hardcode_libdir_separator= - fi - esac - - shared_flag='-shared' - else - # not using gcc - if test "$host_cpu" = ia64; then - shared_flag='${wl}-G' - else - if test "$aix_use_runtimelinking" = yes; then - shared_flag='${wl}-G' - else - shared_flag='${wl}-bM:SRE' - fi - fi - fi - - # It seems that -bexpall can do strange things, so it is better to - # generate a list of symbols to export. - always_export_symbols=yes - if test "$aix_use_runtimelinking" = yes; then - # Warning - without using the other runtime loading flags (-brtl), - # -berok will link without error, but may produce a broken library. - allow_undefined_flag='-berok' - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib' - archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" - else - if test "$host_cpu" = ia64; then - hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' - allow_undefined_flag="-z nodefs" - archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" - else - hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib' - # Warning - without using the other run time loading flags, - # -berok will link without error, but may produce a broken library. - allow_undefined_flag='${wl}-berok' - # This is a bit strange, but is similar to how AIX traditionally builds - # it's shared libraries. - archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname' - fi - fi - ;; - - amigaos*) - archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - hardcode_libdir_flag_spec='-L$libdir' - hardcode_minus_L=yes - # see comment about different semantics on the GNU ld section - ld_shlibs=no - ;; - - cygwin* | mingw* | pw32*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - # hardcode_libdir_flag_spec is actually meaningless, as there is - # no search path for DLLs. - hardcode_libdir_flag_spec=' ' - allow_undefined_flag=unsupported - # Tell ltmain to make .lib files, not .a files. - libext=lib - # FIXME: Setting linknames here is a bad hack. - archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' - # The linker will automatically build a .lib file if we build a DLL. - old_archive_from_new_cmds='true' - # FIXME: Should let the user specify the lib program. - old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' - fix_srcfile_path='`cygpath -w "$srcfile"`' - ;; - - darwin* | rhapsody*) - case "$host_os" in - rhapsody* | darwin1.[[012]]) - allow_undefined_flag='-undefined suppress' - ;; - *) # Darwin 1.3 on - allow_undefined_flag='-flat_namespace -undefined suppress' - ;; - esac - # FIXME: Relying on posixy $() will cause problems for - # cross-compilation, but unfortunately the echo tests do not - # yet detect zsh echo's removal of \ escapes. Also zsh mangles - # `"' quotes if we put them in here... so don't! - archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)' - # We need to add '_' to the symbols in $export_symbols first - #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols' - hardcode_direct=yes - hardcode_shlibpath_var=no - whole_archive_flag_spec='-all_load $convenience' - ;; - - freebsd1*) - ld_shlibs=no - ;; - - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor - # support. Future versions do this automatically, but an explicit c++rt0.o - # does not break anything, and helps significantly (at the cost of a little - # extra space). - freebsd2.2*) - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' - hardcode_libdir_flag_spec='-R$libdir' - hardcode_direct=yes - hardcode_shlibpath_var=no - ;; - - # Unfortunately, older versions of FreeBSD 2 do not have this feature. - freebsd2*) - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct=yes - hardcode_minus_L=yes - hardcode_shlibpath_var=no - ;; - - # FreeBSD 3 and greater uses gcc -shared to do shared libraries. - freebsd*) - archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' - hardcode_libdir_flag_spec='-R$libdir' - hardcode_direct=yes - hardcode_shlibpath_var=no - ;; - - hpux9* | hpux10* | hpux11*) - case $host_os in - hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;; - *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; - esac - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' - hardcode_libdir_separator=: - hardcode_direct=yes - hardcode_minus_L=yes # Not in the search PATH, but as the default - # location of the library. - export_dynamic_flag_spec='${wl}-E' - ;; - - irix5* | irix6* | nonstopux*) - if test "$GCC" = yes; then - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' - else - archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - hardcode_libdir_flag_spec='-rpath $libdir' - fi - hardcode_libdir_separator=: - link_all_deplibs=yes - ;; - - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out - else - archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF - fi - hardcode_libdir_flag_spec='-R$libdir' - hardcode_direct=yes - hardcode_shlibpath_var=no - ;; - - newsos6) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct=yes - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator=: - hardcode_shlibpath_var=no - ;; - - openbsd*) - hardcode_direct=yes - hardcode_shlibpath_var=no - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - hardcode_libdir_flag_spec='${wl}-rpath,$libdir' - export_dynamic_flag_spec='${wl}-E' - else - case "$host_os" in - openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec='-R$libdir' - ;; - *) - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - hardcode_libdir_flag_spec='${wl}-rpath,$libdir' - ;; - esac - fi - ;; - - os2*) - hardcode_libdir_flag_spec='-L$libdir' - hardcode_minus_L=yes - allow_undefined_flag=unsupported - archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' - old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' - ;; - - osf3*) - if test "$GCC" = yes; then - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - else - allow_undefined_flag=' -expect_unresolved \*' - archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - fi - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator=: - ;; - - osf4* | osf5*) # as osf3* with the addition of -msym flag - if test "$GCC" = yes; then - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' - else - allow_undefined_flag=' -expect_unresolved \*' - archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' - - #Both c and cxx compiler support -rpath directly - hardcode_libdir_flag_spec='-rpath $libdir' - fi - hardcode_libdir_separator=: - ;; - - sco3.2v5*) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_shlibpath_var=no - runpath_var=LD_RUN_PATH - hardcode_runpath_var=yes - export_dynamic_flag_spec='${wl}-Bexport' - ;; - - solaris*) - # gcc --version < 3.0 without binutils cannot create self contained - # shared libraries reliably, requiring libgcc.a to resolve some of - # the object symbols generated in some cases. Libraries that use - # assert need libgcc.a to resolve __eprintf, for example. Linking - # a copy of libgcc.a into every shared library to guarantee resolving - # such symbols causes other problems: According to Tim Van Holder - # , C++ libraries end up with a separate - # (to the application) exception stack for one thing. - no_undefined_flag=' -z defs' - if test "$GCC" = yes; then - case `$CC --version 2>/dev/null` in - [[12]].*) - cat <&2 - -*** Warning: Releases of GCC earlier than version 3.0 cannot reliably -*** create self contained shared libraries on Solaris systems, without -*** introducing a dependency on libgcc.a. Therefore, libtool is disabling -*** -no-undefined support, which will at least allow you to build shared -*** libraries. However, you may find that when you link such libraries -*** into an application without using GCC, you have to manually add -*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to -*** upgrade to a newer version of GCC. Another option is to rebuild your -*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer. - -EOF - no_undefined_flag= - ;; - esac - fi - # $CC -shared without GNU ld will not create a library from C++ - # object files and a static libstdc++, better avoid it by now - archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' - hardcode_libdir_flag_spec='-R$libdir' - hardcode_shlibpath_var=no - case $host_os in - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; - *) # Supported since Solaris 2.6 (maybe 2.5.1?) - whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; - esac - link_all_deplibs=yes - ;; - - sunos4*) - if test "x$host_vendor" = xsequent; then - # Use $CC to link under sequent, because it throws in some extra .o - # files that make .init and .fini sections work. - archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' - fi - hardcode_libdir_flag_spec='-L$libdir' - hardcode_direct=yes - hardcode_minus_L=yes - hardcode_shlibpath_var=no - ;; - - sysv4) - case $host_vendor in - sni) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct=yes # is this really true??? - ;; - siemens) - ## LD is ld it makes a PLAMLIB - ## CC just makes a GrossModule. - archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' - reload_cmds='$CC -r -o $output$reload_objs' - hardcode_direct=no - ;; - motorola) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct=no #Motorola manual says yes, but my tests say they lie - ;; - esac - runpath_var='LD_RUN_PATH' - hardcode_shlibpath_var=no - ;; - - sysv4.3*) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_shlibpath_var=no - export_dynamic_flag_spec='-Bexport' - ;; - - sysv5*) - no_undefined_flag=' -z text' - # $CC -shared without GNU ld will not create a library from C++ - # object files and a static libstdc++, better avoid it by now - archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' - hardcode_libdir_flag_spec= - hardcode_shlibpath_var=no - runpath_var='LD_RUN_PATH' - ;; - - uts4*) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec='-L$libdir' - hardcode_shlibpath_var=no - ;; - - dgux*) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec='-L$libdir' - hardcode_shlibpath_var=no - ;; - - sysv4*MP*) - if test -d /usr/nec; then - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_shlibpath_var=no - runpath_var=LD_RUN_PATH - hardcode_runpath_var=yes - ld_shlibs=yes - fi - ;; - - sysv4.2uw2*) - archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct=yes - hardcode_minus_L=no - hardcode_shlibpath_var=no - hardcode_runpath_var=yes - runpath_var=LD_RUN_PATH - ;; - - sysv5uw7* | unixware7*) - no_undefined_flag='${wl}-z ${wl}text' - if test "$GCC" = yes; then - archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - runpath_var='LD_RUN_PATH' - hardcode_shlibpath_var=no - ;; - - *) - ld_shlibs=no - ;; - esac + # MS-DOS does not allow filenames that begin with a dot. + lt_cv_objdir=_libs fi -AC_MSG_RESULT([$ld_shlibs]) -test "$ld_shlibs" = no && can_build_shared=no +rmdir .libs 2>/dev/null]) +objdir=$lt_cv_objdir +])# AC_LIBTOOL_OBJDIR + +# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) +# ---------------------------------------------- # Check hardcoding attributes. -AC_MSG_CHECKING([how to hardcode library paths into programs]) -hardcode_action= -if test -n "$hardcode_libdir_flag_spec" || \ - test -n "$runpath_var"; then +AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], +[AC_MSG_CHECKING([how to hardcode library paths into programs]) +_LT_AC_TAGVAR(hardcode_action, $1)= +if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ + test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \ + test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then # We can hardcode non-existant directories. - if test "$hardcode_direct" != no && + if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && # If the only mechanism to avoid hardcoding is shlibpath_var, we # have to relink, otherwise we might link with an installed library # when we should be linking with a yet-to-be-installed one - ## test "$hardcode_shlibpath_var" != no && - test "$hardcode_minus_L" != no; then + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no && + test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then # Linking always hardcodes the temporary library directory. - hardcode_action=relink + _LT_AC_TAGVAR(hardcode_action, $1)=relink else # We can link without hardcoding, and we can hardcode nonexisting dirs. - hardcode_action=immediate + _LT_AC_TAGVAR(hardcode_action, $1)=immediate fi else # We cannot hardcode anything, or else we can only hardcode existing # directories. - hardcode_action=unsupported + _LT_AC_TAGVAR(hardcode_action, $1)=unsupported fi -AC_MSG_RESULT([$hardcode_action]) +AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)]) -striplib= +if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then + # Fast installation is not supported + enable_fast_install=no +elif test "$shlibpath_overrides_runpath" = yes || + test "$enable_shared" = no; then + # Fast installation is not necessary + enable_fast_install=needless +fi +])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH + + +# AC_LIBTOOL_SYS_LIB_STRIP +# ------------------------ +AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP], +[striplib= old_striplib= AC_MSG_CHECKING([whether stripping libraries is possible]) if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then @@ -2743,17 +1130,33 @@ if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then test -z "$striplib" && striplib="$STRIP --strip-unneeded" AC_MSG_RESULT([yes]) else +# FIXME - insert some real tests, host_os isn't really good enough + case $host_os in + darwin*) + if test -n "$STRIP" ; then + striplib="$STRIP -x" + AC_MSG_RESULT([yes]) + else AC_MSG_RESULT([no]) fi + ;; + *) + AC_MSG_RESULT([no]) + ;; + esac +fi +])# AC_LIBTOOL_SYS_LIB_STRIP -reload_cmds='$LD$reload_flag -o $output$reload_objs' -test -z "$deplibs_check_method" && deplibs_check_method=unknown +# AC_LIBTOOL_SYS_DYNAMIC_LINKER +# ----------------------------- # PORTME Fill in your ld.so characteristics -AC_MSG_CHECKING([dynamic linker characteristics]) +AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], +[AC_MSG_CHECKING([dynamic linker characteristics]) library_names_spec= libname_spec='lib$name' soname_spec= +shrext_cmds=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= @@ -2763,16 +1166,35 @@ shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" -sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" +if test "$GCC" = yes; then + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then + # if the path contains ";" then we assume it to be the separator + # otherwise default to the standard path separator (i.e. ":") - it is + # assumed that no part of a normal pathname contains ";" but that should + # okay in the real world where ";" in dirpaths is itself problematic. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + else + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi +else + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" +fi +need_lib_prefix=unknown +hardcode_into_libs=no + +# when you set need_version to no, make sure it does not cause -set_version +# flags to be left without arguments +need_version=unknown case $host_os in aix3*) version_type=linux - library_names_spec='${libname}${release}.so$versuffix $libname.a' + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' shlibpath_var=LIBPATH - # AIX has no versioning support, so we append a major version to the name. - soname_spec='${libname}${release}.so$major' + # AIX 3 has no versioning support, so we append a major version to the name. + soname_spec='${libname}${release}${shared_ext}$major' ;; aix4* | aix5*) @@ -2782,7 +1204,7 @@ aix4* | aix5*) hardcode_into_libs=yes if test "$host_cpu" = ia64; then # AIX 5 supports IA64 - library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file @@ -2792,57 +1214,54 @@ aix4* | aix5*) # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[[01]] | aix4.[[01]].*) - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' - echo ' yes ' - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then - : - else - can_build_shared=no - fi - ;; + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' + echo ' yes ' + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then + : + else + can_build_shared=no + fi + ;; esac - # AIX (on Power*) has no versioning support, so currently we can - # not hardcode correct soname into executable. Probably we can - # add versioning support to collect2, so additional links can - # be useful in future. + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct + # soname into executable. Probably we can add versioning support to + # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' else # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='${libname}${release}.a $libname.a' - soname_spec='${libname}${release}.so$major' + soname_spec='${libname}${release}${shared_ext}$major' fi shlibpath_var=LIBPATH fi - hardcode_into_libs=yes ;; amigaos*) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done' + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; beos*) - library_names_spec='${libname}.so' + library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; -bsdi4*) +bsdi[[45]]*) version_type=linux need_version=no - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' - soname_spec='${libname}${release}.so$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" - export_dynamic_flag_spec=-rdynamic # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs @@ -2850,29 +1269,55 @@ bsdi4*) cygwin* | mingw* | pw32*) version_type=windows + shrext_cmds=".dll" need_version=no need_lib_prefix=no + case $GCC,$host_os in - yes,cygwin*) + yes,cygwin* | yes,mingw* | yes,pw32*) library_names_spec='$libname.dll.a' - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll' - postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ - $install_prog .libs/$dlname \$dldir/$dlname' - postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ + $install_prog $dir/$dlname \$dldir/$dlname' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $rm \$dlpath' + shlibpath_overrides_runpath=yes + + case $host_os in + cygwin*) + # Cygwin DLLs use 'cyg' prefix rather than 'lib' + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" + ;; + mingw*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` + if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then + # It is most probably a Windows format PATH printed by + # mingw gcc, but we are running on Cygwin. Gcc prints its search + # path with ; separators, and with drive letters. We can handle the + # drive letters (cygwin fileutils understands them), so leave them, + # especially as we might pass files found there to a mingw objdump, + # which wouldn't understand a cygwinified path. Ahh. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + else + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + ;; + pw32*) + # pw32 DLLs use 'pw' prefix rather than 'lib' + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' + ;; + esac ;; - yes,mingw*) - library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll' - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"` - ;; - yes,pw32*) - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' - ;; + *) - library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll $libname.lib' + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' ;; esac dynamic_linker='Win32 ld.exe' @@ -2885,30 +1330,58 @@ darwin* | rhapsody*) version_type=darwin need_lib_prefix=no need_version=no - # FIXME: Relying on posixy $() will cause problems for - # cross-compilation, but unfortunately the echo tests do not - # yet detect zsh echo's removal of \ escapes. - library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)' - soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' + soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH + shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. + if test "$GCC" = yes; then + sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` + else + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' + fi + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' + ;; + +dgux*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH ;; freebsd1*) dynamic_linker=no ;; -freebsd*) +kfreebsd*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='GNU ld.so' + ;; + +freebsd* | dragonfly*) + # DragonFly does not have aout. When/if they implement a new + # versioning mechanism, adjust this. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` version_type=freebsd-$objformat case $version_type in freebsd-elf*) - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; freebsd-*) - library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; esac @@ -2917,7 +1390,11 @@ freebsd*) freebsd2*) shlibpath_overrides_runpath=yes ;; - *) + freebsd3.[[01]]* | freebsdelf3.[[01]]*) + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + *) # from 3.2 on shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; @@ -2928,8 +1405,8 @@ gnu*) version_type=linux need_lib_prefix=no need_version=no - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' - soname_spec='${libname}${release}.so$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes ;; @@ -2937,14 +1414,45 @@ gnu*) hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. - dynamic_linker="$host_os dld.sl" version_type=sunos need_lib_prefix=no need_version=no - shlibpath_var=SHLIB_PATH - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH - library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' - soname_spec='${libname}${release}.sl$major' + case "$host_cpu" in + ia64*) + shrext_cmds='.so' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.so" + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + if test "X$HPUX_IA64_MODE" = X32; then + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" + else + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" + fi + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + hppa*64*) + shrext_cmds='.sl' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.sl" + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + *) + shrext_cmds='.sl' + dynamic_linker="$host_os dld.sl" + shlibpath_var=SHLIB_PATH + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + ;; + esac # HP-UX runs *really* slowly unless shared libraries are mode 555. postinstall_cmds='chmod 555 $lib' ;; @@ -2952,21 +1460,29 @@ hpux9* | hpux10* | hpux11*) irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; - *) version_type=irix ;; + *) + if test "$lt_cv_prog_gnu_ld" = yes; then + version_type=linux + else + version_type=irix + fi ;; esac need_lib_prefix=no need_version=no - soname_spec='${libname}${release}.so$major' - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD - *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; - *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; - *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") + libsuff= shlibsuff= libmagic=32-bit;; + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") + libsuff=32 shlibsuff=N32 libmagic=N32;; + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") + libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; @@ -2975,20 +1491,21 @@ irix5* | irix6* | nonstopux*) shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" + hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. -linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*) +linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; # This must be Linux ELF. -linux-gnu*) +linux*) version_type=linux need_lib_prefix=no need_version=no - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' - soname_spec='${libname}${release}.so$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no @@ -2997,6 +1514,29 @@ linux-gnu*) # before this can be enabled. hardcode_into_libs=yes + # find out which ABI we are using + libsuff= + case "$host_cpu" in + x86_64*|s390x*|powerpc64*) + echo '[#]line __oline__ "configure"' > conftest.$ac_ext + if AC_TRY_EVAL(ac_compile); then + case `/usr/bin/file conftest.$ac_objext` in + *64-bit*) + libsuff=64 + sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" + ;; + esac + fi + rm -rf conftest* + ;; + esac + + # Append ld.so.conf contents to the search path + if test -f /etc/ld.so.conf; then + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` + sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" + fi + # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, @@ -3006,17 +1546,29 @@ linux-gnu*) dynamic_linker='GNU/Linux ld.so' ;; +knetbsd*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='GNU ld.so' + ;; + netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' - soname_spec='${libname}${release}.so$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH @@ -3026,7 +1578,17 @@ netbsd*) newsos6) version_type=linux - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +nto-qnx*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; @@ -3035,46 +1597,47 @@ openbsd*) version_type=sunos need_lib_prefix=no need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + shlibpath_var=LD_LIBRARY_PATH if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - case "$host_os" in - openbsd2.[[89]] | openbsd2.[[89]].*) - shlibpath_overrides_runpath=no - ;; - *) - shlibpath_overrides_runpath=yes - ;; - esac + case $host_os in + openbsd2.[[89]] | openbsd2.[[89]].*) + shlibpath_overrides_runpath=no + ;; + *) + shlibpath_overrides_runpath=yes + ;; + esac else shlibpath_overrides_runpath=yes fi - library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - shlibpath_var=LD_LIBRARY_PATH ;; os2*) libname_spec='$name' + shrext_cmds=".dll" need_lib_prefix=no - library_names_spec='$libname.dll $libname.a' + library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; osf3* | osf4* | osf5*) version_type=osf + need_lib_prefix=no need_version=no - soname_spec='${libname}${release}.so$major' - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" - hardcode_into_libs=yes ;; sco3.2v5*) version_type=osf - soname_spec='${libname}${release}.so$major' - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH ;; @@ -3082,8 +1645,8 @@ solaris*) version_type=linux need_lib_prefix=no need_version=no - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' - soname_spec='${libname}${release}.so$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes @@ -3093,7 +1656,7 @@ solaris*) sunos4*) version_type=sunos - library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes @@ -3105,8 +1668,8 @@ sunos4*) sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) version_type=linux - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' - soname_spec='${libname}${release}.so$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) @@ -3127,39 +1690,948 @@ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) esac ;; -uts4*) - version_type=linux - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' - soname_spec='${libname}${release}.so$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -dgux*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' - soname_spec='${libname}${release}.so$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - sysv4*MP*) if test -d /usr/nec ;then version_type=linux - library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' - soname_spec='$libname.so.$major' + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' + soname_spec='$libname${shared_ext}.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; +uts4*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + *) dynamic_linker=no ;; esac AC_MSG_RESULT([$dynamic_linker]) test "$dynamic_linker" = no && can_build_shared=no +])# AC_LIBTOOL_SYS_DYNAMIC_LINKER -# Report the final consequences. + +# _LT_AC_TAGCONFIG +# ---------------- +AC_DEFUN([_LT_AC_TAGCONFIG], +[AC_ARG_WITH([tags], + [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@], + [include additional configurations @<:@automatic@:>@])], + [tagnames="$withval"]) + +if test -f "$ltmain" && test -n "$tagnames"; then + if test ! -f "${ofile}"; then + AC_MSG_WARN([output file `$ofile' does not exist]) + fi + + if test -z "$LTCC"; then + eval "`$SHELL ${ofile} --config | grep '^LTCC='`" + if test -z "$LTCC"; then + AC_MSG_WARN([output file `$ofile' does not look like a libtool script]) + else + AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) + fi + fi + + # Extract list of available tagged configurations in $ofile. + # Note that this assumes the entire list is on one line. + available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` + + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for tagname in $tagnames; do + IFS="$lt_save_ifs" + # Check whether tagname contains only valid characters + case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in + "") ;; + *) AC_MSG_ERROR([invalid tag name: $tagname]) + ;; + esac + + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null + then + AC_MSG_ERROR([tag name \"$tagname\" already exists]) + fi + + # Update the list of available tags. + if test -n "$tagname"; then + echo appending configuration tag \"$tagname\" to $ofile + + case $tagname in + CXX) + if test -n "$CXX" && ( test "X$CXX" != "Xno" && + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || + (test "X$CXX" != "Xg++"))) ; then + AC_LIBTOOL_LANG_CXX_CONFIG + else + tagname="" + fi + ;; + + F77) + if test -n "$F77" && test "X$F77" != "Xno"; then + AC_LIBTOOL_LANG_F77_CONFIG + else + tagname="" + fi + ;; + + GCJ) + if test -n "$GCJ" && test "X$GCJ" != "Xno"; then + AC_LIBTOOL_LANG_GCJ_CONFIG + else + tagname="" + fi + ;; + + RC) + AC_LIBTOOL_LANG_RC_CONFIG + ;; + + *) + AC_MSG_ERROR([Unsupported tag name: $tagname]) + ;; + esac + + # Append the new tag name to the list of available tags. + if test -n "$tagname" ; then + available_tags="$available_tags $tagname" + fi + fi + done + IFS="$lt_save_ifs" + + # Now substitute the updated list of available tags. + if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then + mv "${ofile}T" "$ofile" + chmod +x "$ofile" + else + rm -f "${ofile}T" + AC_MSG_ERROR([unable to update list of available tagged configurations.]) + fi +fi +])# _LT_AC_TAGCONFIG + + +# AC_LIBTOOL_DLOPEN +# ----------------- +# enable checks for dlopen support +AC_DEFUN([AC_LIBTOOL_DLOPEN], + [AC_BEFORE([$0],[AC_LIBTOOL_SETUP]) +])# AC_LIBTOOL_DLOPEN + + +# AC_LIBTOOL_WIN32_DLL +# -------------------- +# declare package support for building win32 dll's +AC_DEFUN([AC_LIBTOOL_WIN32_DLL], +[AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) +])# AC_LIBTOOL_WIN32_DLL + + +# AC_ENABLE_SHARED([DEFAULT]) +# --------------------------- +# implement the --enable-shared flag +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. +AC_DEFUN([AC_ENABLE_SHARED], +[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl +AC_ARG_ENABLE([shared], + [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@], + [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])], + [p=${PACKAGE-default} + case $enableval in + yes) enable_shared=yes ;; + no) enable_shared=no ;; + *) + enable_shared=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_shared=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac], + [enable_shared=]AC_ENABLE_SHARED_DEFAULT) +])# AC_ENABLE_SHARED + + +# AC_DISABLE_SHARED +# ----------------- +#- set the default shared flag to --disable-shared +AC_DEFUN([AC_DISABLE_SHARED], +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl +AC_ENABLE_SHARED(no) +])# AC_DISABLE_SHARED + + +# AC_ENABLE_STATIC([DEFAULT]) +# --------------------------- +# implement the --enable-static flag +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. +AC_DEFUN([AC_ENABLE_STATIC], +[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl +AC_ARG_ENABLE([static], + [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@], + [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])], + [p=${PACKAGE-default} + case $enableval in + yes) enable_static=yes ;; + no) enable_static=no ;; + *) + enable_static=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_static=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac], + [enable_static=]AC_ENABLE_STATIC_DEFAULT) +])# AC_ENABLE_STATIC + + +# AC_DISABLE_STATIC +# ----------------- +# set the default static flag to --disable-static +AC_DEFUN([AC_DISABLE_STATIC], +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl +AC_ENABLE_STATIC(no) +])# AC_DISABLE_STATIC + + +# AC_ENABLE_FAST_INSTALL([DEFAULT]) +# --------------------------------- +# implement the --enable-fast-install flag +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. +AC_DEFUN([AC_ENABLE_FAST_INSTALL], +[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl +AC_ARG_ENABLE([fast-install], + [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], + [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], + [p=${PACKAGE-default} + case $enableval in + yes) enable_fast_install=yes ;; + no) enable_fast_install=no ;; + *) + enable_fast_install=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_fast_install=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac], + [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT) +])# AC_ENABLE_FAST_INSTALL + + +# AC_DISABLE_FAST_INSTALL +# ----------------------- +# set the default to --disable-fast-install +AC_DEFUN([AC_DISABLE_FAST_INSTALL], +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl +AC_ENABLE_FAST_INSTALL(no) +])# AC_DISABLE_FAST_INSTALL + + +# AC_LIBTOOL_PICMODE([MODE]) +# -------------------------- +# implement the --with-pic flag +# MODE is either `yes' or `no'. If omitted, it defaults to `both'. +AC_DEFUN([AC_LIBTOOL_PICMODE], +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl +pic_mode=ifelse($#,1,$1,default) +])# AC_LIBTOOL_PICMODE + + +# AC_PROG_EGREP +# ------------- +# This is predefined starting with Autoconf 2.54, so this conditional +# definition can be removed once we require Autoconf 2.54 or later. +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP], +[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep], + [if echo a | (grep -E '(a|b)') >/dev/null 2>&1 + then ac_cv_prog_egrep='grep -E' + else ac_cv_prog_egrep='egrep' + fi]) + EGREP=$ac_cv_prog_egrep + AC_SUBST([EGREP]) +])]) + + +# AC_PATH_TOOL_PREFIX +# ------------------- +# find a file program which can recognise shared library +AC_DEFUN([AC_PATH_TOOL_PREFIX], +[AC_REQUIRE([AC_PROG_EGREP])dnl +AC_MSG_CHECKING([for $1]) +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, +[case $MAGIC_CMD in +[[\\/*] | ?:[\\/]*]) + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. + ;; +*) + lt_save_MAGIC_CMD="$MAGIC_CMD" + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR +dnl $ac_dummy forces splitting on constant user-supplied paths. +dnl POSIX.2 word splitting is done only on the output of word expansions, +dnl not every word. This closes a longstanding sh security hole. + ac_dummy="ifelse([$2], , $PATH, [$2])" + for ac_dir in $ac_dummy; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/$1; then + lt_cv_path_MAGIC_CMD="$ac_dir/$1" + if test -n "$file_magic_test_file"; then + case $deplibs_check_method in + "file_magic "*) + file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" + MAGIC_CMD="$lt_cv_path_MAGIC_CMD" + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | + $EGREP "$file_magic_regex" > /dev/null; then + : + else + cat <&2 + +*** Warning: the command libtool uses to detect shared libraries, +*** $file_magic_cmd, produces output that libtool cannot recognize. +*** The result is that libtool may fail to recognize shared libraries +*** as such. This will affect the creation of libtool libraries that +*** depend on shared libraries, but programs linked with such libtool +*** libraries will work regardless of this problem. Nevertheless, you +*** may want to report the problem to your system manager and/or to +*** bug-libtool@gnu.org + +EOF + fi ;; + esac + fi + break + fi + done + IFS="$lt_save_ifs" + MAGIC_CMD="$lt_save_MAGIC_CMD" + ;; +esac]) +MAGIC_CMD="$lt_cv_path_MAGIC_CMD" +if test -n "$MAGIC_CMD"; then + AC_MSG_RESULT($MAGIC_CMD) +else + AC_MSG_RESULT(no) +fi +])# AC_PATH_TOOL_PREFIX + + +# AC_PATH_MAGIC +# ------------- +# find a file program which can recognise a shared library +AC_DEFUN([AC_PATH_MAGIC], +[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) +if test -z "$lt_cv_path_MAGIC_CMD"; then + if test -n "$ac_tool_prefix"; then + AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) + else + MAGIC_CMD=: + fi +fi +])# AC_PATH_MAGIC + + +# AC_PROG_LD +# ---------- +# find the pathname to the GNU or non-GNU linker +AC_DEFUN([AC_PROG_LD], +[AC_ARG_WITH([gnu-ld], + [AC_HELP_STRING([--with-gnu-ld], + [assume the C compiler uses GNU ld @<:@default=no@:>@])], + [test "$withval" = no || with_gnu_ld=yes], + [with_gnu_ld=no]) +AC_REQUIRE([LT_AC_PROG_SED])dnl +AC_REQUIRE([AC_PROG_CC])dnl +AC_REQUIRE([AC_CANONICAL_HOST])dnl +AC_REQUIRE([AC_CANONICAL_BUILD])dnl +ac_prog=ld +if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + AC_MSG_CHECKING([for ld used by $CC]) + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [[\\/]]* | ?:[[\\/]]*) + re_direlt='/[[^/]][[^/]]*/\.\./' + # Canonicalize the pathname of ld + ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do + ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` + done + test -z "$LD" && LD="$ac_prog" + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test "$with_gnu_ld" = yes; then + AC_MSG_CHECKING([for GNU ld]) +else + AC_MSG_CHECKING([for non-GNU ld]) +fi +AC_CACHE_VAL(lt_cv_path_LD, +[if test -z "$LD"; then + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + lt_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some GNU ld's only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$lt_cv_path_LD" -v 2>&1 &1 /dev/null; then + case $host_cpu in + i*86 ) + # Not sure whether the presence of OpenBSD here was a mistake. + # Let's accept both of them until this is cleared up. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` + ;; + esac + else + lt_cv_deplibs_check_method=pass_all + fi + ;; + +gnu*) + lt_cv_deplibs_check_method=pass_all + ;; + +hpux10.20* | hpux11*) + lt_cv_file_magic_cmd=/usr/bin/file + case "$host_cpu" in + ia64*) + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so + ;; + hppa*64*) + [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'] + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl + ;; + *) + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' + lt_cv_file_magic_test_file=/usr/lib/libc.sl + ;; + esac + ;; + +irix5* | irix6* | nonstopux*) + case $LD in + *-32|*"-32 ") libmagic=32-bit;; + *-n32|*"-n32 ") libmagic=N32;; + *-64|*"-64 ") libmagic=64-bit;; + *) libmagic=never-match;; + esac + lt_cv_deplibs_check_method=pass_all + ;; + +# This must be Linux ELF. +linux*) + lt_cv_deplibs_check_method=pass_all + ;; + +netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' + fi + ;; + +newos6*) + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' + lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_test_file=/usr/lib/libnls.so + ;; + +nto-qnx*) + lt_cv_deplibs_check_method=unknown + ;; + +openbsd*) + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' + fi + ;; + +osf3* | osf4* | osf5*) + lt_cv_deplibs_check_method=pass_all + ;; + +sco3.2v5*) + lt_cv_deplibs_check_method=pass_all + ;; + +solaris*) + lt_cv_deplibs_check_method=pass_all + ;; + +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) + case $host_vendor in + motorola) + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` + ;; + ncr) + lt_cv_deplibs_check_method=pass_all + ;; + sequent) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' + ;; + sni) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" + lt_cv_file_magic_test_file=/lib/libc.so + ;; + siemens) + lt_cv_deplibs_check_method=pass_all + ;; + esac + ;; + +sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*) + lt_cv_deplibs_check_method=pass_all + ;; +esac +]) +file_magic_cmd=$lt_cv_file_magic_cmd +deplibs_check_method=$lt_cv_deplibs_check_method +test -z "$deplibs_check_method" && deplibs_check_method=unknown +])# AC_DEPLIBS_CHECK_METHOD + + +# AC_PROG_NM +# ---------- +# find the pathname to a BSD-compatible name lister +AC_DEFUN([AC_PROG_NM], +[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM, +[if test -n "$NM"; then + # Let the user override the test. + lt_cv_path_NM="$NM" +else + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + tmp_nm="$ac_dir/${ac_tool_prefix}nm" + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then + # Check to see if the nm accepts a BSD-compat flag. + # Adding the `sed 1q' prevents false positives on HP-UX, which says: + # nm: unknown option "B" ignored + # Tru64's nm complains that /dev/null is an invalid object file + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in + */dev/null* | *'Invalid file or object type'*) + lt_cv_path_NM="$tmp_nm -B" + break + ;; + *) + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in + */dev/null*) + lt_cv_path_NM="$tmp_nm -p" + break + ;; + *) + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but + continue # so that we can try to find one that supports BSD flags + ;; + esac + esac + fi + done + IFS="$lt_save_ifs" + test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm +fi]) +NM="$lt_cv_path_NM" +])# AC_PROG_NM + + +# AC_CHECK_LIBM +# ------------- +# check for math library +AC_DEFUN([AC_CHECK_LIBM], +[AC_REQUIRE([AC_CANONICAL_HOST])dnl +LIBM= +case $host in +*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) + # These system don't have libm, or don't need it + ;; +*-ncr-sysv4.3*) + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") + ;; +*) + AC_CHECK_LIB(m, cos, LIBM="-lm") + ;; +esac +])# AC_CHECK_LIBM + + +# AC_LIBLTDL_CONVENIENCE([DIRECTORY]) +# ----------------------------------- +# sets LIBLTDL to the link flags for the libltdl convenience library and +# LTDLINCL to the include flags for the libltdl header and adds +# --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL +# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If +# DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will +# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with +# '${top_srcdir}/' (note the single quotes!). If your package is not +# flat and you're not using automake, define top_builddir and +# top_srcdir appropriately in the Makefiles. +AC_DEFUN([AC_LIBLTDL_CONVENIENCE], +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl + case $enable_ltdl_convenience in + no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; + "") enable_ltdl_convenience=yes + ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; + esac + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) + # For backwards non-gettext consistent compatibility... + INCLTDL="$LTDLINCL" +])# AC_LIBLTDL_CONVENIENCE + + +# AC_LIBLTDL_INSTALLABLE([DIRECTORY]) +# ----------------------------------- +# sets LIBLTDL to the link flags for the libltdl installable library and +# LTDLINCL to the include flags for the libltdl header and adds +# --enable-ltdl-install to the configure arguments. Note that LIBLTDL +# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If +# DIRECTORY is not provided and an installed libltdl is not found, it is +# assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/' +# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single +# quotes!). If your package is not flat and you're not using automake, +# define top_builddir and top_srcdir appropriately in the Makefiles. +# In the future, this macro may have to be called after AC_PROG_LIBTOOL. +AC_DEFUN([AC_LIBLTDL_INSTALLABLE], +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl + AC_CHECK_LIB(ltdl, lt_dlinit, + [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], + [if test x"$enable_ltdl_install" = xno; then + AC_MSG_WARN([libltdl not installed, but installation disabled]) + else + enable_ltdl_install=yes + fi + ]) + if test x"$enable_ltdl_install" = x"yes"; then + ac_configure_args="$ac_configure_args --enable-ltdl-install" + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) + else + ac_configure_args="$ac_configure_args --enable-ltdl-install=no" + LIBLTDL="-lltdl" + LTDLINCL= + fi + # For backwards non-gettext consistent compatibility... + INCLTDL="$LTDLINCL" +])# AC_LIBLTDL_INSTALLABLE + + +# AC_LIBTOOL_CXX +# -------------- +# enable support for C++ libraries +AC_DEFUN([AC_LIBTOOL_CXX], +[AC_REQUIRE([_LT_AC_LANG_CXX]) +])# AC_LIBTOOL_CXX + + +# _LT_AC_LANG_CXX +# --------------- +AC_DEFUN([_LT_AC_LANG_CXX], +[AC_REQUIRE([AC_PROG_CXX]) +AC_REQUIRE([_LT_AC_PROG_CXXCPP]) +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) +])# _LT_AC_LANG_CXX + +# _LT_AC_PROG_CXXCPP +# --------------- +AC_DEFUN([_LT_AC_PROG_CXXCPP], +[ +AC_REQUIRE([AC_PROG_CXX]) +if test -n "$CXX" && ( test "X$CXX" != "Xno" && + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || + (test "X$CXX" != "Xg++"))) ; then + AC_PROG_CXXCPP +fi +])# _LT_AC_PROG_CXXCPP + +# AC_LIBTOOL_F77 +# -------------- +# enable support for Fortran 77 libraries +AC_DEFUN([AC_LIBTOOL_F77], +[AC_REQUIRE([_LT_AC_LANG_F77]) +])# AC_LIBTOOL_F77 + + +# _LT_AC_LANG_F77 +# --------------- +AC_DEFUN([_LT_AC_LANG_F77], +[AC_REQUIRE([AC_PROG_F77]) +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77]) +])# _LT_AC_LANG_F77 + + +# AC_LIBTOOL_GCJ +# -------------- +# enable support for GCJ libraries +AC_DEFUN([AC_LIBTOOL_GCJ], +[AC_REQUIRE([_LT_AC_LANG_GCJ]) +])# AC_LIBTOOL_GCJ + + +# _LT_AC_LANG_GCJ +# --------------- +AC_DEFUN([_LT_AC_LANG_GCJ], +[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[], + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[], + [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[], + [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])], + [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])], + [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])]) +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ]) +])# _LT_AC_LANG_GCJ + + +# AC_LIBTOOL_RC +# -------------- +# enable support for Windows resource files +AC_DEFUN([AC_LIBTOOL_RC], +[AC_REQUIRE([LT_AC_PROG_RC]) +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC]) +])# AC_LIBTOOL_RC + + +# AC_LIBTOOL_LANG_C_CONFIG +# ------------------------ +# Ensure that the configuration vars for the C compiler are +# suitably defined. Those variables are subsequently used by +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. +AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG]) +AC_DEFUN([_LT_AC_LANG_C_CONFIG], +[lt_save_CC="$CC" +AC_LANG_PUSH(C) + +# Source file extension for C test sources. +ac_ext=c + +# Object file extension for compiled C test sources. +objext=o +_LT_AC_TAGVAR(objext, $1)=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code="int some_variable = 0;\n" + +# Code to be used in simple link tests +lt_simple_link_test_code='int main(){return(0);}\n' + +_LT_AC_SYS_COMPILER + +# save warnings/boilerplate of simple test code +_LT_COMPILER_BOILERPLATE +_LT_LINKER_BOILERPLATE + +# +# Check for any special shared library compilation flags. +# +_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)= +if test "$GCC" = no; then + case $host_os in + sco3.2v5*) + _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf' + ;; + esac +fi +if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then + AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries]) + if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then : + else + AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure]) + _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no + fi +fi + + +# +# Check to make sure the static flag actually works. +# +AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works], + _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1), + $_LT_AC_TAGVAR(lt_prog_compiler_static, $1), + [], + [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) + + +AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) +AC_LIBTOOL_PROG_COMPILER_PIC($1) +AC_LIBTOOL_PROG_CC_C_O($1) +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) +AC_LIBTOOL_PROG_LD_SHLIBS($1) +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) +AC_LIBTOOL_SYS_LIB_STRIP +AC_LIBTOOL_DLOPEN_SELF($1) + +# Report which librarie types wil actually be built AC_MSG_CHECKING([if libtool supports shared libraries]) AC_MSG_RESULT([$can_build_shared]) @@ -3177,7 +2649,1188 @@ aix3*) fi ;; -aix4*) +aix4* | aix5*) + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then + test "$enable_shared" = yes && enable_static=no + fi + ;; +esac +AC_MSG_RESULT([$enable_shared]) + +AC_MSG_CHECKING([whether to build static libraries]) +# Make sure either enable_shared or enable_static is yes. +test "$enable_shared" = yes || enable_static=yes +AC_MSG_RESULT([$enable_static]) + +AC_LIBTOOL_CONFIG($1) + +AC_LANG_POP +CC="$lt_save_CC" +])# AC_LIBTOOL_LANG_C_CONFIG + + +# AC_LIBTOOL_LANG_CXX_CONFIG +# -------------------------- +# Ensure that the configuration vars for the C compiler are +# suitably defined. Those variables are subsequently used by +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. +AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)]) +AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], +[AC_LANG_PUSH(C++) +AC_REQUIRE([AC_PROG_CXX]) +AC_REQUIRE([_LT_AC_PROG_CXXCPP]) + +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no +_LT_AC_TAGVAR(allow_undefined_flag, $1)= +_LT_AC_TAGVAR(always_export_symbols, $1)=no +_LT_AC_TAGVAR(archive_expsym_cmds, $1)= +_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= +_LT_AC_TAGVAR(hardcode_direct, $1)=no +_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= +_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= +_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= +_LT_AC_TAGVAR(hardcode_minus_L, $1)=no +_LT_AC_TAGVAR(hardcode_automatic, $1)=no +_LT_AC_TAGVAR(module_cmds, $1)= +_LT_AC_TAGVAR(module_expsym_cmds, $1)= +_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds +_LT_AC_TAGVAR(no_undefined_flag, $1)= +_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= +_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no + +# Dependencies to place before and after the object being linked: +_LT_AC_TAGVAR(predep_objects, $1)= +_LT_AC_TAGVAR(postdep_objects, $1)= +_LT_AC_TAGVAR(predeps, $1)= +_LT_AC_TAGVAR(postdeps, $1)= +_LT_AC_TAGVAR(compiler_lib_search_path, $1)= + +# Source file extension for C++ test sources. +ac_ext=cc + +# Object file extension for compiled C++ test sources. +objext=o +_LT_AC_TAGVAR(objext, $1)=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code="int some_variable = 0;\n" + +# Code to be used in simple link tests +lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' + +# ltmain only uses $CC for tagged configurations so make sure $CC is set. +_LT_AC_SYS_COMPILER + +# save warnings/boilerplate of simple test code +_LT_COMPILER_BOILERPLATE +_LT_LINKER_BOILERPLATE + +# Allow CC to be a program name with arguments. +lt_save_CC=$CC +lt_save_LD=$LD +lt_save_GCC=$GCC +GCC=$GXX +lt_save_with_gnu_ld=$with_gnu_ld +lt_save_path_LD=$lt_cv_path_LD +if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx +else + unset lt_cv_prog_gnu_ld +fi +if test -n "${lt_cv_path_LDCXX+set}"; then + lt_cv_path_LD=$lt_cv_path_LDCXX +else + unset lt_cv_path_LD +fi +test -z "${LDCXX+set}" || LD=$LDCXX +CC=${CXX-"c++"} +compiler=$CC +_LT_AC_TAGVAR(compiler, $1)=$CC +_LT_CC_BASENAME([$compiler]) + +# We don't want -fno-exception wen compiling C++ code, so set the +# no_builtin_flag separately +if test "$GXX" = yes; then + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' +else + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= +fi + +if test "$GXX" = yes; then + # Set up default GNU C++ configuration + + AC_PROG_LD + + # Check if GNU C++ uses GNU ld as the underlying linker, since the + # archiving commands below assume that GNU ld is being used. + if test "$with_gnu_ld" = yes; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' + + # If archive_cmds runs LD, not CC, wlarc should be empty + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to + # investigate it a little bit more. (MM) + wlarc='${wl}' + + # ancient GNU ld didn't support --whole-archive et. al. + if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ + grep 'no-whole-archive' > /dev/null; then + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= + fi + else + with_gnu_ld=no + wlarc= + + # A generic and very simple default shared library creation + # command for GNU C++ for the case where it uses the native + # linker, instead of GNU ld. If possible, this setting should + # overridden to take advantage of the native linker features on + # the platform it is being used on. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' + fi + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' + +else + GXX=no + with_gnu_ld=no + wlarc= +fi + +# PORTME: fill in a description of your system's C++ link characteristics +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) +_LT_AC_TAGVAR(ld_shlibs, $1)=yes +case $host_os in + aix3*) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + aix4* | aix5*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag="" + else + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) + for ld_flag in $LDFLAGS; do + case $ld_flag in + *-brtl*) + aix_use_runtimelinking=yes + break + ;; + esac + done + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + _LT_AC_TAGVAR(archive_cmds, $1)='' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes + + if test "$GXX" = yes; then + case $host_os in aix4.[[012]]|aix4.[[012]].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && \ + strings "$collect2name" | grep resolve_lib_name >/dev/null + then + # We have reworked collect2 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + else + # We have old collect2 + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= + fi + esac + shared_flag='-shared' + if test "$aix_use_runtimelinking" = yes; then + shared_flag="$shared_flag "'${wl}-G' + fi + else + # not using gcc + if test "$host_cpu" = ia64; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test "$aix_use_runtimelinking" = yes; then + shared_flag='${wl}-G' + else + shared_flag='${wl}-bM:SRE' + fi + fi + fi + + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to export. + _LT_AC_TAGVAR(always_export_symbols, $1)=yes + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' + # Determine the default libpath from the value encoded in an empty executable. + _LT_AC_SYS_LIBPATH_AIX + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" + + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else + if test "$host_cpu" = ia64; then + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' + _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an empty executable. + _LT_AC_SYS_LIBPATH_AIX + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' + # -bexpall does not export symbols beginning with underscore (_) + _LT_AC_TAGVAR(always_export_symbols, $1)=yes + # Exported symbols can be pulled into shared objects from archives + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' ' + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes + # This is similar to how AIX traditionally builds it's shared libraries. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' + fi + fi + ;; + chorus*) + case $cc_basename in + *) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + + + cygwin* | mingw* | pw32*) + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, + # as there is no search path for DLLs. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_AC_TAGVAR(always_export_symbols, $1)=no + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is; otherwise, prepend... + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' + else + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + darwin* | rhapsody*) + case "$host_os" in + rhapsody* | darwin1.[[012]]) + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' + ;; + *) # Darwin 1.3 on + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' + else + case ${MACOSX_DEPLOYMENT_TARGET} in + 10.[[012]]) + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' + ;; + 10.*) + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' + ;; + esac + fi + ;; + esac + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_AC_TAGVAR(hardcode_direct, $1)=no + _LT_AC_TAGVAR(hardcode_automatic, $1)=yes + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes + + if test "$GXX" = yes ; then + lt_int_apple_cc_single_mod=no + output_verbose_link_cmd='echo' + if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then + lt_int_apple_cc_single_mod=yes + fi + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' + else + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' + fi + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + else + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + fi + _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + else + case $cc_basename in + xlc*) + output_verbose_link_cmd='echo' + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + ;; + *) + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + esac + fi + ;; + + dgux*) + case $cc_basename in + ec++*) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + ghcx*) + # Green Hills C++ Compiler + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + *) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + freebsd[[12]]*) + # C++ shared libraries reported to be fairly broken before switch to ELF + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + freebsd-elf*) + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no + ;; + freebsd* | kfreebsd*-gnu | dragonfly*) + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF + # conventions + _LT_AC_TAGVAR(ld_shlibs, $1)=yes + ;; + gnu*) + ;; + hpux9*) + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, + # but as the default + # location of the library. + + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + aCC*) + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + ;; + *) + if test "$GXX" = yes; then + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + else + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + ;; + hpux10*|hpux11*) + if test $with_gnu_ld = no; then + case "$host_cpu" in + hppa*64*) + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + ;; + ia64*) + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + ;; + *) + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + ;; + esac + fi + case "$host_cpu" in + hppa*64*) + _LT_AC_TAGVAR(hardcode_direct, $1)=no + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + ia64*) + _LT_AC_TAGVAR(hardcode_direct, $1)=no + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, + # but as the default + # location of the library. + ;; + *) + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, + # but as the default + # location of the library. + ;; + esac + + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + aCC*) + case "$host_cpu" in + hppa*64*|ia64*) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' + ;; + *) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + esac + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + ;; + *) + if test "$GXX" = yes; then + if test $with_gnu_ld = no; then + case "$host_cpu" in + ia64*|hppa*64*) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' + ;; + *) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + esac + fi + else + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + ;; + irix5* | irix6*) + case $cc_basename in + CC*) + # SGI C++ + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + + # Archives containing C++ object files must be created using + # "CC -ar", where "CC" is the IRIX C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' + ;; + *) + if test "$GXX" = yes; then + if test "$with_gnu_ld" = no; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' + fi + fi + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes + ;; + esac + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + ;; + linux*) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir' + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' + + # Archives containing C++ object files must be created using + # "CC -Bstatic", where "CC" is the KAI C++ compiler. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' + ;; + icpc*) + # Intel C++ + with_gnu_ld=yes + # version 8.0 and above of icpc choke on multiply defined symbols + # if we add $predep_objects and $postdep_objects, however 7.1 and + # earlier do not add the objects themselves. + case `$CC -V 2>&1` in + *"Version 7."*) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + ;; + *) # Version 8.0 or newer + tmp_idyn= + case $host_cpu in + ia64*) tmp_idyn=' -i_dynamic';; + esac + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + ;; + esac + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' + ;; + pgCC*) + # Portland Group C++ compiler + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' + + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' + ;; + cxx*) + # Compaq C++ + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' + + runpath_var=LD_RUN_PATH + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + ;; + esac + ;; + lynxos*) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + m88k*) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + mvs*) + case $cc_basename in + cxx*) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + *) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' + wlarc= + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + fi + # Workaround some broken pre-1.5 toolchains + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' + ;; + openbsd2*) + # C++ shared libraries are fairly broken + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + openbsd*) + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + fi + output_verbose_link_cmd='echo' + ;; + osf3*) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + + # Archives containing C++ object files must be created using + # "CC -Bstatic", where "CC" is the KAI C++ compiler. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' + + ;; + RCC*) + # Rational C++ 2.4.1 + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + cxx*) + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + ;; + *) + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' + + else + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + ;; + osf4* | osf5*) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + + # Archives containing C++ object files must be created using + # the KAI C++ compiler. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' + ;; + RCC*) + # Rational C++ 2.4.1 + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + cxx*) + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ + echo "-hidden">> $lib.exp~ + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ + $rm $lib.exp' + + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + ;; + *) + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' + + else + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + ;; + psos*) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + sco*) + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + *) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + sunos4*) + case $cc_basename in + CC*) + # Sun C++ 4.x + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + lcc*) + # Lucid + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + *) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + solaris*) + case $cc_basename in + CC*) + # Sun C++ 4.2, 5.x and Centerline C++ + _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' + + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + case $host_os in + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; + *) + # The C++ compiler is used as linker so we must use $wl + # flag to pass the commands to the underlying system + # linker. We must also pass each convience library through + # to the system linker between allextract/defaultextract. + # The C++ compiler will combine linker options so we + # cannot just pass the convience library names through + # without $wl. + # Supported since Solaris 2.6 (maybe 2.5.1?) + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' + ;; + esac + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + + # Archives containing C++ object files must be created using + # "CC -xar", where "CC" is the Sun C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' + ;; + gcx*) + # Green Hills C++ Compiler + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + + # The C++ compiler must be used to create the archive. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' + ;; + *) + # GNU C++ compiler with Solaris linker + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' + if $CC --version | grep -v '^2\.7' > /dev/null; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" + else + # g++ 2.7 appears to require `-G' NOT `-shared' on this + # platform. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" + fi + + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' + fi + ;; + esac + ;; + sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*) + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no + ;; + tandem*) + case $cc_basename in + NCC*) + # NonStop-UX NCC 3.20 + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + *) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + esac + ;; + vxworks*) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + *) + # FIXME: insert proper C++ library support + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; +esac +AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) +test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no + +_LT_AC_TAGVAR(GCC, $1)="$GXX" +_LT_AC_TAGVAR(LD, $1)="$LD" + +AC_LIBTOOL_POSTDEP_PREDEP($1) +AC_LIBTOOL_PROG_COMPILER_PIC($1) +AC_LIBTOOL_PROG_CC_C_O($1) +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) +AC_LIBTOOL_PROG_LD_SHLIBS($1) +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) +AC_LIBTOOL_SYS_LIB_STRIP +AC_LIBTOOL_DLOPEN_SELF($1) + +AC_LIBTOOL_CONFIG($1) + +AC_LANG_POP +CC=$lt_save_CC +LDCXX=$LD +LD=$lt_save_LD +GCC=$lt_save_GCC +with_gnu_ldcxx=$with_gnu_ld +with_gnu_ld=$lt_save_with_gnu_ld +lt_cv_path_LDCXX=$lt_cv_path_LD +lt_cv_path_LD=$lt_save_path_LD +lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld +lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld +])# AC_LIBTOOL_LANG_CXX_CONFIG + +# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) +# ------------------------ +# Figure out "hidden" library dependencies from verbose +# compiler output when linking a shared library. +# Parse the compiler output and extract the necessary +# objects, libraries and library flags. +AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[ +dnl we can't use the lt_simple_compile_test_code here, +dnl because it contains code intended for an executable, +dnl not a library. It's possible we should let each +dnl tag define a new lt_????_link_test_code variable, +dnl but it's only used here... +ifelse([$1],[],[cat > conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext - if AC_TRY_EVAL(ac_compile); then - soname=conftest - lib=conftest - libobjs=conftest.$ac_objext - deplibs= - wl=$lt_cv_prog_cc_wl - compiler_flags=-v - linker_flags=-v - verstring= - output_objdir=. - libname=conftest - save_allow_undefined_flag=$allow_undefined_flag - allow_undefined_flag= - if AC_TRY_EVAL(archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) - then - lt_cv_archive_cmds_need_lc=no - else - lt_cv_archive_cmds_need_lc=yes - fi - allow_undefined_flag=$save_allow_undefined_flag - else - cat conftest.err 1>&5 - fi]) - AC_MSG_RESULT([$lt_cv_archive_cmds_need_lc]) - ;; - esac -fi -need_lc=${lt_cv_archive_cmds_need_lc-yes} +AC_LIBTOOL_CONFIG($1) -# The second clause should only fire when bootstrapping the +AC_LANG_POP +CC="$lt_save_CC" +])# AC_LIBTOOL_LANG_F77_CONFIG + + +# AC_LIBTOOL_LANG_GCJ_CONFIG +# -------------------------- +# Ensure that the configuration vars for the C compiler are +# suitably defined. Those variables are subsequently used by +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. +AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)]) +AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG], +[AC_LANG_SAVE + +# Source file extension for Java test sources. +ac_ext=java + +# Object file extension for compiled Java test sources. +objext=o +_LT_AC_TAGVAR(objext, $1)=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code="class foo {}\n" + +# Code to be used in simple link tests +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n' + +# ltmain only uses $CC for tagged configurations so make sure $CC is set. +_LT_AC_SYS_COMPILER + +# save warnings/boilerplate of simple test code +_LT_COMPILER_BOILERPLATE +_LT_LINKER_BOILERPLATE + +# Allow CC to be a program name with arguments. +lt_save_CC="$CC" +CC=${GCJ-"gcj"} +compiler=$CC +_LT_AC_TAGVAR(compiler, $1)=$CC +_LT_CC_BASENAME([$compiler]) + +# GCJ did not exist at the time GCC didn't implicitly link libc in. +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no + +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds + +AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) +AC_LIBTOOL_PROG_COMPILER_PIC($1) +AC_LIBTOOL_PROG_CC_C_O($1) +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) +AC_LIBTOOL_PROG_LD_SHLIBS($1) +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) +AC_LIBTOOL_SYS_LIB_STRIP +AC_LIBTOOL_DLOPEN_SELF($1) + +AC_LIBTOOL_CONFIG($1) + +AC_LANG_RESTORE +CC="$lt_save_CC" +])# AC_LIBTOOL_LANG_GCJ_CONFIG + + +# AC_LIBTOOL_LANG_RC_CONFIG +# -------------------------- +# Ensure that the configuration vars for the Windows resource compiler are +# suitably defined. Those variables are subsequently used by +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. +AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)]) +AC_DEFUN([_LT_AC_LANG_RC_CONFIG], +[AC_LANG_SAVE + +# Source file extension for RC test sources. +ac_ext=rc + +# Object file extension for compiled RC test sources. +objext=o +_LT_AC_TAGVAR(objext, $1)=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' + +# Code to be used in simple link tests +lt_simple_link_test_code="$lt_simple_compile_test_code" + +# ltmain only uses $CC for tagged configurations so make sure $CC is set. +_LT_AC_SYS_COMPILER + +# save warnings/boilerplate of simple test code +_LT_COMPILER_BOILERPLATE +_LT_LINKER_BOILERPLATE + +# Allow CC to be a program name with arguments. +lt_save_CC="$CC" +CC=${RC-"windres"} +compiler=$CC +_LT_AC_TAGVAR(compiler, $1)=$CC +_LT_CC_BASENAME([$compiler]) +_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes + +AC_LIBTOOL_CONFIG($1) + +AC_LANG_RESTORE +CC="$lt_save_CC" +])# AC_LIBTOOL_LANG_RC_CONFIG + + +# AC_LIBTOOL_CONFIG([TAGNAME]) +# ---------------------------- +# If TAGNAME is not passed, then create an initial libtool script +# with a default configuration from the untagged config vars. Otherwise +# add code to config.status for appending the configuration named by +# TAGNAME from the matching tagged config vars. +AC_DEFUN([AC_LIBTOOL_CONFIG], +[# The else clause should only fire when bootstrapping the # libtool distribution, otherwise you forgot to ship ltmain.sh # with your package, and you will get complaints that there are # no rules to generate ltmain.sh. if test -f "$ltmain"; then - : -else - # If there is no Makefile yet, we rely on a make rule to execute - # `config.status --recheck' to rerun these tests and create the - # libtool script then. - test -f Makefile && make "$ltmain" -fi - -if test -f "$ltmain"; then - trap "$rm \"${ofile}T\"; exit 1" 1 2 15 - $rm -f "${ofile}T" - - echo creating $ofile - + # See if we are running on zsh, and set the options which allow our commands through + # without removal of \ escapes. + if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST + fi # Now quote all the things that may contain metacharacters while being # careful not to overquote the AC_SUBSTed values. We take copies of the # variables and quote the copies for generation of the libtool script. - for var in echo old_CC old_CFLAGS SED \ - AR AR_FLAGS CC LD LN_S NM SHELL \ - reload_flag reload_cmds wl \ - pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \ - thread_safe_flag_spec whole_archive_flag_spec libname_spec \ - library_names_spec soname_spec \ - RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \ - old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \ - postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \ - old_striplib striplib file_magic_cmd export_symbols_cmds \ - deplibs_check_method allow_undefined_flag no_undefined_flag \ - finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \ - global_symbol_to_c_name_address \ - hardcode_libdir_flag_spec hardcode_libdir_separator \ + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ + SED SHELL STRIP \ + libname_spec library_names_spec soname_spec extract_expsyms_cmds \ + old_striplib striplib file_magic_cmd finish_cmds finish_eval \ + deplibs_check_method reload_flag reload_cmds need_locks \ + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ + lt_cv_sys_global_symbol_to_c_name_address \ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ - compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do + old_postinstall_cmds old_postuninstall_cmds \ + _LT_AC_TAGVAR(compiler, $1) \ + _LT_AC_TAGVAR(CC, $1) \ + _LT_AC_TAGVAR(LD, $1) \ + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \ + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \ + _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \ + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \ + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \ + _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \ + _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \ + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \ + _LT_AC_TAGVAR(old_archive_cmds, $1) \ + _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \ + _LT_AC_TAGVAR(predep_objects, $1) \ + _LT_AC_TAGVAR(postdep_objects, $1) \ + _LT_AC_TAGVAR(predeps, $1) \ + _LT_AC_TAGVAR(postdeps, $1) \ + _LT_AC_TAGVAR(compiler_lib_search_path, $1) \ + _LT_AC_TAGVAR(archive_cmds, $1) \ + _LT_AC_TAGVAR(archive_expsym_cmds, $1) \ + _LT_AC_TAGVAR(postinstall_cmds, $1) \ + _LT_AC_TAGVAR(postuninstall_cmds, $1) \ + _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \ + _LT_AC_TAGVAR(allow_undefined_flag, $1) \ + _LT_AC_TAGVAR(no_undefined_flag, $1) \ + _LT_AC_TAGVAR(export_symbols_cmds, $1) \ + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \ + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \ + _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \ + _LT_AC_TAGVAR(hardcode_automatic, $1) \ + _LT_AC_TAGVAR(module_cmds, $1) \ + _LT_AC_TAGVAR(module_expsym_cmds, $1) \ + _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \ + _LT_AC_TAGVAR(exclude_expsyms, $1) \ + _LT_AC_TAGVAR(include_expsyms, $1); do case $var in - reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \ - old_postinstall_cmds | old_postuninstall_cmds | \ - export_symbols_cmds | archive_cmds | archive_expsym_cmds | \ - extract_expsyms_cmds | old_archive_from_expsyms_cmds | \ + _LT_AC_TAGVAR(old_archive_cmds, $1) | \ + _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \ + _LT_AC_TAGVAR(archive_cmds, $1) | \ + _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \ + _LT_AC_TAGVAR(module_cmds, $1) | \ + _LT_AC_TAGVAR(module_expsym_cmds, $1) | \ + _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \ + _LT_AC_TAGVAR(export_symbols_cmds, $1) | \ + extract_expsyms_cmds | reload_cmds | finish_cmds | \ postinstall_cmds | postuninstall_cmds | \ - finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) + old_postinstall_cmds | old_postuninstall_cmds | \ + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) # Double-quote double-evaled strings. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ;; @@ -3304,14 +4053,31 @@ if test -f "$ltmain"; then esac done - cat <<__EOF__ > "${ofile}T" -#! $SHELL + case $lt_echo in + *'\[$]0 --fallback-echo"') + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'` + ;; + esac -# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. +ifelse([$1], [], + [cfgfile="${ofile}T" + trap "$rm \"$cfgfile\"; exit 1" 1 2 15 + $rm -f "$cfgfile" + AC_MSG_NOTICE([creating $ofile])], + [cfgfile="$ofile"]) + + cat <<__EOF__ >> "$cfgfile" +ifelse([$1], [], +[#! $SHELL + +# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) # NOTE: Changes made to this file will be lost: look at ltmain.sh. # -# Copyright (C) 1996-2000 Free Software Foundation, Inc. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 +# Free Software Foundation, Inc. +# +# This file is part of GNU Libtool: # Originally by Gordon Matzigkeit , 1996 # # This program is free software; you can redistribute it and/or modify @@ -3326,24 +4092,28 @@ if test -f "$ltmain"; then # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. -# A sed that does not truncate output. +# A sed program that does not truncate output. SED=$lt_SED # Sed that helps us avoid accidentally triggering echo(1) options like -n. -Xsed="${SED} -e s/^X//" +Xsed="$SED -e 1s/^X//" # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. -if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH -# ### BEGIN LIBTOOL CONFIG +# The names of the tagged configurations supported by this script. +available_tags= + +# ### BEGIN LIBTOOL CONFIG], +[# ### BEGIN LIBTOOL TAG CONFIG: $tagname]) # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: @@ -3357,7 +4127,10 @@ build_libtool_libs=$enable_shared build_old_libs=$enable_static # Whether or not to add -lc for building shared libraries. -build_libtool_need_lc=$need_lc +build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1) + +# Whether or not to disallow shared libs when runtime libs are static +allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) # Whether or not to optimize for fast installation. fast_install=$enable_fast_install @@ -3365,6 +4138,12 @@ fast_install=$enable_fast_install # The host system. host_alias=$host_alias host=$host +host_os=$host_os + +# The build system. +build_alias=$build_alias +build=$build +build_os=$build_os # An echo program that does not interpret backslashes. echo=$lt_echo @@ -3373,14 +4152,20 @@ echo=$lt_echo AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS -# The default C compiler. -CC=$lt_CC +# A C compiler. +LTCC=$lt_LTCC + +# A language-specific compiler. +CC=$lt_[]_LT_AC_TAGVAR(compiler, $1) # Is the compiler the GNU C compiler? -with_gcc=$GCC +with_gcc=$_LT_AC_TAGVAR(GCC, $1) + +# An ERE matcher. +EGREP=$lt_EGREP # The linker used to build libraries. -LD=$lt_LD +LD=$lt_[]_LT_AC_TAGVAR(LD, $1) # Whether we need hard or soft links. LN_S=$lt_LN_S @@ -3389,7 +4174,7 @@ LN_S=$lt_LN_S NM=$lt_NM # A symbol stripping program -STRIP=$STRIP +STRIP=$lt_STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD @@ -3411,7 +4196,7 @@ reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. -wl=$lt_wl +wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) # Object file suffix (normally "o"). objext="$ac_objext" @@ -3419,20 +4204,23 @@ objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" +# Shared library suffix (normally ".so"). +shrext_cmds='$shrext_cmds' + # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. -pic_flag=$lt_pic_flag +pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) pic_mode=$pic_mode +# What is the maximum length of a command? +max_cmd_len=$lt_cv_sys_max_cmd_len + # Does compiler simultaneously support -c and -o options? -compiler_c_o=$lt_compiler_c_o +compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) -# Can we write directly to a .lo ? -compiler_o_lo=$lt_compiler_o_lo - -# Must we lock files when doing compilation ? +# Must we lock files when doing compilation? need_locks=$lt_need_locks # Do we need the lib prefix for modules? @@ -3451,19 +4239,19 @@ dlopen_self=$enable_dlopen_self dlopen_self_static=$enable_dlopen_self_static # Compiler flag to prevent dynamic linking. -link_static_flag=$lt_link_static_flag +link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1) # Compiler flag to turn off builtin functions. -no_builtin_flag=$lt_no_builtin_flag +no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) # Compiler flag to allow reflexive dlopens. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec +export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) # Compiler flag to generate shared objects directly from archives. -whole_archive_flag_spec=$lt_whole_archive_flag_spec +whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1) # Compiler flag to generate thread-safe objects. -thread_safe_flag_spec=$lt_thread_safe_flag_spec +thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1) # Library versioning type. version_type=$version_type @@ -3480,26 +4268,50 @@ soname_spec=$lt_soname_spec # Commands used to build and install an old-style archive. RANLIB=$lt_RANLIB -old_archive_cmds=$lt_old_archive_cmds +old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1) old_postinstall_cmds=$lt_old_postinstall_cmds old_postuninstall_cmds=$lt_old_postuninstall_cmds # Create an old-style archive from a shared archive. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds +old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) # Create a temporary old-style archive to link instead of a shared archive. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds +old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) # Commands used to build and install a shared archive. -archive_cmds=$lt_archive_cmds -archive_expsym_cmds=$lt_archive_expsym_cmds +archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1) +archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1) postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds +# Commands used to build a loadable module (assumed same as above if empty) +module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1) +module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1) + # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib +# Dependencies to place before the objects being linked to create a +# shared library. +predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1) + +# Dependencies to place after the objects being linked to create a +# shared library. +postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1) + +# Dependencies to place before the objects being linked to create a +# shared library. +predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1) + +# Dependencies to place after the objects being linked to create a +# shared library. +postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1) + +# The library search path used internally by the compiler when linking +# a shared library. +compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1) + # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method @@ -3507,10 +4319,10 @@ deplibs_check_method=$lt_deplibs_check_method file_magic_cmd=$lt_file_magic_cmd # Flag that allows shared libraries with undefined symbols to be built. -allow_undefined_flag=$lt_allow_undefined_flag +allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1) # Flag that forces no undefined symbols. -no_undefined_flag=$lt_no_undefined_flag +no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1) # Commands used to finish a libtool library installation in a directory. finish_cmds=$lt_finish_cmds @@ -3519,13 +4331,13 @@ finish_cmds=$lt_finish_cmds finish_eval=$lt_finish_eval # Take the output of nm and produce a listing of raw symbols and C names. -global_symbol_pipe=$lt_global_symbol_pipe +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration -global_symbol_to_cdecl=$lt_global_symbol_to_cdecl +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm in a C name address pair -global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # This is the shared library runtime path variable. runpath_var=$runpath_var @@ -3537,36 +4349,45 @@ shlibpath_var=$shlibpath_var shlibpath_overrides_runpath=$shlibpath_overrides_runpath # How to hardcode a shared library path into an executable. -hardcode_action=$hardcode_action +hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1) # Whether we should hardcode library paths into libraries. hardcode_into_libs=$hardcode_into_libs # Flag to hardcode \$libdir into a binary during linking. # This must work even if \$libdir does not exist. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec +hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) + +# If ld is used when linking, flag to hardcode \$libdir into +# a binary during linking. This must work even if \$libdir does +# not exist. +hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) # Whether we need a single -rpath flag with a separated argument. -hardcode_libdir_separator=$lt_hardcode_libdir_separator +hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1) -# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the # resulting binary. -hardcode_direct=$hardcode_direct +hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1) # Set to yes if using the -LDIR flag during linking hardcodes DIR into the # resulting binary. -hardcode_minus_L=$hardcode_minus_L +hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1) # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into # the resulting binary. -hardcode_shlibpath_var=$hardcode_shlibpath_var +hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1) + +# Set to yes if building a shared library automatically hardcodes DIR into the library +# and all subsequent libraries and executables linked against it. +hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1) # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" # Whether libtool must link a program against all its dependency libraries. -link_all_deplibs=$link_all_deplibs +link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1) # Compile-time system search path for libraries sys_lib_search_path_spec=$lt_sys_lib_search_path_spec @@ -3575,30 +4396,33 @@ sys_lib_search_path_spec=$lt_sys_lib_search_path_spec sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec # Fix the shell variable \$srcfile for the compiler. -fix_srcfile_path="$fix_srcfile_path" +fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)" # Set to yes if exported symbols are required. -always_export_symbols=$always_export_symbols +always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1) # The commands to list exported symbols. -export_symbols_cmds=$lt_export_symbols_cmds +export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1) # The commands to extract the exported symbol list from a shared archive. extract_expsyms_cmds=$lt_extract_expsyms_cmds # Symbols that should not be listed in the preloaded symbols. -exclude_expsyms=$lt_exclude_expsyms +exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1) # Symbols that must always be exported. -include_expsyms=$lt_include_expsyms +include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1) -# ### END LIBTOOL CONFIG +ifelse([$1],[], +[# ### END LIBTOOL CONFIG], +[# ### END LIBTOOL TAG CONFIG: $tagname]) __EOF__ +ifelse([$1],[], [ case $host_os in aix3*) - cat <<\EOF >> "${ofile}T" + cat <<\EOF >> "$cfgfile" # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems @@ -3611,11 +4435,1618 @@ EOF ;; esac + # We use sed instead of cat because bash on DJGPP gets confused if + # if finds mixed CR/LF and LF-only lines. Since sed operates in + # text mode, it properly converts lines to CR/LF. This bash problem + # is reportedly fixed, but why not run on old versions too? + sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) + + mv -f "$cfgfile" "$ofile" || \ + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") + chmod +x "$ofile" +]) +else + # If there is no Makefile yet, we rely on a make rule to execute + # `config.status --recheck' to rerun these tests and create the + # libtool script then. + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` + if test -f "$ltmain_in"; then + test -f Makefile && make "$ltmain" + fi +fi +])# AC_LIBTOOL_CONFIG + + +# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME]) +# ------------------------------------------- +AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], +[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl + +_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= + +if test "$GCC" = yes; then + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' + + AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], + lt_cv_prog_compiler_rtti_exceptions, + [-fno-rtti -fno-exceptions], [], + [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) +fi +])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI + + +# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE +# --------------------------------- +AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], +[AC_REQUIRE([AC_CANONICAL_HOST]) +AC_REQUIRE([AC_PROG_NM]) +AC_REQUIRE([AC_OBJEXT]) +# Check for command to grab the raw symbol name followed by C symbol from nm. +AC_MSG_CHECKING([command to parse $NM output from $compiler object]) +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], +[ +# These are sane defaults that work on at least a few old systems. +# [They come from Ultrix. What could be older than Ultrix?!! ;)] + +# Character class describing NM global symbol codes. +symcode='[[BCDEGRST]]' + +# Regexp to match symbols that can be accessed directly from C. +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' + +# Transform an extracted symbol line into a proper C declaration +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" + +# Transform an extracted symbol line into symbol name and symbol address +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" + +# Define system-specific variables. +case $host_os in +aix*) + symcode='[[BCDT]]' + ;; +cygwin* | mingw* | pw32*) + symcode='[[ABCDGISTW]]' + ;; +hpux*) # Its linker distinguishes data from code symbols + if test "$host_cpu" = ia64; then + symcode='[[ABCDEGRST]]' + fi + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" + lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" + ;; +linux*) + if test "$host_cpu" = ia64; then + symcode='[[ABCDGIRSTW]]' + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" + lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" + fi + ;; +irix* | nonstopux*) + symcode='[[BCDEGRST]]' + ;; +osf*) + symcode='[[BCDEGQRST]]' + ;; +solaris* | sysv5*) + symcode='[[BDRT]]' + ;; +sysv4) + symcode='[[DFNSTU]]' + ;; +esac + +# Handle CRLF in mingw tool chain +opt_cr= +case $build_os in +mingw*) + opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp + ;; +esac + +# If we're using GNU nm, then use its standard symbol codes. +case `$NM -V 2>&1` in +*GNU* | *'with BFD'*) + symcode='[[ABCDGIRSTW]]' ;; +esac + +# Try without a prefix undercore, then with it. +for ac_symprfx in "" "_"; do + + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. + symxfrm="\\1 $ac_symprfx\\2 \\2" + + # Write the raw and C identifiers. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" + + # Check to see that the pipe works correctly. + pipe_works=no + + rm -f conftest* + cat > conftest.$ac_ext < $nlist) && test -s "$nlist"; then + # Try sorting and uniquifying the output. + if sort "$nlist" | uniq > "$nlist"T; then + mv -f "$nlist"T "$nlist" + else + rm -f "$nlist"T + fi + + # Make sure that we snagged all the symbols we need. + if grep ' nm_test_var$' "$nlist" >/dev/null; then + if grep ' nm_test_func$' "$nlist" >/dev/null; then + cat < conftest.$ac_ext +#ifdef __cplusplus +extern "C" { +#endif + +EOF + # Now generate the symbol file. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' + + cat <> conftest.$ac_ext +#if defined (__STDC__) && __STDC__ +# define lt_ptr_t void * +#else +# define lt_ptr_t char * +# define const +#endif + +/* The mapping between symbol names and symbols. */ +const struct { + const char *name; + lt_ptr_t address; +} +lt_preloaded_symbols[[]] = +{ +EOF + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext + cat <<\EOF >> conftest.$ac_ext + {0, (lt_ptr_t) 0} +}; + +#ifdef __cplusplus +} +#endif +EOF + # Now try linking the two files. + mv conftest.$ac_objext conftstm.$ac_objext + lt_save_LIBS="$LIBS" + lt_save_CFLAGS="$CFLAGS" + LIBS="conftstm.$ac_objext" + CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then + pipe_works=yes + fi + LIBS="$lt_save_LIBS" + CFLAGS="$lt_save_CFLAGS" + else + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD + fi + else + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD + fi + else + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD + fi + else + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD + cat conftest.$ac_ext >&5 + fi + rm -f conftest* conftst* + + # Do not use the global_symbol_pipe unless it works. + if test "$pipe_works" = yes; then + break + else + lt_cv_sys_global_symbol_pipe= + fi +done +]) +if test -z "$lt_cv_sys_global_symbol_pipe"; then + lt_cv_sys_global_symbol_to_cdecl= +fi +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then + AC_MSG_RESULT(failed) +else + AC_MSG_RESULT(ok) +fi +]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE + + +# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME]) +# --------------------------------------- +AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC], +[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)= +_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= +_LT_AC_TAGVAR(lt_prog_compiler_static, $1)= + +AC_MSG_CHECKING([for $compiler option to produce PIC]) + ifelse([$1],[CXX],[ + # C++ specific cases for pic, static, wl, etc. + if test "$GXX" = yes; then + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' + + case $host_os in + aix*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + fi + ;; + amigaos*) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, + # like `-m68040'. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' + ;; + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + mingw* | os2* | pw32*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' + ;; + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' + ;; + *djgpp*) + # DJGPP does not support shared libraries at all + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= + ;; + sysv4*MP*) + if test -d /usr/nec; then + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic + fi + ;; + hpux*) + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but + # not for PA HP-UX. + case "$host_cpu" in + hppa*64*|ia64*) + ;; + *) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + esac + ;; + *) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + esac + else + case $host_os in + aix4* | aix5*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + else + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' + fi + ;; + chorus*) + case $cc_basename in + cxch68*) + # Green Hills C++ Compiler + # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" + ;; + esac + ;; + darwin*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + case $cc_basename in + xlc*) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + ;; + esac + ;; + dgux*) + case $cc_basename in + ec++*) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + ;; + ghcx*) + # Green Hills C++ Compiler + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + ;; + *) + ;; + esac + ;; + freebsd* | kfreebsd*-gnu | dragonfly*) + # FreeBSD uses GNU C++ + ;; + hpux9* | hpux10* | hpux11*) + case $cc_basename in + CC*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" + if test "$host_cpu" != ia64; then + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' + fi + ;; + aCC*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" + case "$host_cpu" in + hppa*64*|ia64*) + # +Z the default + ;; + *) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' + ;; + esac + ;; + *) + ;; + esac + ;; + irix5* | irix6* | nonstopux*) + case $cc_basename in + CC*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + # CC pic flag -KPIC is the default. + ;; + *) + ;; + esac + ;; + linux*) + case $cc_basename in + KCC*) + # KAI C++ Compiler + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + icpc* | ecpc*) + # Intel C++ + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' + ;; + pgCC*) + # Portland Group C++ compiler. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' + ;; + cxx*) + # Compaq C++ + # Make sure the PIC flag is empty. It appears that all Alpha + # Linux and Compaq Tru64 Unix objects are PIC. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + *) + ;; + esac + ;; + lynxos*) + ;; + m88k*) + ;; + mvs*) + case $cc_basename in + cxx*) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' + ;; + *) + ;; + esac + ;; + netbsd*) + ;; + osf3* | osf4* | osf5*) + case $cc_basename in + KCC*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' + ;; + RCC*) + # Rational C++ 2.4.1 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + ;; + cxx*) + # Digital/Compaq C++ + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # Make sure the PIC flag is empty. It appears that all Alpha + # Linux and Compaq Tru64 Unix objects are PIC. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + *) + ;; + esac + ;; + psos*) + ;; + sco*) + case $cc_basename in + CC*) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + *) + ;; + esac + ;; + solaris*) + case $cc_basename in + CC*) + # Sun C++ 4.2, 5.x and Centerline C++ + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' + ;; + gcx*) + # Green Hills C++ Compiler + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' + ;; + *) + ;; + esac + ;; + sunos4*) + case $cc_basename in + CC*) + # Sun C++ 4.x + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + lcc*) + # Lucid + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + ;; + *) + ;; + esac + ;; + tandem*) + case $cc_basename in + NCC*) + # NonStop-UX NCC 3.20 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + ;; + *) + ;; + esac + ;; + unixware*) + ;; + vxworks*) + ;; + *) + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no + ;; + esac + fi +], +[ + if test "$GCC" = yes; then + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' + + case $host_os in + aix*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + fi + ;; + + amigaos*) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, + # like `-m68040'. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' + ;; + + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + + mingw* | pw32* | os2*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' + ;; + + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' + ;; + + msdosdjgpp*) + # Just because we use GCC doesn't mean we suddenly get shared libraries + # on systems that don't support them. + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no + enable_shared=no + ;; + + sysv4*MP*) + if test -d /usr/nec; then + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic + fi + ;; + + hpux*) + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but + # not for PA HP-UX. + case "$host_cpu" in + hppa*64*|ia64*) + # +Z the default + ;; + *) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + esac + ;; + + *) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' + ;; + esac + else + # PORTME Check for flag to pass linker flags through the system compiler. + case $host_os in + aix*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + else + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' + fi + ;; + darwin*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + case $cc_basename in + xlc*) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + ;; + esac + ;; + + mingw* | pw32* | os2*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' + ;; + + hpux9* | hpux10* | hpux11*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but + # not for PA HP-UX. + case "$host_cpu" in + hppa*64*|ia64*) + # +Z the default + ;; + *) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' + ;; + esac + # Is there a better lt_prog_compiler_static that works with the bundled CC? + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' + ;; + + irix5* | irix6* | nonstopux*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # PIC (with -KPIC) is the default. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + + newsos6) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + + linux*) + case $cc_basename in + icc* | ecc*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' + ;; + pgcc* | pgf77* | pgf90*) + # Portland Group compilers (*not* the Pentium gcc compiler, + # which looks to be a dead project) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' + ;; + ccc*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # All Alpha code is PIC. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + esac + ;; + + osf3* | osf4* | osf5*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + # All OSF/1 code is PIC. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' + ;; + + sco3.2v5*) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn' + ;; + + solaris*) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + case $cc_basename in + f77* | f90* | f95*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; + *) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; + esac + ;; + + sunos4*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + + sysv4*MP*) + if test -d /usr/nec ;then + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + fi + ;; + + unicos*) + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no + ;; + + uts4*) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' + ;; + + *) + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no + ;; + esac + fi +]) +AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)]) + +# +# Check to make sure the PIC flag actually works. +# +if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then + AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works], + _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1), + [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [], + [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in + "" | " "*) ;; + *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;; + esac], + [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) +fi +case "$host_os" in + # For platforms which do not support PIC, -DPIC is meaningless: + *djgpp*) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= + ;; + *) + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])" + ;; +esac +]) + + +# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME]) +# ------------------------------------ +# See if the linker supports building shared libraries. +AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS], +[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) +ifelse([$1],[CXX],[ + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' case $host_os in - cygwin* | mingw* | pw32* | os2*) - cat <<'EOF' >> "${ofile}T" - # This is a source program that is used to create dlls on Windows - # Don't remove nor modify the starting and closing comments + aix4* | aix5*) + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to AIX nm, but means don't demangle with GNU nm + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' + else + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' + fi + ;; + pw32*) + _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" + ;; + cygwin* | mingw*) + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' + ;; + *) + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + ;; + esac +],[ + runpath_var= + _LT_AC_TAGVAR(allow_undefined_flag, $1)= + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no + _LT_AC_TAGVAR(archive_cmds, $1)= + _LT_AC_TAGVAR(archive_expsym_cmds, $1)= + _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)= + _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)= + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= + _LT_AC_TAGVAR(thread_safe_flag_spec, $1)= + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= + _LT_AC_TAGVAR(hardcode_direct, $1)=no + _LT_AC_TAGVAR(hardcode_minus_L, $1)=no + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported + _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown + _LT_AC_TAGVAR(hardcode_automatic, $1)=no + _LT_AC_TAGVAR(module_cmds, $1)= + _LT_AC_TAGVAR(module_expsym_cmds, $1)= + _LT_AC_TAGVAR(always_export_symbols, $1)=no + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + # include_expsyms should be a list of space-separated symbols to be *always* + # included in the symbol list + _LT_AC_TAGVAR(include_expsyms, $1)= + # exclude_expsyms can be an extended regexp of symbols to exclude + # it will be wrapped by ` (' and `)$', so one must not match beginning or + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', + # as well as any symbol that contains `d'. + _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_" + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out + # platforms (ab)use it in PIC code, but their linkers get confused if + # the symbol is explicitly referenced. Since portable code cannot + # rely on this symbol name, it's probably fine to never include it in + # preloaded symbol tables. + extract_expsyms_cmds= + # Just being paranoid about ensuring that cc_basename is set. + _LT_CC_BASENAME([$compiler]) + case $host_os in + cygwin* | mingw* | pw32*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + if test "$GCC" != yes; then + with_gnu_ld=no + fi + ;; + openbsd*) + with_gnu_ld=no + ;; + esac + + _LT_AC_TAGVAR(ld_shlibs, $1)=yes + if test "$with_gnu_ld" = yes; then + # If archive_cmds runs LD, not CC, wlarc should be empty + wlarc='${wl}' + + # Set some defaults for GNU ld with shared library support. These + # are reset later if shared libraries are not supported. Putting them + # here allows them to be overridden if necessary. + runpath_var=LD_RUN_PATH + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' + # ancient GNU ld didn't support --whole-archive et. al. + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= + fi + supports_anon_versioning=no + case `$LD -v 2>/dev/null` in + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... + *\ 2.11.*) ;; # other 2.11 versions + *) supports_anon_versioning=yes ;; + esac + + # See if GNU ld supports shared libraries. + case $host_os in + aix3* | aix4* | aix5*) + # On AIX/PPC, the GNU linker is very broken + if test "$host_cpu" != ia64; then + _LT_AC_TAGVAR(ld_shlibs, $1)=no + cat <&2 + +*** Warning: the GNU linker, at least up to release 2.9.1, is reported +*** to be unable to reliably create shared libraries on AIX. +*** Therefore, libtool is disabling shared libraries support. If you +*** really care for shared libraries, you may want to modify your PATH +*** so that a non-GNU linker is found, and then restart. + +EOF + fi + ;; + + amigaos*) + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes + + # Samuel A. Falvo II reports + # that the semantics of dynamic libraries on AmigaOS, at least up + # to version 4, is to share data among multiple programs linked + # with the same dynamic library. Since this doesn't match the + # behavior of shared libraries on other platforms, we can't use + # them. + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + + beos*) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + else + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + cygwin* | mingw* | pw32*) + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, + # as there is no search path for DLLs. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_AC_TAGVAR(always_export_symbols, $1)=no + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' + + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is; otherwise, prepend... + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' + else + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + linux*) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + tmp_addflag= + case $cc_basename,$host_cpu in + pgcc*) # Portland Group C compiler + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= + ;; + pgf77* | pgf90* ) # Portland Group f77 and f90 compilers + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= + tmp_addflag=' -fpic -Mnomain' ;; + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 + tmp_addflag=' -i_dynamic' ;; + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 + tmp_addflag=' -i_dynamic -nofor_main' ;; + ifc* | ifort*) # Intel Fortran compiler + tmp_addflag=' -nofor_main' ;; + esac + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + + if test $supports_anon_versioning = yes; then + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + $echo "local: *; };" >> $output_objdir/$libname.ver~ + $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' + fi + else + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' + wlarc= + else + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + fi + ;; + + solaris* | sysv5*) + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then + _LT_AC_TAGVAR(ld_shlibs, $1)=no + cat <&2 + +*** Warning: The releases 2.8.* of the GNU linker cannot reliably +*** create shared libraries on Solaris systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.9.1 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +EOF + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + + sunos4*) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' + wlarc= + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + *) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + _LT_AC_TAGVAR(ld_shlibs, $1)=no + fi + ;; + esac + + if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then + runpath_var= + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= + fi + else + # PORTME fill in a description of your system's linker (not GNU ld) + case $host_os in + aix3*) + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_AC_TAGVAR(always_export_symbols, $1)=yes + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' + # Note: this linker hardcodes the directories in LIBPATH if there + # are no directories specified by -L. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes + if test "$GCC" = yes && test -z "$link_static_flag"; then + # Neither direct hardcoding nor static linking is supported with a + # broken collect2. + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported + fi + ;; + + aix4* | aix5*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag="" + else + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to AIX nm, but means don't demangle with GNU nm + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' + else + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' + fi + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) + for ld_flag in $LDFLAGS; do + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then + aix_use_runtimelinking=yes + break + fi + done + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + _LT_AC_TAGVAR(archive_cmds, $1)='' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes + + if test "$GCC" = yes; then + case $host_os in aix4.[[012]]|aix4.[[012]].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && \ + strings "$collect2name" | grep resolve_lib_name >/dev/null + then + # We have reworked collect2 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + else + # We have old collect2 + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= + fi + esac + shared_flag='-shared' + if test "$aix_use_runtimelinking" = yes; then + shared_flag="$shared_flag "'${wl}-G' + fi + else + # not using gcc + if test "$host_cpu" = ia64; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test "$aix_use_runtimelinking" = yes; then + shared_flag='${wl}-G' + else + shared_flag='${wl}-bM:SRE' + fi + fi + fi + + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to export. + _LT_AC_TAGVAR(always_export_symbols, $1)=yes + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' + # Determine the default libpath from the value encoded in an empty executable. + _LT_AC_SYS_LIBPATH_AIX + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else + if test "$host_cpu" = ia64; then + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' + _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an empty executable. + _LT_AC_SYS_LIBPATH_AIX + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' + # -bexpall does not export symbols beginning with underscore (_) + _LT_AC_TAGVAR(always_export_symbols, $1)=yes + # Exported symbols can be pulled into shared objects from archives + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' ' + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes + # This is similar to how AIX traditionally builds it's shared libraries. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' + fi + fi + ;; + + amigaos*) + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes + # see comment about different semantics on the GNU ld section + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + + bsdi[[45]]*) + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic + ;; + + cygwin* | mingw* | pw32*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=".dll" + # FIXME: Setting linknames here is a bad hack. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' + # The linker will automatically build a .lib file if we build a DLL. + _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' + # FIXME: Should let the user specify the lib program. + _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs' + _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + ;; + + darwin* | rhapsody*) + case "$host_os" in + rhapsody* | darwin1.[[012]]) + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' + ;; + *) # Darwin 1.3 on + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' + else + case ${MACOSX_DEPLOYMENT_TARGET} in + 10.[[012]]) + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' + ;; + 10.*) + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' + ;; + esac + fi + ;; + esac + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no + _LT_AC_TAGVAR(hardcode_direct, $1)=no + _LT_AC_TAGVAR(hardcode_automatic, $1)=yes + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes + if test "$GCC" = yes ; then + output_verbose_link_cmd='echo' + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + else + case $cc_basename in + xlc*) + output_verbose_link_cmd='echo' + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + ;; + *) + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + esac + fi + ;; + + dgux*) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + freebsd1*) + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor + # support. Future versions do this automatically, but an explicit c++rt0.o + # does not break anything, and helps significantly (at the cost of a little + # extra space). + freebsd2.2*) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + # Unfortunately, older versions of FreeBSD 2 do not have this feature. + freebsd2*) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + # FreeBSD 3 and greater uses gcc -shared to do shared libraries. + freebsd* | kfreebsd*-gnu | dragonfly*) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + hpux9*) + if test "$GCC" = yes; then + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + else + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + fi + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + ;; + + hpux10* | hpux11*) + if test "$GCC" = yes -a "$with_gnu_ld" = no; then + case "$host_cpu" in + hppa*64*|ia64*) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + else + case "$host_cpu" in + hppa*64*|ia64*) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' + ;; + *) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' + ;; + esac + fi + if test "$with_gnu_ld" = no; then + case "$host_cpu" in + hppa*64*) + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_AC_TAGVAR(hardcode_direct, $1)=no + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + ia64*) + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_AC_TAGVAR(hardcode_direct, $1)=no + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes + ;; + *) + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes + ;; + esac + fi + ;; + + irix5* | irix6* | nonstopux*) + if test "$GCC" = yes; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' + fi + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out + else + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF + fi + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + newsos6) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + openbsd*) + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' + else + case $host_os in + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + ;; + *) + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' + ;; + esac + fi + ;; + + os2*) + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported + _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' + _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' + ;; + + osf3*) + if test "$GCC" = yes; then + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + fi + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + ;; + + osf4* | osf5*) # as osf3* with the addition of -msym flag + if test "$GCC" = yes; then + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' + else + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ + $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' + + # Both c and cxx compiler support -rpath directly + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' + fi + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: + ;; + + sco3.2v5*) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' + runpath_var=LD_RUN_PATH + hardcode_runpath_var=yes + ;; + + solaris*) + _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' + if test "$GCC" = yes; then + wlarc='${wl}' + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' + else + wlarc='' + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' + fi + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + case $host_os in + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; + *) + # The compiler driver will combine linker options so we + # cannot just pass the convience library names through + # without $wl, iff we do not link with $LD. + # Luckily, gcc supports the same syntax we need for Sun Studio. + # Supported since Solaris 2.6 (maybe 2.5.1?) + case $wlarc in + '') + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; + *) + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; + esac ;; + esac + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes + ;; + + sunos4*) + if test "x$host_vendor" = xsequent; then + # Use $CC to link under sequent, because it throws in some extra .o + # files that make .init and .fini sections work. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' + else + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' + fi + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + sysv4) + case $host_vendor in + sni) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true??? + ;; + siemens) + ## LD is ld it makes a PLAMLIB + ## CC just makes a GrossModule. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' + _LT_AC_TAGVAR(hardcode_direct, $1)=no + ;; + motorola) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie + ;; + esac + runpath_var='LD_RUN_PATH' + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + sysv4.3*) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' + ;; + + sysv4*MP*) + if test -d /usr/nec; then + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + runpath_var=LD_RUN_PATH + hardcode_runpath_var=yes + _LT_AC_TAGVAR(ld_shlibs, $1)=yes + fi + ;; + + sysv4.2uw2*) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(hardcode_direct, $1)=yes + _LT_AC_TAGVAR(hardcode_minus_L, $1)=no + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + hardcode_runpath_var=yes + runpath_var=LD_RUN_PATH + ;; + + sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*) + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text' + if test "$GCC" = yes; then + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + else + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + runpath_var='LD_RUN_PATH' + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + sysv5*) + _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' + # $CC -shared without GNU ld will not create a library from C++ + # object files and a static libstdc++, better avoid it by now + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + runpath_var='LD_RUN_PATH' + ;; + + uts4*) + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no + ;; + + *) + _LT_AC_TAGVAR(ld_shlibs, $1)=no + ;; + esac + fi +]) +AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) +test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no + +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" +if test "$GCC" = yes; then + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" +fi + +# +# Do we need to explicitly link libc? +# +case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in +x|xyes) + # Assume -lc should be added + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes + + if test "$enable_shared" = yes && test "$GCC" = yes; then + case $_LT_AC_TAGVAR(archive_cmds, $1) in + *'~'*) + # FIXME: we may have to deal with multi-command sequences. + ;; + '$CC '*) + # Test whether the compiler implicitly links with -lc since on some + # systems, -lgcc has to come before -lc. If gcc already passes -lc + # to ld, don't add -lc before -lgcc. + AC_MSG_CHECKING([whether -lc should be explicitly linked in]) + $rm conftest* + printf "$lt_simple_compile_test_code" > conftest.$ac_ext + + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then + soname=conftest + lib=conftest + libobjs=conftest.$ac_objext + deplibs= + wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) + compiler_flags=-v + linker_flags=-v + verstring= + output_objdir=. + libname=conftest + lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1) + _LT_AC_TAGVAR(allow_undefined_flag, $1)= + if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) + then + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no + else + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes + fi + _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag + else + cat conftest.err 1>&5 + fi + $rm conftest* + AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)]) + ;; + esac + fi + ;; +esac +])# AC_LIBTOOL_PROG_LD_SHLIBS + + +# _LT_AC_FILE_LTDLL_C +# ------------------- +# Be careful that the start marker always follows a newline. +AC_DEFUN([_LT_AC_FILE_LTDLL_C], [ # /* ltdll.c starts here */ # #define WIN32_LEAN_AND_MEAN # #include @@ -3649,748 +6080,13 @@ EOF # return TRUE; # } # /* ltdll.c ends here */ - # This is a source program that is used to create import libraries - # on Windows for dlls which lack them. Don't remove nor modify the - # starting and closing comments -# /* impgen.c starts here */ -# /* Copyright (C) 1999-2000 Free Software Foundation, Inc. -# -# This file is part of GNU libtool. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -# */ -# -# #include /* for printf() */ -# #include /* for open(), lseek(), read() */ -# #include /* for O_RDONLY, O_BINARY */ -# #include /* for strdup() */ -# -# /* O_BINARY isn't required (or even defined sometimes) under Unix */ -# #ifndef O_BINARY -# #define O_BINARY 0 -# #endif -# -# static unsigned int -# pe_get16 (fd, offset) -# int fd; -# int offset; -# { -# unsigned char b[2]; -# lseek (fd, offset, SEEK_SET); -# read (fd, b, 2); -# return b[0] + (b[1]<<8); -# } -# -# static unsigned int -# pe_get32 (fd, offset) -# int fd; -# int offset; -# { -# unsigned char b[4]; -# lseek (fd, offset, SEEK_SET); -# read (fd, b, 4); -# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); -# } -# -# static unsigned int -# pe_as32 (ptr) -# void *ptr; -# { -# unsigned char *b = ptr; -# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); -# } -# -# int -# main (argc, argv) -# int argc; -# char *argv[]; -# { -# int dll; -# unsigned long pe_header_offset, opthdr_ofs, num_entries, i; -# unsigned long export_rva, export_size, nsections, secptr, expptr; -# unsigned long name_rvas, nexp; -# unsigned char *expdata, *erva; -# char *filename, *dll_name; -# -# filename = argv[1]; -# -# dll = open(filename, O_RDONLY|O_BINARY); -# if (dll < 1) -# return 1; -# -# dll_name = filename; -# -# for (i=0; filename[i]; i++) -# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':') -# dll_name = filename + i +1; -# -# pe_header_offset = pe_get32 (dll, 0x3c); -# opthdr_ofs = pe_header_offset + 4 + 20; -# num_entries = pe_get32 (dll, opthdr_ofs + 92); -# -# if (num_entries < 1) /* no exports */ -# return 1; -# -# export_rva = pe_get32 (dll, opthdr_ofs + 96); -# export_size = pe_get32 (dll, opthdr_ofs + 100); -# nsections = pe_get16 (dll, pe_header_offset + 4 +2); -# secptr = (pe_header_offset + 4 + 20 + -# pe_get16 (dll, pe_header_offset + 4 + 16)); -# -# expptr = 0; -# for (i = 0; i < nsections; i++) -# { -# char sname[8]; -# unsigned long secptr1 = secptr + 40 * i; -# unsigned long vaddr = pe_get32 (dll, secptr1 + 12); -# unsigned long vsize = pe_get32 (dll, secptr1 + 16); -# unsigned long fptr = pe_get32 (dll, secptr1 + 20); -# lseek(dll, secptr1, SEEK_SET); -# read(dll, sname, 8); -# if (vaddr <= export_rva && vaddr+vsize > export_rva) -# { -# expptr = fptr + (export_rva - vaddr); -# if (export_rva + export_size > vaddr + vsize) -# export_size = vsize - (export_rva - vaddr); -# break; -# } -# } -# -# expdata = (unsigned char*)malloc(export_size); -# lseek (dll, expptr, SEEK_SET); -# read (dll, expdata, export_size); -# erva = expdata - export_rva; -# -# nexp = pe_as32 (expdata+24); -# name_rvas = pe_as32 (expdata+32); -# -# printf ("EXPORTS\n"); -# for (i = 0; i> "${ofile}T" || (rm -f "${ofile}T"; exit 1) - - mv -f "${ofile}T" "$ofile" || \ - (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T") - chmod +x "$ofile" -fi - -])# _LT_AC_LTCONFIG_HACK - -# AC_LIBTOOL_DLOPEN - enable checks for dlopen support -AC_DEFUN([AC_LIBTOOL_DLOPEN], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])]) - -# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's -AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])]) - -# AC_ENABLE_SHARED - implement the --enable-shared flag -# Usage: AC_ENABLE_SHARED[(DEFAULT)] -# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to -# `yes'. -AC_DEFUN([AC_ENABLE_SHARED], -[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl -AC_ARG_ENABLE(shared, -changequote(<<, >>)dnl -<< --enable-shared[=PKGS] build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT], -changequote([, ])dnl -[p=${PACKAGE-default} -case $enableval in -yes) enable_shared=yes ;; -no) enable_shared=no ;; -*) - enable_shared=no - # Look at the argument we got. We use all the common list separators. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," - for pkg in $enableval; do - if test "X$pkg" = "X$p"; then - enable_shared=yes - fi - done - IFS="$ac_save_ifs" - ;; -esac], -enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl -]) - -# AC_DISABLE_SHARED - set the default shared flag to --disable-shared -AC_DEFUN([AC_DISABLE_SHARED], -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl -AC_ENABLE_SHARED(no)]) - -# AC_ENABLE_STATIC - implement the --enable-static flag -# Usage: AC_ENABLE_STATIC[(DEFAULT)] -# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to -# `yes'. -AC_DEFUN([AC_ENABLE_STATIC], -[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl -AC_ARG_ENABLE(static, -changequote(<<, >>)dnl -<< --enable-static[=PKGS] build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT], -changequote([, ])dnl -[p=${PACKAGE-default} -case $enableval in -yes) enable_static=yes ;; -no) enable_static=no ;; -*) - enable_static=no - # Look at the argument we got. We use all the common list separators. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," - for pkg in $enableval; do - if test "X$pkg" = "X$p"; then - enable_static=yes - fi - done - IFS="$ac_save_ifs" - ;; -esac], -enable_static=AC_ENABLE_STATIC_DEFAULT)dnl -]) - -# AC_DISABLE_STATIC - set the default static flag to --disable-static -AC_DEFUN([AC_DISABLE_STATIC], -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl -AC_ENABLE_STATIC(no)]) +])# _LT_AC_FILE_LTDLL_C -# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag -# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)] -# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to -# `yes'. -AC_DEFUN([AC_ENABLE_FAST_INSTALL], -[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl -AC_ARG_ENABLE(fast-install, -changequote(<<, >>)dnl -<< --enable-fast-install[=PKGS] optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT], -changequote([, ])dnl -[p=${PACKAGE-default} -case $enableval in -yes) enable_fast_install=yes ;; -no) enable_fast_install=no ;; -*) - enable_fast_install=no - # Look at the argument we got. We use all the common list separators. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," - for pkg in $enableval; do - if test "X$pkg" = "X$p"; then - enable_fast_install=yes - fi - done - IFS="$ac_save_ifs" - ;; -esac], -enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl -]) +# _LT_AC_TAGVAR(VARNAME, [TAGNAME]) +# --------------------------------- +AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])]) -# AC_DISABLE_FAST_INSTALL - set the default to --disable-fast-install -AC_DEFUN([AC_DISABLE_FAST_INSTALL], -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl -AC_ENABLE_FAST_INSTALL(no)]) - -# AC_LIBTOOL_PICMODE - implement the --with-pic flag -# Usage: AC_LIBTOOL_PICMODE[(MODE)] -# Where MODE is either `yes' or `no'. If omitted, it defaults to -# `both'. -AC_DEFUN([AC_LIBTOOL_PICMODE], -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl -pic_mode=ifelse($#,1,$1,default)]) - - -# AC_PATH_TOOL_PREFIX - find a file program which can recognise shared library -AC_DEFUN([AC_PATH_TOOL_PREFIX], -[AC_MSG_CHECKING([for $1]) -AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, -[case $MAGIC_CMD in - /*) - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. - ;; - ?:/*) - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. - ;; - *) - ac_save_MAGIC_CMD="$MAGIC_CMD" - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" -dnl $ac_dummy forces splitting on constant user-supplied paths. -dnl POSIX.2 word splitting is done only on the output of word expansions, -dnl not every word. This closes a longstanding sh security hole. - ac_dummy="ifelse([$2], , $PATH, [$2])" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$1; then - lt_cv_path_MAGIC_CMD="$ac_dir/$1" - if test -n "$file_magic_test_file"; then - case $deplibs_check_method in - "file_magic "*) - file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" - MAGIC_CMD="$lt_cv_path_MAGIC_CMD" - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | - egrep "$file_magic_regex" > /dev/null; then - : - else - cat <&2 - -*** Warning: the command libtool uses to detect shared libraries, -*** $file_magic_cmd, produces output that libtool cannot recognize. -*** The result is that libtool may fail to recognize shared libraries -*** as such. This will affect the creation of libtool libraries that -*** depend on shared libraries, but programs linked with such libtool -*** libraries will work regardless of this problem. Nevertheless, you -*** may want to report the problem to your system manager and/or to -*** bug-libtool@gnu.org - -EOF - fi ;; - esac - fi - break - fi - done - IFS="$ac_save_ifs" - MAGIC_CMD="$ac_save_MAGIC_CMD" - ;; -esac]) -MAGIC_CMD="$lt_cv_path_MAGIC_CMD" -if test -n "$MAGIC_CMD"; then - AC_MSG_RESULT($MAGIC_CMD) -else - AC_MSG_RESULT(no) -fi -]) - - -# AC_PATH_MAGIC - find a file program which can recognise a shared library -AC_DEFUN([AC_PATH_MAGIC], -[AC_REQUIRE([AC_CHECK_TOOL_PREFIX])dnl -AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin:$PATH) -if test -z "$lt_cv_path_MAGIC_CMD"; then - if test -n "$ac_tool_prefix"; then - AC_PATH_TOOL_PREFIX(file, /usr/bin:$PATH) - else - MAGIC_CMD=: - fi -fi -]) - - -# AC_PROG_LD - find the path to the GNU or non-GNU linker -AC_DEFUN([AC_PROG_LD], -[AC_ARG_WITH(gnu-ld, -[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]], -test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no) -AC_REQUIRE([AC_PROG_CC])dnl -AC_REQUIRE([AC_CANONICAL_HOST])dnl -AC_REQUIRE([AC_CANONICAL_BUILD])dnl -AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl -ac_prog=ld -if test "$GCC" = yes; then - # Check if gcc -print-prog-name=ld gives a path. - AC_MSG_CHECKING([for ld used by GCC]) - case $host in - *-*-mingw*) - # gcc leaves a trailing carriage return which upsets mingw - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; - *) - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; - esac - case $ac_prog in - # Accept absolute paths. - [[\\/]]* | [[A-Za-z]]:[[\\/]]*) - re_direlt='/[[^/]][[^/]]*/\.\./' - # Canonicalize the path of ld - ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do - ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` - done - test -z "$LD" && LD="$ac_prog" - ;; - "") - # If it fails, then pretend we aren't using GCC. - ac_prog=ld - ;; - *) - # If it is relative, then search for the first ld in PATH. - with_gnu_ld=unknown - ;; - esac -elif test "$with_gnu_ld" = yes; then - AC_MSG_CHECKING([for GNU ld]) -else - AC_MSG_CHECKING([for non-GNU ld]) -fi -AC_CACHE_VAL(lt_cv_path_LD, -[if test -z "$LD"; then - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then - lt_cv_path_LD="$ac_dir/$ac_prog" - # Check to see if the program is GNU ld. I'd rather use --version, - # but apparently some GNU ld's only accept -v. - # Break only if it was the GNU/non-GNU ld that we prefer. - if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then - test "$with_gnu_ld" != no && break - else - test "$with_gnu_ld" != yes && break - fi - fi - done - IFS="$ac_save_ifs" -else - lt_cv_path_LD="$LD" # Let the user override the test with a path. -fi]) -LD="$lt_cv_path_LD" -if test -n "$LD"; then - AC_MSG_RESULT($LD) -else - AC_MSG_RESULT(no) -fi -test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) -AC_PROG_LD_GNU -]) - -# AC_PROG_LD_GNU - -AC_DEFUN([AC_PROG_LD_GNU], -[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, -[# I'd rather use --version here, but apparently some GNU ld's only accept -v. -if $LD -v 2>&1 &5; then - lt_cv_prog_gnu_ld=yes -else - lt_cv_prog_gnu_ld=no -fi]) -with_gnu_ld=$lt_cv_prog_gnu_ld -]) - -# AC_PROG_LD_RELOAD_FLAG - find reload flag for linker -# -- PORTME Some linkers may need a different reload flag. -AC_DEFUN([AC_PROG_LD_RELOAD_FLAG], -[AC_CACHE_CHECK([for $LD option to reload object files], lt_cv_ld_reload_flag, -[lt_cv_ld_reload_flag='-r']) -reload_flag=$lt_cv_ld_reload_flag -test -n "$reload_flag" && reload_flag=" $reload_flag" -]) - -# AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies -# -- PORTME fill in with the dynamic library characteristics -AC_DEFUN([AC_DEPLIBS_CHECK_METHOD], -[AC_CACHE_CHECK([how to recognise dependent libraries], -lt_cv_deplibs_check_method, -[lt_cv_file_magic_cmd='$MAGIC_CMD' -lt_cv_file_magic_test_file= -lt_cv_deplibs_check_method='unknown' -# Need to set the preceding variable on all platforms that support -# interlibrary dependencies. -# 'none' -- dependencies not supported. -# `unknown' -- same as none, but documents that we really don't know. -# 'pass_all' -- all dependencies passed with no checks. -# 'test_compile' -- check by making test program. -# 'file_magic [[regex]]' -- check by looking for files in library path -# which responds to the $file_magic_cmd with a given egrep regex. -# If you have `file' or equivalent on your system and you're not sure -# whether `pass_all' will *always* work, you probably want this one. - -case $host_os in -aix4* | aix5*) - lt_cv_deplibs_check_method=pass_all - ;; - -beos*) - lt_cv_deplibs_check_method=pass_all - ;; - -bsdi4*) - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' - lt_cv_file_magic_cmd='/usr/bin/file -L' - lt_cv_file_magic_test_file=/shlib/libc.so - ;; - -cygwin* | mingw* | pw32*) - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' - lt_cv_file_magic_cmd='$OBJDUMP -f' - ;; - -darwin* | rhapsody*) - lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' - lt_cv_file_magic_cmd='/usr/bin/file -L' - case "$host_os" in - rhapsody* | darwin1.[[012]]) - lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1` - ;; - *) # Darwin 1.3 on - lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' - ;; - esac - ;; - -freebsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then - case $host_cpu in - i*86 ) - # Not sure whether the presence of OpenBSD here was a mistake. - # Let's accept both of them until this is cleared up. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library' - lt_cv_file_magic_cmd=/usr/bin/file - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` - ;; - esac - else - lt_cv_deplibs_check_method=pass_all - fi - ;; - -gnu*) - lt_cv_deplibs_check_method=pass_all - ;; - -hpux10.20*|hpux11*) - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' - lt_cv_file_magic_cmd=/usr/bin/file - lt_cv_file_magic_test_file=/usr/lib/libc.sl - ;; - -irix5* | irix6* | nonstopux*) - case $host_os in - irix5* | nonstopux*) - # this will be overridden with pass_all, but let us keep it just in case - lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" - ;; - *) - case $LD in - *-32|*"-32 ") libmagic=32-bit;; - *-n32|*"-n32 ") libmagic=N32;; - *-64|*"-64 ") libmagic=64-bit;; - *) libmagic=never-match;; - esac - # this will be overridden with pass_all, but let us keep it just in case - lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[[1234]] dynamic lib MIPS - version 1" - ;; - esac - lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` - lt_cv_deplibs_check_method=pass_all - ;; - -# This must be Linux ELF. -linux-gnu*) - case $host_cpu in - alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*) - lt_cv_deplibs_check_method=pass_all ;; - *) - # glibc up to 2.1.1 does not perform some relocations on ARM - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;; - esac - lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` - ;; - -netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then - lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so\.[[0-9]]+\.[[0-9]]+$' - else - lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so$' - fi - ;; - -newos6*) - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' - lt_cv_file_magic_cmd=/usr/bin/file - lt_cv_file_magic_test_file=/usr/lib/libnls.so - ;; - -openbsd*) - lt_cv_file_magic_cmd=/usr/bin/file - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object' - else - lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' - fi - ;; - -osf3* | osf4* | osf5*) - # this will be overridden with pass_all, but let us keep it just in case - lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' - lt_cv_file_magic_test_file=/shlib/libc.so - lt_cv_deplibs_check_method=pass_all - ;; - -sco3.2v5*) - lt_cv_deplibs_check_method=pass_all - ;; - -solaris*) - lt_cv_deplibs_check_method=pass_all - lt_cv_file_magic_test_file=/lib/libc.so - ;; - -sysv5uw[[78]]* | sysv4*uw2*) - lt_cv_deplibs_check_method=pass_all - ;; - -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) - case $host_vendor in - motorola) - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` - ;; - ncr) - lt_cv_deplibs_check_method=pass_all - ;; - sequent) - lt_cv_file_magic_cmd='/bin/file' - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' - ;; - sni) - lt_cv_file_magic_cmd='/bin/file' - lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" - lt_cv_file_magic_test_file=/lib/libc.so - ;; - siemens) - lt_cv_deplibs_check_method=pass_all - ;; - esac - ;; -esac -]) -file_magic_cmd=$lt_cv_file_magic_cmd -deplibs_check_method=$lt_cv_deplibs_check_method -]) - - -# AC_PROG_NM - find the path to a BSD-compatible name lister -AC_DEFUN([AC_PROG_NM], -[AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl -AC_MSG_CHECKING([for BSD-compatible nm]) -AC_CACHE_VAL(lt_cv_path_NM, -[if test -n "$NM"; then - # Let the user override the test. - lt_cv_path_NM="$NM" -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do - test -z "$ac_dir" && ac_dir=. - tmp_nm=$ac_dir/${ac_tool_prefix}nm - if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then - # Check to see if the nm accepts a BSD-compat flag. - # Adding the `sed 1q' prevents false positives on HP-UX, which says: - # nm: unknown option "B" ignored - # Tru64's nm complains that /dev/null is an invalid object file - if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then - lt_cv_path_NM="$tmp_nm -B" - break - elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then - lt_cv_path_NM="$tmp_nm -p" - break - else - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but - continue # so that we can try to find one that supports BSD flags - fi - fi - done - IFS="$ac_save_ifs" - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm -fi]) -NM="$lt_cv_path_NM" -AC_MSG_RESULT([$NM]) -]) - -# AC_CHECK_LIBM - check for math library -AC_DEFUN([AC_CHECK_LIBM], -[AC_REQUIRE([AC_CANONICAL_HOST])dnl -LIBM= -case $host in -*-*-beos* | *-*-cygwin* | *-*-pw32*) - # These system don't have libm - ;; -*-ncr-sysv4.3*) - AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") - AC_CHECK_LIB(m, main, LIBM="$LIBM -lm") - ;; -*) - AC_CHECK_LIB(m, main, LIBM="-lm") - ;; -esac -]) - -# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for -# the libltdl convenience library and LTDLINCL to the include flags for -# the libltdl header and adds --enable-ltdl-convenience to the -# configure arguments. Note that LIBLTDL and LTDLINCL are not -# AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If DIR is not -# provided, it is assumed to be `libltdl'. LIBLTDL will be prefixed -# with '${top_builddir}/' and LTDLINCL will be prefixed with -# '${top_srcdir}/' (note the single quotes!). If your package is not -# flat and you're not using automake, define top_builddir and -# top_srcdir appropriately in the Makefiles. -AC_DEFUN([AC_LIBLTDL_CONVENIENCE], -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl - case $enable_ltdl_convenience in - no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; - "") enable_ltdl_convenience=yes - ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; - esac - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) - # For backwards non-gettext consistent compatibility... - INCLTDL="$LTDLINCL" -]) - -# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for -# the libltdl installable library and LTDLINCL to the include flags for -# the libltdl header and adds --enable-ltdl-install to the configure -# arguments. Note that LIBLTDL and LTDLINCL are not AC_SUBSTed, nor is -# AC_CONFIG_SUBDIRS called. If DIR is not provided and an installed -# libltdl is not found, it is assumed to be `libltdl'. LIBLTDL will -# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed -# with '${top_srcdir}/' (note the single quotes!). If your package is -# not flat and you're not using automake, define top_builddir and -# top_srcdir appropriately in the Makefiles. -# In the future, this macro may have to be called after AC_PROG_LIBTOOL. -AC_DEFUN([AC_LIBLTDL_INSTALLABLE], -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl - AC_CHECK_LIB(ltdl, main, - [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], - [if test x"$enable_ltdl_install" = xno; then - AC_MSG_WARN([libltdl not installed, but installation disabled]) - else - enable_ltdl_install=yes - fi - ]) - if test x"$enable_ltdl_install" = x"yes"; then - ac_configure_args="$ac_configure_args --enable-ltdl-install" - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) - else - ac_configure_args="$ac_configure_args --enable-ltdl-install=no" - LIBLTDL="-lltdl" - LTDLINCL= - fi - # For backwards non-gettext consistent compatibility... - INCLTDL="$LTDLINCL" -]) # old names AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL]) @@ -4404,6 +6100,16 @@ AC_DEFUN([AM_PROG_NM], [AC_PROG_NM]) # This is just to silence aclocal about the macro not being used ifelse([AC_DISABLE_FAST_INSTALL]) +AC_DEFUN([LT_AC_PROG_GCJ], +[AC_CHECK_TOOL(GCJ, gcj, no) + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" + AC_SUBST(GCJFLAGS) +]) + +AC_DEFUN([LT_AC_PROG_RC], +[AC_CHECK_TOOL(RC, windres, no) +]) + # NOTE: This macro has been submitted for inclusion into # # GNU Autoconf as AC_PROG_SED. When it is available in # # a released version of Autoconf we should remove this # @@ -4417,105 +6123,624 @@ AC_DEFUN([LT_AC_PROG_SED], AC_CACHE_VAL(lt_cv_path_SED, [# Loop through the user's path and test for sed and gsed. # Then use that list of sed's as ones to test for truncation. -as_executable_p="test -f" as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. - for ac_prog in sed gsed; do + for lt_ac_prog in sed gsed; do for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then - _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext" + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" fi done done done - - # Create a temporary directory, and hook for its removal unless debugging. -$debug || -{ - trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 - trap '{ (exit 1); exit 1; }' 1 2 13 15 -} - -# Create a (secure) tmp directory for tmp files. -: ${TMPDIR=/tmp} -{ - tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` && - test -n "$tmp" && test -d "$tmp" -} || -{ - tmp=$TMPDIR/sed$$-$RANDOM - (umask 077 && mkdir $tmp) -} || -{ - echo "$me: cannot create a temporary directory in $TMPDIR" >&2 - { (exit 1); exit 1; } -} - _max=0 - _count=0 - # Add /usr/xpg4/bin/sed as it is typically found on Solaris - # along with /bin/sed that truncates output. - for _sed in $_sed_list /usr/xpg4/bin/sed; do - test ! -f ${_sed} && break - cat /dev/null > "$tmp/sed.in" - _count=0 - echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in" - # Check for GNU sed and select it if it is found. - if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then - lt_cv_path_SED=${_sed} - break +lt_ac_max=0 +lt_ac_count=0 +# Add /usr/xpg4/bin/sed as it is typically found on Solaris +# along with /bin/sed that truncates output. +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do + test ! -f $lt_ac_sed && continue + cat /dev/null > conftest.in + lt_ac_count=0 + echo $ECHO_N "0123456789$ECHO_C" >conftest.in + # Check for GNU sed and select it if it is found. + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then + lt_cv_path_SED=$lt_ac_sed + break + fi + while true; do + cat conftest.in conftest.in >conftest.tmp + mv conftest.tmp conftest.in + cp conftest.in conftest.nl + echo >>conftest.nl + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break + cmp -s conftest.out conftest.nl || break + # 10000 chars as input seems more than enough + test $lt_ac_count -gt 10 && break + lt_ac_count=`expr $lt_ac_count + 1` + if test $lt_ac_count -gt $lt_ac_max; then + lt_ac_max=$lt_ac_count + lt_cv_path_SED=$lt_ac_sed fi - while true; do - cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp" - mv "$tmp/sed.tmp" "$tmp/sed.in" - cp "$tmp/sed.in" "$tmp/sed.nl" - echo >>"$tmp/sed.nl" - ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break - cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break - # 40000 chars as input seems more than enough - test $_count -gt 10 && break - _count=`expr $_count + 1` - if test $_count -gt $_max; then - _max=$_count - lt_cv_path_SED=$_sed - fi - done done - rm -rf "$tmp" +done ]) -if test "X$SED" != "X"; then - lt_cv_path_SED=$SED -else - SED=$lt_cv_path_SED -fi +SED=$lt_cv_path_SED AC_MSG_RESULT([$SED]) ]) +# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_AUTOMAKE_VERSION(VERSION) +# ---------------------------- +# Automake X.Y traces this macro to ensure aclocal.m4 has been +# generated from the m4 files accompanying Automake X.Y. +AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"]) + +# AM_SET_CURRENT_AUTOMAKE_VERSION +# ------------------------------- +# Call AM_AUTOMAKE_VERSION so it can be traced. +# This function is AC_REQUIREd by AC_INIT_AUTOMAKE. +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], + [AM_AUTOMAKE_VERSION([1.9.5])]) + +# AM_AUX_DIR_EXPAND -*- Autoconf -*- + +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets +# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to +# `$srcdir', `$srcdir/..', or `$srcdir/../..'. +# +# Of course, Automake must honor this variable whenever it calls a +# tool from the auxiliary directory. The problem is that $srcdir (and +# therefore $ac_aux_dir as well) can be either absolute or relative, +# depending on how configure is run. This is pretty annoying, since +# it makes $ac_aux_dir quite unusable in subdirectories: in the top +# source directory, any form will work fine, but in subdirectories a +# relative path needs to be adjusted first. +# +# $ac_aux_dir/missing +# fails when called from a subdirectory if $ac_aux_dir is relative +# $top_srcdir/$ac_aux_dir/missing +# fails if $ac_aux_dir is absolute, +# fails when called from a subdirectory in a VPATH build with +# a relative $ac_aux_dir +# +# The reason of the latter failure is that $top_srcdir and $ac_aux_dir +# are both prefixed by $srcdir. In an in-source build this is usually +# harmless because $srcdir is `.', but things will broke when you +# start a VPATH build or use an absolute $srcdir. +# +# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, +# iff we strip the leading $srcdir from $ac_aux_dir. That would be: +# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` +# and then we would define $MISSING as +# MISSING="\${SHELL} $am_aux_dir/missing" +# This will work as long as MISSING is not called from configure, because +# unfortunately $(top_srcdir) has no meaning in configure. +# However there are other variables, like CC, which are often used in +# configure, and could therefore not use this "fixed" $ac_aux_dir. +# +# Another solution, used here, is to always expand $ac_aux_dir to an +# absolute PATH. The drawback is that using absolute paths prevent a +# configured tree to be moved without reconfiguration. + +AC_DEFUN([AM_AUX_DIR_EXPAND], +[dnl Rely on autoconf to set up CDPATH properly. +AC_PREREQ([2.50])dnl +# expand $ac_aux_dir to an absolute path +am_aux_dir=`cd $ac_aux_dir && pwd` +]) + +# AM_CONDITIONAL -*- Autoconf -*- + +# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 7 + +# AM_CONDITIONAL(NAME, SHELL-CONDITION) +# ------------------------------------- +# Define a conditional. +AC_DEFUN([AM_CONDITIONAL], +[AC_PREREQ(2.52)dnl + ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], + [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl +AC_SUBST([$1_TRUE]) +AC_SUBST([$1_FALSE]) +if $2; then + $1_TRUE= + $1_FALSE='#' +else + $1_TRUE='#' + $1_FALSE= +fi +AC_CONFIG_COMMANDS_PRE( +[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then + AC_MSG_ERROR([[conditional "$1" was never defined. +Usually this means the macro was only invoked conditionally.]]) +fi])]) + + +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 8 + +# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be +# written in clear, in which case automake, when reading aclocal.m4, +# will think it sees a *use*, and therefore will trigger all it's +# C support machinery. Also note that it means that autoscan, seeing +# CC etc. in the Makefile, will ask for an AC_PROG_CC use... + + +# _AM_DEPENDENCIES(NAME) +# ---------------------- +# See how the compiler implements dependency checking. +# NAME is "CC", "CXX", "GCJ", or "OBJC". +# We try a few techniques and use that to set a single cache variable. +# +# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was +# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular +# dependency, and given that the user is not expected to run this macro, +# just rely on AC_PROG_CC. +AC_DEFUN([_AM_DEPENDENCIES], +[AC_REQUIRE([AM_SET_DEPDIR])dnl +AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl +AC_REQUIRE([AM_MAKE_INCLUDE])dnl +AC_REQUIRE([AM_DEP_TRACK])dnl + +ifelse([$1], CC, [depcc="$CC" am_compiler_list=], + [$1], CXX, [depcc="$CXX" am_compiler_list=], + [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], + [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], + [depcc="$$1" am_compiler_list=]) + +AC_CACHE_CHECK([dependency style of $depcc], + [am_cv_$1_dependencies_compiler_type], +[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_$1_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` + fi + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with + # Solaris 8's {/usr,}/bin/sh. + touch sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + case $depmode in + nosideeffect) + # after this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + none) break ;; + esac + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. + if depmode=$depmode \ + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_$1_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_$1_dependencies_compiler_type=none +fi +]) +AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) +AM_CONDITIONAL([am__fastdep$1], [ + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) +]) + + +# AM_SET_DEPDIR +# ------------- +# Choose a directory name for dependency files. +# This macro is AC_REQUIREd in _AM_DEPENDENCIES +AC_DEFUN([AM_SET_DEPDIR], +[AC_REQUIRE([AM_SET_LEADING_DOT])dnl +AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl +]) + + +# AM_DEP_TRACK +# ------------ +AC_DEFUN([AM_DEP_TRACK], +[AC_ARG_ENABLE(dependency-tracking, +[ --disable-dependency-tracking speeds up one-time build + --enable-dependency-tracking do not reject slow dependency extractors]) +if test "x$enable_dependency_tracking" != xno; then + am_depcomp="$ac_aux_dir/depcomp" + AMDEPBACKSLASH='\' +fi +AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) +AC_SUBST([AMDEPBACKSLASH]) +]) + +# Generate code to set up dependency tracking. -*- Autoconf -*- + +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +#serial 3 + +# _AM_OUTPUT_DEPENDENCY_COMMANDS +# ------------------------------ +AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], +[for mf in $CONFIG_FILES; do + # Strip MF so we end up with the name of the file. + mf=`echo "$mf" | sed -e 's/:.*$//'` + # Check whether this is an Automake generated Makefile or not. + # We used to match only the files named `Makefile.in', but + # some people rename them; so instead we look at the file content. + # Grep'ing the first line is not enough: some people post-process + # each Makefile.in and add a new line on top of each file to say so. + # So let's grep whole file. + if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then + dirpart=`AS_DIRNAME("$mf")` + else + continue + fi + # Extract the definition of DEPDIR, am__include, and am__quote + # from the Makefile without running `make'. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` + test -z "$DEPDIR" && continue + am__include=`sed -n 's/^am__include = //p' < "$mf"` + test -z "am__include" && continue + am__quote=`sed -n 's/^am__quote = //p' < "$mf"` + # When using ansi2knr, U may be empty or an underscore; expand it + U=`sed -n 's/^U = //p' < "$mf"` + # Find all dependency output files, they are included files with + # $(DEPDIR) in their names. We invoke sed twice because it is the + # simplest approach to changing $(DEPDIR) to its actual value in the + # expansion. + for file in `sed -n " + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do + # Make sure the directory exists. + test -f "$dirpart/$file" && continue + fdir=`AS_DIRNAME(["$file"])` + AS_MKDIR_P([$dirpart/$fdir]) + # echo "creating $dirpart/$file" + echo '# dummy' > "$dirpart/$file" + done +done +])# _AM_OUTPUT_DEPENDENCY_COMMANDS + + +# AM_OUTPUT_DEPENDENCY_COMMANDS +# ----------------------------- +# This macro should only be invoked once -- use via AC_REQUIRE. +# +# This code is only required when automatic dependency tracking +# is enabled. FIXME. This creates each `.P' file that we will +# need in order to bootstrap the dependency handling code. +AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], +[AC_CONFIG_COMMANDS([depfiles], + [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], + [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) +]) + +# Do all the work for Automake. -*- Autoconf -*- + +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 12 + +# This macro actually does too much. Some checks are only needed if +# your package does certain things. But this isn't really a big deal. + +# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) +# AM_INIT_AUTOMAKE([OPTIONS]) +# ----------------------------------------------- +# The call with PACKAGE and VERSION arguments is the old style +# call (pre autoconf-2.50), which is being phased out. PACKAGE +# and VERSION should now be passed to AC_INIT and removed from +# the call to AM_INIT_AUTOMAKE. +# We support both call styles for the transition. After +# the next Automake release, Autoconf can make the AC_INIT +# arguments mandatory, and then we can depend on a new Autoconf +# release and drop the old call support. +AC_DEFUN([AM_INIT_AUTOMAKE], +[AC_PREREQ([2.58])dnl +dnl Autoconf wants to disallow AM_ names. We explicitly allow +dnl the ones we care about. +m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl +AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl +AC_REQUIRE([AC_PROG_INSTALL])dnl +# test to see if srcdir already configured +if test "`cd $srcdir && pwd`" != "`pwd`" && + test -f $srcdir/config.status; then + AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) +fi + +# test whether we have cygpath +if test -z "$CYGPATH_W"; then + if (cygpath --version) >/dev/null 2>/dev/null; then + CYGPATH_W='cygpath -w' + else + CYGPATH_W=echo + fi +fi +AC_SUBST([CYGPATH_W]) + +# Define the identity of the package. +dnl Distinguish between old-style and new-style calls. +m4_ifval([$2], +[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl + AC_SUBST([PACKAGE], [$1])dnl + AC_SUBST([VERSION], [$2])], +[_AM_SET_OPTIONS([$1])dnl + AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl + AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl + +_AM_IF_OPTION([no-define],, +[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) + AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl + +# Some tools Automake needs. +AC_REQUIRE([AM_SANITY_CHECK])dnl +AC_REQUIRE([AC_ARG_PROGRAM])dnl +AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) +AM_MISSING_PROG(AUTOCONF, autoconf) +AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) +AM_MISSING_PROG(AUTOHEADER, autoheader) +AM_MISSING_PROG(MAKEINFO, makeinfo) +AM_PROG_INSTALL_SH +AM_PROG_INSTALL_STRIP +AC_REQUIRE([AM_PROG_MKDIR_P])dnl +# We need awk for the "check" target. The system "awk" is bad on +# some platforms. +AC_REQUIRE([AC_PROG_AWK])dnl +AC_REQUIRE([AC_PROG_MAKE_SET])dnl +AC_REQUIRE([AM_SET_LEADING_DOT])dnl +_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], + [_AM_PROG_TAR([v7])])]) +_AM_IF_OPTION([no-dependencies],, +[AC_PROVIDE_IFELSE([AC_PROG_CC], + [_AM_DEPENDENCIES(CC)], + [define([AC_PROG_CC], + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl +AC_PROVIDE_IFELSE([AC_PROG_CXX], + [_AM_DEPENDENCIES(CXX)], + [define([AC_PROG_CXX], + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl +]) +]) + + +# When config.status generates a header, we must update the stamp-h file. +# This file resides in the same directory as the config header +# that is generated. The stamp files are numbered to have different names. + +# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the +# loop where config.status creates the headers, so we can generate +# our stamp files there. +AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], +[# Compute $1's index in $config_headers. +_am_stamp_count=1 +for _am_header in $config_headers :; do + case $_am_header in + $1 | $1:* ) + break ;; + * ) + _am_stamp_count=`expr $_am_stamp_count + 1` ;; + esac +done +echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) + +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_PROG_INSTALL_SH +# ------------------ +# Define $install_sh. +AC_DEFUN([AM_PROG_INSTALL_SH], +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +install_sh=${install_sh-"$am_aux_dir/install-sh"} +AC_SUBST(install_sh)]) + +# Copyright (C) 2003, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + # serial 2 +# Check whether the underlying file-system supports filenames +# with a leading dot. For instance MS-DOS doesn't. +AC_DEFUN([AM_SET_LEADING_DOT], +[rm -rf .tst 2>/dev/null +mkdir .tst 2>/dev/null +if test -d .tst; then + am__leading_dot=. +else + am__leading_dot=_ +fi +rmdir .tst 2>/dev/null +AC_SUBST([am__leading_dot])]) + +# Add --enable-maintainer-mode option to configure. -*- Autoconf -*- +# From Jim Meyering + +# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 4 + +AC_DEFUN([AM_MAINTAINER_MODE], +[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) + dnl maintainer-mode is disabled by default + AC_ARG_ENABLE(maintainer-mode, +[ --enable-maintainer-mode enable make rules and dependencies not useful + (and sometimes confusing) to the casual installer], + USE_MAINTAINER_MODE=$enableval, + USE_MAINTAINER_MODE=no) + AC_MSG_RESULT([$USE_MAINTAINER_MODE]) + AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes]) + MAINT=$MAINTAINER_MODE_TRUE + AC_SUBST(MAINT)dnl +] +) + +AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) + +# Check to see how 'make' treats includes. -*- Autoconf -*- + +# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 3 + +# AM_MAKE_INCLUDE() +# ----------------- +# Check to see how make treats includes. +AC_DEFUN([AM_MAKE_INCLUDE], +[am_make=${MAKE-make} +cat > confinc << 'END' +am__doit: + @echo done +.PHONY: am__doit +END +# If we don't find an include directive, just comment out the code. +AC_MSG_CHECKING([for style of include used by $am_make]) +am__include="#" +am__quote= +_am_result=none +# First try GNU make style include. +echo "include confinc" > confmf +# We grep out `Entering directory' and `Leaving directory' +# messages which can occur if `w' ends up in MAKEFLAGS. +# In particular we don't look at `^make:' because GNU make might +# be invoked under some other name (usually "gmake"), in which +# case it prints its new name instead of `make'. +if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then + am__include=include + am__quote= + _am_result=GNU +fi +# Now try BSD make style include. +if test "$am__include" = "#"; then + echo '.include "confinc"' > confmf + if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then + am__include=.include + am__quote="\"" + _am_result=BSD + fi +fi +AC_SUBST([am__include]) +AC_SUBST([am__quote]) +AC_MSG_RESULT([$_am_result]) +rm -f confinc confmf +]) + +# Copyright (C) 1999, 2000, 2001, 2003, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 3 + # AM_PROG_CC_C_O # -------------- # Like AC_PROG_CC_C_O, but changed for automake. - -# Copyright 1999, 2000, 2001 Free Software Foundation, Inc. - -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. - -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA -# 02111-1307, USA. - AC_DEFUN([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC_C_O])dnl AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl @@ -4533,2080 +6758,327 @@ if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then fi ]) -# isc-posix.m4 serial 2 (gettext-0.11.2) -dnl Copyright (C) 1995-2002 Free Software Foundation, Inc. -dnl This file is free software, distributed under the terms of the GNU -dnl General Public License. As a special exception to the GNU General -dnl Public License, this file may be distributed as part of a program -dnl that contains a configuration script generated by Autoconf, under -dnl the same distribution terms as the rest of that program. - -# This file is not needed with autoconf-2.53 and newer. Remove it in 2005. - -# This test replaces the one in autoconf. -# Currently this macro should have the same name as the autoconf macro -# because gettext's gettext.m4 (distributed in the automake package) -# still uses it. Otherwise, the use in gettext.m4 makes autoheader -# give these diagnostics: -# configure.in:556: AC_TRY_COMPILE was called before AC_ISC_POSIX -# configure.in:556: AC_TRY_RUN was called before AC_ISC_POSIX - -undefine([AC_ISC_POSIX]) - -AC_DEFUN([AC_ISC_POSIX], - [ - dnl This test replaces the obsolescent AC_ISC_POSIX kludge. - AC_CHECK_LIB(cposix, strerror, [LIBS="$LIBS -lcposix"]) - ] -) - -# gettext.m4 serial 17 (gettext-0.11.5) -dnl Copyright (C) 1995-2002 Free Software Foundation, Inc. -dnl This file is free software, distributed under the terms of the GNU -dnl General Public License. As a special exception to the GNU General -dnl Public License, this file may be distributed as part of a program -dnl that contains a configuration script generated by Autoconf, under -dnl the same distribution terms as the rest of that program. -dnl -dnl This file can can be used in projects which are not available under -dnl the GNU General Public License or the GNU Library General Public -dnl License but which still want to provide support for the GNU gettext -dnl functionality. -dnl Please note that the actual code of the GNU gettext library is covered -dnl by the GNU Library General Public License, and the rest of the GNU -dnl gettext package package is covered by the GNU General Public License. -dnl They are *not* in the public domain. - -dnl Authors: -dnl Ulrich Drepper , 1995-2000. -dnl Bruno Haible , 2000-2002. - -dnl Macro to add for using GNU gettext. - -dnl Usage: AM_GNU_GETTEXT([INTLSYMBOL], [NEEDSYMBOL], [INTLDIR]). -dnl INTLSYMBOL can be one of 'external', 'no-libtool', 'use-libtool'. The -dnl default (if it is not specified or empty) is 'no-libtool'. -dnl INTLSYMBOL should be 'external' for packages with no intl directory, -dnl and 'no-libtool' or 'use-libtool' for packages with an intl directory. -dnl If INTLSYMBOL is 'use-libtool', then a libtool library -dnl $(top_builddir)/intl/libintl.la will be created (shared and/or static, -dnl depending on --{enable,disable}-{shared,static} and on the presence of -dnl AM-DISABLE-SHARED). If INTLSYMBOL is 'no-libtool', a static library -dnl $(top_builddir)/intl/libintl.a will be created. -dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext -dnl implementations (in libc or libintl) without the ngettext() function -dnl will be ignored. If NEEDSYMBOL is specified and is -dnl 'need-formatstring-macros', then GNU gettext implementations that don't -dnl support the ISO C 99 formatstring macros will be ignored. -dnl INTLDIR is used to find the intl libraries. If empty, -dnl the value `$(top_builddir)/intl/' is used. -dnl -dnl The result of the configuration is one of three cases: -dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled -dnl and used. -dnl Catalog format: GNU --> install in $(datadir) -dnl Catalog extension: .mo after installation, .gmo in source tree -dnl 2) GNU gettext has been found in the system's C library. -dnl Catalog format: GNU --> install in $(datadir) -dnl Catalog extension: .mo after installation, .gmo in source tree -dnl 3) No internationalization, always use English msgid. -dnl Catalog format: none -dnl Catalog extension: none -dnl If INTLSYMBOL is 'external', only cases 2 and 3 can occur. -dnl The use of .gmo is historical (it was needed to avoid overwriting the -dnl GNU format catalogs when building on a platform with an X/Open gettext), -dnl but we keep it in order not to force irrelevant filename changes on the -dnl maintainers. -dnl -AC_DEFUN([AM_GNU_GETTEXT], -[ - dnl Argument checking. - ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], , - [errprint([ERROR: invalid first argument to AM_GNU_GETTEXT -])])])])]) - ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], , - [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT -])])])]) - define(gt_included_intl, ifelse([$1], [external], [no], [yes])) - define(gt_libtool_suffix_prefix, ifelse([$1], [use-libtool], [l], [])) - - AC_REQUIRE([AM_PO_SUBDIRS])dnl - ifelse(gt_included_intl, yes, [ - AC_REQUIRE([AM_INTL_SUBDIR])dnl - ]) - - dnl Prerequisites of AC_LIB_LINKFLAGS_BODY. - AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) - AC_REQUIRE([AC_LIB_RPATH]) - - dnl Sometimes libintl requires libiconv, so first search for libiconv. - dnl Ideally we would do this search only after the - dnl if test "$USE_NLS" = "yes"; then - dnl if test "$gt_cv_func_gnugettext_libc" != "yes"; then - dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT - dnl the configure script would need to contain the same shell code - dnl again, outside any 'if'. There are two solutions: - dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'. - dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE. - dnl Since AC_PROVIDE_IFELSE is only in autoconf >= 2.52 and not - dnl documented, we avoid it. - ifelse(gt_included_intl, yes, , [ - AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY]) - ]) - - AC_MSG_CHECKING([whether NLS is requested]) - dnl Default is enabled NLS - AC_ARG_ENABLE(nls, - [ --disable-nls do not use Native Language Support], - USE_NLS=$enableval, USE_NLS=yes) - AC_MSG_RESULT($USE_NLS) - AC_SUBST(USE_NLS) - - ifelse(gt_included_intl, yes, [ - BUILD_INCLUDED_LIBINTL=no - USE_INCLUDED_LIBINTL=no - ]) - LIBINTL= - LTLIBINTL= - POSUB= - - dnl If we use NLS figure out what method - if test "$USE_NLS" = "yes"; then - gt_use_preinstalled_gnugettext=no - ifelse(gt_included_intl, yes, [ - AC_MSG_CHECKING([whether included gettext is requested]) - AC_ARG_WITH(included-gettext, - [ --with-included-gettext use the GNU gettext library included here], - nls_cv_force_use_gnu_gettext=$withval, - nls_cv_force_use_gnu_gettext=no) - AC_MSG_RESULT($nls_cv_force_use_gnu_gettext) - - nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" - if test "$nls_cv_force_use_gnu_gettext" != "yes"; then - ]) - dnl User does not insist on using GNU NLS library. Figure out what - dnl to use. If GNU gettext is available we use this. Else we have - dnl to fall back to GNU NLS library. - - dnl Add a version number to the cache macros. - define([gt_api_version], ifelse([$2], [need-formatstring-macros], 3, ifelse([$2], [need-ngettext], 2, 1))) - define([gt_cv_func_gnugettext_libc], [gt_cv_func_gnugettext]gt_api_version[_libc]) - define([gt_cv_func_gnugettext_libintl], [gt_cv_func_gnugettext]gt_api_version[_libintl]) - - AC_CACHE_CHECK([for GNU gettext in libc], gt_cv_func_gnugettext_libc, - [AC_TRY_LINK([#include -]ifelse([$2], [need-formatstring-macros], -[#ifndef __GNU_GETTEXT_SUPPORTED_REVISION -#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) -#endif -changequote(,)dnl -typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; -changequote([,])dnl -], [])[extern int _nl_msg_cat_cntr; -extern int *_nl_domain_bindings;], - [bindtextdomain ("", ""); -return (int) gettext ("")]ifelse([$2], [need-ngettext], [ + (int) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_domain_bindings], - gt_cv_func_gnugettext_libc=yes, - gt_cv_func_gnugettext_libc=no)]) - - if test "$gt_cv_func_gnugettext_libc" != "yes"; then - dnl Sometimes libintl requires libiconv, so first search for libiconv. - ifelse(gt_included_intl, yes, , [ - AM_ICONV_LINK - ]) - dnl Search for libintl and define LIBINTL, LTLIBINTL and INCINTL - dnl accordingly. Don't use AC_LIB_LINKFLAGS_BODY([intl],[iconv]) - dnl because that would add "-liconv" to LIBINTL and LTLIBINTL - dnl even if libiconv doesn't exist. - AC_LIB_LINKFLAGS_BODY([intl]) - AC_CACHE_CHECK([for GNU gettext in libintl], - gt_cv_func_gnugettext_libintl, - [gt_save_CPPFLAGS="$CPPFLAGS" - CPPFLAGS="$CPPFLAGS $INCINTL" - gt_save_LIBS="$LIBS" - LIBS="$LIBS $LIBINTL" - dnl Now see whether libintl exists and does not depend on libiconv. - AC_TRY_LINK([#include -]ifelse([$2], [need-formatstring-macros], -[#ifndef __GNU_GETTEXT_SUPPORTED_REVISION -#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) -#endif -changequote(,)dnl -typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; -changequote([,])dnl -], [])[extern int _nl_msg_cat_cntr; -extern -#ifdef __cplusplus -"C" -#endif -const char *_nl_expand_alias ();], - [bindtextdomain ("", ""); -return (int) gettext ("")]ifelse([$2], [need-ngettext], [ + (int) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_expand_alias (0)], - gt_cv_func_gnugettext_libintl=yes, - gt_cv_func_gnugettext_libintl=no) - dnl Now see whether libintl exists and depends on libiconv. - if test "$gt_cv_func_gnugettext_libintl" != yes && test -n "$LIBICONV"; then - LIBS="$LIBS $LIBICONV" - AC_TRY_LINK([#include -]ifelse([$2], [need-formatstring-macros], -[#ifndef __GNU_GETTEXT_SUPPORTED_REVISION -#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) -#endif -changequote(,)dnl -typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; -changequote([,])dnl -], [])[extern int _nl_msg_cat_cntr; -extern -#ifdef __cplusplus -"C" -#endif -const char *_nl_expand_alias ();], - [bindtextdomain ("", ""); -return (int) gettext ("")]ifelse([$2], [need-ngettext], [ + (int) ngettext ("", "", 0)], [])[ + _nl_msg_cat_cntr + *_nl_expand_alias (0)], - [LIBINTL="$LIBINTL $LIBICONV" - LTLIBINTL="$LTLIBINTL $LTLIBICONV" - gt_cv_func_gnugettext_libintl=yes - ]) - fi - CPPFLAGS="$gt_save_CPPFLAGS" - LIBS="$gt_save_LIBS"]) - fi - - dnl If an already present or preinstalled GNU gettext() is found, - dnl use it. But if this macro is used in GNU gettext, and GNU - dnl gettext is already preinstalled in libintl, we update this - dnl libintl. (Cf. the install rule in intl/Makefile.in.) - if test "$gt_cv_func_gnugettext_libc" = "yes" \ - || { test "$gt_cv_func_gnugettext_libintl" = "yes" \ - && test "$PACKAGE" != gettext; }; then - gt_use_preinstalled_gnugettext=yes - else - dnl Reset the values set by searching for libintl. - LIBINTL= - LTLIBINTL= - INCINTL= - fi - - ifelse(gt_included_intl, yes, [ - if test "$gt_use_preinstalled_gnugettext" != "yes"; then - dnl GNU gettext is not found in the C library. - dnl Fall back on included GNU gettext library. - nls_cv_use_gnu_gettext=yes - fi - fi - - if test "$nls_cv_use_gnu_gettext" = "yes"; then - dnl Mark actions used to generate GNU NLS library. - INTLOBJS="\$(GETTOBJS)" - BUILD_INCLUDED_LIBINTL=yes - USE_INCLUDED_LIBINTL=yes - LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV" - LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV" - LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` - fi - - if test "$gt_use_preinstalled_gnugettext" = "yes" \ - || test "$nls_cv_use_gnu_gettext" = "yes"; then - dnl Mark actions to use GNU gettext tools. - CATOBJEXT=.gmo - fi - ]) - - if test "$gt_use_preinstalled_gnugettext" = "yes" \ - || test "$nls_cv_use_gnu_gettext" = "yes"; then - AC_DEFINE(ENABLE_NLS, 1, - [Define to 1 if translation of program messages to the user's native language - is requested.]) - else - USE_NLS=no - fi - fi - - if test "$USE_NLS" = "yes"; then - - if test "$gt_use_preinstalled_gnugettext" = "yes"; then - if test "$gt_cv_func_gnugettext_libintl" = "yes"; then - AC_MSG_CHECKING([how to link with libintl]) - AC_MSG_RESULT([$LIBINTL]) - AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL]) - fi - - dnl For backward compatibility. Some packages may be using this. - AC_DEFINE(HAVE_GETTEXT, 1, - [Define if the GNU gettext() function is already present or preinstalled.]) - AC_DEFINE(HAVE_DCGETTEXT, 1, - [Define if the GNU dcgettext() function is already present or preinstalled.]) - fi - - dnl We need to process the po/ directory. - POSUB=po - fi - - ifelse(gt_included_intl, yes, [ - dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL - dnl to 'yes' because some of the testsuite requires it. - if test "$PACKAGE" = gettext; then - BUILD_INCLUDED_LIBINTL=yes - fi - - dnl Make all variables we use known to autoconf. - AC_SUBST(BUILD_INCLUDED_LIBINTL) - AC_SUBST(USE_INCLUDED_LIBINTL) - AC_SUBST(CATOBJEXT) - AC_SUBST(INTLOBJS) - - dnl For backward compatibility. Some configure.ins may be using this. - nls_cv_header_intl= - nls_cv_header_libgt= - - dnl For backward compatibility. Some Makefiles may be using this. - DATADIRNAME=share - AC_SUBST(DATADIRNAME) - - dnl For backward compatibility. Some Makefiles may be using this. - INSTOBJEXT=.mo - AC_SUBST(INSTOBJEXT) - - dnl For backward compatibility. Some Makefiles may be using this. - GENCAT=gencat - AC_SUBST(GENCAT) - - dnl Enable libtool support if the surrounding package wishes it. - INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix - AC_SUBST(INTL_LIBTOOL_SUFFIX_PREFIX) - ]) - - dnl For backward compatibility. Some Makefiles may be using this. - INTLLIBS="$LIBINTL" - AC_SUBST(INTLLIBS) - - dnl Make all documented variables known to autoconf. - AC_SUBST(LIBINTL) - AC_SUBST(LTLIBINTL) - AC_SUBST(POSUB) -]) - - -dnl Checks for all prerequisites of the po subdirectory, -dnl except for USE_NLS. -AC_DEFUN([AM_PO_SUBDIRS], -[ - AC_REQUIRE([AC_PROG_MAKE_SET])dnl - AC_REQUIRE([AC_PROG_INSTALL])dnl - AC_REQUIRE([AM_MKINSTALLDIRS])dnl - - dnl Perform the following tests also if --disable-nls has been given, - dnl because they are needed for "make dist" to work. - - dnl Search for GNU msgfmt in the PATH. - dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions. - dnl The second test excludes FreeBSD msgfmt. - AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, - [$ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && - (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)], - :) - AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) - - dnl Search for GNU xgettext 0.11 or newer in the PATH. - dnl The first test excludes Solaris xgettext and early GNU xgettext versions. - dnl The second test excludes FreeBSD xgettext. - AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, - [$ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 && - (if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)], - :) - dnl Remove leftover from FreeBSD xgettext call. - rm -f messages.po - - dnl Search for GNU msgmerge 0.11 or newer in the PATH. - AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge, - [$ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1], :) - - dnl This could go away some day; the PATH_PROG_WITH_TEST already does it. - dnl Test whether we really found GNU msgfmt. - if test "$GMSGFMT" != ":"; then - dnl If it is no GNU msgfmt we define it as : so that the - dnl Makefiles still can work. - if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && - (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then - : ; - else - GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` - AC_MSG_RESULT( - [found $GMSGFMT program is not GNU msgfmt; ignore it]) - GMSGFMT=":" - fi - fi - - dnl This could go away some day; the PATH_PROG_WITH_TEST already does it. - dnl Test whether we really found GNU xgettext. - if test "$XGETTEXT" != ":"; then - dnl If it is no GNU xgettext we define it as : so that the - dnl Makefiles still can work. - if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 && - (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then - : ; - else - AC_MSG_RESULT( - [found xgettext program is not GNU xgettext; ignore it]) - XGETTEXT=":" - fi - dnl Remove leftover from FreeBSD xgettext call. - rm -f messages.po - fi - - AC_OUTPUT_COMMANDS([ - for ac_file in $CONFIG_FILES; do - # Support "outfile[:infile[:infile...]]" - case "$ac_file" in - *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; - esac - # PO directories have a Makefile.in generated from Makefile.in.in. - case "$ac_file" in */Makefile.in) - # Adjust a relative srcdir. - ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` - ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" - ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` - # In autoconf-2.13 it is called $ac_given_srcdir. - # In autoconf-2.50 it is called $srcdir. - test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" - case "$ac_given_srcdir" in - .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; - /*) top_srcdir="$ac_given_srcdir" ;; - *) top_srcdir="$ac_dots$ac_given_srcdir" ;; - esac - if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then - rm -f "$ac_dir/POTFILES" - test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" - cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" - # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend - # on $ac_dir but don't depend on user-specified configuration - # parameters. - if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then - # The LINGUAS file contains the set of available languages. - if test -n "$ALL_LINGUAS"; then - test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" - fi - ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` - # Hide the ALL_LINGUAS assigment from automake. - eval 'ALL_LINGUAS''=$ALL_LINGUAS_' - fi - case "$ac_given_srcdir" in - .) srcdirpre= ;; - *) srcdirpre='$(srcdir)/' ;; - esac - POFILES= - GMOFILES= - UPDATEPOFILES= - DUMMYPOFILES= - for lang in $ALL_LINGUAS; do - POFILES="$POFILES $srcdirpre$lang.po" - GMOFILES="$GMOFILES $srcdirpre$lang.gmo" - UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" - DUMMYPOFILES="$DUMMYPOFILES $lang.nop" - done - # CATALOGS depends on both $ac_dir and the user's LINGUAS - # environment variable. - INST_LINGUAS= - if test -n "$ALL_LINGUAS"; then - for presentlang in $ALL_LINGUAS; do - useit=no - if test "%UNSET%" != "$LINGUAS"; then - desiredlanguages="$LINGUAS" - else - desiredlanguages="$ALL_LINGUAS" - fi - for desiredlang in $desiredlanguages; do - # Use the presentlang catalog if desiredlang is - # a. equal to presentlang, or - # b. a variant of presentlang (because in this case, - # presentlang can be used as a fallback for messages - # which are not translated in the desiredlang catalog). - case "$desiredlang" in - "$presentlang"*) useit=yes;; - esac - done - if test $useit = yes; then - INST_LINGUAS="$INST_LINGUAS $presentlang" - fi - done - fi - CATALOGS= - if test -n "$INST_LINGUAS"; then - for lang in $INST_LINGUAS; do - CATALOGS="$CATALOGS $lang.gmo" - done - fi - test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" - sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" - for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do - if test -f "$f"; then - case "$f" in - *.orig | *.bak | *~) ;; - *) cat "$f" >> "$ac_dir/Makefile" ;; - esac - fi - done - fi - ;; - esac - done], - [# Capture the value of obsolete ALL_LINGUAS because we need it to compute - # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it - # from automake. - eval 'ALL_LINGUAS''="$ALL_LINGUAS"' - # Capture the value of LINGUAS because we need it to compute CATALOGS. - LINGUAS="${LINGUAS-%UNSET%}" - ]) -]) - - -dnl Checks for all prerequisites of the intl subdirectory, -dnl except for INTL_LIBTOOL_SUFFIX_PREFIX (and possibly LIBTOOL), INTLOBJS, -dnl USE_INCLUDED_LIBINTL, BUILD_INCLUDED_LIBINTL. -AC_DEFUN([AM_INTL_SUBDIR], -[ - AC_REQUIRE([AC_PROG_INSTALL])dnl - AC_REQUIRE([AM_MKINSTALLDIRS])dnl - AC_REQUIRE([AC_PROG_CC])dnl - AC_REQUIRE([AC_CANONICAL_HOST])dnl - AC_REQUIRE([AC_PROG_RANLIB])dnl - AC_REQUIRE([AC_ISC_POSIX])dnl - AC_REQUIRE([AC_HEADER_STDC])dnl - AC_REQUIRE([AC_C_CONST])dnl - AC_REQUIRE([AC_C_INLINE])dnl - AC_REQUIRE([AC_TYPE_OFF_T])dnl - AC_REQUIRE([AC_TYPE_SIZE_T])dnl - AC_REQUIRE([AC_FUNC_ALLOCA])dnl - AC_REQUIRE([AC_FUNC_MMAP])dnl - AC_REQUIRE([jm_GLIBC21])dnl - AC_REQUIRE([gt_INTDIV0])dnl - AC_REQUIRE([jm_AC_TYPE_UINTMAX_T])dnl - AC_REQUIRE([gt_HEADER_INTTYPES_H])dnl - AC_REQUIRE([gt_INTTYPES_PRI])dnl - - AC_CHECK_HEADERS([argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ -stdlib.h string.h unistd.h sys/param.h]) - AC_CHECK_FUNCS([feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \ -geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \ -strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next]) - - AM_ICONV - AM_LANGINFO_CODESET - if test $ac_cv_header_locale_h = yes; then - AM_LC_MESSAGES - fi - - dnl intl/plural.c is generated from intl/plural.y. It requires bison, - dnl because plural.y uses bison specific features. It requires at least - dnl bison-1.26 because earlier versions generate a plural.c that doesn't - dnl compile. - dnl bison is only needed for the maintainer (who touches plural.y). But in - dnl order to avoid separate Makefiles or --enable-maintainer-mode, we put - dnl the rule in general Makefile. Now, some people carelessly touch the - dnl files or have a broken "make" program, hence the plural.c rule will - dnl sometimes fire. To avoid an error, defines BISON to ":" if it is not - dnl present or too old. - AC_CHECK_PROGS([INTLBISON], [bison]) - if test -z "$INTLBISON"; then - ac_verc_fail=yes - else - dnl Found it, now check the version. - AC_MSG_CHECKING([version of bison]) -changequote(<<,>>)dnl - ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` - case $ac_prog_version in - '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; - 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) -changequote([,])dnl - ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; - *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; - esac - AC_MSG_RESULT([$ac_prog_version]) - fi - if test $ac_verc_fail = yes; then - INTLBISON=: - fi -]) - - -AC_DEFUN([AM_MKINSTALLDIRS], -[ - dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly - dnl find the mkinstalldirs script in another subdir but $(top_srcdir). - dnl Try to locate is. - MKINSTALLDIRS= - if test -n "$ac_aux_dir"; then - MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" - fi - if test -z "$MKINSTALLDIRS"; then - MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" - fi - AC_SUBST(MKINSTALLDIRS) -]) - - -dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version]) -AC_DEFUN([AM_GNU_GETTEXT_VERSION], []) - -# lib-prefix.m4 serial 1 (gettext-0.11) -dnl Copyright (C) 2001-2002 Free Software Foundation, Inc. -dnl This file is free software, distributed under the terms of the GNU -dnl General Public License. As a special exception to the GNU General -dnl Public License, this file may be distributed as part of a program -dnl that contains a configuration script generated by Autoconf, under -dnl the same distribution terms as the rest of that program. - -dnl From Bruno Haible. - -dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed -dnl to access previously installed libraries. The basic assumption is that -dnl a user will want packages to use other packages he previously installed -dnl with the same --prefix option. -dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate -dnl libraries, but is otherwise very convenient. -AC_DEFUN([AC_LIB_PREFIX], -[ - AC_BEFORE([$0], [AC_LIB_LINKFLAGS]) - AC_REQUIRE([AC_PROG_CC]) - AC_REQUIRE([AC_CANONICAL_HOST]) - AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) - dnl By default, look in $includedir and $libdir. - use_additional=yes - AC_LIB_WITH_FINAL_PREFIX([ - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - ]) - AC_ARG_WITH([lib-prefix], -[ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib - --without-lib-prefix don't search for libraries in includedir and libdir], -[ - if test "X$withval" = "Xno"; then - use_additional=no - else - if test "X$withval" = "X"; then - AC_LIB_WITH_FINAL_PREFIX([ - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - ]) - else - additional_includedir="$withval/include" - additional_libdir="$withval/lib" - fi - fi -]) - if test $use_additional = yes; then - dnl Potentially add $additional_includedir to $CPPFLAGS. - dnl But don't add it - dnl 1. if it's the standard /usr/include, - dnl 2. if it's already present in $CPPFLAGS, - dnl 3. if it's /usr/local/include and we are using GCC on Linux, - dnl 4. if it doesn't exist as a directory. - if test "X$additional_includedir" != "X/usr/include"; then - haveit= - for x in $CPPFLAGS; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-I$additional_includedir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test "X$additional_includedir" = "X/usr/local/include"; then - if test -n "$GCC"; then - case $host_os in - linux*) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - if test -d "$additional_includedir"; then - dnl Really add $additional_includedir to $CPPFLAGS. - CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir" - fi - fi - fi - fi - dnl Potentially add $additional_libdir to $LDFLAGS. - dnl But don't add it - dnl 1. if it's the standard /usr/lib, - dnl 2. if it's already present in $LDFLAGS, - dnl 3. if it's /usr/local/lib and we are using GCC on Linux, - dnl 4. if it doesn't exist as a directory. - if test "X$additional_libdir" != "X/usr/lib"; then - haveit= - for x in $LDFLAGS; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test "X$additional_libdir" = "X/usr/local/lib"; then - if test -n "$GCC"; then - case $host_os in - linux*) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - dnl Really add $additional_libdir to $LDFLAGS. - LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir" - fi - fi - fi - fi - fi -]) - -dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix, -dnl acl_final_exec_prefix, containing the values to which $prefix and -dnl $exec_prefix will expand at the end of the configure script. -AC_DEFUN([AC_LIB_PREPARE_PREFIX], -[ - dnl Unfortunately, prefix and exec_prefix get only finally determined - dnl at the end of configure. - if test "X$prefix" = "XNONE"; then - acl_final_prefix="$ac_default_prefix" - else - acl_final_prefix="$prefix" - fi - if test "X$exec_prefix" = "XNONE"; then - acl_final_exec_prefix='${prefix}' - else - acl_final_exec_prefix="$exec_prefix" - fi - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" - prefix="$acl_save_prefix" -]) - -dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the -dnl variables prefix and exec_prefix bound to the values they will have -dnl at the end of the configure script. -AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX], -[ - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - $1 - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" -]) - -# lib-link.m4 serial 3 (gettext-0.11.3) -dnl Copyright (C) 2001-2002 Free Software Foundation, Inc. -dnl This file is free software, distributed under the terms of the GNU -dnl General Public License. As a special exception to the GNU General -dnl Public License, this file may be distributed as part of a program -dnl that contains a configuration script generated by Autoconf, under -dnl the same distribution terms as the rest of that program. - -dnl From Bruno Haible. - -dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and -dnl the libraries corresponding to explicit and implicit dependencies. -dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and -dnl augments the CPPFLAGS variable. -AC_DEFUN([AC_LIB_LINKFLAGS], -[ - AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) - AC_REQUIRE([AC_LIB_RPATH]) - define([Name],[translit([$1],[./-], [___])]) - define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], - [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) - AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [ - AC_LIB_LINKFLAGS_BODY([$1], [$2]) - ac_cv_lib[]Name[]_libs="$LIB[]NAME" - ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME" - ac_cv_lib[]Name[]_cppflags="$INC[]NAME" - ]) - LIB[]NAME="$ac_cv_lib[]Name[]_libs" - LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs" - INC[]NAME="$ac_cv_lib[]Name[]_cppflags" - AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) - AC_SUBST([LIB]NAME) - AC_SUBST([LTLIB]NAME) - dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the - dnl results of this search when this library appears as a dependency. - HAVE_LIB[]NAME=yes - undefine([Name]) - undefine([NAME]) -]) - -dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode) -dnl searches for libname and the libraries corresponding to explicit and -dnl implicit dependencies, together with the specified include files and -dnl the ability to compile and link the specified testcode. If found, it -dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and -dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and -dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs -dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty. -AC_DEFUN([AC_LIB_HAVE_LINKFLAGS], -[ - AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) - AC_REQUIRE([AC_LIB_RPATH]) - define([Name],[translit([$1],[./-], [___])]) - define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], - [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) - - dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME - dnl accordingly. - AC_LIB_LINKFLAGS_BODY([$1], [$2]) - - dnl Add $INC[]NAME to CPPFLAGS before performing the following checks, - dnl because if the user has installed lib[]Name and not disabled its use - dnl via --without-lib[]Name-prefix, he wants to use it. - ac_save_CPPFLAGS="$CPPFLAGS" - AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) - - AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [ - ac_save_LIBS="$LIBS" - LIBS="$LIBS $LIB[]NAME" - AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no]) - LIBS="$ac_save_LIBS" - ]) - if test "$ac_cv_lib[]Name" = yes; then - HAVE_LIB[]NAME=yes - AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.]) - AC_MSG_CHECKING([how to link with lib[]$1]) - AC_MSG_RESULT([$LIB[]NAME]) - else - HAVE_LIB[]NAME=no - dnl If $LIB[]NAME didn't lead to a usable library, we don't need - dnl $INC[]NAME either. - CPPFLAGS="$ac_save_CPPFLAGS" - LIB[]NAME= - LTLIB[]NAME= - fi - AC_SUBST([HAVE_LIB]NAME) - AC_SUBST([LIB]NAME) - AC_SUBST([LTLIB]NAME) - undefine([Name]) - undefine([NAME]) -]) - -dnl Determine the platform dependent parameters needed to use rpath: -dnl libext, shlibext, hardcode_libdir_flag_spec, hardcode_libdir_separator, -dnl hardcode_direct, hardcode_minus_L, -dnl sys_lib_search_path_spec, sys_lib_dlsearch_path_spec. -AC_DEFUN([AC_LIB_RPATH], -[ - AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS - AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld - AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host - AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir - AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [ - CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ - ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh - . ./conftest.sh - rm -f ./conftest.sh - acl_cv_rpath=done - ]) - wl="$acl_cv_wl" - libext="$acl_cv_libext" - shlibext="$acl_cv_shlibext" - hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" - hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" - hardcode_direct="$acl_cv_hardcode_direct" - hardcode_minus_L="$acl_cv_hardcode_minus_L" - sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec" - sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec" - dnl Determine whether the user wants rpath handling at all. - AC_ARG_ENABLE(rpath, - [ --disable-rpath do not hardcode runtime library paths], - :, enable_rpath=yes) -]) - -dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and -dnl the libraries corresponding to explicit and implicit dependencies. -dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables. -AC_DEFUN([AC_LIB_LINKFLAGS_BODY], -[ - define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], - [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) - dnl By default, look in $includedir and $libdir. - use_additional=yes - AC_LIB_WITH_FINAL_PREFIX([ - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - ]) - AC_ARG_WITH([lib$1-prefix], -[ --with-lib$1-prefix[=DIR] search for lib$1 in DIR/include and DIR/lib - --without-lib$1-prefix don't search for lib$1 in includedir and libdir], -[ - if test "X$withval" = "Xno"; then - use_additional=no - else - if test "X$withval" = "X"; then - AC_LIB_WITH_FINAL_PREFIX([ - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - ]) - else - additional_includedir="$withval/include" - additional_libdir="$withval/lib" - fi - fi -]) - dnl Search the library and its dependencies in $additional_libdir and - dnl $LDFLAGS. Using breadth-first-seach. - LIB[]NAME= - LTLIB[]NAME= - INC[]NAME= - rpathdirs= - ltrpathdirs= - names_already_handled= - names_next_round='$1 $2' - while test -n "$names_next_round"; do - names_this_round="$names_next_round" - names_next_round= - for name in $names_this_round; do - already_handled= - for n in $names_already_handled; do - if test "$n" = "$name"; then - already_handled=yes - break - fi - done - if test -z "$already_handled"; then - names_already_handled="$names_already_handled $name" - dnl See if it was already located by an earlier AC_LIB_LINKFLAGS - dnl or AC_LIB_HAVE_LINKFLAGS call. - uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` - eval value=\"\$HAVE_LIB$uppername\" - if test -n "$value"; then - if test "$value" = yes; then - eval value=\"\$LIB$uppername\" - test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value" - eval value=\"\$LTLIB$uppername\" - test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value" - else - dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined - dnl that this library doesn't exist. So just drop it. - : - fi - else - dnl Search the library lib$name in $additional_libdir and $LDFLAGS - dnl and the already constructed $LIBNAME/$LTLIBNAME. - found_dir= - found_la= - found_so= - found_a= - if test $use_additional = yes; then - if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then - found_dir="$additional_libdir" - found_so="$additional_libdir/lib$name.$shlibext" - if test -f "$additional_libdir/lib$name.la"; then - found_la="$additional_libdir/lib$name.la" - fi - else - if test -f "$additional_libdir/lib$name.$libext"; then - found_dir="$additional_libdir" - found_a="$additional_libdir/lib$name.$libext" - if test -f "$additional_libdir/lib$name.la"; then - found_la="$additional_libdir/lib$name.la" - fi - fi - fi - fi - if test "X$found_dir" = "X"; then - for x in $LDFLAGS $LTLIB[]NAME; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - case "$x" in - -L*) - dir=`echo "X$x" | sed -e 's/^X-L//'` - if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then - found_dir="$dir" - found_so="$dir/lib$name.$shlibext" - if test -f "$dir/lib$name.la"; then - found_la="$dir/lib$name.la" - fi - else - if test -f "$dir/lib$name.$libext"; then - found_dir="$dir" - found_a="$dir/lib$name.$libext" - if test -f "$dir/lib$name.la"; then - found_la="$dir/lib$name.la" - fi - fi - fi - ;; - esac - if test "X$found_dir" != "X"; then - break - fi - done - fi - if test "X$found_dir" != "X"; then - dnl Found the library. - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name" - if test "X$found_so" != "X"; then - dnl Linking with a shared library. We attempt to hardcode its - dnl directory into the executable's runpath, unless it's the - dnl standard /usr/lib. - if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then - dnl No hardcoding is needed. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" - else - dnl Use an explicit option to hardcode DIR into the resulting - dnl binary. - dnl Potentially add DIR to ltrpathdirs. - dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $found_dir" - fi - dnl The hardcoding into $LIBNAME is system dependent. - if test "$hardcode_direct" = yes; then - dnl Using DIR/libNAME.so during linking hardcodes DIR into the - dnl resulting binary. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" - else - if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then - dnl Use an explicit option to hardcode DIR into the resulting - dnl binary. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" - dnl Potentially add DIR to rpathdirs. - dnl The rpathdirs will be appended to $LIBNAME at the end. - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $found_dir" - fi - else - dnl Rely on "-L$found_dir". - dnl But don't add it if it's already contained in the LDFLAGS - dnl or the already constructed $LIBNAME - haveit= - for x in $LDFLAGS $LIB[]NAME; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-L$found_dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir" - fi - if test "$hardcode_minus_L" != no; then - dnl FIXME: Not sure whether we should use - dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" - dnl here. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" - else - dnl We cannot use $hardcode_runpath_var and LD_RUN_PATH - dnl here, because this doesn't fit in flags passed to the - dnl compiler. So give up. No hardcoding. This affects only - dnl very old systems. - dnl FIXME: Not sure whether we should use - dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" - dnl here. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" - fi - fi - fi - fi - else - if test "X$found_a" != "X"; then - dnl Linking with a static library. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a" - else - dnl We shouldn't come here, but anyway it's good to have a - dnl fallback. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name" - fi - fi - dnl Assume the include files are nearby. - additional_includedir= - case "$found_dir" in - */lib | */lib/) - basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` - additional_includedir="$basedir/include" - ;; - esac - if test "X$additional_includedir" != "X"; then - dnl Potentially add $additional_includedir to $INCNAME. - dnl But don't add it - dnl 1. if it's the standard /usr/include, - dnl 2. if it's /usr/local/include and we are using GCC on Linux, - dnl 3. if it's already present in $CPPFLAGS or the already - dnl constructed $INCNAME, - dnl 4. if it doesn't exist as a directory. - if test "X$additional_includedir" != "X/usr/include"; then - haveit= - if test "X$additional_includedir" = "X/usr/local/include"; then - if test -n "$GCC"; then - case $host_os in - linux*) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - for x in $CPPFLAGS $INC[]NAME; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-I$additional_includedir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_includedir"; then - dnl Really add $additional_includedir to $INCNAME. - INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir" - fi - fi - fi - fi - fi - dnl Look for dependencies. - if test -n "$found_la"; then - dnl Read the .la file. It defines the variables - dnl dlname, library_names, old_library, dependency_libs, current, - dnl age, revision, installed, dlopen, dlpreopen, libdir. - save_libdir="$libdir" - case "$found_la" in - */* | *\\*) . "$found_la" ;; - *) . "./$found_la" ;; - esac - libdir="$save_libdir" - dnl We use only dependency_libs. - for dep in $dependency_libs; do - case "$dep" in - -L*) - additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` - dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME. - dnl But don't add it - dnl 1. if it's the standard /usr/lib, - dnl 2. if it's /usr/local/lib and we are using GCC on Linux, - dnl 3. if it's already present in $LDFLAGS or the already - dnl constructed $LIBNAME, - dnl 4. if it doesn't exist as a directory. - if test "X$additional_libdir" != "X/usr/lib"; then - haveit= - if test "X$additional_libdir" = "X/usr/local/lib"; then - if test -n "$GCC"; then - case $host_os in - linux*) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - haveit= - for x in $LDFLAGS $LIB[]NAME; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - dnl Really add $additional_libdir to $LIBNAME. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir" - fi - fi - haveit= - for x in $LDFLAGS $LTLIB[]NAME; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - dnl Really add $additional_libdir to $LTLIBNAME. - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir" - fi - fi - fi - fi - ;; - -R*) - dir=`echo "X$dep" | sed -e 's/^X-R//'` - if test "$enable_rpath" != no; then - dnl Potentially add DIR to rpathdirs. - dnl The rpathdirs will be appended to $LIBNAME at the end. - haveit= - for x in $rpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - rpathdirs="$rpathdirs $dir" - fi - dnl Potentially add DIR to ltrpathdirs. - dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. - haveit= - for x in $ltrpathdirs; do - if test "X$x" = "X$dir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - ltrpathdirs="$ltrpathdirs $dir" - fi - fi - ;; - -l*) - dnl Handle this in the next round. - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` - ;; - *.la) - dnl Handle this in the next round. Throw away the .la's - dnl directory; it is already contained in a preceding -L - dnl option. - names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` - ;; - *) - dnl Most likely an immediate library name. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep" - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep" - ;; - esac - done - fi - else - dnl Didn't find the library; assume it is in the system directories - dnl known to the linker and runtime loader. (All the system - dnl directories known to the linker should also be known to the - dnl runtime loader, otherwise the system is severely misconfigured.) - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name" - fi - fi - fi - done - done - if test "X$rpathdirs" != "X"; then - if test -n "$hardcode_libdir_separator"; then - dnl Weird platform: only the last -rpath option counts, the user must - dnl pass all path elements in one option. We can arrange that for a - dnl single library, but not when more than one $LIBNAMEs are used. - alldirs= - for found_dir in $rpathdirs; do - alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" - done - dnl Note: hardcode_libdir_flag_spec uses $libdir and $wl. - acl_save_libdir="$libdir" - libdir="$alldirs" - eval flag=\"$hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" - else - dnl The -rpath options are cumulative. - for found_dir in $rpathdirs; do - acl_save_libdir="$libdir" - libdir="$found_dir" - eval flag=\"$hardcode_libdir_flag_spec\" - libdir="$acl_save_libdir" - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" - done - fi - fi - if test "X$ltrpathdirs" != "X"; then - dnl When using libtool, the option that works for both libraries and - dnl executables is -R. The -R options are cumulative. - for found_dir in $ltrpathdirs; do - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir" - done - fi -]) - -dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR, -dnl unless already present in VAR. -dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes -dnl contains two or three consecutive elements that belong together. -AC_DEFUN([AC_LIB_APPENDTOVAR], -[ - for element in [$2]; do - haveit= - for x in $[$1]; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X$element"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - [$1]="${[$1]}${[$1]:+ }$element" - fi - done -]) - -# lib-ld.m4 serial 1 (gettext-0.11) -dnl Copyright (C) 1996-2002 Free Software Foundation, Inc. -dnl This file is free software, distributed under the terms of the GNU -dnl General Public License. As a special exception to the GNU General -dnl Public License, this file may be distributed as part of a program -dnl that contains a configuration script generated by Autoconf, under -dnl the same distribution terms as the rest of that program. - -dnl Subroutines of libtool.m4, -dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision -dnl with libtool.m4. - -dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no. -AC_DEFUN([AC_LIB_PROG_LD_GNU], -[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld, -[# I'd rather use --version here, but apparently some GNU ld's only accept -v. -if $LD -v 2>&1 &5; then - acl_cv_prog_gnu_ld=yes +# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- + +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 4 + +# AM_MISSING_PROG(NAME, PROGRAM) +# ------------------------------ +AC_DEFUN([AM_MISSING_PROG], +[AC_REQUIRE([AM_MISSING_HAS_RUN]) +$1=${$1-"${am_missing_run}$2"} +AC_SUBST($1)]) + + +# AM_MISSING_HAS_RUN +# ------------------ +# Define MISSING if not defined so far and test if it supports --run. +# If it does, set am_missing_run to use it, otherwise, to nothing. +AC_DEFUN([AM_MISSING_HAS_RUN], +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl +test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" +# Use eval to expand $SHELL +if eval "$MISSING --run true"; then + am_missing_run="$MISSING --run " else - acl_cv_prog_gnu_ld=no -fi]) -with_gnu_ld=$acl_cv_prog_gnu_ld + am_missing_run= + AC_MSG_WARN([`missing' script is too old or missing]) +fi ]) -dnl From libtool-1.4. Sets the variable LD. -AC_DEFUN([AC_LIB_PROG_LD], -[AC_ARG_WITH(gnu-ld, -[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]], -test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no) -AC_REQUIRE([AC_PROG_CC])dnl -AC_REQUIRE([AC_CANONICAL_HOST])dnl -ac_prog=ld -if test "$GCC" = yes; then - # Check if gcc -print-prog-name=ld gives a path. - AC_MSG_CHECKING([for ld used by GCC]) - case $host in - *-*-mingw*) - # gcc leaves a trailing carriage return which upsets mingw - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; - *) - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; - esac - case $ac_prog in - # Accept absolute paths. - [[\\/]* | [A-Za-z]:[\\/]*)] - [re_direlt='/[^/][^/]*/\.\./'] - # Canonicalize the path of ld - ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do - ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` - done - test -z "$LD" && LD="$ac_prog" - ;; - "") - # If it fails, then pretend we aren't using GCC. - ac_prog=ld +# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_PROG_MKDIR_P +# --------------- +# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise. +# +# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories +# created by `make install' are always world readable, even if the +# installer happens to have an overly restrictive umask (e.g. 077). +# This was a mistake. There are at least two reasons why we must not +# use `-m 0755': +# - it causes special bits like SGID to be ignored, +# - it may be too restrictive (some setups expect 775 directories). +# +# Do not use -m 0755 and let people choose whatever they expect by +# setting umask. +# +# We cannot accept any implementation of `mkdir' that recognizes `-p'. +# Some implementations (such as Solaris 8's) are not thread-safe: if a +# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c' +# concurrently, both version can detect that a/ is missing, but only +# one can create it and the other will error out. Consequently we +# restrict ourselves to GNU make (using the --version option ensures +# this.) +AC_DEFUN([AM_PROG_MKDIR_P], +[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then + # We used to keeping the `.' as first argument, in order to + # allow $(mkdir_p) to be used without argument. As in + # $(mkdir_p) $(somedir) + # where $(somedir) is conditionally defined. However this is wrong + # for two reasons: + # 1. if the package is installed by a user who cannot write `.' + # make install will fail, + # 2. the above comment should most certainly read + # $(mkdir_p) $(DESTDIR)$(somedir) + # so it does not work when $(somedir) is undefined and + # $(DESTDIR) is not. + # To support the latter case, we have to write + # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), + # so the `.' trick is pointless. + mkdir_p='mkdir -p --' +else + # On NextStep and OpenStep, the `mkdir' command does not + # recognize any option. It will interpret all options as + # directories to create, and then abort because `.' already + # exists. + for d in ./-p ./--version; + do + test -d $d && rmdir $d + done + # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. + if test -f "$ac_aux_dir/mkinstalldirs"; then + mkdir_p='$(mkinstalldirs)' + else + mkdir_p='$(install_sh) -d' + fi +fi +AC_SUBST([mkdir_p])]) + +# Helper functions for option handling. -*- Autoconf -*- + +# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 3 + +# _AM_MANGLE_OPTION(NAME) +# ----------------------- +AC_DEFUN([_AM_MANGLE_OPTION], +[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) + +# _AM_SET_OPTION(NAME) +# ------------------------------ +# Set option NAME. Presently that only means defining a flag for this option. +AC_DEFUN([_AM_SET_OPTION], +[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) + +# _AM_SET_OPTIONS(OPTIONS) +# ---------------------------------- +# OPTIONS is a space-separated list of Automake options. +AC_DEFUN([_AM_SET_OPTIONS], +[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) + +# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) +# ------------------------------------------- +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. +AC_DEFUN([_AM_IF_OPTION], +[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) + +# Check to make sure that the build environment is sane. -*- Autoconf -*- + +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 +# Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 4 + +# AM_SANITY_CHECK +# --------------- +AC_DEFUN([AM_SANITY_CHECK], +[AC_MSG_CHECKING([whether build environment is sane]) +# Just in case +sleep 1 +echo timestamp > conftest.file +# Do `set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` + if test "$[*]" = "X"; then + # -L didn't work. + set X `ls -t $srcdir/configure conftest.file` + fi + rm -f conftest.file + if test "$[*]" != "X $srcdir/configure conftest.file" \ + && test "$[*]" != "X conftest.file $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken +alias in your environment]) + fi + + test "$[2]" = conftest.file + ) +then + # Ok. + : +else + AC_MSG_ERROR([newly created file is older than distributed files! +Check your system clock]) +fi +AC_MSG_RESULT(yes)]) + +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# AM_PROG_INSTALL_STRIP +# --------------------- +# One issue with vendor `install' (even GNU) is that you can't +# specify the program used to strip binaries. This is especially +# annoying in cross-compiling environments, where the build's strip +# is unlikely to handle the host's binaries. +# Fortunately install-sh will honor a STRIPPROG variable, so we +# always use install-sh in `make install-strip', and initialize +# STRIPPROG with the value of the STRIP variable (set by the user). +AC_DEFUN([AM_PROG_INSTALL_STRIP], +[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl +# Installed binaries are usually stripped using `strip' when the user +# run `make install-strip'. However `strip' might not be the right +# tool to use in cross-compilation environments, therefore Automake +# will honor the `STRIP' environment variable to overrule this program. +dnl Don't test for $cross_compiling = yes, because it might be `maybe'. +if test "$cross_compiling" != no; then + AC_CHECK_TOOL([STRIP], [strip], :) +fi +INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" +AC_SUBST([INSTALL_STRIP_PROGRAM])]) + +# Check how to create a tarball. -*- Autoconf -*- + +# Copyright (C) 2004, 2005 Free Software Foundation, Inc. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# serial 2 + +# _AM_PROG_TAR(FORMAT) +# -------------------- +# Check how to create a tarball in format FORMAT. +# FORMAT should be one of `v7', `ustar', or `pax'. +# +# Substitute a variable $(am__tar) that is a command +# writing to stdout a FORMAT-tarball containing the directory +# $tardir. +# tardir=directory && $(am__tar) > result.tar +# +# Substitute a variable $(am__untar) that extract such +# a tarball read from stdin. +# $(am__untar) < result.tar +AC_DEFUN([_AM_PROG_TAR], +[# Always define AMTAR for backward compatibility. +AM_MISSING_PROG([AMTAR], [tar]) +m4_if([$1], [v7], + [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], + [m4_case([$1], [ustar],, [pax],, + [m4_fatal([Unknown tar format])]) +AC_MSG_CHECKING([how to create a $1 tar archive]) +# Loop over all known methods to create a tar archive until one works. +_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' +_am_tools=${am_cv_prog_tar_$1-$_am_tools} +# Do not fold the above two line into one, because Tru64 sh and +# Solaris sh will not grok spaces in the rhs of `-'. +for _am_tool in $_am_tools +do + case $_am_tool in + gnutar) + for _am_tar in tar gnutar gtar; + do + AM_RUN_LOG([$_am_tar --version]) && break + done + am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' + am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' + am__untar="$_am_tar -xf -" ;; - *) - # If it is relative, then search for the first ld in PATH. - with_gnu_ld=unknown + plaintar) + # Must skip GNU tar: if it does not support --format= it doesn't create + # ustar tarball either. + (tar --version) >/dev/null 2>&1 && continue + am__tar='tar chf - "$$tardir"' + am__tar_='tar chf - "$tardir"' + am__untar='tar xf -' + ;; + pax) + am__tar='pax -L -x $1 -w "$$tardir"' + am__tar_='pax -L -x $1 -w "$tardir"' + am__untar='pax -r' + ;; + cpio) + am__tar='find "$$tardir" -print | cpio -o -H $1 -L' + am__tar_='find "$tardir" -print | cpio -o -H $1 -L' + am__untar='cpio -i -H $1 -d' + ;; + none) + am__tar=false + am__tar_=false + am__untar=false ;; esac -elif test "$with_gnu_ld" = yes; then - AC_MSG_CHECKING([for GNU ld]) -else - AC_MSG_CHECKING([for non-GNU ld]) -fi -AC_CACHE_VAL(acl_cv_path_LD, -[if test -z "$LD"; then - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then - acl_cv_path_LD="$ac_dir/$ac_prog" - # Check to see if the program is GNU ld. I'd rather use --version, - # but apparently some GNU ld's only accept -v. - # Break only if it was the GNU/non-GNU ld that we prefer. - if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then - test "$with_gnu_ld" != no && break - else - test "$with_gnu_ld" != yes && break - fi - fi - done - IFS="$ac_save_ifs" -else - acl_cv_path_LD="$LD" # Let the user override the test with a path. -fi]) -LD="$acl_cv_path_LD" -if test -n "$LD"; then - AC_MSG_RESULT($LD) -else - AC_MSG_RESULT(no) -fi -test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) -AC_LIB_PROG_LD_GNU -]) -# iconv.m4 serial AM4 (gettext-0.11.3) -dnl Copyright (C) 2000-2002 Free Software Foundation, Inc. -dnl This file is free software, distributed under the terms of the GNU -dnl General Public License. As a special exception to the GNU General -dnl Public License, this file may be distributed as part of a program -dnl that contains a configuration script generated by Autoconf, under -dnl the same distribution terms as the rest of that program. + # If the value was cached, stop now. We just wanted to have am__tar + # and am__untar set. + test -n "${am_cv_prog_tar_$1}" && break -dnl From Bruno Haible. - -AC_DEFUN([AM_ICONV_LINKFLAGS_BODY], -[ - dnl Prerequisites of AC_LIB_LINKFLAGS_BODY. - AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) - AC_REQUIRE([AC_LIB_RPATH]) - - dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV - dnl accordingly. - AC_LIB_LINKFLAGS_BODY([iconv]) -]) - -AC_DEFUN([AM_ICONV_LINK], -[ - dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and - dnl those with the standalone portable GNU libiconv installed). - - dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV - dnl accordingly. - AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY]) - - dnl Add $INCICONV to CPPFLAGS before performing the following checks, - dnl because if the user has installed libiconv and not disabled its use - dnl via --without-libiconv-prefix, he wants to use it. The first - dnl AC_TRY_LINK will then fail, the second AC_TRY_LINK will succeed. - am_save_CPPFLAGS="$CPPFLAGS" - AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV]) - - AC_CACHE_CHECK(for iconv, am_cv_func_iconv, [ - am_cv_func_iconv="no, consider installing GNU libiconv" - am_cv_lib_iconv=no - AC_TRY_LINK([#include -#include ], - [iconv_t cd = iconv_open("",""); - iconv(cd,NULL,NULL,NULL,NULL); - iconv_close(cd);], - am_cv_func_iconv=yes) - if test "$am_cv_func_iconv" != yes; then - am_save_LIBS="$LIBS" - LIBS="$LIBS $LIBICONV" - AC_TRY_LINK([#include -#include ], - [iconv_t cd = iconv_open("",""); - iconv(cd,NULL,NULL,NULL,NULL); - iconv_close(cd);], - am_cv_lib_iconv=yes - am_cv_func_iconv=yes) - LIBS="$am_save_LIBS" - fi - ]) - if test "$am_cv_func_iconv" = yes; then - AC_DEFINE(HAVE_ICONV, 1, [Define if you have the iconv() function.]) + # tar/untar a dummy directory, and stop if the command works + rm -rf conftest.dir + mkdir conftest.dir + echo GrepMe > conftest.dir/file + AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) + rm -rf conftest.dir + if test -s conftest.tar; then + AM_RUN_LOG([$am__untar /dev/null 2>&1 && break fi - if test "$am_cv_lib_iconv" = yes; then - AC_MSG_CHECKING([how to link with libiconv]) - AC_MSG_RESULT([$LIBICONV]) - else - dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV - dnl either. - CPPFLAGS="$am_save_CPPFLAGS" - LIBICONV= - LTLIBICONV= - fi - AC_SUBST(LIBICONV) - AC_SUBST(LTLIBICONV) -]) +done +rm -rf conftest.dir -AC_DEFUN([AM_ICONV], -[ - AM_ICONV_LINK - if test "$am_cv_func_iconv" = yes; then - AC_MSG_CHECKING([for iconv declaration]) - AC_CACHE_VAL(am_cv_proto_iconv, [ - AC_TRY_COMPILE([ -#include -#include -extern -#ifdef __cplusplus -"C" -#endif -#if defined(__STDC__) || defined(__cplusplus) -size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); -#else -size_t iconv(); -#endif -], [], am_cv_proto_iconv_arg1="", am_cv_proto_iconv_arg1="const") - am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"]) - am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` - AC_MSG_RESULT([$]{ac_t:- - }[$]am_cv_proto_iconv) - AC_DEFINE_UNQUOTED(ICONV_CONST, $am_cv_proto_iconv_arg1, - [Define as const if the declaration of iconv() needs const.]) - fi -]) - -# progtest.m4 serial 2 (gettext-0.10.40) -dnl Copyright (C) 1996-2002 Free Software Foundation, Inc. -dnl This file is free software, distributed under the terms of the GNU -dnl General Public License. As a special exception to the GNU General -dnl Public License, this file may be distributed as part of a program -dnl that contains a configuration script generated by Autoconf, under -dnl the same distribution terms as the rest of that program. -dnl -dnl This file can can be used in projects which are not available under -dnl the GNU General Public License or the GNU Library General Public -dnl License but which still want to provide support for the GNU gettext -dnl functionality. -dnl Please note that the actual code of the GNU gettext library is covered -dnl by the GNU Library General Public License, and the rest of the GNU -dnl gettext package package is covered by the GNU General Public License. -dnl They are *not* in the public domain. - -dnl Authors: -dnl Ulrich Drepper , 1996. - -# Search path for a program which passes the given test. - -dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, -dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) -AC_DEFUN([AM_PATH_PROG_WITH_TEST], -[# Extract the first word of "$2", so it can be a program name with args. -set dummy $2; ac_word=[$]2 -AC_MSG_CHECKING([for $ac_word]) -AC_CACHE_VAL(ac_cv_path_$1, -[case "[$]$1" in - /*) - ac_cv_path_$1="[$]$1" # Let the user override the test with a path. - ;; - *) - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" - for ac_dir in ifelse([$5], , $PATH, [$5]); do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - if [$3]; then - ac_cv_path_$1="$ac_dir/$ac_word" - break - fi - fi - done - IFS="$ac_save_ifs" -dnl If no 4th arg is given, leave the cache variable unset, -dnl so AC_PATH_PROGS will keep looking. -ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" -])dnl - ;; -esac])dnl -$1="$ac_cv_path_$1" -if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then - AC_MSG_RESULT([$]$1) -else - AC_MSG_RESULT(no) -fi -AC_SUBST($1)dnl -]) - -# glibc21.m4 serial 2 (fileutils-4.1.3, gettext-0.10.40) -dnl Copyright (C) 2000-2002 Free Software Foundation, Inc. -dnl This file is free software, distributed under the terms of the GNU -dnl General Public License. As a special exception to the GNU General -dnl Public License, this file may be distributed as part of a program -dnl that contains a configuration script generated by Autoconf, under -dnl the same distribution terms as the rest of that program. - -# Test for the GNU C Library, version 2.1 or newer. -# From Bruno Haible. - -AC_DEFUN([jm_GLIBC21], - [ - AC_CACHE_CHECK(whether we are using the GNU C Library 2.1 or newer, - ac_cv_gnu_library_2_1, - [AC_EGREP_CPP([Lucky GNU user], - [ -#include -#ifdef __GNU_LIBRARY__ - #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) - Lucky GNU user - #endif -#endif - ], - ac_cv_gnu_library_2_1=yes, - ac_cv_gnu_library_2_1=no) - ] - ) - AC_SUBST(GLIBC21) - GLIBC21="$ac_cv_gnu_library_2_1" - ] -) - -# intdiv0.m4 serial 1 (gettext-0.11.3) -dnl Copyright (C) 2002 Free Software Foundation, Inc. -dnl This file is free software, distributed under the terms of the GNU -dnl General Public License. As a special exception to the GNU General -dnl Public License, this file may be distributed as part of a program -dnl that contains a configuration script generated by Autoconf, under -dnl the same distribution terms as the rest of that program. - -dnl From Bruno Haible. - -AC_DEFUN([gt_INTDIV0], -[ - AC_REQUIRE([AC_PROG_CC])dnl - AC_REQUIRE([AC_CANONICAL_HOST])dnl - - AC_CACHE_CHECK([whether integer division by zero raises SIGFPE], - gt_cv_int_divbyzero_sigfpe, - [ - AC_TRY_RUN([ -#include -#include - -static void -#ifdef __cplusplus -sigfpe_handler (int sig) -#else -sigfpe_handler (sig) int sig; -#endif -{ - /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ - exit (sig != SIGFPE); -} - -int x = 1; -int y = 0; -int z; -int nan; - -int main () -{ - signal (SIGFPE, sigfpe_handler); -/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ -#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) - signal (SIGTRAP, sigfpe_handler); -#endif -/* Linux/SPARC yields signal SIGILL. */ -#if defined (__sparc__) && defined (__linux__) - signal (SIGILL, sigfpe_handler); -#endif - - z = x / y; - nan = y / y; - exit (1); -} -], gt_cv_int_divbyzero_sigfpe=yes, gt_cv_int_divbyzero_sigfpe=no, - [ - # Guess based on the CPU. - case "$host_cpu" in - alpha* | i[34567]86 | m68k | s390*) - gt_cv_int_divbyzero_sigfpe="guessing yes";; - *) - gt_cv_int_divbyzero_sigfpe="guessing no";; - esac - ]) - ]) - case "$gt_cv_int_divbyzero_sigfpe" in - *yes) value=1;; - *) value=0;; - esac - AC_DEFINE_UNQUOTED(INTDIV0_RAISES_SIGFPE, $value, - [Define if integer division by zero raises signal SIGFPE.]) -]) - -# uintmax_t.m4 serial 6 (gettext-0.11) -dnl Copyright (C) 1997-2002 Free Software Foundation, Inc. -dnl This file is free software, distributed under the terms of the GNU -dnl General Public License. As a special exception to the GNU General -dnl Public License, this file may be distributed as part of a program -dnl that contains a configuration script generated by Autoconf, under -dnl the same distribution terms as the rest of that program. - -dnl From Paul Eggert. - -AC_PREREQ(2.13) - -# Define uintmax_t to `unsigned long' or `unsigned long long' -# if does not exist. - -AC_DEFUN([jm_AC_TYPE_UINTMAX_T], -[ - AC_REQUIRE([jm_AC_HEADER_INTTYPES_H]) - AC_REQUIRE([jm_AC_HEADER_STDINT_H]) - if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then - AC_REQUIRE([jm_AC_TYPE_UNSIGNED_LONG_LONG]) - test $ac_cv_type_unsigned_long_long = yes \ - && ac_type='unsigned long long' \ - || ac_type='unsigned long' - AC_DEFINE_UNQUOTED(uintmax_t, $ac_type, - [Define to unsigned long or unsigned long long - if and don't define.]) - fi -]) - -# inttypes_h.m4 serial 4 (gettext-0.11.4) -dnl Copyright (C) 1997-2002 Free Software Foundation, Inc. -dnl This file is free software, distributed under the terms of the GNU -dnl General Public License. As a special exception to the GNU General -dnl Public License, this file may be distributed as part of a program -dnl that contains a configuration script generated by Autoconf, under -dnl the same distribution terms as the rest of that program. - -dnl From Paul Eggert. - -# Define HAVE_INTTYPES_H_WITH_UINTMAX if exists, -# doesn't clash with , and declares uintmax_t. - -AC_DEFUN([jm_AC_HEADER_INTTYPES_H], -[ - AC_CACHE_CHECK([for inttypes.h], jm_ac_cv_header_inttypes_h, - [AC_TRY_COMPILE( - [#include -#include ], - [uintmax_t i = (uintmax_t) -1;], - jm_ac_cv_header_inttypes_h=yes, - jm_ac_cv_header_inttypes_h=no)]) - if test $jm_ac_cv_header_inttypes_h = yes; then - AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H_WITH_UINTMAX, 1, -[Define if exists, doesn't clash with , - and declares uintmax_t. ]) - fi -]) - -# stdint_h.m4 serial 2 (gettext-0.11.4) -dnl Copyright (C) 1997-2002 Free Software Foundation, Inc. -dnl This file is free software, distributed under the terms of the GNU -dnl General Public License. As a special exception to the GNU General -dnl Public License, this file may be distributed as part of a program -dnl that contains a configuration script generated by Autoconf, under -dnl the same distribution terms as the rest of that program. - -dnl From Paul Eggert. - -# Define HAVE_STDINT_H_WITH_UINTMAX if exists, -# doesn't clash with , and declares uintmax_t. - -AC_DEFUN([jm_AC_HEADER_STDINT_H], -[ - AC_CACHE_CHECK([for stdint.h], jm_ac_cv_header_stdint_h, - [AC_TRY_COMPILE( - [#include -#include ], - [uintmax_t i = (uintmax_t) -1;], - jm_ac_cv_header_stdint_h=yes, - jm_ac_cv_header_stdint_h=no)]) - if test $jm_ac_cv_header_stdint_h = yes; then - AC_DEFINE_UNQUOTED(HAVE_STDINT_H_WITH_UINTMAX, 1, -[Define if exists, doesn't clash with , - and declares uintmax_t. ]) - fi -]) - -# ulonglong.m4 serial 2 (fileutils-4.0.32, gettext-0.10.40) -dnl Copyright (C) 1999-2002 Free Software Foundation, Inc. -dnl This file is free software, distributed under the terms of the GNU -dnl General Public License. As a special exception to the GNU General -dnl Public License, this file may be distributed as part of a program -dnl that contains a configuration script generated by Autoconf, under -dnl the same distribution terms as the rest of that program. - -dnl From Paul Eggert. - -AC_DEFUN([jm_AC_TYPE_UNSIGNED_LONG_LONG], -[ - AC_CACHE_CHECK([for unsigned long long], ac_cv_type_unsigned_long_long, - [AC_TRY_LINK([unsigned long long ull = 1; int i = 63;], - [unsigned long long ullmax = (unsigned long long) -1; - return ull << i | ull >> i | ullmax / ull | ullmax % ull;], - ac_cv_type_unsigned_long_long=yes, - ac_cv_type_unsigned_long_long=no)]) - if test $ac_cv_type_unsigned_long_long = yes; then - AC_DEFINE(HAVE_UNSIGNED_LONG_LONG, 1, - [Define if you have the unsigned long long type.]) - fi -]) - -# inttypes.m4 serial 1 (gettext-0.11.4) -dnl Copyright (C) 1997-2002 Free Software Foundation, Inc. -dnl This file is free software, distributed under the terms of the GNU -dnl General Public License. As a special exception to the GNU General -dnl Public License, this file may be distributed as part of a program -dnl that contains a configuration script generated by Autoconf, under -dnl the same distribution terms as the rest of that program. - -dnl From Paul Eggert. - -# Define HAVE_INTTYPES_H if exists and doesn't clash with -# . - -AC_DEFUN([gt_HEADER_INTTYPES_H], -[ - AC_CACHE_CHECK([for inttypes.h], gt_cv_header_inttypes_h, - [ - AC_TRY_COMPILE( - [#include -#include ], - [], gt_cv_header_inttypes_h=yes, gt_cv_header_inttypes_h=no) - ]) - if test $gt_cv_header_inttypes_h = yes; then - AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H, 1, - [Define if exists and doesn't clash with .]) - fi -]) - -# inttypes-pri.m4 serial 1 (gettext-0.11.4) -dnl Copyright (C) 1997-2002 Free Software Foundation, Inc. -dnl This file is free software, distributed under the terms of the GNU -dnl General Public License. As a special exception to the GNU General -dnl Public License, this file may be distributed as part of a program -dnl that contains a configuration script generated by Autoconf, under -dnl the same distribution terms as the rest of that program. - -dnl From Bruno Haible. - -# Define PRI_MACROS_BROKEN if exists and defines the PRI* -# macros to non-string values. This is the case on AIX 4.3.3. - -AC_DEFUN([gt_INTTYPES_PRI], -[ - AC_REQUIRE([gt_HEADER_INTTYPES_H]) - if test $gt_cv_header_inttypes_h = yes; then - AC_CACHE_CHECK([whether the inttypes.h PRIxNN macros are broken], - gt_cv_inttypes_pri_broken, - [ - AC_TRY_COMPILE([#include -#ifdef PRId32 -char *p = PRId32; -#endif -], [], gt_cv_inttypes_pri_broken=no, gt_cv_inttypes_pri_broken=yes) - ]) - fi - if test "$gt_cv_inttypes_pri_broken" = yes; then - AC_DEFINE_UNQUOTED(PRI_MACROS_BROKEN, 1, - [Define if exists and defines unusable PRI* macros.]) - fi -]) - -# codeset.m4 serial AM1 (gettext-0.10.40) -dnl Copyright (C) 2000-2002 Free Software Foundation, Inc. -dnl This file is free software, distributed under the terms of the GNU -dnl General Public License. As a special exception to the GNU General -dnl Public License, this file may be distributed as part of a program -dnl that contains a configuration script generated by Autoconf, under -dnl the same distribution terms as the rest of that program. - -dnl From Bruno Haible. - -AC_DEFUN([AM_LANGINFO_CODESET], -[ - AC_CACHE_CHECK([for nl_langinfo and CODESET], am_cv_langinfo_codeset, - [AC_TRY_LINK([#include ], - [char* cs = nl_langinfo(CODESET);], - am_cv_langinfo_codeset=yes, - am_cv_langinfo_codeset=no) - ]) - if test $am_cv_langinfo_codeset = yes; then - AC_DEFINE(HAVE_LANGINFO_CODESET, 1, - [Define if you have and nl_langinfo(CODESET).]) - fi -]) - -# lcmessage.m4 serial 3 (gettext-0.11.3) -dnl Copyright (C) 1995-2002 Free Software Foundation, Inc. -dnl This file is free software, distributed under the terms of the GNU -dnl General Public License. As a special exception to the GNU General -dnl Public License, this file may be distributed as part of a program -dnl that contains a configuration script generated by Autoconf, under -dnl the same distribution terms as the rest of that program. -dnl -dnl This file can can be used in projects which are not available under -dnl the GNU General Public License or the GNU Library General Public -dnl License but which still want to provide support for the GNU gettext -dnl functionality. -dnl Please note that the actual code of the GNU gettext library is covered -dnl by the GNU Library General Public License, and the rest of the GNU -dnl gettext package package is covered by the GNU General Public License. -dnl They are *not* in the public domain. - -dnl Authors: -dnl Ulrich Drepper , 1995. - -# Check whether LC_MESSAGES is available in . - -AC_DEFUN([AM_LC_MESSAGES], -[ - AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES, - [AC_TRY_LINK([#include ], [return LC_MESSAGES], - am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)]) - if test $am_cv_val_LC_MESSAGES = yes; then - AC_DEFINE(HAVE_LC_MESSAGES, 1, - [Define if your file defines LC_MESSAGES.]) - fi -]) - -AC_DEFUN(ah_HAVE_GETCONF, - [AC_ARG_WITH(getconf, - [ --with-getconf Enable automagical buildtime configuration], - [if test "$withval" = "yes"; then - AC_PATH_PROG(GETCONF, getconf) - elif test ! "$withval" = "no";then - AC_MSG_CHECKING([getconf]) - AC_MSG_RESULT([$withval]) - GETCONF=$withval - fi], - [AC_PATH_PROG(GETCONF, getconf)] - ) - AC_SUBST(GETCONF) -]) - -dnl ah_GET_CONF(variable, value ..., [default]) -AC_DEFUN(ah_GET_GETCONF, - [AC_REQUIRE([ah_HAVE_GETCONF]) - if test ! -z "$GETCONF";then - old_args="[$]@" - set -- $2 - while eval test -z \"\$$1\" -a ! -z \"[$]1\";do - eval $1=`$GETCONF "[$]1" 2>/dev/null` - shift - done - fi - if eval test -z \"\$$1\" -o \"\$$1\" = "-1";then - eval $1="$3" - fi -]) -AC_DEFUN(ah_NUM_CPUS, - [AC_MSG_CHECKING([number of cpus]) - AC_ARG_WITH(cpus, - [ --with-cpus The number of cpus to be used for building(see --with-procs, default 1)], - [ - if test "$withval" = "yes"; then - ah_GET_GETCONF(NUM_CPUS, SC_NPROCESSORS_ONLN _NPROCESSORS_ONLN, 1) - elif test ! "$withval" = "no";then - NUM_CPUS=$withval - elif test "$withval" = "no";then - NUM_CPUS=1 - fi], - [ah_GET_GETCONF(NUM_CPUS, SC_NPROCESSORS_ONLN _NPROCESSORS_ONLN, 1)] - ) - ah_NUM_CPUS_msg="$NUM_CPUS" - if test "$NUM_CPUS" = "0"; then - # broken getconf, time to bitch. - ah_NUM_CPUS_msg="found 0 cpus. Has someone done a lobotomy?" - NUM_CPUS=1 - fi - if test $NUM_CPUS = 1 ;then - default_PROC_MULTIPLY=1 - else - default_PROC_MULTIPLY=2 - fi - AC_MSG_RESULT([$ah_NUM_CPUS_msg]) - AC_SUBST(NUM_CPUS) -]) -AC_DEFUN(ah_PROC_MULTIPLY, - [AC_REQUIRE([ah_NUM_CPUS]) - AC_MSG_CHECKING([processor multiplier]) - AC_ARG_WITH(proc-multiply, - [ --with-proc-multiply Multiply this * number of cpus for parallel making(default 2).], - [if test "$withval" = "yes"; then - PROC_MULTIPLY=$default_PROC_MULTIPLY - elif test ! "$withval" = "no";then - PROC_MULTIPLY=$withval - fi], - [PROC_MULTIPLY=$default_PROC_MULTIPLY] - ) - AC_MSG_RESULT([$PROC_MULTIPLY]) - AC_SUBST(PROC_MULTIPLY) -]) - -AC_DEFUN(ah_NUM_PROCS, - [AC_REQUIRE([ah_PROC_MULTIPLY]) - AC_REQUIRE([ah_NUM_CPUS]) - AC_MSG_CHECKING([number of processes to run during make]) - AC_ARG_WITH(procs, - [ --with-procs The number of processes to run in parallel during make(num_cpus * multiplier).], - [if test "$withval" = "yes"; then - NUM_PROCS=`expr $NUM_CPUS \* $PROC_MULTIPLY` - elif test ! "$withval" = "no";then - NUM_PROCS=$withval - fi], - [NUM_PROCS=`expr $NUM_CPUS \* $PROC_MULTIPLY`] - ) - AC_MSG_RESULT([$NUM_PROCS]) - AC_SUBST(NUM_PROCS) -]) - -AC_DEFUN(rc_GLIBC_VER, - [AC_MSG_CHECKING([glibc version]) - dummy=if$$ - cat <<_GLIBC_>$dummy.c -#include -#include -#include -int main(int argc, char **argv) { printf("libc6.%d",__GLIBC_MINOR__); exit(0); } -_GLIBC_ - ${CC-cc} $dummy.c -o $dummy > /dev/null 2>&1 - if test "$?" = 0; then - GLIBC_VER=`./$dummy` - AC_MSG_RESULT([$GLIBC_VER]) - dnl CNC:2003-03-25 - GLIBC_VER="$GLIBC_VER" - else - AC_MSG_WARN([cannot determine GNU C library minor version number]) - fi - rm -f $dummy $dummy.c - AC_SUBST(GLIBC_VER) -]) - -AC_DEFUN(rc_LIBSTDCPP_VER, - [AC_MSG_CHECKING([libstdc++ version]) - dummy=if$$ - cat <<_LIBSTDCPP_>$dummy.cc -#include -#include -#include -int main(int argc, char **argv) { exit(0); } -_LIBSTDCPP_ - ${CXX-c++} $dummy.cc -o $dummy > /dev/null 2>&1 - - if test "$?" = 0; then - soname=`objdump -p ./$dummy |grep NEEDED|grep libstd` - LIBSTDCPP_VER=`echo $soname | sed -e 's/.*NEEDED.*libstdc++\(-libc.*\(-.*\)\)\?.so.\(.*\)/\3\2/'` - fi - rm -f $dummy $dummy.cc - - if test -z "$LIBSTDCPP_VER"; then - AC_MSG_WARN([cannot determine standard C++ library version number]) - else - AC_MSG_RESULT([$LIBSTDCPP_VER]) - dnl CNC:2003-03-25 - LIBSTDCPP_VER="$LIBSTDCPP_VER" - fi - AC_SUBST(LIBSTDCPP_VER) -]) - -AC_DEFUN(ah_GCC3DEP,[ - AC_MSG_CHECKING(if $CXX -MD works) - touch gcc3dep.cc - ${CXX-c++} -MD -o gcc3dep_test.o -c gcc3dep.cc - rm -f gcc3dep.cc gcc3dep_test.o - if test -e gcc3dep.d; then - rm -f gcc3dep.d - GCC_MD=input - GCC3DEP= - elif test -e gcc3dep_test.d; then - rm -f gcc3dep_test.d - GCC_MD=output - GCC3DEP=yes - else - AC_MSG_ERROR(no) - fi - AC_MSG_RESULT([yes, for $GCC_MD]) - AC_SUBST(GCC3DEP) -]) +AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) +AC_MSG_RESULT([$am_cv_prog_tar_$1])]) +AC_SUBST([am__tar]) +AC_SUBST([am__untar]) +]) # _AM_PROG_TAR +m4_include([buildlib/tools.m4]) +m4_include([m4/codeset.m4]) +m4_include([m4/gettext.m4]) +m4_include([m4/glibc21.m4]) +m4_include([m4/iconv.m4]) +m4_include([m4/intdiv0.m4]) +m4_include([m4/inttypes-pri.m4]) +m4_include([m4/inttypes.m4]) +m4_include([m4/inttypes_h.m4]) +m4_include([m4/lcmessage.m4]) +m4_include([m4/lib-ld.m4]) +m4_include([m4/lib-link.m4]) +m4_include([m4/lib-prefix.m4]) +m4_include([m4/progtest.m4]) +m4_include([m4/stdint_h.m4]) +m4_include([m4/uintmax_t.m4]) +m4_include([m4/ulonglong.m4]) diff --git a/apt/apt-pkg/Makefile.am b/apt/apt-pkg/Makefile.am index f40711d..ebf0398 100644 --- a/apt/apt-pkg/Makefile.am +++ b/apt/apt-pkg/Makefile.am @@ -2,7 +2,7 @@ lib_LTLIBRARIES = libapt-pkg.la libapt_pkg_la_LIBADD = @RPMLIBS@ -libapt_pkg_la_LDFLAGS = -version-info 1:1:1 -release @GLIBC_VER@-@LIBSTDCPP_VER@ +libapt_pkg_la_LDFLAGS = -version-info 2:0:0 -release @GLIBC_VER@-@LIBSTDCPP_VER@ AM_CPPFLAGS = -DLIBDIR=\"$(libdir)\" diff --git a/apt/apt-pkg/Makefile.in b/apt/apt-pkg/Makefile.in index db12bb9..f0486a2 100644 --- a/apt/apt-pkg/Makefile.in +++ b/apt/apt-pkg/Makefile.in @@ -1,8 +1,8 @@ -# Makefile.in generated by automake 1.7.9 from Makefile.am. +# Makefile.in generated by automake 1.9.5 from Makefile.am. # @configure_input@ -# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 -# Free Software Foundation, Inc. +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -14,6 +14,9 @@ @SET_MAKE@ + +SOURCES = $(libapt_pkg_la_SOURCES) + srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ @@ -21,7 +24,6 @@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = .. - am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 @@ -35,13 +37,86 @@ POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : +build_triplet = @build@ host_triplet = @host@ @WITH_LUA_TRUE@am__append_1 = $(top_builddir)/lua/liblua.la +subdir = apt-pkg +DIST_COMMON = $(include_HEADERS) $(srcdir)/Makefile.am \ + $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/buildlib/tools.m4 \ + $(top_srcdir)/m4/codeset.m4 $(top_srcdir)/m4/gettext.m4 \ + $(top_srcdir)/m4/glibc21.m4 $(top_srcdir)/m4/iconv.m4 \ + $(top_srcdir)/m4/intdiv0.m4 $(top_srcdir)/m4/inttypes-pri.m4 \ + $(top_srcdir)/m4/inttypes.m4 $(top_srcdir)/m4/inttypes_h.m4 \ + $(top_srcdir)/m4/lcmessage.m4 $(top_srcdir)/m4/lib-ld.m4 \ + $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ + $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/stdint_h.m4 \ + $(top_srcdir)/m4/uintmax_t.m4 $(top_srcdir)/m4/ulonglong.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(SHELL) $(top_srcdir)/buildlib/mkinstalldirs +CONFIG_HEADER = $(top_builddir)/include/config.h +CONFIG_CLEAN_FILES = +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; +am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)" +libLTLIBRARIES_INSTALL = $(INSTALL) +LTLIBRARIES = $(lib_LTLIBRARIES) +@WITH_LUA_TRUE@am__DEPENDENCIES_1 = $(top_builddir)/lua/liblua.la +libapt_pkg_la_DEPENDENCIES = $(am__DEPENDENCIES_1) +am__dirstamp = $(am__leading_dot)dirstamp +am_libapt_pkg_la_OBJECTS = contrib/cdromutl.lo contrib/cmndline.lo \ + contrib/configuration.lo contrib/crc-16.lo contrib/error.lo \ + contrib/fileutl.lo contrib/hashes.lo contrib/md5.lo \ + contrib/mmap.lo contrib/progress.lo contrib/sha1.lo \ + contrib/strutl.lo rpm/rpmhandler.lo rpm/rpmindexfile.lo \ + rpm/rpmlistparser.lo rpm/rpmpackagedata.lo rpm/rpmpm.lo \ + rpm/rpmrecords.lo rpm/rpmsrcrecords.lo rpm/rpmsystem.lo \ + rpm/rpmversion.lo acquire.lo acquire-item.lo acquire-method.lo \ + acquire-worker.lo algorithms.lo cachefile.lo clean.lo \ + depcache.lo indexfile.lo init.lo luaiface.lo orderlist.lo \ + packagemanager.lo pkgcache.lo pkgcachegen.lo pkgrecords.lo \ + pkgsystem.lo policy.lo repository.lo sourcelist.lo \ + srcrecords.lo tagfile.lo version.lo versionmatch.lo +libapt_pkg_la_OBJECTS = $(am_libapt_pkg_la_OBJECTS) +DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/include +depcomp = $(SHELL) $(top_srcdir)/buildlib/depcomp +am__depfiles_maybe = depfiles +CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) +LTCXXCOMPILE = $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CXXFLAGS) $(CXXFLAGS) +CXXLD = $(CXX) +CXXLINK = $(LIBTOOL) --tag=CXX --mode=link $(CXXLD) $(AM_CXXFLAGS) \ + $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ + $(AM_LDFLAGS) $(LDFLAGS) -o $@ +SOURCES = $(libapt_pkg_la_SOURCES) +DIST_SOURCES = $(libapt_pkg_la_SOURCES) +includeHEADERS_INSTALL = $(INSTALL_HEADER) +HEADERS = $(include_HEADERS) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ +AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ @@ -60,6 +135,7 @@ COMPILE_STATIC_TRUE = @COMPILE_STATIC_TRUE@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ +CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ @@ -73,6 +149,8 @@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ +F77 = @F77@ +FFLAGS = @FFLAGS@ GENCAT = @GENCAT@ GLIBC21 = @GLIBC21@ GLIBC_VER = @GLIBC_VER@ @@ -135,8 +213,10 @@ VERSION = @VERSION@ WITH_LUA_FALSE = @WITH_LUA_FALSE@ WITH_LUA_TRUE = @WITH_LUA_TRUE@ XGETTEXT = @XGETTEXT@ +ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ ac_ct_RANLIB = @ac_ct_RANLIB@ ac_ct_STRIP = @ac_ct_STRIP@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ @@ -146,6 +226,8 @@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ @@ -159,7 +241,6 @@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ - includedir = ${prefix}/include/apt-pkg infodir = @infodir@ install_sh = @install_sh@ @@ -167,6 +248,7 @@ libdir = @libdir@ libexecdir = @libexecdir@ localstatedir = @localstatedir@ mandir = @mandir@ +mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ prefix = @prefix@ program_transform_name = @program_transform_name@ @@ -174,16 +256,11 @@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ - lib_LTLIBRARIES = libapt-pkg.la - libapt_pkg_la_LIBADD = @RPMLIBS@ $(am__append_1) -libapt_pkg_la_LDFLAGS = -version-info 1:1:1 -release @GLIBC_VER@-@LIBSTDCPP_VER@ - +libapt_pkg_la_LDFLAGS = -version-info 2:0:0 -release @GLIBC_VER@-@LIBSTDCPP_VER@ AM_CPPFLAGS = -DLIBDIR=\"$(libdir)\" - INCLUDES = -I$(top_srcdir)/lua/include -I$(top_srcdir)/lua/local - libapt_pkg_la_SOURCES = \ contrib/cdromutl.cc \ contrib/cdromutl.h \ @@ -281,7 +358,6 @@ libapt_pkg_la_SOURCES = \ versionmatch.cc \ versionmatch.h - PRIVATEHEADERS = contrib/system.h include_HEADERS = $(filter-out \ $(PRIVATEHEADERS), \ @@ -306,137 +382,71 @@ COPYHEADERS = $(patsubst %.h, \ REALOBJECTS = $(patsubst %.cc,%.lo,\ $(filter %.cc,$(libapt_pkg_la_SOURCES))) -subdir = apt-pkg -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -mkinstalldirs = $(SHELL) $(top_srcdir)/buildlib/mkinstalldirs -CONFIG_HEADER = $(top_builddir)/include/config.h -CONFIG_CLEAN_FILES = -LTLIBRARIES = $(lib_LTLIBRARIES) - -@WITH_LUA_TRUE@libapt_pkg_la_DEPENDENCIES = \ -@WITH_LUA_TRUE@ $(top_builddir)/lua/liblua.la -@WITH_LUA_FALSE@libapt_pkg_la_DEPENDENCIES = -am__dirstamp = $(am__leading_dot)dirstamp -am_libapt_pkg_la_OBJECTS = contrib/cdromutl.lo contrib/cmndline.lo \ - contrib/configuration.lo contrib/crc-16.lo contrib/error.lo \ - contrib/fileutl.lo contrib/hashes.lo contrib/md5.lo \ - contrib/mmap.lo contrib/progress.lo contrib/sha1.lo \ - contrib/strutl.lo rpm/rpmhandler.lo rpm/rpmindexfile.lo \ - rpm/rpmlistparser.lo rpm/rpmpackagedata.lo rpm/rpmpm.lo \ - rpm/rpmrecords.lo rpm/rpmsrcrecords.lo rpm/rpmsystem.lo \ - rpm/rpmversion.lo acquire.lo acquire-item.lo acquire-method.lo \ - acquire-worker.lo algorithms.lo cachefile.lo clean.lo \ - depcache.lo indexfile.lo init.lo luaiface.lo orderlist.lo \ - packagemanager.lo pkgcache.lo pkgcachegen.lo pkgrecords.lo \ - pkgsystem.lo policy.lo repository.lo sourcelist.lo \ - srcrecords.lo tagfile.lo version.lo versionmatch.lo -libapt_pkg_la_OBJECTS = $(am_libapt_pkg_la_OBJECTS) - -DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/include -depcomp = $(SHELL) $(top_srcdir)/buildlib/depcomp -am__depfiles_maybe = depfiles -@AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/acquire-item.Plo \ -@AMDEP_TRUE@ ./$(DEPDIR)/acquire-method.Plo \ -@AMDEP_TRUE@ ./$(DEPDIR)/acquire-worker.Plo \ -@AMDEP_TRUE@ ./$(DEPDIR)/acquire.Plo ./$(DEPDIR)/algorithms.Plo \ -@AMDEP_TRUE@ ./$(DEPDIR)/cachefile.Plo ./$(DEPDIR)/clean.Plo \ -@AMDEP_TRUE@ ./$(DEPDIR)/depcache.Plo ./$(DEPDIR)/indexfile.Plo \ -@AMDEP_TRUE@ ./$(DEPDIR)/init.Plo ./$(DEPDIR)/luaiface.Plo \ -@AMDEP_TRUE@ ./$(DEPDIR)/orderlist.Plo \ -@AMDEP_TRUE@ ./$(DEPDIR)/packagemanager.Plo \ -@AMDEP_TRUE@ ./$(DEPDIR)/pkgcache.Plo \ -@AMDEP_TRUE@ ./$(DEPDIR)/pkgcachegen.Plo \ -@AMDEP_TRUE@ ./$(DEPDIR)/pkgrecords.Plo \ -@AMDEP_TRUE@ ./$(DEPDIR)/pkgsystem.Plo ./$(DEPDIR)/policy.Plo \ -@AMDEP_TRUE@ ./$(DEPDIR)/repository.Plo \ -@AMDEP_TRUE@ ./$(DEPDIR)/sourcelist.Plo \ -@AMDEP_TRUE@ ./$(DEPDIR)/srcrecords.Plo ./$(DEPDIR)/tagfile.Plo \ -@AMDEP_TRUE@ ./$(DEPDIR)/version.Plo \ -@AMDEP_TRUE@ ./$(DEPDIR)/versionmatch.Plo \ -@AMDEP_TRUE@ contrib/$(DEPDIR)/cdromutl.Plo \ -@AMDEP_TRUE@ contrib/$(DEPDIR)/cmndline.Plo \ -@AMDEP_TRUE@ contrib/$(DEPDIR)/configuration.Plo \ -@AMDEP_TRUE@ contrib/$(DEPDIR)/crc-16.Plo \ -@AMDEP_TRUE@ contrib/$(DEPDIR)/error.Plo \ -@AMDEP_TRUE@ contrib/$(DEPDIR)/fileutl.Plo \ -@AMDEP_TRUE@ contrib/$(DEPDIR)/hashes.Plo \ -@AMDEP_TRUE@ contrib/$(DEPDIR)/md5.Plo \ -@AMDEP_TRUE@ contrib/$(DEPDIR)/mmap.Plo \ -@AMDEP_TRUE@ contrib/$(DEPDIR)/progress.Plo \ -@AMDEP_TRUE@ contrib/$(DEPDIR)/sha1.Plo \ -@AMDEP_TRUE@ contrib/$(DEPDIR)/strutl.Plo \ -@AMDEP_TRUE@ rpm/$(DEPDIR)/rpmhandler.Plo \ -@AMDEP_TRUE@ rpm/$(DEPDIR)/rpmindexfile.Plo \ -@AMDEP_TRUE@ rpm/$(DEPDIR)/rpmlistparser.Plo \ -@AMDEP_TRUE@ rpm/$(DEPDIR)/rpmpackagedata.Plo \ -@AMDEP_TRUE@ rpm/$(DEPDIR)/rpmpm.Plo \ -@AMDEP_TRUE@ rpm/$(DEPDIR)/rpmrecords.Plo \ -@AMDEP_TRUE@ rpm/$(DEPDIR)/rpmsrcrecords.Plo \ -@AMDEP_TRUE@ rpm/$(DEPDIR)/rpmsystem.Plo \ -@AMDEP_TRUE@ rpm/$(DEPDIR)/rpmversion.Plo -CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ - $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -LTCXXCOMPILE = $(LIBTOOL) --mode=compile $(CXX) $(DEFS) \ - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ - $(AM_CXXFLAGS) $(CXXFLAGS) -CXXLD = $(CXX) -CXXLINK = $(LIBTOOL) --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) \ - $(AM_LDFLAGS) $(LDFLAGS) -o $@ -COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ - $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) \ - $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -CCLD = $(CC) -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ - $(AM_LDFLAGS) $(LDFLAGS) -o $@ -DIST_SOURCES = $(libapt_pkg_la_SOURCES) -HEADERS = $(include_HEADERS) - -DIST_COMMON = $(include_HEADERS) $(srcdir)/Makefile.in Makefile.am -SOURCES = $(libapt_pkg_la_SOURCES) - all: all-am .SUFFIXES: .SUFFIXES: .cc .lo .o .obj -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign apt-pkg/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign apt-pkg/Makefile -Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in $(top_builddir)/config.status - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe) -libLTLIBRARIES_INSTALL = $(INSTALL) +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh install-libLTLIBRARIES: $(lib_LTLIBRARIES) @$(NORMAL_INSTALL) - $(mkinstalldirs) $(DESTDIR)$(libdir) + test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)" @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ if test -f $$p; then \ - f="`echo $$p | sed -e 's|^.*/||'`"; \ - echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(libdir)/$$f"; \ - $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(libdir)/$$f; \ + f=$(am__strip_dir) \ + echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \ + $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \ else :; fi; \ done uninstall-libLTLIBRARIES: @$(NORMAL_UNINSTALL) - @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ - p="`echo $$p | sed -e 's|^.*/||'`"; \ - echo " $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p"; \ - $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p; \ + @set -x; list='$(lib_LTLIBRARIES)'; for p in $$list; do \ + p=$(am__strip_dir) \ + echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \ + $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \ done clean-libLTLIBRARIES: -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ - test "$$dir" = "$$p" && dir=.; \ + test "$$dir" != "$$p" || dir=.; \ echo "rm -f \"$${dir}/so_locations\""; \ rm -f "$${dir}/so_locations"; \ done contrib/$(am__dirstamp): - @$(mkinstalldirs) contrib + @$(mkdir_p) contrib @: > contrib/$(am__dirstamp) contrib/$(DEPDIR)/$(am__dirstamp): - @$(mkinstalldirs) contrib/$(DEPDIR) + @$(mkdir_p) contrib/$(DEPDIR) @: > contrib/$(DEPDIR)/$(am__dirstamp) contrib/cdromutl.lo: contrib/$(am__dirstamp) \ contrib/$(DEPDIR)/$(am__dirstamp) @@ -463,25 +473,28 @@ contrib/sha1.lo: contrib/$(am__dirstamp) \ contrib/strutl.lo: contrib/$(am__dirstamp) \ contrib/$(DEPDIR)/$(am__dirstamp) rpm/$(am__dirstamp): - @$(mkinstalldirs) rpm + @$(mkdir_p) rpm @: > rpm/$(am__dirstamp) rpm/$(DEPDIR)/$(am__dirstamp): - @$(mkinstalldirs) rpm/$(DEPDIR) + @$(mkdir_p) rpm/$(DEPDIR) @: > rpm/$(DEPDIR)/$(am__dirstamp) rpm/rpmhandler.lo: rpm/$(am__dirstamp) rpm/$(DEPDIR)/$(am__dirstamp) rpm/rpmindexfile.lo: rpm/$(am__dirstamp) rpm/$(DEPDIR)/$(am__dirstamp) -rpm/rpmlistparser.lo: rpm/$(am__dirstamp) rpm/$(DEPDIR)/$(am__dirstamp) -rpm/rpmpackagedata.lo: rpm/$(am__dirstamp) rpm/$(DEPDIR)/$(am__dirstamp) +rpm/rpmlistparser.lo: rpm/$(am__dirstamp) \ + rpm/$(DEPDIR)/$(am__dirstamp) +rpm/rpmpackagedata.lo: rpm/$(am__dirstamp) \ + rpm/$(DEPDIR)/$(am__dirstamp) rpm/rpmpm.lo: rpm/$(am__dirstamp) rpm/$(DEPDIR)/$(am__dirstamp) rpm/rpmrecords.lo: rpm/$(am__dirstamp) rpm/$(DEPDIR)/$(am__dirstamp) -rpm/rpmsrcrecords.lo: rpm/$(am__dirstamp) rpm/$(DEPDIR)/$(am__dirstamp) +rpm/rpmsrcrecords.lo: rpm/$(am__dirstamp) \ + rpm/$(DEPDIR)/$(am__dirstamp) rpm/rpmsystem.lo: rpm/$(am__dirstamp) rpm/$(DEPDIR)/$(am__dirstamp) rpm/rpmversion.lo: rpm/$(am__dirstamp) rpm/$(DEPDIR)/$(am__dirstamp) libapt-pkg.la: $(libapt_pkg_la_OBJECTS) $(libapt_pkg_la_DEPENDENCIES) $(CXXLINK) -rpath $(libdir) $(libapt_pkg_la_LDFLAGS) $(libapt_pkg_la_OBJECTS) $(libapt_pkg_la_LIBADD) $(LIBS) mostlyclean-compile: - -rm -f *.$(OBJEXT) core *.core + -rm -f *.$(OBJEXT) -rm -f contrib/cdromutl.$(OBJEXT) -rm -f contrib/cdromutl.lo -rm -f contrib/cmndline.$(OBJEXT) @@ -575,730 +588,28 @@ distclean-compile: @AMDEP_TRUE@@am__include@ @am__quote@rpm/$(DEPDIR)/rpmversion.Plo@am__quote@ .cc.o: -@am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \ -@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \ -@am__fastdepCXX_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi +@am__fastdepCXX_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`; \ +@am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$$depbase.Tpo" -c -o $@ $<; \ +@am__fastdepCXX_TRUE@ then mv -f "$$depbase.Tpo" "$$depbase.Po"; else rm -f "$$depbase.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$< +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< .cc.obj: -@am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o $@ `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi`; \ -@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \ -@am__fastdepCXX_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi +@am__fastdepCXX_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`; \ +@am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$$depbase.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ +@am__fastdepCXX_TRUE@ then mv -f "$$depbase.Tpo" "$$depbase.Po"; else rm -f "$$depbase.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi` +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cc.lo: -@am__fastdepCXX_TRUE@ if $(LTCXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \ -@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; \ -@am__fastdepCXX_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi +@am__fastdepCXX_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`; \ +@am__fastdepCXX_TRUE@ if $(LTCXXCOMPILE) -MT $@ -MD -MP -MF "$$depbase.Tpo" -c -o $@ $<; \ +@am__fastdepCXX_TRUE@ then mv -f "$$depbase.Tpo" "$$depbase.Plo"; else rm -f "$$depbase.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='$(DEPDIR)/$*.Plo' tmpdepfile='$(DEPDIR)/$*.TPlo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$< - -contrib/cdromutl.o: contrib/cdromutl.cc -@am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT contrib/cdromutl.o -MD -MP -MF "contrib/$(DEPDIR)/cdromutl.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o contrib/cdromutl.o `test -f 'contrib/cdromutl.cc' || echo '$(srcdir)/'`contrib/cdromutl.cc; \ -@am__fastdepCXX_TRUE@ then mv -f "contrib/$(DEPDIR)/cdromutl.Tpo" "contrib/$(DEPDIR)/cdromutl.Po"; \ -@am__fastdepCXX_TRUE@ else rm -f "contrib/$(DEPDIR)/cdromutl.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='contrib/cdromutl.cc' object='contrib/cdromutl.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='contrib/$(DEPDIR)/cdromutl.Po' tmpdepfile='contrib/$(DEPDIR)/cdromutl.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o contrib/cdromutl.o `test -f 'contrib/cdromutl.cc' || echo '$(srcdir)/'`contrib/cdromutl.cc - -contrib/cdromutl.obj: contrib/cdromutl.cc -@am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT contrib/cdromutl.obj -MD -MP -MF "contrib/$(DEPDIR)/cdromutl.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o contrib/cdromutl.obj `if test -f 'contrib/cdromutl.cc'; then $(CYGPATH_W) 'contrib/cdromutl.cc'; else $(CYGPATH_W) '$(srcdir)/contrib/cdromutl.cc'; fi`; \ -@am__fastdepCXX_TRUE@ then mv -f "contrib/$(DEPDIR)/cdromutl.Tpo" "contrib/$(DEPDIR)/cdromutl.Po"; \ -@am__fastdepCXX_TRUE@ else rm -f "contrib/$(DEPDIR)/cdromutl.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='contrib/cdromutl.cc' object='contrib/cdromutl.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='contrib/$(DEPDIR)/cdromutl.Po' tmpdepfile='contrib/$(DEPDIR)/cdromutl.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o contrib/cdromutl.obj `if test -f 'contrib/cdromutl.cc'; then $(CYGPATH_W) 'contrib/cdromutl.cc'; else $(CYGPATH_W) '$(srcdir)/contrib/cdromutl.cc'; fi` - -contrib/cdromutl.lo: contrib/cdromutl.cc -@am__fastdepCXX_TRUE@ if $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT contrib/cdromutl.lo -MD -MP -MF "contrib/$(DEPDIR)/cdromutl.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o contrib/cdromutl.lo `test -f 'contrib/cdromutl.cc' || echo '$(srcdir)/'`contrib/cdromutl.cc; \ -@am__fastdepCXX_TRUE@ then mv -f "contrib/$(DEPDIR)/cdromutl.Tpo" "contrib/$(DEPDIR)/cdromutl.Plo"; \ -@am__fastdepCXX_TRUE@ else rm -f "contrib/$(DEPDIR)/cdromutl.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='contrib/cdromutl.cc' object='contrib/cdromutl.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='contrib/$(DEPDIR)/cdromutl.Plo' tmpdepfile='contrib/$(DEPDIR)/cdromutl.TPlo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o contrib/cdromutl.lo `test -f 'contrib/cdromutl.cc' || echo '$(srcdir)/'`contrib/cdromutl.cc - -contrib/cmndline.o: contrib/cmndline.cc -@am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT contrib/cmndline.o -MD -MP -MF "contrib/$(DEPDIR)/cmndline.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o contrib/cmndline.o `test -f 'contrib/cmndline.cc' || echo '$(srcdir)/'`contrib/cmndline.cc; \ -@am__fastdepCXX_TRUE@ then mv -f "contrib/$(DEPDIR)/cmndline.Tpo" "contrib/$(DEPDIR)/cmndline.Po"; \ -@am__fastdepCXX_TRUE@ else rm -f "contrib/$(DEPDIR)/cmndline.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='contrib/cmndline.cc' object='contrib/cmndline.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='contrib/$(DEPDIR)/cmndline.Po' tmpdepfile='contrib/$(DEPDIR)/cmndline.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o contrib/cmndline.o `test -f 'contrib/cmndline.cc' || echo '$(srcdir)/'`contrib/cmndline.cc - -contrib/cmndline.obj: contrib/cmndline.cc -@am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT contrib/cmndline.obj -MD -MP -MF "contrib/$(DEPDIR)/cmndline.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o contrib/cmndline.obj `if test -f 'contrib/cmndline.cc'; then $(CYGPATH_W) 'contrib/cmndline.cc'; else $(CYGPATH_W) '$(srcdir)/contrib/cmndline.cc'; fi`; \ -@am__fastdepCXX_TRUE@ then mv -f "contrib/$(DEPDIR)/cmndline.Tpo" "contrib/$(DEPDIR)/cmndline.Po"; \ -@am__fastdepCXX_TRUE@ else rm -f "contrib/$(DEPDIR)/cmndline.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='contrib/cmndline.cc' object='contrib/cmndline.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='contrib/$(DEPDIR)/cmndline.Po' tmpdepfile='contrib/$(DEPDIR)/cmndline.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o contrib/cmndline.obj `if test -f 'contrib/cmndline.cc'; then $(CYGPATH_W) 'contrib/cmndline.cc'; else $(CYGPATH_W) '$(srcdir)/contrib/cmndline.cc'; fi` - -contrib/cmndline.lo: contrib/cmndline.cc -@am__fastdepCXX_TRUE@ if $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT contrib/cmndline.lo -MD -MP -MF "contrib/$(DEPDIR)/cmndline.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o contrib/cmndline.lo `test -f 'contrib/cmndline.cc' || echo '$(srcdir)/'`contrib/cmndline.cc; \ -@am__fastdepCXX_TRUE@ then mv -f "contrib/$(DEPDIR)/cmndline.Tpo" "contrib/$(DEPDIR)/cmndline.Plo"; \ -@am__fastdepCXX_TRUE@ else rm -f "contrib/$(DEPDIR)/cmndline.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='contrib/cmndline.cc' object='contrib/cmndline.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='contrib/$(DEPDIR)/cmndline.Plo' tmpdepfile='contrib/$(DEPDIR)/cmndline.TPlo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o contrib/cmndline.lo `test -f 'contrib/cmndline.cc' || echo '$(srcdir)/'`contrib/cmndline.cc - -contrib/configuration.o: contrib/configuration.cc -@am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT contrib/configuration.o -MD -MP -MF "contrib/$(DEPDIR)/configuration.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o contrib/configuration.o `test -f 'contrib/configuration.cc' || echo '$(srcdir)/'`contrib/configuration.cc; \ -@am__fastdepCXX_TRUE@ then mv -f "contrib/$(DEPDIR)/configuration.Tpo" "contrib/$(DEPDIR)/configuration.Po"; \ -@am__fastdepCXX_TRUE@ else rm -f "contrib/$(DEPDIR)/configuration.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='contrib/configuration.cc' object='contrib/configuration.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='contrib/$(DEPDIR)/configuration.Po' tmpdepfile='contrib/$(DEPDIR)/configuration.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o contrib/configuration.o `test -f 'contrib/configuration.cc' || echo '$(srcdir)/'`contrib/configuration.cc - -contrib/configuration.obj: contrib/configuration.cc -@am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT contrib/configuration.obj -MD -MP -MF "contrib/$(DEPDIR)/configuration.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o contrib/configuration.obj `if test -f 'contrib/configuration.cc'; then $(CYGPATH_W) 'contrib/configuration.cc'; else $(CYGPATH_W) '$(srcdir)/contrib/configuration.cc'; fi`; \ -@am__fastdepCXX_TRUE@ then mv -f "contrib/$(DEPDIR)/configuration.Tpo" "contrib/$(DEPDIR)/configuration.Po"; \ -@am__fastdepCXX_TRUE@ else rm -f "contrib/$(DEPDIR)/configuration.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='contrib/configuration.cc' object='contrib/configuration.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='contrib/$(DEPDIR)/configuration.Po' tmpdepfile='contrib/$(DEPDIR)/configuration.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o contrib/configuration.obj `if test -f 'contrib/configuration.cc'; then $(CYGPATH_W) 'contrib/configuration.cc'; else $(CYGPATH_W) '$(srcdir)/contrib/configuration.cc'; fi` - -contrib/configuration.lo: contrib/configuration.cc -@am__fastdepCXX_TRUE@ if $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT contrib/configuration.lo -MD -MP -MF "contrib/$(DEPDIR)/configuration.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o contrib/configuration.lo `test -f 'contrib/configuration.cc' || echo '$(srcdir)/'`contrib/configuration.cc; \ -@am__fastdepCXX_TRUE@ then mv -f "contrib/$(DEPDIR)/configuration.Tpo" "contrib/$(DEPDIR)/configuration.Plo"; \ -@am__fastdepCXX_TRUE@ else rm -f "contrib/$(DEPDIR)/configuration.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='contrib/configuration.cc' object='contrib/configuration.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='contrib/$(DEPDIR)/configuration.Plo' tmpdepfile='contrib/$(DEPDIR)/configuration.TPlo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o contrib/configuration.lo `test -f 'contrib/configuration.cc' || echo '$(srcdir)/'`contrib/configuration.cc - -contrib/crc-16.o: contrib/crc-16.cc -@am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT contrib/crc-16.o -MD -MP -MF "contrib/$(DEPDIR)/crc-16.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o contrib/crc-16.o `test -f 'contrib/crc-16.cc' || echo '$(srcdir)/'`contrib/crc-16.cc; \ -@am__fastdepCXX_TRUE@ then mv -f "contrib/$(DEPDIR)/crc-16.Tpo" "contrib/$(DEPDIR)/crc-16.Po"; \ -@am__fastdepCXX_TRUE@ else rm -f "contrib/$(DEPDIR)/crc-16.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='contrib/crc-16.cc' object='contrib/crc-16.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='contrib/$(DEPDIR)/crc-16.Po' tmpdepfile='contrib/$(DEPDIR)/crc-16.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o contrib/crc-16.o `test -f 'contrib/crc-16.cc' || echo '$(srcdir)/'`contrib/crc-16.cc - -contrib/crc-16.obj: contrib/crc-16.cc -@am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT contrib/crc-16.obj -MD -MP -MF "contrib/$(DEPDIR)/crc-16.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o contrib/crc-16.obj `if test -f 'contrib/crc-16.cc'; then $(CYGPATH_W) 'contrib/crc-16.cc'; else $(CYGPATH_W) '$(srcdir)/contrib/crc-16.cc'; fi`; \ -@am__fastdepCXX_TRUE@ then mv -f "contrib/$(DEPDIR)/crc-16.Tpo" "contrib/$(DEPDIR)/crc-16.Po"; \ -@am__fastdepCXX_TRUE@ else rm -f "contrib/$(DEPDIR)/crc-16.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='contrib/crc-16.cc' object='contrib/crc-16.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='contrib/$(DEPDIR)/crc-16.Po' tmpdepfile='contrib/$(DEPDIR)/crc-16.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o contrib/crc-16.obj `if test -f 'contrib/crc-16.cc'; then $(CYGPATH_W) 'contrib/crc-16.cc'; else $(CYGPATH_W) '$(srcdir)/contrib/crc-16.cc'; fi` - -contrib/crc-16.lo: contrib/crc-16.cc -@am__fastdepCXX_TRUE@ if $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT contrib/crc-16.lo -MD -MP -MF "contrib/$(DEPDIR)/crc-16.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o contrib/crc-16.lo `test -f 'contrib/crc-16.cc' || echo '$(srcdir)/'`contrib/crc-16.cc; \ -@am__fastdepCXX_TRUE@ then mv -f "contrib/$(DEPDIR)/crc-16.Tpo" "contrib/$(DEPDIR)/crc-16.Plo"; \ -@am__fastdepCXX_TRUE@ else rm -f "contrib/$(DEPDIR)/crc-16.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='contrib/crc-16.cc' object='contrib/crc-16.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='contrib/$(DEPDIR)/crc-16.Plo' tmpdepfile='contrib/$(DEPDIR)/crc-16.TPlo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o contrib/crc-16.lo `test -f 'contrib/crc-16.cc' || echo '$(srcdir)/'`contrib/crc-16.cc - -contrib/error.o: contrib/error.cc -@am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT contrib/error.o -MD -MP -MF "contrib/$(DEPDIR)/error.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o contrib/error.o `test -f 'contrib/error.cc' || echo '$(srcdir)/'`contrib/error.cc; \ -@am__fastdepCXX_TRUE@ then mv -f "contrib/$(DEPDIR)/error.Tpo" "contrib/$(DEPDIR)/error.Po"; \ -@am__fastdepCXX_TRUE@ else rm -f "contrib/$(DEPDIR)/error.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='contrib/error.cc' object='contrib/error.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='contrib/$(DEPDIR)/error.Po' tmpdepfile='contrib/$(DEPDIR)/error.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o contrib/error.o `test -f 'contrib/error.cc' || echo '$(srcdir)/'`contrib/error.cc - -contrib/error.obj: contrib/error.cc -@am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT contrib/error.obj -MD -MP -MF "contrib/$(DEPDIR)/error.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o contrib/error.obj `if test -f 'contrib/error.cc'; then $(CYGPATH_W) 'contrib/error.cc'; else $(CYGPATH_W) '$(srcdir)/contrib/error.cc'; fi`; \ -@am__fastdepCXX_TRUE@ then mv -f "contrib/$(DEPDIR)/error.Tpo" "contrib/$(DEPDIR)/error.Po"; \ -@am__fastdepCXX_TRUE@ else rm -f "contrib/$(DEPDIR)/error.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='contrib/error.cc' object='contrib/error.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='contrib/$(DEPDIR)/error.Po' tmpdepfile='contrib/$(DEPDIR)/error.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o contrib/error.obj `if test -f 'contrib/error.cc'; then $(CYGPATH_W) 'contrib/error.cc'; else $(CYGPATH_W) '$(srcdir)/contrib/error.cc'; fi` - -contrib/error.lo: contrib/error.cc -@am__fastdepCXX_TRUE@ if $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT contrib/error.lo -MD -MP -MF "contrib/$(DEPDIR)/error.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o contrib/error.lo `test -f 'contrib/error.cc' || echo '$(srcdir)/'`contrib/error.cc; \ -@am__fastdepCXX_TRUE@ then mv -f "contrib/$(DEPDIR)/error.Tpo" "contrib/$(DEPDIR)/error.Plo"; \ -@am__fastdepCXX_TRUE@ else rm -f "contrib/$(DEPDIR)/error.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='contrib/error.cc' object='contrib/error.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='contrib/$(DEPDIR)/error.Plo' tmpdepfile='contrib/$(DEPDIR)/error.TPlo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o contrib/error.lo `test -f 'contrib/error.cc' || echo '$(srcdir)/'`contrib/error.cc - -contrib/fileutl.o: contrib/fileutl.cc -@am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT contrib/fileutl.o -MD -MP -MF "contrib/$(DEPDIR)/fileutl.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o contrib/fileutl.o `test -f 'contrib/fileutl.cc' || echo '$(srcdir)/'`contrib/fileutl.cc; \ -@am__fastdepCXX_TRUE@ then mv -f "contrib/$(DEPDIR)/fileutl.Tpo" "contrib/$(DEPDIR)/fileutl.Po"; \ -@am__fastdepCXX_TRUE@ else rm -f "contrib/$(DEPDIR)/fileutl.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='contrib/fileutl.cc' object='contrib/fileutl.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='contrib/$(DEPDIR)/fileutl.Po' tmpdepfile='contrib/$(DEPDIR)/fileutl.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o contrib/fileutl.o `test -f 'contrib/fileutl.cc' || echo '$(srcdir)/'`contrib/fileutl.cc - -contrib/fileutl.obj: contrib/fileutl.cc -@am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT contrib/fileutl.obj -MD -MP -MF "contrib/$(DEPDIR)/fileutl.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o contrib/fileutl.obj `if test -f 'contrib/fileutl.cc'; then $(CYGPATH_W) 'contrib/fileutl.cc'; else $(CYGPATH_W) '$(srcdir)/contrib/fileutl.cc'; fi`; \ -@am__fastdepCXX_TRUE@ then mv -f "contrib/$(DEPDIR)/fileutl.Tpo" "contrib/$(DEPDIR)/fileutl.Po"; \ -@am__fastdepCXX_TRUE@ else rm -f "contrib/$(DEPDIR)/fileutl.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='contrib/fileutl.cc' object='contrib/fileutl.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='contrib/$(DEPDIR)/fileutl.Po' tmpdepfile='contrib/$(DEPDIR)/fileutl.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o contrib/fileutl.obj `if test -f 'contrib/fileutl.cc'; then $(CYGPATH_W) 'contrib/fileutl.cc'; else $(CYGPATH_W) '$(srcdir)/contrib/fileutl.cc'; fi` - -contrib/fileutl.lo: contrib/fileutl.cc -@am__fastdepCXX_TRUE@ if $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT contrib/fileutl.lo -MD -MP -MF "contrib/$(DEPDIR)/fileutl.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o contrib/fileutl.lo `test -f 'contrib/fileutl.cc' || echo '$(srcdir)/'`contrib/fileutl.cc; \ -@am__fastdepCXX_TRUE@ then mv -f "contrib/$(DEPDIR)/fileutl.Tpo" "contrib/$(DEPDIR)/fileutl.Plo"; \ -@am__fastdepCXX_TRUE@ else rm -f "contrib/$(DEPDIR)/fileutl.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='contrib/fileutl.cc' object='contrib/fileutl.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='contrib/$(DEPDIR)/fileutl.Plo' tmpdepfile='contrib/$(DEPDIR)/fileutl.TPlo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o contrib/fileutl.lo `test -f 'contrib/fileutl.cc' || echo '$(srcdir)/'`contrib/fileutl.cc - -contrib/hashes.o: contrib/hashes.cc -@am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT contrib/hashes.o -MD -MP -MF "contrib/$(DEPDIR)/hashes.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o contrib/hashes.o `test -f 'contrib/hashes.cc' || echo '$(srcdir)/'`contrib/hashes.cc; \ -@am__fastdepCXX_TRUE@ then mv -f "contrib/$(DEPDIR)/hashes.Tpo" "contrib/$(DEPDIR)/hashes.Po"; \ -@am__fastdepCXX_TRUE@ else rm -f "contrib/$(DEPDIR)/hashes.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='contrib/hashes.cc' object='contrib/hashes.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='contrib/$(DEPDIR)/hashes.Po' tmpdepfile='contrib/$(DEPDIR)/hashes.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o contrib/hashes.o `test -f 'contrib/hashes.cc' || echo '$(srcdir)/'`contrib/hashes.cc - -contrib/hashes.obj: contrib/hashes.cc -@am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT contrib/hashes.obj -MD -MP -MF "contrib/$(DEPDIR)/hashes.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o contrib/hashes.obj `if test -f 'contrib/hashes.cc'; then $(CYGPATH_W) 'contrib/hashes.cc'; else $(CYGPATH_W) '$(srcdir)/contrib/hashes.cc'; fi`; \ -@am__fastdepCXX_TRUE@ then mv -f "contrib/$(DEPDIR)/hashes.Tpo" "contrib/$(DEPDIR)/hashes.Po"; \ -@am__fastdepCXX_TRUE@ else rm -f "contrib/$(DEPDIR)/hashes.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='contrib/hashes.cc' object='contrib/hashes.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='contrib/$(DEPDIR)/hashes.Po' tmpdepfile='contrib/$(DEPDIR)/hashes.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o contrib/hashes.obj `if test -f 'contrib/hashes.cc'; then $(CYGPATH_W) 'contrib/hashes.cc'; else $(CYGPATH_W) '$(srcdir)/contrib/hashes.cc'; fi` - -contrib/hashes.lo: contrib/hashes.cc -@am__fastdepCXX_TRUE@ if $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT contrib/hashes.lo -MD -MP -MF "contrib/$(DEPDIR)/hashes.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o contrib/hashes.lo `test -f 'contrib/hashes.cc' || echo '$(srcdir)/'`contrib/hashes.cc; \ -@am__fastdepCXX_TRUE@ then mv -f "contrib/$(DEPDIR)/hashes.Tpo" "contrib/$(DEPDIR)/hashes.Plo"; \ -@am__fastdepCXX_TRUE@ else rm -f "contrib/$(DEPDIR)/hashes.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='contrib/hashes.cc' object='contrib/hashes.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='contrib/$(DEPDIR)/hashes.Plo' tmpdepfile='contrib/$(DEPDIR)/hashes.TPlo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o contrib/hashes.lo `test -f 'contrib/hashes.cc' || echo '$(srcdir)/'`contrib/hashes.cc - -contrib/md5.o: contrib/md5.cc -@am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT contrib/md5.o -MD -MP -MF "contrib/$(DEPDIR)/md5.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o contrib/md5.o `test -f 'contrib/md5.cc' || echo '$(srcdir)/'`contrib/md5.cc; \ -@am__fastdepCXX_TRUE@ then mv -f "contrib/$(DEPDIR)/md5.Tpo" "contrib/$(DEPDIR)/md5.Po"; \ -@am__fastdepCXX_TRUE@ else rm -f "contrib/$(DEPDIR)/md5.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='contrib/md5.cc' object='contrib/md5.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='contrib/$(DEPDIR)/md5.Po' tmpdepfile='contrib/$(DEPDIR)/md5.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o contrib/md5.o `test -f 'contrib/md5.cc' || echo '$(srcdir)/'`contrib/md5.cc - -contrib/md5.obj: contrib/md5.cc -@am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT contrib/md5.obj -MD -MP -MF "contrib/$(DEPDIR)/md5.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o contrib/md5.obj `if test -f 'contrib/md5.cc'; then $(CYGPATH_W) 'contrib/md5.cc'; else $(CYGPATH_W) '$(srcdir)/contrib/md5.cc'; fi`; \ -@am__fastdepCXX_TRUE@ then mv -f "contrib/$(DEPDIR)/md5.Tpo" "contrib/$(DEPDIR)/md5.Po"; \ -@am__fastdepCXX_TRUE@ else rm -f "contrib/$(DEPDIR)/md5.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='contrib/md5.cc' object='contrib/md5.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='contrib/$(DEPDIR)/md5.Po' tmpdepfile='contrib/$(DEPDIR)/md5.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o contrib/md5.obj `if test -f 'contrib/md5.cc'; then $(CYGPATH_W) 'contrib/md5.cc'; else $(CYGPATH_W) '$(srcdir)/contrib/md5.cc'; fi` - -contrib/md5.lo: contrib/md5.cc -@am__fastdepCXX_TRUE@ if $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT contrib/md5.lo -MD -MP -MF "contrib/$(DEPDIR)/md5.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o contrib/md5.lo `test -f 'contrib/md5.cc' || echo '$(srcdir)/'`contrib/md5.cc; \ -@am__fastdepCXX_TRUE@ then mv -f "contrib/$(DEPDIR)/md5.Tpo" "contrib/$(DEPDIR)/md5.Plo"; \ -@am__fastdepCXX_TRUE@ else rm -f "contrib/$(DEPDIR)/md5.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='contrib/md5.cc' object='contrib/md5.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='contrib/$(DEPDIR)/md5.Plo' tmpdepfile='contrib/$(DEPDIR)/md5.TPlo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o contrib/md5.lo `test -f 'contrib/md5.cc' || echo '$(srcdir)/'`contrib/md5.cc - -contrib/mmap.o: contrib/mmap.cc -@am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT contrib/mmap.o -MD -MP -MF "contrib/$(DEPDIR)/mmap.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o contrib/mmap.o `test -f 'contrib/mmap.cc' || echo '$(srcdir)/'`contrib/mmap.cc; \ -@am__fastdepCXX_TRUE@ then mv -f "contrib/$(DEPDIR)/mmap.Tpo" "contrib/$(DEPDIR)/mmap.Po"; \ -@am__fastdepCXX_TRUE@ else rm -f "contrib/$(DEPDIR)/mmap.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='contrib/mmap.cc' object='contrib/mmap.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='contrib/$(DEPDIR)/mmap.Po' tmpdepfile='contrib/$(DEPDIR)/mmap.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o contrib/mmap.o `test -f 'contrib/mmap.cc' || echo '$(srcdir)/'`contrib/mmap.cc - -contrib/mmap.obj: contrib/mmap.cc -@am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT contrib/mmap.obj -MD -MP -MF "contrib/$(DEPDIR)/mmap.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o contrib/mmap.obj `if test -f 'contrib/mmap.cc'; then $(CYGPATH_W) 'contrib/mmap.cc'; else $(CYGPATH_W) '$(srcdir)/contrib/mmap.cc'; fi`; \ -@am__fastdepCXX_TRUE@ then mv -f "contrib/$(DEPDIR)/mmap.Tpo" "contrib/$(DEPDIR)/mmap.Po"; \ -@am__fastdepCXX_TRUE@ else rm -f "contrib/$(DEPDIR)/mmap.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='contrib/mmap.cc' object='contrib/mmap.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='contrib/$(DEPDIR)/mmap.Po' tmpdepfile='contrib/$(DEPDIR)/mmap.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o contrib/mmap.obj `if test -f 'contrib/mmap.cc'; then $(CYGPATH_W) 'contrib/mmap.cc'; else $(CYGPATH_W) '$(srcdir)/contrib/mmap.cc'; fi` - -contrib/mmap.lo: contrib/mmap.cc -@am__fastdepCXX_TRUE@ if $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT contrib/mmap.lo -MD -MP -MF "contrib/$(DEPDIR)/mmap.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o contrib/mmap.lo `test -f 'contrib/mmap.cc' || echo '$(srcdir)/'`contrib/mmap.cc; \ -@am__fastdepCXX_TRUE@ then mv -f "contrib/$(DEPDIR)/mmap.Tpo" "contrib/$(DEPDIR)/mmap.Plo"; \ -@am__fastdepCXX_TRUE@ else rm -f "contrib/$(DEPDIR)/mmap.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='contrib/mmap.cc' object='contrib/mmap.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='contrib/$(DEPDIR)/mmap.Plo' tmpdepfile='contrib/$(DEPDIR)/mmap.TPlo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o contrib/mmap.lo `test -f 'contrib/mmap.cc' || echo '$(srcdir)/'`contrib/mmap.cc - -contrib/progress.o: contrib/progress.cc -@am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT contrib/progress.o -MD -MP -MF "contrib/$(DEPDIR)/progress.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o contrib/progress.o `test -f 'contrib/progress.cc' || echo '$(srcdir)/'`contrib/progress.cc; \ -@am__fastdepCXX_TRUE@ then mv -f "contrib/$(DEPDIR)/progress.Tpo" "contrib/$(DEPDIR)/progress.Po"; \ -@am__fastdepCXX_TRUE@ else rm -f "contrib/$(DEPDIR)/progress.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='contrib/progress.cc' object='contrib/progress.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='contrib/$(DEPDIR)/progress.Po' tmpdepfile='contrib/$(DEPDIR)/progress.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o contrib/progress.o `test -f 'contrib/progress.cc' || echo '$(srcdir)/'`contrib/progress.cc - -contrib/progress.obj: contrib/progress.cc -@am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT contrib/progress.obj -MD -MP -MF "contrib/$(DEPDIR)/progress.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o contrib/progress.obj `if test -f 'contrib/progress.cc'; then $(CYGPATH_W) 'contrib/progress.cc'; else $(CYGPATH_W) '$(srcdir)/contrib/progress.cc'; fi`; \ -@am__fastdepCXX_TRUE@ then mv -f "contrib/$(DEPDIR)/progress.Tpo" "contrib/$(DEPDIR)/progress.Po"; \ -@am__fastdepCXX_TRUE@ else rm -f "contrib/$(DEPDIR)/progress.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='contrib/progress.cc' object='contrib/progress.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='contrib/$(DEPDIR)/progress.Po' tmpdepfile='contrib/$(DEPDIR)/progress.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o contrib/progress.obj `if test -f 'contrib/progress.cc'; then $(CYGPATH_W) 'contrib/progress.cc'; else $(CYGPATH_W) '$(srcdir)/contrib/progress.cc'; fi` - -contrib/progress.lo: contrib/progress.cc -@am__fastdepCXX_TRUE@ if $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT contrib/progress.lo -MD -MP -MF "contrib/$(DEPDIR)/progress.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o contrib/progress.lo `test -f 'contrib/progress.cc' || echo '$(srcdir)/'`contrib/progress.cc; \ -@am__fastdepCXX_TRUE@ then mv -f "contrib/$(DEPDIR)/progress.Tpo" "contrib/$(DEPDIR)/progress.Plo"; \ -@am__fastdepCXX_TRUE@ else rm -f "contrib/$(DEPDIR)/progress.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='contrib/progress.cc' object='contrib/progress.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='contrib/$(DEPDIR)/progress.Plo' tmpdepfile='contrib/$(DEPDIR)/progress.TPlo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o contrib/progress.lo `test -f 'contrib/progress.cc' || echo '$(srcdir)/'`contrib/progress.cc - -contrib/sha1.o: contrib/sha1.cc -@am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT contrib/sha1.o -MD -MP -MF "contrib/$(DEPDIR)/sha1.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o contrib/sha1.o `test -f 'contrib/sha1.cc' || echo '$(srcdir)/'`contrib/sha1.cc; \ -@am__fastdepCXX_TRUE@ then mv -f "contrib/$(DEPDIR)/sha1.Tpo" "contrib/$(DEPDIR)/sha1.Po"; \ -@am__fastdepCXX_TRUE@ else rm -f "contrib/$(DEPDIR)/sha1.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='contrib/sha1.cc' object='contrib/sha1.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='contrib/$(DEPDIR)/sha1.Po' tmpdepfile='contrib/$(DEPDIR)/sha1.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o contrib/sha1.o `test -f 'contrib/sha1.cc' || echo '$(srcdir)/'`contrib/sha1.cc - -contrib/sha1.obj: contrib/sha1.cc -@am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT contrib/sha1.obj -MD -MP -MF "contrib/$(DEPDIR)/sha1.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o contrib/sha1.obj `if test -f 'contrib/sha1.cc'; then $(CYGPATH_W) 'contrib/sha1.cc'; else $(CYGPATH_W) '$(srcdir)/contrib/sha1.cc'; fi`; \ -@am__fastdepCXX_TRUE@ then mv -f "contrib/$(DEPDIR)/sha1.Tpo" "contrib/$(DEPDIR)/sha1.Po"; \ -@am__fastdepCXX_TRUE@ else rm -f "contrib/$(DEPDIR)/sha1.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='contrib/sha1.cc' object='contrib/sha1.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='contrib/$(DEPDIR)/sha1.Po' tmpdepfile='contrib/$(DEPDIR)/sha1.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o contrib/sha1.obj `if test -f 'contrib/sha1.cc'; then $(CYGPATH_W) 'contrib/sha1.cc'; else $(CYGPATH_W) '$(srcdir)/contrib/sha1.cc'; fi` - -contrib/sha1.lo: contrib/sha1.cc -@am__fastdepCXX_TRUE@ if $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT contrib/sha1.lo -MD -MP -MF "contrib/$(DEPDIR)/sha1.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o contrib/sha1.lo `test -f 'contrib/sha1.cc' || echo '$(srcdir)/'`contrib/sha1.cc; \ -@am__fastdepCXX_TRUE@ then mv -f "contrib/$(DEPDIR)/sha1.Tpo" "contrib/$(DEPDIR)/sha1.Plo"; \ -@am__fastdepCXX_TRUE@ else rm -f "contrib/$(DEPDIR)/sha1.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='contrib/sha1.cc' object='contrib/sha1.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='contrib/$(DEPDIR)/sha1.Plo' tmpdepfile='contrib/$(DEPDIR)/sha1.TPlo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o contrib/sha1.lo `test -f 'contrib/sha1.cc' || echo '$(srcdir)/'`contrib/sha1.cc - -contrib/strutl.o: contrib/strutl.cc -@am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT contrib/strutl.o -MD -MP -MF "contrib/$(DEPDIR)/strutl.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o contrib/strutl.o `test -f 'contrib/strutl.cc' || echo '$(srcdir)/'`contrib/strutl.cc; \ -@am__fastdepCXX_TRUE@ then mv -f "contrib/$(DEPDIR)/strutl.Tpo" "contrib/$(DEPDIR)/strutl.Po"; \ -@am__fastdepCXX_TRUE@ else rm -f "contrib/$(DEPDIR)/strutl.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='contrib/strutl.cc' object='contrib/strutl.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='contrib/$(DEPDIR)/strutl.Po' tmpdepfile='contrib/$(DEPDIR)/strutl.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o contrib/strutl.o `test -f 'contrib/strutl.cc' || echo '$(srcdir)/'`contrib/strutl.cc - -contrib/strutl.obj: contrib/strutl.cc -@am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT contrib/strutl.obj -MD -MP -MF "contrib/$(DEPDIR)/strutl.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o contrib/strutl.obj `if test -f 'contrib/strutl.cc'; then $(CYGPATH_W) 'contrib/strutl.cc'; else $(CYGPATH_W) '$(srcdir)/contrib/strutl.cc'; fi`; \ -@am__fastdepCXX_TRUE@ then mv -f "contrib/$(DEPDIR)/strutl.Tpo" "contrib/$(DEPDIR)/strutl.Po"; \ -@am__fastdepCXX_TRUE@ else rm -f "contrib/$(DEPDIR)/strutl.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='contrib/strutl.cc' object='contrib/strutl.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='contrib/$(DEPDIR)/strutl.Po' tmpdepfile='contrib/$(DEPDIR)/strutl.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o contrib/strutl.obj `if test -f 'contrib/strutl.cc'; then $(CYGPATH_W) 'contrib/strutl.cc'; else $(CYGPATH_W) '$(srcdir)/contrib/strutl.cc'; fi` - -contrib/strutl.lo: contrib/strutl.cc -@am__fastdepCXX_TRUE@ if $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT contrib/strutl.lo -MD -MP -MF "contrib/$(DEPDIR)/strutl.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o contrib/strutl.lo `test -f 'contrib/strutl.cc' || echo '$(srcdir)/'`contrib/strutl.cc; \ -@am__fastdepCXX_TRUE@ then mv -f "contrib/$(DEPDIR)/strutl.Tpo" "contrib/$(DEPDIR)/strutl.Plo"; \ -@am__fastdepCXX_TRUE@ else rm -f "contrib/$(DEPDIR)/strutl.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='contrib/strutl.cc' object='contrib/strutl.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='contrib/$(DEPDIR)/strutl.Plo' tmpdepfile='contrib/$(DEPDIR)/strutl.TPlo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o contrib/strutl.lo `test -f 'contrib/strutl.cc' || echo '$(srcdir)/'`contrib/strutl.cc - -rpm/rpmhandler.o: rpm/rpmhandler.cc -@am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT rpm/rpmhandler.o -MD -MP -MF "rpm/$(DEPDIR)/rpmhandler.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o rpm/rpmhandler.o `test -f 'rpm/rpmhandler.cc' || echo '$(srcdir)/'`rpm/rpmhandler.cc; \ -@am__fastdepCXX_TRUE@ then mv -f "rpm/$(DEPDIR)/rpmhandler.Tpo" "rpm/$(DEPDIR)/rpmhandler.Po"; \ -@am__fastdepCXX_TRUE@ else rm -f "rpm/$(DEPDIR)/rpmhandler.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='rpm/rpmhandler.cc' object='rpm/rpmhandler.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='rpm/$(DEPDIR)/rpmhandler.Po' tmpdepfile='rpm/$(DEPDIR)/rpmhandler.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o rpm/rpmhandler.o `test -f 'rpm/rpmhandler.cc' || echo '$(srcdir)/'`rpm/rpmhandler.cc - -rpm/rpmhandler.obj: rpm/rpmhandler.cc -@am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT rpm/rpmhandler.obj -MD -MP -MF "rpm/$(DEPDIR)/rpmhandler.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o rpm/rpmhandler.obj `if test -f 'rpm/rpmhandler.cc'; then $(CYGPATH_W) 'rpm/rpmhandler.cc'; else $(CYGPATH_W) '$(srcdir)/rpm/rpmhandler.cc'; fi`; \ -@am__fastdepCXX_TRUE@ then mv -f "rpm/$(DEPDIR)/rpmhandler.Tpo" "rpm/$(DEPDIR)/rpmhandler.Po"; \ -@am__fastdepCXX_TRUE@ else rm -f "rpm/$(DEPDIR)/rpmhandler.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='rpm/rpmhandler.cc' object='rpm/rpmhandler.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='rpm/$(DEPDIR)/rpmhandler.Po' tmpdepfile='rpm/$(DEPDIR)/rpmhandler.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o rpm/rpmhandler.obj `if test -f 'rpm/rpmhandler.cc'; then $(CYGPATH_W) 'rpm/rpmhandler.cc'; else $(CYGPATH_W) '$(srcdir)/rpm/rpmhandler.cc'; fi` - -rpm/rpmhandler.lo: rpm/rpmhandler.cc -@am__fastdepCXX_TRUE@ if $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT rpm/rpmhandler.lo -MD -MP -MF "rpm/$(DEPDIR)/rpmhandler.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o rpm/rpmhandler.lo `test -f 'rpm/rpmhandler.cc' || echo '$(srcdir)/'`rpm/rpmhandler.cc; \ -@am__fastdepCXX_TRUE@ then mv -f "rpm/$(DEPDIR)/rpmhandler.Tpo" "rpm/$(DEPDIR)/rpmhandler.Plo"; \ -@am__fastdepCXX_TRUE@ else rm -f "rpm/$(DEPDIR)/rpmhandler.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='rpm/rpmhandler.cc' object='rpm/rpmhandler.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='rpm/$(DEPDIR)/rpmhandler.Plo' tmpdepfile='rpm/$(DEPDIR)/rpmhandler.TPlo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o rpm/rpmhandler.lo `test -f 'rpm/rpmhandler.cc' || echo '$(srcdir)/'`rpm/rpmhandler.cc - -rpm/rpmindexfile.o: rpm/rpmindexfile.cc -@am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT rpm/rpmindexfile.o -MD -MP -MF "rpm/$(DEPDIR)/rpmindexfile.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o rpm/rpmindexfile.o `test -f 'rpm/rpmindexfile.cc' || echo '$(srcdir)/'`rpm/rpmindexfile.cc; \ -@am__fastdepCXX_TRUE@ then mv -f "rpm/$(DEPDIR)/rpmindexfile.Tpo" "rpm/$(DEPDIR)/rpmindexfile.Po"; \ -@am__fastdepCXX_TRUE@ else rm -f "rpm/$(DEPDIR)/rpmindexfile.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='rpm/rpmindexfile.cc' object='rpm/rpmindexfile.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='rpm/$(DEPDIR)/rpmindexfile.Po' tmpdepfile='rpm/$(DEPDIR)/rpmindexfile.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o rpm/rpmindexfile.o `test -f 'rpm/rpmindexfile.cc' || echo '$(srcdir)/'`rpm/rpmindexfile.cc - -rpm/rpmindexfile.obj: rpm/rpmindexfile.cc -@am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT rpm/rpmindexfile.obj -MD -MP -MF "rpm/$(DEPDIR)/rpmindexfile.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o rpm/rpmindexfile.obj `if test -f 'rpm/rpmindexfile.cc'; then $(CYGPATH_W) 'rpm/rpmindexfile.cc'; else $(CYGPATH_W) '$(srcdir)/rpm/rpmindexfile.cc'; fi`; \ -@am__fastdepCXX_TRUE@ then mv -f "rpm/$(DEPDIR)/rpmindexfile.Tpo" "rpm/$(DEPDIR)/rpmindexfile.Po"; \ -@am__fastdepCXX_TRUE@ else rm -f "rpm/$(DEPDIR)/rpmindexfile.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='rpm/rpmindexfile.cc' object='rpm/rpmindexfile.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='rpm/$(DEPDIR)/rpmindexfile.Po' tmpdepfile='rpm/$(DEPDIR)/rpmindexfile.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o rpm/rpmindexfile.obj `if test -f 'rpm/rpmindexfile.cc'; then $(CYGPATH_W) 'rpm/rpmindexfile.cc'; else $(CYGPATH_W) '$(srcdir)/rpm/rpmindexfile.cc'; fi` - -rpm/rpmindexfile.lo: rpm/rpmindexfile.cc -@am__fastdepCXX_TRUE@ if $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT rpm/rpmindexfile.lo -MD -MP -MF "rpm/$(DEPDIR)/rpmindexfile.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o rpm/rpmindexfile.lo `test -f 'rpm/rpmindexfile.cc' || echo '$(srcdir)/'`rpm/rpmindexfile.cc; \ -@am__fastdepCXX_TRUE@ then mv -f "rpm/$(DEPDIR)/rpmindexfile.Tpo" "rpm/$(DEPDIR)/rpmindexfile.Plo"; \ -@am__fastdepCXX_TRUE@ else rm -f "rpm/$(DEPDIR)/rpmindexfile.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='rpm/rpmindexfile.cc' object='rpm/rpmindexfile.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='rpm/$(DEPDIR)/rpmindexfile.Plo' tmpdepfile='rpm/$(DEPDIR)/rpmindexfile.TPlo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o rpm/rpmindexfile.lo `test -f 'rpm/rpmindexfile.cc' || echo '$(srcdir)/'`rpm/rpmindexfile.cc - -rpm/rpmlistparser.o: rpm/rpmlistparser.cc -@am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT rpm/rpmlistparser.o -MD -MP -MF "rpm/$(DEPDIR)/rpmlistparser.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o rpm/rpmlistparser.o `test -f 'rpm/rpmlistparser.cc' || echo '$(srcdir)/'`rpm/rpmlistparser.cc; \ -@am__fastdepCXX_TRUE@ then mv -f "rpm/$(DEPDIR)/rpmlistparser.Tpo" "rpm/$(DEPDIR)/rpmlistparser.Po"; \ -@am__fastdepCXX_TRUE@ else rm -f "rpm/$(DEPDIR)/rpmlistparser.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='rpm/rpmlistparser.cc' object='rpm/rpmlistparser.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='rpm/$(DEPDIR)/rpmlistparser.Po' tmpdepfile='rpm/$(DEPDIR)/rpmlistparser.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o rpm/rpmlistparser.o `test -f 'rpm/rpmlistparser.cc' || echo '$(srcdir)/'`rpm/rpmlistparser.cc - -rpm/rpmlistparser.obj: rpm/rpmlistparser.cc -@am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT rpm/rpmlistparser.obj -MD -MP -MF "rpm/$(DEPDIR)/rpmlistparser.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o rpm/rpmlistparser.obj `if test -f 'rpm/rpmlistparser.cc'; then $(CYGPATH_W) 'rpm/rpmlistparser.cc'; else $(CYGPATH_W) '$(srcdir)/rpm/rpmlistparser.cc'; fi`; \ -@am__fastdepCXX_TRUE@ then mv -f "rpm/$(DEPDIR)/rpmlistparser.Tpo" "rpm/$(DEPDIR)/rpmlistparser.Po"; \ -@am__fastdepCXX_TRUE@ else rm -f "rpm/$(DEPDIR)/rpmlistparser.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='rpm/rpmlistparser.cc' object='rpm/rpmlistparser.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='rpm/$(DEPDIR)/rpmlistparser.Po' tmpdepfile='rpm/$(DEPDIR)/rpmlistparser.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o rpm/rpmlistparser.obj `if test -f 'rpm/rpmlistparser.cc'; then $(CYGPATH_W) 'rpm/rpmlistparser.cc'; else $(CYGPATH_W) '$(srcdir)/rpm/rpmlistparser.cc'; fi` - -rpm/rpmlistparser.lo: rpm/rpmlistparser.cc -@am__fastdepCXX_TRUE@ if $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT rpm/rpmlistparser.lo -MD -MP -MF "rpm/$(DEPDIR)/rpmlistparser.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o rpm/rpmlistparser.lo `test -f 'rpm/rpmlistparser.cc' || echo '$(srcdir)/'`rpm/rpmlistparser.cc; \ -@am__fastdepCXX_TRUE@ then mv -f "rpm/$(DEPDIR)/rpmlistparser.Tpo" "rpm/$(DEPDIR)/rpmlistparser.Plo"; \ -@am__fastdepCXX_TRUE@ else rm -f "rpm/$(DEPDIR)/rpmlistparser.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='rpm/rpmlistparser.cc' object='rpm/rpmlistparser.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='rpm/$(DEPDIR)/rpmlistparser.Plo' tmpdepfile='rpm/$(DEPDIR)/rpmlistparser.TPlo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o rpm/rpmlistparser.lo `test -f 'rpm/rpmlistparser.cc' || echo '$(srcdir)/'`rpm/rpmlistparser.cc - -rpm/rpmpackagedata.o: rpm/rpmpackagedata.cc -@am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT rpm/rpmpackagedata.o -MD -MP -MF "rpm/$(DEPDIR)/rpmpackagedata.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o rpm/rpmpackagedata.o `test -f 'rpm/rpmpackagedata.cc' || echo '$(srcdir)/'`rpm/rpmpackagedata.cc; \ -@am__fastdepCXX_TRUE@ then mv -f "rpm/$(DEPDIR)/rpmpackagedata.Tpo" "rpm/$(DEPDIR)/rpmpackagedata.Po"; \ -@am__fastdepCXX_TRUE@ else rm -f "rpm/$(DEPDIR)/rpmpackagedata.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='rpm/rpmpackagedata.cc' object='rpm/rpmpackagedata.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='rpm/$(DEPDIR)/rpmpackagedata.Po' tmpdepfile='rpm/$(DEPDIR)/rpmpackagedata.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o rpm/rpmpackagedata.o `test -f 'rpm/rpmpackagedata.cc' || echo '$(srcdir)/'`rpm/rpmpackagedata.cc - -rpm/rpmpackagedata.obj: rpm/rpmpackagedata.cc -@am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT rpm/rpmpackagedata.obj -MD -MP -MF "rpm/$(DEPDIR)/rpmpackagedata.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o rpm/rpmpackagedata.obj `if test -f 'rpm/rpmpackagedata.cc'; then $(CYGPATH_W) 'rpm/rpmpackagedata.cc'; else $(CYGPATH_W) '$(srcdir)/rpm/rpmpackagedata.cc'; fi`; \ -@am__fastdepCXX_TRUE@ then mv -f "rpm/$(DEPDIR)/rpmpackagedata.Tpo" "rpm/$(DEPDIR)/rpmpackagedata.Po"; \ -@am__fastdepCXX_TRUE@ else rm -f "rpm/$(DEPDIR)/rpmpackagedata.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='rpm/rpmpackagedata.cc' object='rpm/rpmpackagedata.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='rpm/$(DEPDIR)/rpmpackagedata.Po' tmpdepfile='rpm/$(DEPDIR)/rpmpackagedata.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o rpm/rpmpackagedata.obj `if test -f 'rpm/rpmpackagedata.cc'; then $(CYGPATH_W) 'rpm/rpmpackagedata.cc'; else $(CYGPATH_W) '$(srcdir)/rpm/rpmpackagedata.cc'; fi` - -rpm/rpmpackagedata.lo: rpm/rpmpackagedata.cc -@am__fastdepCXX_TRUE@ if $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT rpm/rpmpackagedata.lo -MD -MP -MF "rpm/$(DEPDIR)/rpmpackagedata.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o rpm/rpmpackagedata.lo `test -f 'rpm/rpmpackagedata.cc' || echo '$(srcdir)/'`rpm/rpmpackagedata.cc; \ -@am__fastdepCXX_TRUE@ then mv -f "rpm/$(DEPDIR)/rpmpackagedata.Tpo" "rpm/$(DEPDIR)/rpmpackagedata.Plo"; \ -@am__fastdepCXX_TRUE@ else rm -f "rpm/$(DEPDIR)/rpmpackagedata.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='rpm/rpmpackagedata.cc' object='rpm/rpmpackagedata.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='rpm/$(DEPDIR)/rpmpackagedata.Plo' tmpdepfile='rpm/$(DEPDIR)/rpmpackagedata.TPlo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o rpm/rpmpackagedata.lo `test -f 'rpm/rpmpackagedata.cc' || echo '$(srcdir)/'`rpm/rpmpackagedata.cc - -rpm/rpmpm.o: rpm/rpmpm.cc -@am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT rpm/rpmpm.o -MD -MP -MF "rpm/$(DEPDIR)/rpmpm.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o rpm/rpmpm.o `test -f 'rpm/rpmpm.cc' || echo '$(srcdir)/'`rpm/rpmpm.cc; \ -@am__fastdepCXX_TRUE@ then mv -f "rpm/$(DEPDIR)/rpmpm.Tpo" "rpm/$(DEPDIR)/rpmpm.Po"; \ -@am__fastdepCXX_TRUE@ else rm -f "rpm/$(DEPDIR)/rpmpm.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='rpm/rpmpm.cc' object='rpm/rpmpm.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='rpm/$(DEPDIR)/rpmpm.Po' tmpdepfile='rpm/$(DEPDIR)/rpmpm.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o rpm/rpmpm.o `test -f 'rpm/rpmpm.cc' || echo '$(srcdir)/'`rpm/rpmpm.cc - -rpm/rpmpm.obj: rpm/rpmpm.cc -@am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT rpm/rpmpm.obj -MD -MP -MF "rpm/$(DEPDIR)/rpmpm.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o rpm/rpmpm.obj `if test -f 'rpm/rpmpm.cc'; then $(CYGPATH_W) 'rpm/rpmpm.cc'; else $(CYGPATH_W) '$(srcdir)/rpm/rpmpm.cc'; fi`; \ -@am__fastdepCXX_TRUE@ then mv -f "rpm/$(DEPDIR)/rpmpm.Tpo" "rpm/$(DEPDIR)/rpmpm.Po"; \ -@am__fastdepCXX_TRUE@ else rm -f "rpm/$(DEPDIR)/rpmpm.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='rpm/rpmpm.cc' object='rpm/rpmpm.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='rpm/$(DEPDIR)/rpmpm.Po' tmpdepfile='rpm/$(DEPDIR)/rpmpm.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o rpm/rpmpm.obj `if test -f 'rpm/rpmpm.cc'; then $(CYGPATH_W) 'rpm/rpmpm.cc'; else $(CYGPATH_W) '$(srcdir)/rpm/rpmpm.cc'; fi` - -rpm/rpmpm.lo: rpm/rpmpm.cc -@am__fastdepCXX_TRUE@ if $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT rpm/rpmpm.lo -MD -MP -MF "rpm/$(DEPDIR)/rpmpm.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o rpm/rpmpm.lo `test -f 'rpm/rpmpm.cc' || echo '$(srcdir)/'`rpm/rpmpm.cc; \ -@am__fastdepCXX_TRUE@ then mv -f "rpm/$(DEPDIR)/rpmpm.Tpo" "rpm/$(DEPDIR)/rpmpm.Plo"; \ -@am__fastdepCXX_TRUE@ else rm -f "rpm/$(DEPDIR)/rpmpm.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='rpm/rpmpm.cc' object='rpm/rpmpm.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='rpm/$(DEPDIR)/rpmpm.Plo' tmpdepfile='rpm/$(DEPDIR)/rpmpm.TPlo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o rpm/rpmpm.lo `test -f 'rpm/rpmpm.cc' || echo '$(srcdir)/'`rpm/rpmpm.cc - -rpm/rpmrecords.o: rpm/rpmrecords.cc -@am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT rpm/rpmrecords.o -MD -MP -MF "rpm/$(DEPDIR)/rpmrecords.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o rpm/rpmrecords.o `test -f 'rpm/rpmrecords.cc' || echo '$(srcdir)/'`rpm/rpmrecords.cc; \ -@am__fastdepCXX_TRUE@ then mv -f "rpm/$(DEPDIR)/rpmrecords.Tpo" "rpm/$(DEPDIR)/rpmrecords.Po"; \ -@am__fastdepCXX_TRUE@ else rm -f "rpm/$(DEPDIR)/rpmrecords.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='rpm/rpmrecords.cc' object='rpm/rpmrecords.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='rpm/$(DEPDIR)/rpmrecords.Po' tmpdepfile='rpm/$(DEPDIR)/rpmrecords.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o rpm/rpmrecords.o `test -f 'rpm/rpmrecords.cc' || echo '$(srcdir)/'`rpm/rpmrecords.cc - -rpm/rpmrecords.obj: rpm/rpmrecords.cc -@am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT rpm/rpmrecords.obj -MD -MP -MF "rpm/$(DEPDIR)/rpmrecords.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o rpm/rpmrecords.obj `if test -f 'rpm/rpmrecords.cc'; then $(CYGPATH_W) 'rpm/rpmrecords.cc'; else $(CYGPATH_W) '$(srcdir)/rpm/rpmrecords.cc'; fi`; \ -@am__fastdepCXX_TRUE@ then mv -f "rpm/$(DEPDIR)/rpmrecords.Tpo" "rpm/$(DEPDIR)/rpmrecords.Po"; \ -@am__fastdepCXX_TRUE@ else rm -f "rpm/$(DEPDIR)/rpmrecords.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='rpm/rpmrecords.cc' object='rpm/rpmrecords.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='rpm/$(DEPDIR)/rpmrecords.Po' tmpdepfile='rpm/$(DEPDIR)/rpmrecords.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o rpm/rpmrecords.obj `if test -f 'rpm/rpmrecords.cc'; then $(CYGPATH_W) 'rpm/rpmrecords.cc'; else $(CYGPATH_W) '$(srcdir)/rpm/rpmrecords.cc'; fi` - -rpm/rpmrecords.lo: rpm/rpmrecords.cc -@am__fastdepCXX_TRUE@ if $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT rpm/rpmrecords.lo -MD -MP -MF "rpm/$(DEPDIR)/rpmrecords.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o rpm/rpmrecords.lo `test -f 'rpm/rpmrecords.cc' || echo '$(srcdir)/'`rpm/rpmrecords.cc; \ -@am__fastdepCXX_TRUE@ then mv -f "rpm/$(DEPDIR)/rpmrecords.Tpo" "rpm/$(DEPDIR)/rpmrecords.Plo"; \ -@am__fastdepCXX_TRUE@ else rm -f "rpm/$(DEPDIR)/rpmrecords.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='rpm/rpmrecords.cc' object='rpm/rpmrecords.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='rpm/$(DEPDIR)/rpmrecords.Plo' tmpdepfile='rpm/$(DEPDIR)/rpmrecords.TPlo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o rpm/rpmrecords.lo `test -f 'rpm/rpmrecords.cc' || echo '$(srcdir)/'`rpm/rpmrecords.cc - -rpm/rpmsrcrecords.o: rpm/rpmsrcrecords.cc -@am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT rpm/rpmsrcrecords.o -MD -MP -MF "rpm/$(DEPDIR)/rpmsrcrecords.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o rpm/rpmsrcrecords.o `test -f 'rpm/rpmsrcrecords.cc' || echo '$(srcdir)/'`rpm/rpmsrcrecords.cc; \ -@am__fastdepCXX_TRUE@ then mv -f "rpm/$(DEPDIR)/rpmsrcrecords.Tpo" "rpm/$(DEPDIR)/rpmsrcrecords.Po"; \ -@am__fastdepCXX_TRUE@ else rm -f "rpm/$(DEPDIR)/rpmsrcrecords.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='rpm/rpmsrcrecords.cc' object='rpm/rpmsrcrecords.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='rpm/$(DEPDIR)/rpmsrcrecords.Po' tmpdepfile='rpm/$(DEPDIR)/rpmsrcrecords.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o rpm/rpmsrcrecords.o `test -f 'rpm/rpmsrcrecords.cc' || echo '$(srcdir)/'`rpm/rpmsrcrecords.cc - -rpm/rpmsrcrecords.obj: rpm/rpmsrcrecords.cc -@am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT rpm/rpmsrcrecords.obj -MD -MP -MF "rpm/$(DEPDIR)/rpmsrcrecords.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o rpm/rpmsrcrecords.obj `if test -f 'rpm/rpmsrcrecords.cc'; then $(CYGPATH_W) 'rpm/rpmsrcrecords.cc'; else $(CYGPATH_W) '$(srcdir)/rpm/rpmsrcrecords.cc'; fi`; \ -@am__fastdepCXX_TRUE@ then mv -f "rpm/$(DEPDIR)/rpmsrcrecords.Tpo" "rpm/$(DEPDIR)/rpmsrcrecords.Po"; \ -@am__fastdepCXX_TRUE@ else rm -f "rpm/$(DEPDIR)/rpmsrcrecords.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='rpm/rpmsrcrecords.cc' object='rpm/rpmsrcrecords.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='rpm/$(DEPDIR)/rpmsrcrecords.Po' tmpdepfile='rpm/$(DEPDIR)/rpmsrcrecords.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o rpm/rpmsrcrecords.obj `if test -f 'rpm/rpmsrcrecords.cc'; then $(CYGPATH_W) 'rpm/rpmsrcrecords.cc'; else $(CYGPATH_W) '$(srcdir)/rpm/rpmsrcrecords.cc'; fi` - -rpm/rpmsrcrecords.lo: rpm/rpmsrcrecords.cc -@am__fastdepCXX_TRUE@ if $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT rpm/rpmsrcrecords.lo -MD -MP -MF "rpm/$(DEPDIR)/rpmsrcrecords.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o rpm/rpmsrcrecords.lo `test -f 'rpm/rpmsrcrecords.cc' || echo '$(srcdir)/'`rpm/rpmsrcrecords.cc; \ -@am__fastdepCXX_TRUE@ then mv -f "rpm/$(DEPDIR)/rpmsrcrecords.Tpo" "rpm/$(DEPDIR)/rpmsrcrecords.Plo"; \ -@am__fastdepCXX_TRUE@ else rm -f "rpm/$(DEPDIR)/rpmsrcrecords.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='rpm/rpmsrcrecords.cc' object='rpm/rpmsrcrecords.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='rpm/$(DEPDIR)/rpmsrcrecords.Plo' tmpdepfile='rpm/$(DEPDIR)/rpmsrcrecords.TPlo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o rpm/rpmsrcrecords.lo `test -f 'rpm/rpmsrcrecords.cc' || echo '$(srcdir)/'`rpm/rpmsrcrecords.cc - -rpm/rpmsystem.o: rpm/rpmsystem.cc -@am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT rpm/rpmsystem.o -MD -MP -MF "rpm/$(DEPDIR)/rpmsystem.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o rpm/rpmsystem.o `test -f 'rpm/rpmsystem.cc' || echo '$(srcdir)/'`rpm/rpmsystem.cc; \ -@am__fastdepCXX_TRUE@ then mv -f "rpm/$(DEPDIR)/rpmsystem.Tpo" "rpm/$(DEPDIR)/rpmsystem.Po"; \ -@am__fastdepCXX_TRUE@ else rm -f "rpm/$(DEPDIR)/rpmsystem.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='rpm/rpmsystem.cc' object='rpm/rpmsystem.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='rpm/$(DEPDIR)/rpmsystem.Po' tmpdepfile='rpm/$(DEPDIR)/rpmsystem.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o rpm/rpmsystem.o `test -f 'rpm/rpmsystem.cc' || echo '$(srcdir)/'`rpm/rpmsystem.cc - -rpm/rpmsystem.obj: rpm/rpmsystem.cc -@am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT rpm/rpmsystem.obj -MD -MP -MF "rpm/$(DEPDIR)/rpmsystem.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o rpm/rpmsystem.obj `if test -f 'rpm/rpmsystem.cc'; then $(CYGPATH_W) 'rpm/rpmsystem.cc'; else $(CYGPATH_W) '$(srcdir)/rpm/rpmsystem.cc'; fi`; \ -@am__fastdepCXX_TRUE@ then mv -f "rpm/$(DEPDIR)/rpmsystem.Tpo" "rpm/$(DEPDIR)/rpmsystem.Po"; \ -@am__fastdepCXX_TRUE@ else rm -f "rpm/$(DEPDIR)/rpmsystem.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='rpm/rpmsystem.cc' object='rpm/rpmsystem.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='rpm/$(DEPDIR)/rpmsystem.Po' tmpdepfile='rpm/$(DEPDIR)/rpmsystem.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o rpm/rpmsystem.obj `if test -f 'rpm/rpmsystem.cc'; then $(CYGPATH_W) 'rpm/rpmsystem.cc'; else $(CYGPATH_W) '$(srcdir)/rpm/rpmsystem.cc'; fi` - -rpm/rpmsystem.lo: rpm/rpmsystem.cc -@am__fastdepCXX_TRUE@ if $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT rpm/rpmsystem.lo -MD -MP -MF "rpm/$(DEPDIR)/rpmsystem.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o rpm/rpmsystem.lo `test -f 'rpm/rpmsystem.cc' || echo '$(srcdir)/'`rpm/rpmsystem.cc; \ -@am__fastdepCXX_TRUE@ then mv -f "rpm/$(DEPDIR)/rpmsystem.Tpo" "rpm/$(DEPDIR)/rpmsystem.Plo"; \ -@am__fastdepCXX_TRUE@ else rm -f "rpm/$(DEPDIR)/rpmsystem.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='rpm/rpmsystem.cc' object='rpm/rpmsystem.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='rpm/$(DEPDIR)/rpmsystem.Plo' tmpdepfile='rpm/$(DEPDIR)/rpmsystem.TPlo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o rpm/rpmsystem.lo `test -f 'rpm/rpmsystem.cc' || echo '$(srcdir)/'`rpm/rpmsystem.cc - -rpm/rpmversion.o: rpm/rpmversion.cc -@am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT rpm/rpmversion.o -MD -MP -MF "rpm/$(DEPDIR)/rpmversion.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o rpm/rpmversion.o `test -f 'rpm/rpmversion.cc' || echo '$(srcdir)/'`rpm/rpmversion.cc; \ -@am__fastdepCXX_TRUE@ then mv -f "rpm/$(DEPDIR)/rpmversion.Tpo" "rpm/$(DEPDIR)/rpmversion.Po"; \ -@am__fastdepCXX_TRUE@ else rm -f "rpm/$(DEPDIR)/rpmversion.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='rpm/rpmversion.cc' object='rpm/rpmversion.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='rpm/$(DEPDIR)/rpmversion.Po' tmpdepfile='rpm/$(DEPDIR)/rpmversion.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o rpm/rpmversion.o `test -f 'rpm/rpmversion.cc' || echo '$(srcdir)/'`rpm/rpmversion.cc - -rpm/rpmversion.obj: rpm/rpmversion.cc -@am__fastdepCXX_TRUE@ if $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT rpm/rpmversion.obj -MD -MP -MF "rpm/$(DEPDIR)/rpmversion.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o rpm/rpmversion.obj `if test -f 'rpm/rpmversion.cc'; then $(CYGPATH_W) 'rpm/rpmversion.cc'; else $(CYGPATH_W) '$(srcdir)/rpm/rpmversion.cc'; fi`; \ -@am__fastdepCXX_TRUE@ then mv -f "rpm/$(DEPDIR)/rpmversion.Tpo" "rpm/$(DEPDIR)/rpmversion.Po"; \ -@am__fastdepCXX_TRUE@ else rm -f "rpm/$(DEPDIR)/rpmversion.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='rpm/rpmversion.cc' object='rpm/rpmversion.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='rpm/$(DEPDIR)/rpmversion.Po' tmpdepfile='rpm/$(DEPDIR)/rpmversion.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o rpm/rpmversion.obj `if test -f 'rpm/rpmversion.cc'; then $(CYGPATH_W) 'rpm/rpmversion.cc'; else $(CYGPATH_W) '$(srcdir)/rpm/rpmversion.cc'; fi` - -rpm/rpmversion.lo: rpm/rpmversion.cc -@am__fastdepCXX_TRUE@ if $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT rpm/rpmversion.lo -MD -MP -MF "rpm/$(DEPDIR)/rpmversion.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o rpm/rpmversion.lo `test -f 'rpm/rpmversion.cc' || echo '$(srcdir)/'`rpm/rpmversion.cc; \ -@am__fastdepCXX_TRUE@ then mv -f "rpm/$(DEPDIR)/rpmversion.Tpo" "rpm/$(DEPDIR)/rpmversion.Plo"; \ -@am__fastdepCXX_TRUE@ else rm -f "rpm/$(DEPDIR)/rpmversion.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='rpm/rpmversion.cc' object='rpm/rpmversion.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='rpm/$(DEPDIR)/rpmversion.Plo' tmpdepfile='rpm/$(DEPDIR)/rpmversion.TPlo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(LIBTOOL) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o rpm/rpmversion.lo `test -f 'rpm/rpmversion.cc' || echo '$(srcdir)/'`rpm/rpmversion.cc +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo @@ -1311,33 +622,24 @@ clean-libtool: distclean-libtool: -rm -f libtool uninstall-info-am: -includeHEADERS_INSTALL = $(INSTALL_HEADER) install-includeHEADERS: $(include_HEADERS) @$(NORMAL_INSTALL) - $(mkinstalldirs) $(DESTDIR)$(includedir) + test -z "$(includedir)" || $(mkdir_p) "$(DESTDIR)$(includedir)" @list='$(include_HEADERS)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - f="`echo $$p | sed -e 's|^.*/||'`"; \ - echo " $(includeHEADERS_INSTALL) $$d$$p $(DESTDIR)$(includedir)/$$f"; \ - $(includeHEADERS_INSTALL) $$d$$p $(DESTDIR)$(includedir)/$$f; \ + f=$(am__strip_dir) \ + echo " $(includeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(includedir)/$$f'"; \ + $(includeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(includedir)/$$f"; \ done uninstall-includeHEADERS: @$(NORMAL_UNINSTALL) @list='$(include_HEADERS)'; for p in $$list; do \ - f="`echo $$p | sed -e 's|^.*/||'`"; \ - echo " rm -f $(DESTDIR)$(includedir)/$$f"; \ - rm -f $(DESTDIR)$(includedir)/$$f; \ + f=$(am__strip_dir) \ + echo " rm -f '$(DESTDIR)$(includedir)/$$f'"; \ + rm -f "$(DESTDIR)$(includedir)/$$f"; \ done -ETAGS = etags -ETAGSFLAGS = - -CTAGS = ctags -CTAGSFLAGS = - -tags: TAGS - ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ @@ -1346,6 +648,7 @@ ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique +tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) @@ -1357,10 +660,11 @@ TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ - test -z "$(ETAGS_ARGS)$$tags$$unique" \ - || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$tags $$unique - + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) @@ -1383,10 +687,6 @@ GTAGS: distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) - -top_distdir = .. -distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ @@ -1400,7 +700,7 @@ distdir: $(DISTFILES) dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ - $(mkinstalldirs) "$(distdir)$$dir"; \ + $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ @@ -1418,9 +718,10 @@ distdir: $(DISTFILES) check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) $(HEADERS) - installdirs: - $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir) + for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)"; do \ + test -z "$$dir" || $(mkdir_p) "$$dir"; \ + done install: install-am install-exec: install-exec-am install-data: install-data-am @@ -1440,11 +741,11 @@ mostlyclean-generic: clean-generic: distclean-generic: - -rm -f $(CONFIG_CLEAN_FILES) - -rm -f rpm/$(am__dirstamp) + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -rm -f contrib/$(DEPDIR)/$(am__dirstamp) -rm -f contrib/$(am__dirstamp) -rm -f rpm/$(DEPDIR)/$(am__dirstamp) + -rm -f rpm/$(am__dirstamp) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @@ -1464,6 +765,8 @@ dvi: dvi-am dvi-am: +html: html-am + info: info-am info-am: @@ -1502,14 +805,14 @@ uninstall-am: uninstall-includeHEADERS uninstall-info-am \ .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libLTLIBRARIES clean-libtool clean-local ctags distclean \ distclean-compile distclean-generic distclean-libtool \ - distclean-tags distdir dvi dvi-am info info-am install \ - install-am install-data install-data-am install-exec \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-exec \ install-exec-am install-includeHEADERS install-info \ install-info-am install-libLTLIBRARIES install-man \ install-strip installcheck installcheck-am installdirs \ maintainer-clean maintainer-clean-generic mostlyclean \ - mostlyclean-compile mostlyclean-generic mostlyclean-libtool pdf \ - pdf-am ps ps-am tags uninstall uninstall-am \ + mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ + pdf pdf-am ps ps-am tags uninstall uninstall-am \ uninstall-includeHEADERS uninstall-info-am \ uninstall-libLTLIBRARIES diff --git a/apt/apt-pkg/acquire-item.cc b/apt/apt-pkg/acquire-item.cc index d7eae23..15ea22d 100644 --- a/apt/apt-pkg/acquire-item.cc +++ b/apt/apt-pkg/acquire-item.cc @@ -477,11 +477,11 @@ void pkgAcqIndexRel::Done(string Message,unsigned long Size,string MD5, } // Match fingerprint of Release file - if (Repository->Vendor->FingerPrint != FingerPrint) + if (Repository->FingerPrint != FingerPrint) { Status = StatError; ErrorText = _("Signature fingerprint of Release file does not match (expected ") - +Repository->Vendor->FingerPrint+_(", got ")+FingerPrint+")"; + +Repository->FingerPrint+_(", got ")+FingerPrint+")"; return; } } diff --git a/apt/apt-pkg/acquire-method.cc b/apt/apt-pkg/acquire-method.cc index ca4c32e..1f2783a 100644 --- a/apt/apt-pkg/acquire-method.cc +++ b/apt/apt-pkg/acquire-method.cc @@ -26,6 +26,7 @@ #include #include +#include #include #include #include @@ -61,6 +62,10 @@ pkgAcqMethod::pkgAcqMethod(const char *Ver,unsigned long Flags) if ((Flags & Removable) == Removable) strcat(End,"Removable: true\n"); + + // CNC:2004-04-27 + if ((Flags & HasPreferredURI) == HasPreferredURI) + strcat(End,"Has-Preferred-URI: true\n"); strcat(End,"\n"); if (write(STDOUT_FILENO,S,strlen(S)) != (signed)strlen(S)) @@ -134,24 +139,22 @@ void pkgAcqMethod::URIStart(FetchResult &Res) { if (Queue == 0) abort(); - - char S[1024] = ""; - char *End = S; - - End += snprintf(S,sizeof(S),"200 URI Start\nURI: %s\n",Queue->Uri.c_str()); + + ostringstream s; + + s << "200 URI Start\nURI: " << Queue->Uri << "\n"; if (Res.Size != 0) - End += snprintf(End,sizeof(S)-4 - (End - S),"Size: %lu\n",Res.Size); - + s << "Size: " << Res.Size << "\n"; + if (Res.LastModified != 0) - End += snprintf(End,sizeof(S)-4 - (End - S),"Last-Modified: %s\n", - TimeRFC1123(Res.LastModified).c_str()); - + s << "Last-Modified: " << TimeRFC1123(Res.LastModified) << "\n"; + if (Res.ResumePoint != 0) - End += snprintf(End,sizeof(S)-4 - (End - S),"Resume-Point: %lu\n", - Res.ResumePoint); - - strcat(End,"\n"); - if (write(STDOUT_FILENO,S,strlen(S)) != (signed)strlen(S)) + s << "Resume-Point: " << Res.ResumePoint << "\n"; + + s << "\n"; + string S = s.str(); + if (write(STDOUT_FILENO,S.c_str(),S.size()) != (ssize_t)S.size()) exit(100); } /*}}}*/ @@ -163,63 +166,57 @@ void pkgAcqMethod::URIDone(FetchResult &Res, FetchResult *Alt) if (Queue == 0) abort(); - char S[1024] = ""; - char *End = S; - - End += snprintf(S,sizeof(S),"201 URI Done\nURI: %s\n",Queue->Uri.c_str()); + ostringstream s; + s << "201 URI Done\nURI: " << Queue->Uri << "\n"; + if (Res.Filename.empty() == false) - End += snprintf(End,sizeof(S)-50 - (End - S),"Filename: %s\n",Res.Filename.c_str()); + s << "Filename: " << Res.Filename << "\n"; if (Res.Size != 0) - End += snprintf(End,sizeof(S)-50 - (End - S),"Size: %lu\n",Res.Size); + s << "Size: " << Res.Size << "\n"; if (Res.LastModified != 0) - End += snprintf(End,sizeof(S)-50 - (End - S),"Last-Modified: %s\n", - TimeRFC1123(Res.LastModified).c_str()); + s << "Last-Modified: " << TimeRFC1123(Res.LastModified) << "\n"; if (Res.MD5Sum.empty() == false) - End += snprintf(End,sizeof(S)-50 - (End - S),"MD5-Hash: %s\n",Res.MD5Sum.c_str()); + s << "MD5-Hash: " << Res.MD5Sum << "\n"; if (Res.SHA1Sum.empty() == false) - End += snprintf(End,sizeof(S)-50 - (End - S),"SHA1-Hash: %s\n",Res.SHA1Sum.c_str()); + s << "SHA1-Hash: " << Res.SHA1Sum << "\n"; // CNC:2002-07-04 if (Res.SignatureFP.empty() == false) - End += snprintf(End,sizeof(S)-50 - (End - S),"Signature-Fingerprint: %s\n",Res.SignatureFP.c_str()); + s << "Signature-Fingerprint: " << Res.SignatureFP << "\n"; if (Res.ResumePoint != 0) - End += snprintf(End,sizeof(S)-50 - (End - S),"Resume-Point: %lu\n", - Res.ResumePoint); + s << "Resume-Point: " << Res.ResumePoint << "\n"; if (Res.IMSHit == true) - strcat(End,"IMS-Hit: true\n"); - End = S + strlen(S); - + s << "IMS-Hit: true\n"; + if (Alt != 0) { if (Alt->Filename.empty() == false) - End += snprintf(End,sizeof(S)-50 - (End - S),"Alt-Filename: %s\n",Alt->Filename.c_str()); + s << "Alt-Filename: " << Alt->Filename << "\n"; if (Alt->Size != 0) - End += snprintf(End,sizeof(S)-50 - (End - S),"Alt-Size: %lu\n",Alt->Size); + s << "Alt-Size: " << Alt->Size << "\n"; if (Alt->LastModified != 0) - End += snprintf(End,sizeof(S)-50 - (End - S),"Alt-Last-Modified: %s\n", - TimeRFC1123(Alt->LastModified).c_str()); + s << "Alt-Last-Modified: " << TimeRFC1123(Alt->LastModified) << "\n"; if (Alt->MD5Sum.empty() == false) - End += snprintf(End,sizeof(S)-50 - (End - S),"Alt-MD5-Hash: %s\n", - Alt->MD5Sum.c_str()); + s << "Alt-MD5-Hash: " << Alt->MD5Sum << "\n"; if (Alt->SHA1Sum.empty() == false) - End += snprintf(End,sizeof(S)-50 - (End - S),"Alt-SHA1-Hash: %s\n", - Alt->SHA1Sum.c_str()); + s << "Alt-SHA1-Hash: " << Alt->SHA1Sum << "\n"; if (Alt->IMSHit == true) - strcat(End,"Alt-IMS-Hit: true\n"); + s << "Alt-IMS-Hit: true\n"; } - strcat(End,"\n"); - if (write(STDOUT_FILENO,S,strlen(S)) != (signed)strlen(S)) + s << "\n"; + string S = s.str(); + if (write(STDOUT_FILENO,S.c_str(),S.size()) != (ssize_t)S.size()) exit(100); // Dequeue @@ -279,6 +276,66 @@ bool pkgAcqMethod::MediaFail(string Required,string Drive) return !StringToBool(LookupTag(Message,"Fail"),false); } + Messages.push_back(Message); + } +} + /*}}}*/ +// AcqMethod::NeedAuth - Request authentication /*{{{*/ +// --------------------------------------------------------------------- +/* This sends a 404 Authenticate message to the APT and waits for it + to be ackd */ +bool pkgAcqMethod::NeedAuth(string Description,string &User,string &Pass) +{ + char S[1024]; + snprintf(S,sizeof(S),"404 Authenticate\nDescription: %s\n\n", + Description.c_str()); + + if (write(STDOUT_FILENO,S,strlen(S)) != (signed)strlen(S)) + exit(100); + + vector MyMessages; + + /* Here we read messages until we find a 604, each non 604 message is + appended to the main message list for later processing */ + while (1) + { + if (WaitFd(STDIN_FILENO) == false) + return false; + + if (ReadMessages(STDIN_FILENO,MyMessages) == false) + return false; + + string Message = MyMessages.front(); + MyMessages.erase(MyMessages.begin()); + + // Fetch the message number + char *End; + int Number = strtol(Message.c_str(),&End,10); + if (End == Message.c_str()) + { + cerr << "Malformed message!" << endl; + exit(100); + } + + // Change ack + if (Number == 604) + { + while (MyMessages.empty() == false) + { + Messages.push_back(MyMessages.front()); + MyMessages.erase(MyMessages.begin()); + } + + if (StringToBool(LookupTag(Message,"Fail"),false) == false) + { + User = LookupTag(Message,"User"); + Pass = LookupTag(Message,"Password"); + return true; + } + else + return false; + } + Messages.push_back(Message); } } @@ -390,6 +447,18 @@ int pkgAcqMethod::Run(bool Single) break; } + + // CNC:2004-04-27 + case 679: + { + char S[1024]; + snprintf(S,sizeof(S),"179 Preferred URI\nPreferredURI: %s\n\n", + PreferredURI().c_str()); + if (write(STDOUT_FILENO,S,strlen(S)) != (signed)strlen(S)) + exit(100); + break; + + } } } @@ -433,18 +502,51 @@ void pkgAcqMethod::Status(const char *Format,...) va_list args; va_start(args,Format); - // sprintf the description - char S[1024]; - unsigned int Len = snprintf(S,sizeof(S)-4,"102 Status\nURI: %s\n" - "Message: ",CurrentURI.c_str()); + ostringstream s; + s << "102 Status\nURI: " << CurrentURI << "\nMessage: "; - vsnprintf(S+Len,sizeof(S)-4-Len,Format,args); - strcat(S,"\n\n"); - - if (write(STDOUT_FILENO,S,strlen(S)) != (signed)strlen(S)) + // sprintf the description + char Buf[1024]; + vsnprintf(Buf,sizeof(Buf)-4,Format,args); + s << Buf << "\n\n"; + + string S = s.str(); + if (write(STDOUT_FILENO,S.c_str(),S.size()) != (ssize_t)S.size()) exit(100); } /*}}}*/ +// AcqMethod::Redirect - Send a redirect message /*{{{*/ +// --------------------------------------------------------------------- +/* This method sends the redirect message and also manipulates the queue + to keep the pipeline synchronized. */ +void pkgAcqMethod::Redirect(const string &NewURI) +{ + string CurrentURI = ""; + if (Queue != 0) + CurrentURI = Queue->Uri; + + ostringstream s; + s << "103 Redirect\nURI: " << CurrentURI << "\nNew-URI: " << NewURI + << "\n\n"; + + string S = s.str(); + if (write(STDOUT_FILENO,S.c_str(),S.size()) != (ssize_t)S.size()) + exit(100); + + // Change the URI for the request. + Queue->Uri = NewURI; + + /* To keep the pipeline synchronized, move the current request to + the end of the queue, past the end of the current pipeline. */ + FetchItem *I; + for (I = Queue; I->Next != 0; I = I->Next) ; + I->Next = Queue; + Queue = Queue->Next; + I->Next->Next = 0; + if (QueueBack == 0) + QueueBack = I->Next; +} + /*}}}*/ // AcqMethod::FetchResult::FetchResult - Constructor /*{{{*/ // --------------------------------------------------------------------- diff --git a/apt/apt-pkg/acquire-method.h b/apt/apt-pkg/acquire-method.h index 7790366..dcca197 100644 --- a/apt/apt-pkg/acquire-method.h +++ b/apt/apt-pkg/acquire-method.h @@ -71,18 +71,23 @@ class pkgAcqMethod void URIStart(FetchResult &Res); void URIDone(FetchResult &Res,FetchResult *Alt = 0); bool MediaFail(string Required,string Drive); + bool NeedAuth(string Description,string &User,string &Pass); virtual void Exit() {}; + // CNC:2004-04-27 + virtual string PreferredURI() { return ""; }; public: enum CnfFlags {SingleInstance = (1<<0), Pipeline = (1<<1), SendConfig = (1<<2), LocalOnly = (1<<3), NeedsCleanup = (1<<4), - Removable = (1<<5)}; + // CNC:2004-04-27 + Removable = (1<<5), HasPreferredURI = (1<<6)}; void Log(const char *Format,...); void Status(const char *Format,...); - + void Redirect(const string &NewURI); + int Run(bool Single = false); inline void SetFailExtraMsg(string Msg) {FailExtra = Msg;}; @@ -91,3 +96,5 @@ class pkgAcqMethod }; #endif + +// vim:sts=3:sw=3 diff --git a/apt/apt-pkg/acquire-worker.cc b/apt/apt-pkg/acquire-worker.cc index ab5e955..c2673a7 100644 --- a/apt/apt-pkg/acquire-worker.cc +++ b/apt/apt-pkg/acquire-worker.cc @@ -164,6 +164,20 @@ bool pkgAcquire::Worker::Start() if (OwnerQ != 0) SendConfiguration(); + // CNC:2004-04-27 + if (Config->HasPreferredURI == true && + Config->DonePreferredURI == false && + Config->PreferredURI.empty() == true) { + SetNonBlock(InFd,false); + SetNonBlock(OutFd,false); + OutQueue += "679 Preferred URI\n\n"; + Config->PreferredURI = ""; + if (OutFdReady() == true) + while (InFdReady() == true && Config->PreferredURI == ""); + SetNonBlock(InFd,true); + SetNonBlock(OutFd,true); + } + return true; } /*}}}*/ @@ -221,6 +235,26 @@ bool pkgAcquire::Worker::RunMessages() case 102: Status = LookupTag(Message,"Message"); break; + + // CNC:2004-04-27 + // 179 Preferred URI + case 179: + Config->PreferredURI = LookupTag(Message, "PreferredURI"); + break; + + // 103 Redirect + case 103: + { + if (Itm == 0) + { + _error->Error("Method gave invalid 103 Redirect message"); + break; + } + + string NewURI = LookupTag(Message,"New-URI",URI.c_str()); + Itm->URI = NewURI; + break; + } // 200 URI Start case 200: @@ -324,6 +358,11 @@ bool pkgAcquire::Worker::RunMessages() case 403: MediaChange(Message); break; + + // 404 Authenticate + case 404: + Authenticate(Message); + break; } } return true; @@ -345,6 +384,8 @@ bool pkgAcquire::Worker::Capabilities(string Message) Config->LocalOnly = StringToBool(LookupTag(Message,"Local-Only"),false); Config->NeedsCleanup = StringToBool(LookupTag(Message,"Needs-Cleanup"),false); Config->Removable = StringToBool(LookupTag(Message,"Removable"),false); + // CNC:2004-04-27 + Config->HasPreferredURI = StringToBool(LookupTag(Message,"Has-Preferred-URI"),false); // Some debug text if (Debug == true) @@ -356,7 +397,9 @@ bool pkgAcquire::Worker::Capabilities(string Message) " SendConfig:" << Config->SendConfig << " LocalOnly: " << Config->LocalOnly << " NeedsCleanup: " << Config->NeedsCleanup << - " Removable: " << Config->Removable << endl; + // CNC:2004-04-27 + " Removable: " << Config->Removable << + " HasPreferredURI: " << Config->HasPreferredURI << endl; } return true; @@ -388,6 +431,34 @@ bool pkgAcquire::Worker::MediaChange(string Message) return true; } /*}}}*/ +// Worker::Authenticate - Request authentication /*{{{*/ +// --------------------------------------------------------------------- +/* */ +bool pkgAcquire::Worker::Authenticate(string Message) +{ + string User, Pass; + if (Log == 0 || Log->Authenticate(LookupTag(Message,"Description"), + User,Pass) == false) + { + char S[300]; + snprintf(S,sizeof(S),"604 Authenticated\nFailed: true\n\n"); + if (Debug == true) + clog << " -> " << Access << ':' << QuoteString(S,"\n") << endl; + OutQueue += S; + OutReady = true; + return true; + } + + char S[300]; + snprintf(S,sizeof(S),"604 Authenticated\nUser: %s\nPassword: %s\n\n", + User.c_str(), Pass.c_str()); + if (Debug == true) + clog << " -> " << Access << ':' << QuoteString(S,"\n") << endl; + OutQueue += S; + OutReady = true; + return true; +} + /*}}}*/ // Worker::SendConfiguration - Send the config to the method /*{{{*/ // --------------------------------------------------------------------- /* */ @@ -546,3 +617,5 @@ void pkgAcquire::Worker::ItemDone() Status = string(); } /*}}}*/ + +// vim:sts=3:sw=3 diff --git a/apt/apt-pkg/acquire-worker.h b/apt/apt-pkg/acquire-worker.h index 5835589..cdb2565 100644 --- a/apt/apt-pkg/acquire-worker.h +++ b/apt/apt-pkg/acquire-worker.h @@ -62,6 +62,7 @@ class pkgAcquire::Worker bool Capabilities(string Message); bool SendConfiguration(); bool MediaChange(string Message); + bool Authenticate(string Message); bool MethodFailure(); void ItemDone(); @@ -87,3 +88,5 @@ class pkgAcquire::Worker }; #endif + +// vim:sts=3:sw=3 diff --git a/apt/apt-pkg/acquire.cc b/apt/apt-pkg/acquire.cc index 0885c57..233247a 100644 --- a/apt/apt-pkg/acquire.cc +++ b/apt/apt-pkg/acquire.cc @@ -506,6 +506,9 @@ pkgAcquire::MethodConfig::MethodConfig() LocalOnly = false; Removable = false; Next = 0; + // CNC:2004-04-27 + HasPreferredURI = false; + DonePreferredURI = false; } /*}}}*/ @@ -684,16 +687,37 @@ bool pkgAcquire::Queue::Cycle() return _error->Error("Pipedepth failure"); // Look for a queable item + // CNC:2004-04-27 + bool Preferred = (Workers->Config->HasPreferredURI == true && + Workers->Config->DonePreferredURI == false && + Workers->Config->PreferredURI.empty() == false); QItem *I = Items; while (PipeDepth < (signed)MaxPipeDepth) { - for (; I != 0; I = I->Next) - if (I->Owner->Status == pkgAcquire::Item::StatIdle) - break; + // CNC:2004-04-27 + if (Preferred) { + for (; I != 0; I = I->Next) + if (I->Owner->Status == pkgAcquire::Item::StatIdle && + strncmp(I->URI.c_str(), Workers->Config->PreferredURI.c_str(), + Workers->Config->PreferredURI.length()) == 0) + break; + } else { + for (; I != 0; I = I->Next) + if (I->Owner->Status == pkgAcquire::Item::StatIdle) + break; + } // Nothing to do, queue is idle. - if (I == 0) + if (I == 0) { + // CNC:2004-04-27 + if (Preferred == true) { + Preferred = false; + Workers->Config->DonePreferredURI = true; + I = Items; + continue; + } return true; + } I->Worker = Workers; I->Owner->Status = pkgAcquire::Item::StatFetching; @@ -847,4 +871,17 @@ void pkgAcquireStatus::Fetched(unsigned long Size,unsigned long Resume) { FetchedBytes += Size - Resume; } + + /*}}}*/ +// AcquireStatus::Authenticate - Called to authenticate /*{{{*/ +// --------------------------------------------------------------------- +/* This is used to fetch a username and password from the user */ +bool pkgAcquireStatus::Authenticate(string Desc,string &User,string &Pass) +{ + /* The default behavior for all clients is to refuse to authenticate + interactively; this preserves backwards compatibility. */ + return false; +} + /*}}}*/ +// vim:sts=3:sw=3 diff --git a/apt/apt-pkg/acquire.h b/apt/apt-pkg/acquire.h index 11b6c5a..b29c8f6 100644 --- a/apt/apt-pkg/acquire.h +++ b/apt/apt-pkg/acquire.h @@ -240,6 +240,10 @@ struct pkgAcquire::MethodConfig bool LocalOnly; bool NeedsCleanup; bool Removable; + // CNC:2004-04-27 + bool HasPreferredURI; + bool DonePreferredURI; + string PreferredURI; MethodConfig(); }; @@ -269,6 +273,9 @@ class pkgAcquireStatus // Called to change media virtual bool MediaChange(string Media,string Drive) = 0; + + // Called to authenticate + virtual bool Authenticate(string Desc,string &User,string &Pass); // Each of these is called by the workers when an event occures virtual void IMSHit(pkgAcquire::ItemDesc &/*Itm*/) {}; @@ -284,3 +291,5 @@ class pkgAcquireStatus }; #endif + +// vim:sts=3:sw=3 diff --git a/apt/apt-pkg/clean.cc b/apt/apt-pkg/clean.cc index 8faf3b0..7d33f77 100644 --- a/apt/apt-pkg/clean.cc +++ b/apt/apt-pkg/clean.cc @@ -82,8 +82,11 @@ bool pkgArchiveCleaner::Go(string Dir,pkgCache &Cache) continue; string Arch = DeQuoteString(string(Start,I-Start)); +// CNC:2004-04-19 +#if 0 if (Arch != "all" && Arch != MyArch) continue; +#endif // Lookup the package pkgCache::PkgIterator P = Cache.FindPkg(Pkg); diff --git a/apt/apt-pkg/contrib/error.cc b/apt/apt-pkg/contrib/error.cc index 0e29d1c..8110a56 100644 --- a/apt/apt-pkg/contrib/error.cc +++ b/apt/apt-pkg/contrib/error.cc @@ -247,6 +247,7 @@ void GlobalError::PushState() State *New = new State; New->List = List; New->Next = Stack; + New->PendingFlag = PendingFlag; Stack = New; List = 0; PendingFlag = false; diff --git a/apt/apt-pkg/init.cc b/apt/apt-pkg/init.cc index bdac517..815e828 100644 --- a/apt/apt-pkg/init.cc +++ b/apt/apt-pkg/init.cc @@ -158,6 +158,11 @@ bool pkgInitSystem(Configuration &Cnf,pkgSystem *&Sys) return _error->Error(_("Unable to determine a suitable system type")); } + // PM:2006-02-06 + if (Cnf.Find("APT::DistroVersion", "").empty()) { + Cnf.Set("APT::DistroVersion", Sys->DistroVer(Cnf)); + } + // CNC:2003-03-15 bool Ret = Sys->Initialize(Cnf); #ifdef WITH_LUA diff --git a/apt/apt-pkg/luaiface.cc b/apt/apt-pkg/luaiface.cc index 02d9a92..28d3c17 100644 --- a/apt/apt-pkg/luaiface.cc +++ b/apt/apt-pkg/luaiface.cc @@ -76,7 +76,7 @@ static int AptLua_pkgcomp(lua_State *L); Lua::Lua() : DepCache(0), Cache(0), CacheControl(0), Fix(0), DontFix(0) { - _config->CndSet("Dir::Bin::scripts", "/usr/lib/apt/scripts"); + _config->CndSet("Dir::Bin::scripts", "/usr/share/apt/scripts"); const luaL_reg lualibs[] = { {"base", luaopen_base}, @@ -693,9 +693,10 @@ inline int AptAux_PushBool(lua_State *L, bool Value) return 0; } -#define MARK_KEEP 0 -#define MARK_INSTALL 1 -#define MARK_REMOVE 2 +#define MARK_KEEP 0 +#define MARK_INSTALL 1 +#define MARK_REINSTALL 2 +#define MARK_REMOVE 3 static int AptAux_mark(lua_State *L, int Kind) { @@ -718,6 +719,9 @@ static int AptAux_mark(lua_State *L, int Kind) case MARK_INSTALL: DepCache->MarkInstall(PkgI); break; + case MARK_REINSTALL: + DepCache->SetReInstall(PkgI, true); + break; case MARK_REMOVE: Fix->Remove(PkgI); DepCache->MarkDelete(PkgI); @@ -736,6 +740,32 @@ static int AptAux_mark(lua_State *L, int Kind) return 0; } +static int AptAux_marksimple(lua_State *L, int Kind) +{ + pkgCache::Package *Pkg = AptAux_ToPackage(L, 1); + if (Pkg != NULL) { + pkgDepCache *DepCache = _lua->GetDepCache(L); + if (DepCache == NULL) + return 0; + pkgCache::PkgIterator PkgI(DepCache->GetCache(), Pkg); + pkgDepCache::State state(DepCache); + switch (Kind) { + case MARK_KEEP: + DepCache->MarkKeep(PkgI); + break; + case MARK_INSTALL: + DepCache->MarkInstall(PkgI, false); + break; + case MARK_REMOVE: + DepCache->MarkDelete(PkgI); + break; + } + if (DepCache->BrokenCount() > 0) + state.Restore(); + } + return 0; +} + static int AptLua_confget(lua_State *L) { const char *key = luaL_checkstring(L, 1); @@ -768,7 +798,11 @@ static int AptLua_confset(lua_State *L) { const char *key = luaL_checkstring(L, 1); const char *val = luaL_checkstring(L, 2); - const int cnd = luaL_optint(L, 3, 0); + int cnd = 0; + if (lua_gettop(L) >= 3 && lua_isboolean(L, 3)) + cnd = lua_toboolean(L, 3); + else + cnd = luaL_optint(L, 3, 0); if (key != NULL && val != NULL) { if (cnd != 0) _config->CndSet(key, val); @@ -999,6 +1033,9 @@ static int AptLua_verprovlist(lua_State *L) int i = 1; for (; PrvI.end() == false; PrvI++) { lua_newtable(L); + lua_pushstring(L, "pkg"); + pushudata(pkgCache::Package*, PrvI.ParentPkg()); + lua_settable(L, -3); lua_pushstring(L, "name"); lua_pushstring(L, PrvI.Name()); lua_settable(L, -3); @@ -1113,11 +1150,32 @@ static int AptLua_markinstall(lua_State *L) return AptAux_mark(L, MARK_INSTALL); } +static int AptLua_markreinstall(lua_State *L) +{ + _config->Set("Apt::Get::ReInstall", true); + return AptAux_mark(L, MARK_REINSTALL); +} + static int AptLua_markremove(lua_State *L) { return AptAux_mark(L, MARK_REMOVE); } +static int AptLua_marksimplekeep(lua_State *L) +{ + return AptAux_marksimple(L, MARK_KEEP); +} + +static int AptLua_marksimpleinstall(lua_State *L) +{ + return AptAux_marksimple(L, MARK_INSTALL); +} + +static int AptLua_marksimpleremove(lua_State *L) +{ + return AptAux_marksimple(L, MARK_REMOVE); +} + static int AptLua_markdistupgrade(lua_State *L) { if (lua_gettop(L) != 0) { @@ -1152,7 +1210,9 @@ static int AptLua_statkeep(lua_State *L) SPtr PkgI = AptAux_ToPkgIterator(L, 1); if (PkgI == NULL) return 0; - return AptAux_PushBool(L, (*DepCache)[*PkgI].Keep()); + return AptAux_PushBool(L, + (*DepCache)[*PkgI].Keep() && + !((*DepCache)[*PkgI].iFlags & pkgDepCache::ReInstall)); } static int AptLua_statinstall(lua_State *L) @@ -1188,6 +1248,19 @@ static int AptLua_statnewinstall(lua_State *L) return AptAux_PushBool(L, (*DepCache)[*PkgI].NewInstall()); } +static int AptLua_statreinstall(lua_State *L) +{ + pkgDepCache *DepCache = _lua->GetDepCache(L); + if (DepCache == NULL) + return 0; + SPtr PkgI = AptAux_ToPkgIterator(L, 1); + if (PkgI == NULL) + return 0; + return AptAux_PushBool(L, + (*DepCache)[*PkgI].Keep() && + ((*DepCache)[*PkgI].iFlags & pkgDepCache::ReInstall)); +} + static int AptLua_statupgrade(lua_State *L) { pkgDepCache *DepCache = _lua->GetDepCache(L); @@ -1270,6 +1343,12 @@ static int AptLua_statstr(lua_State *L) } else { lua_pushstring(L, "downgrade"); } + } else if (S.Keep() && (S.iFlags & pkgDepCache::ReInstall)) { + if (S.NowBroken()) { + lua_pushstring(L, "reinstall(broken)"); + } else { + lua_pushstring(L, "reinstall"); + } } else if (S.Keep()) { if (S.NowBroken()) { lua_pushstring(L, "keep(broken)"); @@ -1346,13 +1425,18 @@ static const luaL_reg aptlib[] = { {"verstrcmp", AptLua_verstrcmp}, {"markkeep", AptLua_markkeep}, {"markinstall", AptLua_markinstall}, + {"markreinstall", AptLua_markreinstall}, {"markremove", AptLua_markremove}, + {"marksimplekeep", AptLua_marksimpleinstall}, + {"marksimpleinstall",AptLua_marksimpleinstall}, + {"marksimpleremove", AptLua_marksimpleinstall}, {"markdistupgrade", AptLua_markdistupgrade}, {"markupgrade", AptLua_markupgrade}, {"statkeep", AptLua_statkeep}, {"statinstall", AptLua_statinstall}, {"statremove", AptLua_statremove}, {"statnewinstall", AptLua_statnewinstall}, + {"statreinstall", AptLua_statreinstall}, {"statupgrade", AptLua_statupgrade}, {"statupgradable", AptLua_statupgradable}, {"statdowngrade", AptLua_statdowngrade}, diff --git a/apt/apt-pkg/packagemanager.cc b/apt/apt-pkg/packagemanager.cc index 4f540ed..6a0475b 100644 --- a/apt/apt-pkg/packagemanager.cc +++ b/apt/apt-pkg/packagemanager.cc @@ -609,8 +609,14 @@ pkgPackageManager::OrderResult pkgPackageManager::OrderInstall() clog << "Sequence completed at " << Pkg.Name() << endl; if (DoneSomething == false) { +// CNC:2004-04-27 - This has changed due to PreferredURI. +#if 0 _error->Error("Internal Error, ordering was unable to handle the media swap"); return Failed; +#else + if (Debug == true) + clog << "Haven't done anything in OrderInstall()" << endl; +#endif } return Incomplete; } diff --git a/apt/apt-pkg/pkgsystem.h b/apt/apt-pkg/pkgsystem.h index 210e671..6ea113d 100644 --- a/apt/apt-pkg/pkgsystem.h +++ b/apt/apt-pkg/pkgsystem.h @@ -97,6 +97,9 @@ class pkgSystem /* Evauluate how 'right' we are for this system based on the filesystem etc.. */ virtual signed Score(Configuration const &/*Cnf*/) {return 0;}; + + // PM:2006-02-06 Distro version from package system + virtual string DistroVer(Configuration const &/*Cnf*/) {return "";}; // CNC:2002-07-03 // Do environment specific pre-processing over the Index Files diff --git a/apt/apt-pkg/policy.cc b/apt/apt-pkg/policy.cc index 219b7bc..c615dc2 100644 --- a/apt/apt-pkg/policy.cc +++ b/apt/apt-pkg/policy.cc @@ -119,8 +119,9 @@ bool pkgPolicy::InitDefaults() pkgCache::VerIterator pkgPolicy::GetCandidateVer(pkgCache::PkgIterator Pkg) { // Look for a package pin and evaluate it. - signed Max = GetPriority(Pkg); + // CNC:2004-05-29 pkgCache::VerIterator Pref = GetMatch(Pkg); + signed Max = GetPriority(Pkg); /* Falling through to the default version.. Setting Max to zero effectively excludes everything <= 0 which are the non-automatic @@ -219,8 +220,21 @@ pkgCache::VerIterator pkgPolicy::GetMatch(pkgCache::PkgIterator Pkg) const Pin &PPkg = Pins[Pkg->ID]; if (PPkg.Type != pkgVersionMatch::None) { - pkgVersionMatch Match(PPkg.Data,PPkg.Type); - return Match.Find(Pkg); + // CNC:2004-05-29 - Make negative pins on individual packages + // behave like package<>version. + pkgCache::VerIterator Ver; + pkgVersionMatch *Match; + if (PPkg.Type == pkgVersionMatch::Version && PPkg.Priority < 0) + { + Match = new pkgVersionMatch(PPkg.Data,PPkg.Type, pkgCache::Dep::NotEquals); + Pins[Pkg->ID].Priority = 0; + } + else + Match = new pkgVersionMatch(PPkg.Data,PPkg.Type); + Ver = Match->Find(Pkg); + delete Match; + + return Ver; } return pkgCache::VerIterator(*Pkg.Cache()); } diff --git a/apt/apt-pkg/repository.h b/apt/apt-pkg/repository.h index 743ebc5..189001b 100644 --- a/apt/apt-pkg/repository.h +++ b/apt/apt-pkg/repository.h @@ -33,7 +33,7 @@ class pkgRepository string URI; string Dist; - const pkgSourceList::Vendor *Vendor; + string FingerPrint; string RootURI; bool Acquire; @@ -41,14 +41,16 @@ class pkgRepository bool ParseRelease(string File); bool HasRelease() const { return GotRelease; } - bool IsAuthenticated() const { return Vendor != NULL; }; + bool IsAuthenticated() const { return !FingerPrint.empty(); }; bool FindChecksums(string URI,unsigned long &Size, string &MD5); pkgRepository(string URI,string Dist, const pkgSourceList::Vendor *Vendor, string RootURI) - : GotRelease(0), URI(URI), Dist(Dist), Vendor(Vendor), RootURI(RootURI), + : GotRelease(0), URI(URI), Dist(Dist), RootURI(RootURI), Acquire(1) - {}; + { + if (Vendor) FingerPrint = Vendor->FingerPrint; + }; }; diff --git a/apt/apt-pkg/rpm/rpmhandler.cc b/apt/apt-pkg/rpm/rpmhandler.cc index 3da430a..0413a49 100644 --- a/apt/apt-pkg/rpm/rpmhandler.cc +++ b/apt/apt-pkg/rpm/rpmhandler.cc @@ -210,6 +210,9 @@ RPMDirHandler::RPMDirHandler(string DirName) : sDirName(DirName) { ID = DirName; +#if RPM_VERSION >= 0x040100 + TS = NULL; +#endif Dir = opendir(sDirName.c_str()); if (Dir == NULL) return; @@ -253,7 +256,8 @@ RPMDirHandler::~RPMDirHandler() if (HeaderP != NULL) headerFree(HeaderP); #if RPM_VERSION >= 0x040100 - rpmtsFree(TS); + if (TS != NULL) + rpmtsFree(TS); #endif if (Dir != NULL) closedir(Dir); @@ -367,7 +371,7 @@ RPMDBHandler::RPMDBHandler(bool WriteLock) Handler = rpmtsCreate(); rpmtsSetVSFlags(Handler, (rpmVSFlags_e)-1); rpmtsSetRootDir(Handler, Dir.c_str()); - if (rpmtsOpenDB(Handler, WriteLock?O_RDWR:O_RDONLY) != 0) + if (rpmtsOpenDB(Handler, O_RDONLY) != 0) { _error->Error(_("could not open RPM database")); return; @@ -376,7 +380,7 @@ RPMDBHandler::RPMDBHandler(bool WriteLock) const char *RootDir = NULL; if (!Dir.empty()) RootDir = Dir.c_str(); - if (rpmdbOpen(RootDir, &Handler, WriteLock?O_RDWR:O_RDONLY, 0644) != 0) + if (rpmdbOpen(RootDir, &Handler, O_RDONLY, 0644) != 0) { _error->Error(_("could not open RPM database")); return; @@ -401,8 +405,10 @@ RPMDBHandler::RPMDBHandler(bool WriteLock) rpmdbFreeIterator(countIt); #else iSize = St.st_size; + #endif + // Restore just after opening the database, and just after closing. if (WriteLock) { struct utimbuf Ut; diff --git a/apt/apt-pkg/rpm/rpmindexfile.cc b/apt/apt-pkg/rpm/rpmindexfile.cc index 5cd8bf8..d9379a7 100644 --- a/apt/apt-pkg/rpm/rpmindexfile.cc +++ b/apt/apt-pkg/rpm/rpmindexfile.cc @@ -644,10 +644,8 @@ class rpmSLTypeGen : public pkgSourceList::Type { if ((*iter)->URI == URI && (*iter)->Dist == Dist) { - // The registered object has no vendor, but the new one does - // so, we make the previous one have the vendor too. - if ((*iter)->Vendor == NULL && Vendor != NULL) - (*iter)->Vendor = Vendor; + if (Vendor != NULL) + (*iter)->FingerPrint = Vendor->FingerPrint; return *iter; } } diff --git a/apt/apt-pkg/rpm/rpmlistparser.cc b/apt/apt-pkg/rpm/rpmlistparser.cc index 10e5e29..e56e92a 100644 --- a/apt/apt-pkg/rpm/rpmlistparser.cc +++ b/apt/apt-pkg/rpm/rpmlistparser.cc @@ -35,6 +35,8 @@ #define WITH_VERSION_CACHING 1 +string MultilibArchs[] = {"x86_64", "ia64", "ppc64", "sparc64"}; + // ListParser::rpmListParser - Constructor /*{{{*/ // --------------------------------------------------------------------- /* */ @@ -44,13 +46,17 @@ rpmListParser::rpmListParser(RPMHandler *Handler) Handler->Rewind(); header = NULL; if (Handler->IsDatabase() == true) + { #ifdef WITH_HASH_MAP SeenPackages = new SeenPackagesType(517); #else SeenPackages = new SeenPackagesType; #endif + } else + { SeenPackages = NULL; + } RpmData = RPMPackageData::Singleton(); } /*}}}*/ @@ -85,6 +91,7 @@ unsigned long rpmListParser::UniqFindTagWrite(int Tag) return WriteUniqString(Start,Stop - Start); } + /*}}}*/ // ListParser::Package - Return the package name /*{{{*/ // --------------------------------------------------------------------- @@ -114,6 +121,12 @@ string rpmListParser::Package() bool IsDup = false; string Name = str; + + if (RpmData->IsMultilibSys() && RpmData->IsCompatArch(Architecture())) { + Name += ".32bit"; + CurrentName = Name; + } + // If this package can have multiple versions installed at // the same time, then we make it so that the name of the @@ -153,6 +166,7 @@ string rpmListParser::Package() CurrentName = Name; return Name; } + /*}}}*/ // ListParser::Arch - Return the architecture string /*{{{*/ // --------------------------------------------------------------------- @@ -390,13 +404,39 @@ bool rpmListParser::ParseDepends(pkgCache::VerIterator Ver, if (DepMode == true) { if (flagl[i] & RPMSENSE_PREREQ) Type = pkgCache::Dep::PreDepends; +#if RPM_VERSION >= 0x040403 + else if (flagl[i] & RPMSENSE_MISSINGOK) + Type = pkgCache::Dep::Suggests; +#endif else Type = pkgCache::Dep::Depends; } - - if (namel[i][0] == 'r' && strncmp(namel[i], "rpmlib", 6) == 0) + +#if RPM_VERSION >= 0x040404 + if (namel[i][0] == 'g' && strncmp(namel[i], "getconf", 7) == 0) { -#if RPM_VERSION >= 0x040100 + rpmds getconfProv = NULL; + rpmds ds = rpmdsSingle(RPMTAG_PROVIDENAME, + namel[i], verl?verl[i]:NULL, flagl[i]); + rpmdsGetconf(&getconfProv, NULL); + int res = rpmdsSearch(getconfProv, ds) >= 0; + rpmdsFree(ds); + rpmdsFree(getconfProv); + if (res) continue; + } +#endif + + if (namel[i][0] == 'r' && strncmp(namel[i], "rpmlib", 6) == 0) + { +#if RPM_VERSION >= 0x040404 + rpmds rpmlibProv = NULL; + rpmds ds = rpmdsSingle(RPMTAG_PROVIDENAME, + namel[i], verl?verl[i]:NULL, flagl[i]); + rpmdsRpmlib(&rpmlibProv, NULL); + int res = rpmdsSearch(rpmlibProv, ds) >= 0; + rpmdsFree(ds); + rpmdsFree(rpmlibProv); +#elif RPM_VERSION >= 0x040100 rpmds ds = rpmdsSingle(RPMTAG_PROVIDENAME, namel[i], verl?verl[i]:NULL, flagl[i]); int res = rpmCheckRpmlibProvides(ds); @@ -494,6 +534,30 @@ bool rpmListParser::ParseDepends(pkgCache::VerIterator Ver, res = headerGetEntry(header, RPMTAG_CONFLICTFLAGS, &type, (void **)&flagl, &count); break; +#if RPM_VERSION >= 0x040403 + case pkgCache::Dep::Suggests: + res = headerGetEntry(header, RPMTAG_SUGGESTSNAME, &type, + (void **)&namel, &count); + if (res != 1) + return true; + res = headerGetEntry(header, RPMTAG_SUGGESTSVERSION, &type, + (void **)&verl, &count); + res = headerGetEntry(header, RPMTAG_SUGGESTSFLAGS, &type, + (void **)&flagl, &count); + break; +#if 0 // Enhances is not even known to apt, sigh... + case pkgCache::Dep::Enhances: + res = headerGetEntry(header, RPMTAG_ENHANCESNAME, &type, + (void **)&namel, &count); + if (res != 1) + return true; + res = headerGetEntry(header, RPMTAG_ENHANCESVERSION, &type, + (void **)&verl, &count); + res = headerGetEntry(header, RPMTAG_ENHANCESFLAGS, &type, + (void **)&flagl, &count); + break; +#endif +#endif } ParseDepends(Ver, namel, verl, flagl, count, Type); @@ -624,6 +688,7 @@ bool rpmListParser::Step() #endif string RealName = Package(); + if (Duplicated == true) RealName = RealName.substr(0,RealName.find('#')); if (RpmData->IgnorePackage(RealName) == true) diff --git a/apt/apt-pkg/rpm/rpmlistparser.h b/apt/apt-pkg/rpm/rpmlistparser.h index 7ed147c..319dc53 100644 --- a/apt/apt-pkg/rpm/rpmlistparser.h +++ b/apt/apt-pkg/rpm/rpmlistparser.h @@ -42,7 +42,7 @@ class rpmListParser : public pkgCacheGenerator::ListParser typedef map SeenPackagesType; #endif SeenPackagesType *SeenPackages; - + bool Duplicated; unsigned long UniqFindTagWrite(int Tag); @@ -84,6 +84,7 @@ class rpmListParser : public pkgCacheGenerator::ListParser bool LoadReleaseInfo(pkgCache::PkgFileIterator FileI,FileFd &File); void VirtualizePackage(string Name); + void CompatArchPackage(string Name); rpmListParser(RPMHandler *Handler); ~rpmListParser(); diff --git a/apt/apt-pkg/rpm/rpmpackagedata.cc b/apt/apt-pkg/rpm/rpmpackagedata.cc index 489bd96..0ce30fd 100644 --- a/apt/apt-pkg/rpm/rpmpackagedata.cc +++ b/apt/apt-pkg/rpm/rpmpackagedata.cc @@ -20,6 +20,24 @@ RPMPackageData::RPMPackageData() , ArchScores(31), VerMap(517) #endif { + BaseArch = _config->Find("APT::Architecture"); + if (BaseArch == "x86_64" || BaseArch == "ia64" || + BaseArch == "ppc64" || BaseArch == "sparc64") + MultilibSys = true; + else + MultilibSys = false; + + if (MultilibSys) { + CompatArch["x86_64"].push_back("i386"); + CompatArch["x86_64"].push_back("i486"); + CompatArch["x86_64"].push_back("i586"); + CompatArch["x86_64"].push_back("i686"); + CompatArch["x86_64"].push_back("athlon"); + CompatArch["ia64"] = CompatArch["x86_64"]; + CompatArch["ppc64"].push_back("ppc"); + CompatArch["sparc64"].push_back("sparc"); + } + // Populate priorities string FileName = _config->FindFile("Dir::Etc::rpmpriorities"); FileFd F(FileName, FileFd::ReadOnly); @@ -276,6 +294,18 @@ int RPMPackageData::RpmArchScore(const char *Arch) return 0; } +bool RPMPackageData::IsCompatArch(string Arch) +{ + bool compat = false; + for (vector::iterator I = CompatArch[BaseArch].begin(); + I != CompatArch[BaseArch].end(); I++) { + if (Arch == *I) + return true; + } + return false; +} + + bool RPMPackageData::IsDupPackage(const string &Name) { if (DuplicatedPackages.find(Name) != DuplicatedPackages.end()) diff --git a/apt/apt-pkg/rpm/rpmpackagedata.h b/apt/apt-pkg/rpm/rpmpackagedata.h index 106ecf8..0977910 100644 --- a/apt/apt-pkg/rpm/rpmpackagedata.h +++ b/apt/apt-pkg/rpm/rpmpackagedata.h @@ -27,6 +27,7 @@ class RPMPackageData hash_map*,hash_string> FakeProvides; hash_map IgnorePackages; hash_map DuplicatedPackages; + hash_map,hash_string> CompatArch; typedef map VerMapValueType; typedef hash_map VerMapType; typedef hash_map*> FakeProvides; map IgnorePackages; map DuplicatedPackages; + map > CompatArch; typedef map VerMapValueType; typedef map VerMapType; typedef map ArchScoresType; @@ -64,6 +66,9 @@ class RPMPackageData ArchScoresType ArchScores; int RpmArchScore(const char *Arch); + string BaseArch; + bool MultilibSys; + public: inline pkgCache::State::VerPriority VerPriority(const string &Package) @@ -107,6 +112,9 @@ class RPMPackageData } void InitMinArchScore(); + bool IsCompatArch(string Arch); + bool IsMultilibSys() { return MultilibSys; }; + void SetDupPackage(const string &Name) {DuplicatedPackages[Name] = 1;}; bool IsDupPackage(const string &Name); diff --git a/apt/apt-pkg/rpm/rpmpm.cc b/apt/apt-pkg/rpm/rpmpm.cc index fa34a26..c5a13dc 100644 --- a/apt/apt-pkg/rpm/rpmpm.cc +++ b/apt/apt-pkg/rpm/rpmpm.cc @@ -239,6 +239,9 @@ bool pkgRPMPM::RunScriptsWithPkgs(const char *Cnf) /* This globs the operations and calls rpm */ bool pkgRPMPM::Go() { + if (List.empty() == true) + return true; + if (RunScripts("RPM::Pre-Invoke") == false) return false; @@ -323,6 +326,7 @@ bool pkgRPMPM::Go() _lua->ResetCaches(); _lua->ResetGlobals(); if (_error->PendingError() == true) { + _error->DumpErrors(); Ret = false; goto exit; } @@ -344,6 +348,7 @@ bool pkgRPMPM::Go() _lua->ResetCaches(); _lua->ResetGlobals(); if (_error->PendingError() == true) { + _error->DumpErrors(); Ret = false; goto exit; } @@ -778,6 +783,27 @@ bool pkgRPMLibPM::Process(vector &install, TS = rpmtransCreateSet(DB, Dir.c_str()); #endif +#if RPM_VERSION >= 0x040000 + if (rpmExpandNumeric("%{?_repackage_all_erasures}")) + tsFlags |= RPMTRANS_FLAG_REPACKAGE; +#endif + +#if RPM_VERSION >= 0x040300 + /* Initialize security context patterns for SELinux */ + if (!(tsFlags & RPMTRANS_FLAG_NOCONTEXTS)) { + rpmsx sx = rpmtsREContext(TS); + if (sx == NULL) { + const char *fn = rpmGetPath("%{?_install_file_context_path}", NULL); + if (fn != NULL && *fn != '\0') { + sx = rpmsxNew(fn); + (void) rpmtsSetREContext(TS, sx); + } + fn = (const char *) _free(fn); + } + sx = rpmsxFree(sx); + } +#endif + if (_config->FindB("RPM::OldPackage", true) || !upgrade.empty()) { probFilter |= RPMPROB_FILTER_OLDPACKAGE; } @@ -921,6 +947,10 @@ bool pkgRPMLibPM::ParseRpmOpts(const char *Cnf, int *tsFlags, int *probFilter) Opts->Value == "--excludeconfigs") *tsFlags |= RPMTRANS_FLAG_NOCONFIGS; #endif +#if RPM_VERSION >= 0x040300 + else if (Opts->Value == "--nocontexts") + *tsFlags |= RPMTRANS_FLAG_NOCONTEXTS; +#endif // Problem filter flags else if (Opts->Value == "--replacefiles") @@ -949,6 +979,16 @@ bool pkgRPMLibPM::ParseRpmOpts(const char *Cnf, int *tsFlags, int *probFilter) _config->Set("RPM::NoDeps", true); else if (Opts->Value == "--noorder") _config->Set("RPM::Order", false); + else if (Opts->Value == "-v") { + rpmIncreaseVerbosity(); + } else if (Opts->Value == "-vv") { + rpmIncreaseVerbosity(); + rpmIncreaseVerbosity(); + } else if (Opts->Value == "-vvv") { + rpmIncreaseVerbosity(); + rpmIncreaseVerbosity(); + rpmIncreaseVerbosity(); + } // TODO: --root, --relocate, --prefix, --excludepath etc... } diff --git a/apt/apt-pkg/rpm/rpmrecords.cc b/apt/apt-pkg/rpm/rpmrecords.cc index bace79a..6f8f270 100644 --- a/apt/apt-pkg/rpm/rpmrecords.cc +++ b/apt/apt-pkg/rpm/rpmrecords.cc @@ -296,7 +296,7 @@ void rpmRecordParser::GetRec(const char *&Start,const char *&Stop) BufCatTag("\nSection: ", str); headerGetEntry(HeaderP, RPMTAG_SIZE, &type, (void **)&numv, &count); - snprintf(buf, sizeof(buf), "%d", numv[0] / 1000); + snprintf(buf, sizeof(buf), "%d", numv[0]); BufCatTag("\nInstalled Size: ", buf); str = NULL; diff --git a/apt/apt-pkg/rpm/rpmshowprogress.h b/apt/apt-pkg/rpm/rpmshowprogress.h index 7c50856..ddc26a6 100644 --- a/apt/apt-pkg/rpm/rpmshowprogress.h +++ b/apt/apt-pkg/rpm/rpmshowprogress.h @@ -120,7 +120,7 @@ void * rpmShowProgress(const Header h, if (flags & INSTALL_HASH) fprintf(stdout, "%-28s", _("Preparing...")); else - fprintf(stdout, "%s\n", _("Preparing packages for installation...")); + fprintf(stdout, "%s\n", _("Preparing...")); (void) fflush(stdout); break; diff --git a/apt/apt-pkg/rpm/rpmsrcrecords.cc b/apt/apt-pkg/rpm/rpmsrcrecords.cc index 13bde08..49256d4 100644 --- a/apt/apt-pkg/rpm/rpmsrcrecords.cc +++ b/apt/apt-pkg/rpm/rpmsrcrecords.cc @@ -306,7 +306,7 @@ string rpmSrcRecordParser::AsStr() BufCatTag("\nSection: ", str); headerGetEntry(HeaderP, RPMTAG_SIZE, &type, (void **)&numv, &count); - snprintf(buf, sizeof(buf), "%d", numv[0] / 1000); + snprintf(buf, sizeof(buf), "%d", numv[0]); BufCatTag("\nInstalled Size: ", buf); str = NULL; @@ -436,9 +436,31 @@ bool rpmSrcRecordParser::BuildDepends(vector for (int i = 0; i < count; i++) { +#if RPM_VERSION >= 0x040404 + if (namel[i][0] == 'g' && strncmp(namel[i], "getconf", 7) == 0) + { + rpmds getconfProv = NULL; + rpmds ds = rpmdsSingle(RPMTAG_PROVIDENAME, + namel[i], verl?verl[i]:NULL, flagl[i]); + rpmdsGetconf(&getconfProv, NULL); + int res = rpmdsSearch(getconfProv, ds) >= 0; + rpmdsFree(ds); + rpmdsFree(getconfProv); + if (res) continue; + } +#endif if (strncmp(namel[i], "rpmlib", 6) == 0) { -#if RPM_VERSION >= 0x040100 +#if RPM_VERSION >= 0x040404 + rpmds rpmlibProv = NULL; + rpmds ds = rpmdsSingle(RPMTAG_PROVIDENAME, + namel[i], verl?verl[i]:NULL, flagl[i]); + rpmdsRpmlib(&rpmlibProv, NULL); + rpmdsSearch(rpmlibProv, ds); + int res = rpmdsResult(ds); + rpmdsFree(ds); + rpmdsFree(rpmlibProv); +#elif RPM_VERSION >= 0x040100 rpmds ds = rpmdsSingle(RPMTAG_PROVIDENAME, namel[i], verl?verl[i]:NULL, flagl[i]); int res = rpmCheckRpmlibProvides(ds); diff --git a/apt/apt-pkg/rpm/rpmsystem.cc b/apt/apt-pkg/rpm/rpmsystem.cc index d963837..69169c7 100644 --- a/apt/apt-pkg/rpm/rpmsystem.cc +++ b/apt/apt-pkg/rpm/rpmsystem.cc @@ -33,10 +33,17 @@ #include #include +#include #include +#include #include #include /*}}}*/ +// for distrover +#if RPM_VERSION >= 0x040101 +#include +#endif + #if RPM_VERSION >= 0x040201 extern int _rpmds_nopromote; #endif @@ -229,6 +236,7 @@ signed rpmSystem::Score(Configuration const &Cnf) { signed Score = 0; + rpmReadConfigFiles(NULL, NULL); if (FileExists(RPMDBHandler::DataPath(false))) Score += 10; if (FileExists(Cnf.FindFile("Dir::Bin::rpm","/bin/rpm")) == true) @@ -236,6 +244,38 @@ signed rpmSystem::Score(Configuration const &Cnf) return Score; } + +string rpmSystem::DistroVer(Configuration const &Cnf) +{ + string DistroVerPkg = _config->Find("Apt::DistroVerPkg"); + string DistroVersion = ""; + + + if (! DistroVerPkg.empty()) { + rpmts ts; + char *version; + int type, count, rc; + rpmdbMatchIterator iter; + + ts = rpmtsCreate(); + rpmtsSetVSFlags(ts, (rpmVSFlags_e)-1); + rpmtsSetRootDir(ts, NULL); + rc = rpmtsOpenDB(ts, O_RDWR); + + Header hdr; + iter = rpmtsInitIterator(ts, (rpmTag)RPMDBI_LABEL, DistroVerPkg.c_str(), 0); + while ((hdr = rpmdbNextIterator(iter)) != NULL) { + headerGetEntry(hdr, RPMTAG_VERSION, &type, (void **)&version, &count); + DistroVersion = version; + break; + } + rpmdbFreeIterator(iter); + rpmtsFree(ts); + } + + return DistroVersion; +} + /*}}}*/ // System::AddStatusFiles - Register the status files /*{{{*/ // --------------------------------------------------------------------- @@ -261,7 +301,7 @@ bool rpmSystem::AddSourceFiles(vector &List) const string &S = Top->Value; if (FileExists(S) && flExtension(S) == "rpm") { - if (S.length() > 8 and string(S, S.length()-8) == ".src.rpm") + if (S.length() > 8 && string(S, S.length()-8) == ".src.rpm") List.push_back(new rpmSingleSrcIndex(S)); else List.push_back(new rpmSinglePkgIndex(S)); @@ -505,6 +545,12 @@ static void HashString(unsigned long &Hash, const char *Str) for (const char *I = Str; *I != 0; I++) Hash = 5*Hash + *I; } +static void HashEnv(unsigned long &Hash, const char *Name) +{ + const char *Value = getenv(Name); + if (Value) + HashString(Hash, Value); +} static void HashOption(unsigned long &Hash, const char *Name) { const Configuration::Item *Top = _config->Tree(Name); @@ -530,8 +576,12 @@ unsigned long rpmSystem::OptionsHash() const unsigned long Hash = 0; HashOption(Hash, "RPM::Architecture"); HashOptionTree(Hash, "RPM::Allow-Duplicated"); + HashOptionTree(Hash, "RPM::MultiArch"); HashOptionTree(Hash, "RPM::Ignore"); HashOptionFile(Hash, "Dir::Etc::rpmpriorities"); + HashEnv(Hash, "LANG"); + HashEnv(Hash, "LC_ALL"); + HashEnv(Hash, "LC_MESSAGES"); return Hash; } /*}}}*/ diff --git a/apt/apt-pkg/rpm/rpmsystem.h b/apt/apt-pkg/rpm/rpmsystem.h index bc884da..358b7c4 100644 --- a/apt/apt-pkg/rpm/rpmsystem.h +++ b/apt/apt-pkg/rpm/rpmsystem.h @@ -59,6 +59,7 @@ class rpmSystem : public pkgSystem virtual bool Initialize(Configuration &Cnf); virtual bool ArchiveSupported(const char *Type); virtual signed Score(Configuration const &Cnf); + virtual string DistroVer(Configuration const &Cnf); virtual bool AddStatusFiles(vector &List); virtual bool AddSourceFiles(vector &List); virtual bool FindIndex(pkgCache::PkgFileIterator File, diff --git a/apt/apt-pkg/sourcelist.cc b/apt/apt-pkg/sourcelist.cc index ca980d6..326791a 100644 --- a/apt/apt-pkg/sourcelist.cc +++ b/apt/apt-pkg/sourcelist.cc @@ -111,6 +111,11 @@ bool pkgSourceList::Type::ParseLine(vector &List, return CreateItem(List,URI,Dist,Section,Vendor); } + // CNC:2004-05-18 + Dist = SubstVar(Dist,"$(ARCH)",_config->Find("APT::Architecture")); + // PM:2006-02-06 + Dist = SubstVar(Dist,"$(VERSION)",_config->Find("APT::DistroVersion")); + // Grab the rest of the dists if (ParseQuoteWord(Buffer,Section) == false) return _error->Error(_("Malformed line %lu in source list %s (dist parse)"),CurLine,File.c_str()); diff --git a/apt/buildlib/Makefile.in b/apt/buildlib/Makefile.in index 2ed1f84..52f48c8 100644 --- a/apt/buildlib/Makefile.in +++ b/apt/buildlib/Makefile.in @@ -1,8 +1,8 @@ -# Makefile.in generated by automake 1.7.9 from Makefile.am. +# Makefile.in generated by automake 1.9.5 from Makefile.am. # @configure_input@ -# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 -# Free Software Foundation, Inc. +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -13,7 +13,6 @@ # PARTICULAR PURPOSE. @SET_MAKE@ - srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ @@ -21,7 +20,6 @@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = .. - am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 @@ -35,15 +33,40 @@ POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : +build_triplet = @build@ host_triplet = @host@ @NEED_INTTYPES_H_TRUE@am__append_1 = copy-inttypes @NEED_STATVFS_H_TRUE@am__append_2 = copy-statvfs @NEED_NETDB_H_TRUE@am__append_3 = copy-netdb +subdir = buildlib +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in compile \ + config.guess config.rpath config.sub depcomp install-sh \ + ltmain.sh missing mkinstalldirs +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/buildlib/tools.m4 \ + $(top_srcdir)/m4/codeset.m4 $(top_srcdir)/m4/gettext.m4 \ + $(top_srcdir)/m4/glibc21.m4 $(top_srcdir)/m4/iconv.m4 \ + $(top_srcdir)/m4/intdiv0.m4 $(top_srcdir)/m4/inttypes-pri.m4 \ + $(top_srcdir)/m4/inttypes.m4 $(top_srcdir)/m4/inttypes_h.m4 \ + $(top_srcdir)/m4/lcmessage.m4 $(top_srcdir)/m4/lib-ld.m4 \ + $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ + $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/stdint_h.m4 \ + $(top_srcdir)/m4/uintmax_t.m4 $(top_srcdir)/m4/ulonglong.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(SHELL) $(top_srcdir)/buildlib/mkinstalldirs +CONFIG_HEADER = $(top_builddir)/include/config.h +CONFIG_CLEAN_FILES = +SOURCES = +DIST_SOURCES = +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ +AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ @@ -62,6 +85,7 @@ COMPILE_STATIC_TRUE = @COMPILE_STATIC_TRUE@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ +CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ @@ -75,6 +99,8 @@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ +F77 = @F77@ +FFLAGS = @FFLAGS@ GENCAT = @GENCAT@ GLIBC21 = @GLIBC21@ GLIBC_VER = @GLIBC_VER@ @@ -137,8 +163,10 @@ VERSION = @VERSION@ WITH_LUA_FALSE = @WITH_LUA_FALSE@ WITH_LUA_TRUE = @WITH_LUA_TRUE@ XGETTEXT = @XGETTEXT@ +ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ ac_ct_RANLIB = @ac_ct_RANLIB@ ac_ct_STRIP = @ac_ct_STRIP@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ @@ -148,6 +176,8 @@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ @@ -168,6 +198,7 @@ libdir = @libdir@ libexecdir = @libexecdir@ localstatedir = @localstatedir@ mandir = @mandir@ +mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ prefix = @prefix@ program_transform_name = @program_transform_name@ @@ -175,7 +206,6 @@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ - EXTRA_DIST = \ archtable \ ostable \ @@ -186,31 +216,45 @@ EXTRA_DIST = \ netdb.h \ tools.m4 - CLEANFILES = $(top_builddir)/include/apti18n.h \ $(top_builddir)/include/inttypes.h \ $(top_builddir)/include/sys/statvfs.h \ $(top_builddir)/include/netdb.h - -COPYHEADERS = copy-apti18n $(am__append_1) $(am__append_2) $(am__append_3) -subdir = buildlib -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -mkinstalldirs = $(SHELL) $(top_srcdir)/buildlib/mkinstalldirs -CONFIG_HEADER = $(top_builddir)/include/config.h -CONFIG_CLEAN_FILES = -DIST_SOURCES = -DIST_COMMON = $(srcdir)/Makefile.in Makefile.am compile config.guess \ - config.rpath config.sub depcomp install-sh ltmain.sh missing \ - mkinstalldirs +COPYHEADERS = copy-apti18n $(am__append_1) $(am__append_2) \ + $(am__append_3) all: all-am .SUFFIXES: -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign buildlib/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign buildlib/Makefile -Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in $(top_builddir)/config.status - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe) +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh mostlyclean-libtool: -rm -f *.lo @@ -227,10 +271,6 @@ TAGS: ctags: CTAGS CTAGS: -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) - -top_distdir = .. -distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ @@ -244,7 +284,7 @@ distdir: $(DISTFILES) dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ - $(mkinstalldirs) "$(distdir)$$dir"; \ + $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ @@ -262,7 +302,6 @@ distdir: $(DISTFILES) check-am: all-am check: check-am all-am: Makefile all-local - installdirs: install: install-am install-exec: install-exec-am @@ -284,7 +323,7 @@ clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: - -rm -f $(CONFIG_CLEAN_FILES) + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @@ -301,6 +340,8 @@ dvi: dvi-am dvi-am: +html: html-am + info: info-am info-am: @@ -335,13 +376,13 @@ uninstall-am: uninstall-info-am .PHONY: all all-am all-local check check-am clean clean-generic \ clean-libtool distclean distclean-generic distclean-libtool \ - distdir dvi dvi-am info info-am install install-am install-data \ - install-data-am install-exec install-exec-am install-info \ - install-info-am install-man install-strip installcheck \ - installcheck-am installdirs maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-generic \ - mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \ - uninstall-info-am + distdir dvi dvi-am html html-am info info-am install \ + install-am install-data install-data-am install-exec \ + install-exec-am install-info install-info-am install-man \ + install-strip installcheck installcheck-am installdirs \ + maintainer-clean maintainer-clean-generic mostlyclean \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + uninstall uninstall-am uninstall-info-am all-local: copy-headers diff --git a/apt/buildlib/config.guess b/apt/buildlib/config.guess index 500ee74..2fc3acc 100755 --- a/apt/buildlib/config.guess +++ b/apt/buildlib/config.guess @@ -3,7 +3,7 @@ # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003 Free Software Foundation, Inc. -timestamp='2003-10-03' +timestamp='2003-06-17' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by @@ -136,6 +136,13 @@ UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown +## for Red Hat Linux +if test -f /etc/redhat-release ; then + VENDOR=redhat ; +else + VENDOR= ; +fi + # Note: order is significant - the case branches are not exclusive. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in @@ -734,7 +741,7 @@ EOF echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit 0 ;; *:UNICOS/mp:*:*) - echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit 0 ;; F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` @@ -763,10 +770,7 @@ EOF #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` - # GNU/FreeBSD systems have a "k" prefix to indicate we are using - # FreeBSD's kernel, but not the complete OS. - case ${LIBC} in gnu) kernel_only='k' ;; esac - echo ${UNAME_MACHINE}-unknown-${kernel_only}freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC} + echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC} exit 0 ;; i*:CYGWIN*:*) echo ${UNAME_MACHINE}-pc-cygwin @@ -811,7 +815,7 @@ EOF echo cris-axis-linux-gnu exit 0 ;; ia64:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu + echo ${UNAME_MACHINE}-${VENDOR:-unknown}-linux-gnu exit 0 ;; m68*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu @@ -855,10 +859,10 @@ EOF test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0 ;; ppc:Linux:*:*) - echo powerpc-unknown-linux-gnu + echo powerpc-${VENDOR:-unknown}-linux-gnu exit 0 ;; ppc64:Linux:*:*) - echo powerpc64-unknown-linux-gnu + echo powerpc64-${VENDOR:-unknown}-linux-gnu exit 0 ;; alpha:Linux:*:*) case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in @@ -886,7 +890,7 @@ EOF echo hppa64-unknown-linux-gnu exit 0 ;; s390:Linux:*:* | s390x:Linux:*:*) - echo ${UNAME_MACHINE}-ibm-linux + echo ${UNAME_MACHINE}-${VENDOR:-ibm}-linux-gnu exit 0 ;; sh64*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu @@ -898,7 +902,7 @@ EOF echo ${UNAME_MACHINE}-unknown-linux-gnu exit 0 ;; x86_64:Linux:*:*) - echo x86_64-unknown-linux-gnu + echo x86_64-${VENDOR:-unknown}-linux-gnu exit 0 ;; i*86:Linux:*:*) # The BFD linker knows what the default object file format is, so @@ -948,12 +952,9 @@ EOF LIBC=gnuaout #endif #endif - #ifdef __dietlibc__ - LIBC=dietlibc - #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` - test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0 + test x"${LIBC}" != x && echo "${UNAME_MACHINE}-${VENDOR:-pc}-linux-${LIBC}" && exit 0 test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0 ;; i*86:DYNIX/ptx:4*:*) @@ -1167,7 +1168,7 @@ EOF *:QNX:*:4*) echo i386-pc-qnx exit 0 ;; - NSR-[DGKLNPTVWY]:NONSTOP_KERNEL:*:*) + NSR-[DGKLNPTVW]:NONSTOP_KERNEL:*:*) echo nsr-tandem-nsk${UNAME_RELEASE} exit 0 ;; *:NonStop-UX:*:*) diff --git a/apt/buildlib/config.sub b/apt/buildlib/config.sub index 1f31816..6b2ff9f 100755 --- a/apt/buildlib/config.sub +++ b/apt/buildlib/config.sub @@ -3,7 +3,7 @@ # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003 Free Software Foundation, Inc. -timestamp='2003-08-18' +timestamp='2003-06-18' # This file is (in principle) common to ALL GNU software. # The presence of a machine in this file suggests that SOME GNU software @@ -118,7 +118,7 @@ esac # Here we must recognize all the valid KERNEL-OS combinations. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` case $maybe_os in - nto-qnx* | linux-gnu* | linux-dietlibc | kfreebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) + nto-qnx* | linux-gnu* | freebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) os=-$maybe_os basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` ;; @@ -228,14 +228,13 @@ case $basic_machine in | a29k \ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ - | am33_2.0 \ | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ | c4x | clipper \ | d10v | d30v | dlx | dsp16xx \ | fr30 | frv \ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | i370 | i860 | i960 | ia64 \ - | ip2k | iq2000 \ + | ip2k \ | m32r | m68000 | m68k | m88k | mcore \ | mips | mipsbe | mipseb | mipsel | mipsle \ | mips16 \ @@ -248,7 +247,6 @@ case $basic_machine in | mipsisa32 | mipsisa32el \ | mipsisa32r2 | mipsisa32r2el \ | mipsisa64 | mipsisa64el \ - | mipsisa64r2 | mipsisa64r2el \ | mipsisa64sb1 | mipsisa64sb1el \ | mipsisa64sr71k | mipsisa64sr71kel \ | mipstx39 | mipstx39el \ @@ -259,9 +257,10 @@ case $basic_machine in | pdp10 | pdp11 | pj | pjl \ | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ | pyramid \ + | s390 | s390x \ | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ | sh64 | sh64le \ - | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \ + | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv8 | sparcv9 | sparcv9b \ | strongarm \ | tahoe | thumb | tic4x | tic80 | tron \ | v850 | v850e \ @@ -306,7 +305,7 @@ case $basic_machine in | h8300-* | h8500-* \ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | i*86-* | i860-* | i960-* | ia64-* \ - | ip2k-* | iq2000-* \ + | ip2k-* \ | m32r-* \ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | m88110-* | m88k-* | mcore-* \ @@ -321,7 +320,6 @@ case $basic_machine in | mipsisa32-* | mipsisa32el-* \ | mipsisa32r2-* | mipsisa32r2el-* \ | mipsisa64-* | mipsisa64el-* \ - | mipsisa64r2-* | mipsisa64r2el-* \ | mipsisa64sb1-* | mipsisa64sb1el-* \ | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | mipstx39-* | mipstx39el-* \ @@ -332,10 +330,11 @@ case $basic_machine in | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ | pyramid-* \ | romp-* | rs6000-* \ + | s390-* | s390x-* \ | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \ - | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ + | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ | tahoe-* | thumb-* \ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ | tron-* \ @@ -834,12 +833,6 @@ case $basic_machine in rtpc | rtpc-*) basic_machine=romp-ibm ;; - s390 | s390-*) - basic_machine=s390-ibm - ;; - s390x | s390x-*) - basic_machine=s390x-ibm - ;; sa29200) basic_machine=a29k-amd os=-udi @@ -1058,7 +1051,7 @@ case $basic_machine in sh64) basic_machine=sh64-unknown ;; - sparc | sparcv9 | sparcv9b) + sparc | sparcv8 | sparcv9 | sparcv9b) basic_machine=sparc-sun ;; cydra) @@ -1131,7 +1124,7 @@ case $os in | -aos* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ - | -hiux* | -386bsd* | -netbsd* | -openbsd* | -kfreebsd* | -freebsd* | -riscix* \ + | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \ | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ @@ -1167,9 +1160,6 @@ case $os in -mac*) os=`echo $os | sed -e 's|mac|macos|'` ;; - -linux-dietlibc) - os=-linux-dietlibc - ;; -linux*) os=`echo $os | sed -e 's|linux|linux-gnu|'` ;; @@ -1292,9 +1282,9 @@ case $basic_machine in arm*-semi) os=-aout ;; - c4x-* | tic4x-*) - os=-coff - ;; + c4x-* | tic4x-*) + os=-coff + ;; # This must come before the *-dec entry. pdp10-*) os=-tops20 diff --git a/apt/buildlib/ltmain.sh b/apt/buildlib/ltmain.sh index 141a26e..9be0eb1 100644 --- a/apt/buildlib/ltmain.sh +++ b/apt/buildlib/ltmain.sh @@ -1,7 +1,7 @@ # ltmain.sh - Provide generalized library-building support services. # NOTE: Changing this file will not affect anything until you rerun configure. # -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005 # Free Software Foundation, Inc. # Originally by Gordon Matzigkeit , 1996 # @@ -17,13 +17,41 @@ # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. +basename="s,^.*/,,g" + +# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh +# is ksh but when the shell is invoked as "sh" and the current value of +# the _XPG environment variable is not equal to 1 (one), the special +# positional parameter $0, within a function call, is the name of the +# function. +progpath="$0" + +# The name of this program: +progname=`echo "$progpath" | $SED $basename` +modename="$progname" + +# Global variables: +EXIT_SUCCESS=0 +EXIT_FAILURE=1 + +PROGRAM=ltmain.sh +PACKAGE=libtool +VERSION=1.5.16 +TIMESTAMP=" (1.1220.2.235 2005/04/25 18:13:26)" + +# See if we are running on zsh, and set the options which allow our +# commands through without removal of \ escapes. +if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST +fi + # Check that we have a working $echo. if test "X$1" = X--no-reexec; then # Discard the --no-reexec flag, and continue. @@ -36,7 +64,7 @@ elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then : else # Restart under the correct shell, and then maybe $echo will work. - exec $SHELL "$0" --no-reexec ${1+"$@"} + exec $SHELL "$progpath" --no-reexec ${1+"$@"} fi if test "X$1" = X--fallback-echo; then @@ -45,22 +73,9 @@ if test "X$1" = X--fallback-echo; then cat <&2 - echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2 - exit 1 + $echo "$modename: not configured to build any kind of library" 1>&2 + $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2 + exit $EXIT_FAILURE fi # Global variables. @@ -116,9 +133,227 @@ show_help= execute_dlfiles= lo2o="s/\\.lo\$/.${objext}/" o2lo="s/\\.${objext}\$/.lo/" +quote_scanset='[[~#^*{};<>?'"'"' ]' + +##################################### +# Shell function definitions: +# This seems to be the best place for them + +# func_win32_libid arg +# return the library type of file 'arg' +# +# Need a lot of goo to handle *both* DLLs and import libs +# Has to be a shell function in order to 'eat' the argument +# that is supplied when $file_magic_command is called. +func_win32_libid () +{ + win32_libid_type="unknown" + win32_fileres=`file -L $1 2>/dev/null` + case $win32_fileres in + *ar\ archive\ import\ library*) # definitely import + win32_libid_type="x86 archive import" + ;; + *ar\ archive*) # could be an import, or static + if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \ + $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then + win32_nmres=`eval $NM -f posix -A $1 | \ + sed -n -e '1,100{/ I /{x;/import/!{s/^/import/;h;p;};x;};}'` + if test "X$win32_nmres" = "Ximport" ; then + win32_libid_type="x86 archive import" + else + win32_libid_type="x86 archive static" + fi + fi + ;; + *DLL*) + win32_libid_type="x86 DLL" + ;; + *executable*) # but shell scripts are "executable" too... + case $win32_fileres in + *MS\ Windows\ PE\ Intel*) + win32_libid_type="x86 DLL" + ;; + esac + ;; + esac + $echo $win32_libid_type +} + + +# func_infer_tag arg +# Infer tagged configuration to use if any are available and +# if one wasn't chosen via the "--tag" command line option. +# Only attempt this if the compiler in the base compile +# command doesn't match the default compiler. +# arg is usually of the form 'gcc ...' +func_infer_tag () +{ + if test -n "$available_tags" && test -z "$tagname"; then + CC_quoted= + for arg in $CC; do + case $arg in + *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "") + arg="\"$arg\"" + ;; + esac + CC_quoted="$CC_quoted $arg" + done + case $@ in + # Blanks in the command may have been stripped by the calling shell, + # but not from the CC environment variable when configure was run. + " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;; + # Blanks at the start of $base_compile will cause this to fail + # if we don't check for them as well. + *) + for z in $available_tags; do + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then + # Evaluate the configuration. + eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`" + CC_quoted= + for arg in $CC; do + # Double-quote args containing other shell metacharacters. + case $arg in + *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "") + arg="\"$arg\"" + ;; + esac + CC_quoted="$CC_quoted $arg" + done + case "$@ " in + " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) + # The compiler in the base compile command matches + # the one in the tagged configuration. + # Assume this is the tagged configuration we want. + tagname=$z + break + ;; + esac + fi + done + # If $tagname still isn't set, then no tagged configuration + # was found and let the user know that the "--tag" command + # line option must be used. + if test -z "$tagname"; then + $echo "$modename: unable to infer tagged configuration" + $echo "$modename: specify a tag with \`--tag'" 1>&2 + exit $EXIT_FAILURE +# else +# $echo "$modename: using $tagname tagged configuration" + fi + ;; + esac + fi +} + + +# func_extract_an_archive dir oldlib +func_extract_an_archive () +{ + f_ex_an_ar_dir="$1"; shift + f_ex_an_ar_oldlib="$1" + + $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)" + $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $? + if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then + : + else + $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2 + exit $EXIT_FAILURE + fi +} + +# func_extract_archives gentop oldlib ... +func_extract_archives () +{ + my_gentop="$1"; shift + my_oldlibs=${1+"$@"} + my_oldobjs="" + my_xlib="" + my_xabs="" + my_xdir="" + my_status="" + + $show "${rm}r $my_gentop" + $run ${rm}r "$my_gentop" + $show "$mkdir $my_gentop" + $run $mkdir "$my_gentop" + my_status=$? + if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then + exit $my_status + fi + + for my_xlib in $my_oldlibs; do + # Extract the objects. + case $my_xlib in + [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;; + *) my_xabs=`pwd`"/$my_xlib" ;; + esac + my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'` + my_xdir="$my_gentop/$my_xlib" + + $show "${rm}r $my_xdir" + $run ${rm}r "$my_xdir" + $show "$mkdir $my_xdir" + $run $mkdir "$my_xdir" + status=$? + if test "$status" -ne 0 && test ! -d "$my_xdir"; then + exit $status + fi + case $host in + *-darwin*) + $show "Extracting $my_xabs" + # Do not bother doing anything if just a dry run + if test -z "$run"; then + darwin_orig_dir=`pwd` + cd $my_xdir || exit $? + darwin_archive=$my_xabs + darwin_curdir=`pwd` + darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'` + darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null` + if test -n "$darwin_arches"; then + darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'` + darwin_arch= + $show "$darwin_base_archive has multiple architectures $darwin_arches" + for darwin_arch in $darwin_arches ; do + mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}" + lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}" + cd "unfat-$$/${darwin_base_archive}-${darwin_arch}" + func_extract_an_archive "`pwd`" "${darwin_base_archive}" + cd "$darwin_curdir" + $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" + done # $darwin_arches + ## Okay now we have a bunch of thin objects, gotta fatten them up :) + darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP` + darwin_file= + darwin_files= + for darwin_file in $darwin_filelist; do + darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP` + lipo -create -output "$darwin_file" $darwin_files + done # $darwin_filelist + ${rm}r unfat-$$ + cd "$darwin_orig_dir" + else + cd "$darwin_orig_dir" + func_extract_an_archive "$my_xdir" "$my_xabs" + fi # $darwin_arches + fi # $run + ;; + *) + func_extract_an_archive "$my_xdir" "$my_xabs" + ;; + esac + my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP` + done + func_extract_archives_result="$my_oldobjs" +} +# End of Shell function definitions +##################################### + +# Darwin sucks +eval std_shrext=\"$shrext_cmds\" # Parse our command line options once, thoroughly. -while test $# -gt 0 +while test "$#" -gt 0 do arg="$1" shift @@ -134,6 +369,34 @@ do execute_dlfiles) execute_dlfiles="$execute_dlfiles $arg" ;; + tag) + tagname="$arg" + preserve_args="${preserve_args}=$arg" + + # Check whether tagname contains only valid characters + case $tagname in + *[!-_A-Za-z0-9,/]*) + $echo "$progname: invalid tag name: $tagname" 1>&2 + exit $EXIT_FAILURE + ;; + esac + + case $tagname in + CC) + # Don't test for the "default" C tag, as we know, it's there, but + # not specially marked. + ;; + *) + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then + taglist="$taglist $tagname" + # Evaluate the configuration. + eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`" + else + $echo "$progname: ignoring unknown tag $tagname" 1>&2 + fi + ;; + esac + ;; *) eval "$prev=\$arg" ;; @@ -151,18 +414,27 @@ do ;; --version) - echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP" - exit 0 + $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP" + $echo + $echo "Copyright (C) 2005 Free Software Foundation, Inc." + $echo "This is free software; see the source for copying conditions. There is NO" + $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." + exit $? ;; --config) - ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $0 - exit 0 + ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath + # Now print the configurations for the tags. + for tagname in $taglist; do + ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath" + done + exit $? ;; --debug) - echo "$progname: enabling shell trace mode" + $echo "$progname: enabling shell trace mode" set -x + preserve_args="$preserve_args $arg" ;; --dry-run | -n) @@ -170,18 +442,18 @@ do ;; --features) - echo "host: $host" + $echo "host: $host" if test "$build_libtool_libs" = yes; then - echo "enable shared libraries" + $echo "enable shared libraries" else - echo "disable shared libraries" + $echo "disable shared libraries" fi if test "$build_old_libs" = yes; then - echo "enable static libraries" + $echo "enable static libraries" else - echo "disable static libraries" + $echo "disable static libraries" fi - exit 0 + exit $? ;; --finish) mode="finish" ;; @@ -193,6 +465,15 @@ do --quiet | --silent) show=: + preserve_args="$preserve_args $arg" + ;; + + --tag) prevopt="--tag" prev=tag ;; + --tag=*) + set tag "$optarg" ${1+"$@"} + shift + prev=tag + preserve_args="$preserve_args --tag" ;; -dlopen) @@ -203,7 +484,7 @@ do -*) $echo "$modename: unrecognized option \`$arg'" 1>&2 $echo "$help" 1>&2 - exit 1 + exit $EXIT_FAILURE ;; *) @@ -216,7 +497,7 @@ done if test -n "$prevopt"; then $echo "$modename: option \`$prevopt' requires an argument" 1>&2 $echo "$help" 1>&2 - exit 1 + exit $EXIT_FAILURE fi # If this variable is set in any of the actions, the command in it @@ -228,8 +509,10 @@ if test -z "$show_help"; then # Infer the operation mode. if test -z "$mode"; then + $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2 + $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2 case $nonopt in - *cc | *++ | gcc* | *-gcc* | xlc*) + *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*) mode=link for arg do @@ -270,7 +553,7 @@ if test -z "$show_help"; then if test -n "$execute_dlfiles" && test "$mode" != execute; then $echo "$modename: unrecognized option \`-dlopen'" 1>&2 $echo "$help" 1>&2 - exit 1 + exit $EXIT_FAILURE fi # Change the help message to a mode-specific one. @@ -284,50 +567,157 @@ if test -z "$show_help"; then modename="$modename: compile" # Get the compilation command and the source file. base_compile= - prev= - lastarg= - srcfile="$nonopt" + srcfile="$nonopt" # always keep a non-empty value in "srcfile" + suppress_opt=yes suppress_output= + arg_mode=normal + libobj= + later= - user_target=no for arg do - case $prev in - "") ;; - xcompiler) - # Aesthetically quote the previous argument. - prev= - lastarg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` + case "$arg_mode" in + arg ) + # do not "continue". Instead, add this to base_compile + lastarg="$arg" + arg_mode=normal + ;; - case $arg in - # Double-quote args containing other shell metacharacters. - # Many Bourne shells cannot handle close brackets correctly - # in scan sets, so we specify it separately. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") - arg="\"$arg\"" - ;; - esac - - # Add the previous argument to base_compile. - if test -z "$base_compile"; then - base_compile="$lastarg" - else - base_compile="$base_compile $lastarg" - fi + target ) + libobj="$arg" + arg_mode=normal continue ;; + + normal ) + # Accept any command-line options. + case $arg in + -o) + if test -n "$libobj" ; then + $echo "$modename: you cannot specify \`-o' more than once" 1>&2 + exit $EXIT_FAILURE + fi + arg_mode=target + continue + ;; + + -static | -prefer-pic | -prefer-non-pic) + later="$later $arg" + continue + ;; + + -no-suppress) + suppress_opt=no + continue + ;; + + -Xcompiler) + arg_mode=arg # the next one goes into the "base_compile" arg list + continue # The current "srcfile" will either be retained or + ;; # replaced later. I would guess that would be a bug. + + -Wc,*) + args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"` + lastarg= + save_ifs="$IFS"; IFS=',' + for arg in $args; do + IFS="$save_ifs" + + # Double-quote args containing other shell metacharacters. + # Many Bourne shells cannot handle close brackets correctly + # in scan sets, so we specify it separately. + case $arg in + *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "") + arg="\"$arg\"" + ;; + esac + lastarg="$lastarg $arg" + done + IFS="$save_ifs" + lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"` + + # Add the arguments to base_compile. + base_compile="$base_compile $lastarg" + continue + ;; + + * ) + # Accept the current argument as the source file. + # The previous "srcfile" becomes the current argument. + # + lastarg="$srcfile" + srcfile="$arg" + ;; + esac # case $arg + ;; + esac # case $arg_mode + + # Aesthetically quote the previous argument. + lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"` + + case $lastarg in + # Double-quote args containing other shell metacharacters. + # Many Bourne shells cannot handle close brackets correctly + # in scan sets, and some SunOS ksh mistreat backslash-escaping + # in scan sets (worked around with variable expansion), + # and furthermore cannot handle '|' '&' '(' ')' in scan sets + # at all, so we specify them separately. + *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "") + lastarg="\"$lastarg\"" + ;; esac - # Accept any command-line options. - case $arg in - -o) - if test "$user_target" != "no"; then - $echo "$modename: you cannot specify \`-o' more than once" 1>&2 - exit 1 - fi - user_target=next - ;; + base_compile="$base_compile $lastarg" + done # for arg + case $arg_mode in + arg) + $echo "$modename: you must specify an argument for -Xcompile" + exit $EXIT_FAILURE + ;; + target) + $echo "$modename: you must specify a target with \`-o'" 1>&2 + exit $EXIT_FAILURE + ;; + *) + # Get the name of the library object. + [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'` + ;; + esac + + # Recognize several different file suffixes. + # If the user specifies -o file.o, it is replaced with file.lo + xform='[cCFSifmso]' + case $libobj in + *.ada) xform=ada ;; + *.adb) xform=adb ;; + *.ads) xform=ads ;; + *.asm) xform=asm ;; + *.c++) xform=c++ ;; + *.cc) xform=cc ;; + *.ii) xform=ii ;; + *.class) xform=class ;; + *.cpp) xform=cpp ;; + *.cxx) xform=cxx ;; + *.f90) xform=f90 ;; + *.for) xform=for ;; + *.java) xform=java ;; + esac + + libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"` + + case $libobj in + *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;; + *) + $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2 + exit $EXIT_FAILURE + ;; + esac + + func_infer_tag $base_compile + + for arg in $later; do + case $arg in -static) build_old_libs=yes continue @@ -342,138 +732,42 @@ if test -z "$show_help"; then pic_mode=no continue ;; - - -Xcompiler) - prev=xcompiler - continue - ;; - - -Wc,*) - args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"` - lastarg= - save_ifs="$IFS"; IFS=',' - for arg in $args; do - IFS="$save_ifs" - - # Double-quote args containing other shell metacharacters. - # Many Bourne shells cannot handle close brackets correctly - # in scan sets, so we specify it separately. - case $arg in - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") - arg="\"$arg\"" - ;; - esac - lastarg="$lastarg $arg" - done - IFS="$save_ifs" - lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"` - - # Add the arguments to base_compile. - if test -z "$base_compile"; then - base_compile="$lastarg" - else - base_compile="$base_compile $lastarg" - fi - continue - ;; esac - - case $user_target in - next) - # The next one is the -o target name - user_target=yes - continue - ;; - yes) - # We got the output file - user_target=set - libobj="$arg" - continue - ;; - esac - - # Accept the current argument as the source file. - lastarg="$srcfile" - srcfile="$arg" - - # Aesthetically quote the previous argument. - - # Backslashify any backslashes, double quotes, and dollar signs. - # These are the only characters that are still specially - # interpreted inside of double-quoted scrings. - lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"` - - # Double-quote args containing other shell metacharacters. - # Many Bourne shells cannot handle close brackets correctly - # in scan sets, so we specify it separately. - case $lastarg in - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") - lastarg="\"$lastarg\"" - ;; - esac - - # Add the previous argument to base_compile. - if test -z "$base_compile"; then - base_compile="$lastarg" - else - base_compile="$base_compile $lastarg" - fi done - case $user_target in - set) - ;; - no) - # Get the name of the library object. - libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'` - ;; - *) - $echo "$modename: you must specify a target with \`-o'" 1>&2 - exit 1 - ;; - esac - - # Recognize several different file suffixes. - # If the user specifies -o file.o, it is replaced with file.lo - xform='[cCFSfmso]' - case $libobj in - *.ada) xform=ada ;; - *.adb) xform=adb ;; - *.ads) xform=ads ;; - *.asm) xform=asm ;; - *.c++) xform=c++ ;; - *.cc) xform=cc ;; - *.cpp) xform=cpp ;; - *.cxx) xform=cxx ;; - *.f90) xform=f90 ;; - *.for) xform=for ;; - esac - - libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"` - - case $libobj in - *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;; - *) - $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2 - exit 1 - ;; + qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"` + case $qlibobj in + *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "") + qlibobj="\"$qlibobj\"" ;; esac + if test "X$libobj" != "X$qlibobj"; then + $echo "$modename: libobj name \`$libobj' may not contain shell special characters." + exit $EXIT_FAILURE + fi + objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'` + xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'` + if test "X$xdir" = "X$obj"; then + xdir= + else + xdir=$xdir/ + fi + lobj=${xdir}$objdir/$objname if test -z "$base_compile"; then $echo "$modename: you must specify a compilation command" 1>&2 $echo "$help" 1>&2 - exit 1 + exit $EXIT_FAILURE fi # Delete any leftover library objects. if test "$build_old_libs" = yes; then - removelist="$obj $libobj" + removelist="$obj $lobj $libobj ${libobj}T" else - removelist="$libobj" + removelist="$lobj $libobj ${libobj}T" fi $run $rm $removelist - trap "$run $rm $removelist; exit 1" 1 2 15 + trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15 # On Cygwin there's no "real" PIC flag so we must build both object types case $host_os in @@ -492,8 +786,9 @@ if test -z "$show_help"; then output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext} lockfile="$output_obj.lock" removelist="$removelist $output_obj $lockfile" - trap "$run $rm $removelist; exit 1" 1 2 15 + trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15 else + output_obj= need_locks=no lockfile= fi @@ -501,13 +796,13 @@ if test -z "$show_help"; then # Lock this critical section if it is needed # We use this script file to make the link, it avoids creating a new file if test "$need_locks" = yes; then - until $run ln "$0" "$lockfile" 2>/dev/null; do + until $run ln "$progpath" "$lockfile" 2>/dev/null; do $show "Waiting for $lockfile to be removed" sleep 2 done elif test "$need_locks" = warn; then if test -f "$lockfile"; then - echo "\ + $echo "\ *** ERROR, $lockfile exists and contains: `cat $lockfile 2>/dev/null` @@ -519,14 +814,33 @@ avoid parallel builds (make -j) in this platform, or get a better compiler." $run $rm $removelist - exit 1 + exit $EXIT_FAILURE fi - echo $srcfile > "$lockfile" + $echo "$srcfile" > "$lockfile" fi if test -n "$fix_srcfile_path"; then eval srcfile=\"$fix_srcfile_path\" fi + qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"` + case $qsrcfile in + *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "") + qsrcfile="\"$qsrcfile\"" ;; + esac + + $run $rm "$libobj" "${libobj}T" + + # Create a libtool object file (analogous to a ".la" file), + # but don't create it if we're doing a dry run. + test -z "$run" && cat > ${libobj}T </dev/null`" != x"$srcfile"; then - echo "\ + test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then + $echo "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` @@ -595,13 +894,13 @@ avoid parallel builds (make -j) in this platform, or get a better compiler." $run $rm $removelist - exit 1 + exit $EXIT_FAILURE fi # Just move the object if needed, then go on to compile the next one - if test x"$output_obj" != x"$libobj"; then - $show "$mv $output_obj $libobj" - if $run $mv $output_obj $libobj; then : + if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then + $show "$mv $output_obj $lobj" + if $run $mv $output_obj $lobj; then : else error=$? $run $rm $removelist @@ -609,77 +908,50 @@ compiler." fi fi - # If we have no pic_flag, then copy the object into place and finish. - if (test -z "$pic_flag" || test "$pic_mode" != default) && - test "$build_old_libs" = yes; then - # Rename the .lo from within objdir to obj - if test -f $obj; then - $show $rm $obj - $run $rm $obj - fi + # Append the name of the PIC object to the libtool object file. + test -z "$run" && cat >> ${libobj}T <> ${libobj}T </dev/null`" != x"$srcfile"; then - echo "\ + test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then + $echo "\ *** ERROR, $lockfile contains: `cat $lockfile 2>/dev/null` @@ -694,11 +966,11 @@ avoid parallel builds (make -j) in this platform, or get a better compiler." $run $rm $removelist - exit 1 + exit $EXIT_FAILURE fi # Just move the object if needed - if test x"$output_obj" != x"$obj"; then + if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then $show "$mv $output_obj $obj" if $run $mv $output_obj $obj; then : else @@ -708,29 +980,31 @@ compiler." fi fi - # Create an invalid libtool object if no PIC, so that we do not - # accidentally link it into a program. - if test "$build_libtool_libs" != yes; then - $show "echo timestamp > $libobj" - $run eval "echo timestamp > \$libobj" || exit $? - else - # Move the .lo from within objdir - $show "$mv $libobj $lo_libobj" - if $run $mv $libobj $lo_libobj; then : - else - error=$? - $run $rm $removelist - exit $error - fi - fi + # Append the name of the non-PIC object the libtool object file. + # Only append if the libtool object file exists. + test -z "$run" && cat >> ${libobj}T <> ${libobj}T <\?\'\ \ ]*|*]*|"") + *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "") qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test ;; *) qarg=$arg ;; @@ -892,7 +1172,7 @@ compiler." export_symbols="$arg" if test ! -f "$arg"; then $echo "$modename: symbol file \`$arg' does not exist" - exit 1 + exit $EXIT_FAILURE fi prev= continue @@ -902,23 +1182,135 @@ compiler." prev= continue ;; - inst_prefix) + inst_prefix) inst_prefix_dir="$arg" prev= continue ;; + precious_regex) + precious_files_regex="$arg" + prev= + continue + ;; release) release="-$arg" prev= continue ;; + objectlist) + if test -f "$arg"; then + save_arg=$arg + moreargs= + for fil in `cat $save_arg` + do +# moreargs="$moreargs $fil" + arg=$fil + # A libtool-controlled object. + + # Check to see that this really is a libtool object. + if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then + pic_object= + non_pic_object= + + # Read the .lo file + # If there is no directory component, then add one. + case $arg in + */* | *\\*) . $arg ;; + *) . ./$arg ;; + esac + + if test -z "$pic_object" || \ + test -z "$non_pic_object" || + test "$pic_object" = none && \ + test "$non_pic_object" = none; then + $echo "$modename: cannot find name of object for \`$arg'" 1>&2 + exit $EXIT_FAILURE + fi + + # Extract subdirectory from the argument. + xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` + if test "X$xdir" = "X$arg"; then + xdir= + else + xdir="$xdir/" + fi + + if test "$pic_object" != none; then + # Prepend the subdirectory the object is found in. + pic_object="$xdir$pic_object" + + if test "$prev" = dlfiles; then + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then + dlfiles="$dlfiles $pic_object" + prev= + continue + else + # If libtool objects are unsupported, then we need to preload. + prev=dlprefiles + fi + fi + + # CHECK ME: I think I busted this. -Ossama + if test "$prev" = dlprefiles; then + # Preload the old-style object. + dlprefiles="$dlprefiles $pic_object" + prev= + fi + + # A PIC object. + libobjs="$libobjs $pic_object" + arg="$pic_object" + fi + + # Non-PIC object. + if test "$non_pic_object" != none; then + # Prepend the subdirectory the object is found in. + non_pic_object="$xdir$non_pic_object" + + # A standard non-PIC object + non_pic_objects="$non_pic_objects $non_pic_object" + if test -z "$pic_object" || test "$pic_object" = none ; then + arg="$non_pic_object" + fi + fi + else + # Only an error if not doing a dry-run. + if test -z "$run"; then + $echo "$modename: \`$arg' is not a valid libtool object" 1>&2 + exit $EXIT_FAILURE + else + # Dry-run case. + + # Extract subdirectory from the argument. + xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` + if test "X$xdir" = "X$arg"; then + xdir= + else + xdir="$xdir/" + fi + + pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"` + non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"` + libobjs="$libobjs $pic_object" + non_pic_objects="$non_pic_objects $non_pic_object" + fi + fi + done + else + $echo "$modename: link input file \`$save_arg' does not exist" + exit $EXIT_FAILURE + fi + arg=$save_arg + prev= + continue + ;; rpath | xrpath) # We need an absolute path. case $arg in [\\/]* | [A-Za-z]:[\\/]*) ;; *) $echo "$modename: only absolute run-paths are allowed" 1>&2 - exit 1 + exit $EXIT_FAILURE ;; esac if test "$prev" = rpath; then @@ -950,13 +1342,31 @@ compiler." finalize_command="$finalize_command $wl$qarg" continue ;; + xcclinker) + linker_flags="$linker_flags $qarg" + compiler_flags="$compiler_flags $qarg" + prev= + compile_command="$compile_command $qarg" + finalize_command="$finalize_command $qarg" + continue + ;; + shrext) + shrext_cmds="$arg" + prev= + continue + ;; + darwin_framework) + compiler_flags="$compiler_flags $arg" + prev= + continue + ;; *) eval "$prev=\"\$arg\"" prev= continue ;; esac - fi # test -n $prev + fi # test -n "$prev" prevarg="$arg" @@ -998,7 +1408,7 @@ compiler." -export-symbols | -export-symbols-regex) if test -n "$export_symbols" || test -n "$export_symbols_regex"; then $echo "$modename: more than one -exported-symbols argument is not allowed" - exit 1 + exit $EXIT_FAILURE fi if test "X$arg" = "X-export-symbols"; then prev=expsyms @@ -1008,6 +1418,12 @@ compiler." continue ;; + -framework) + prev=darwin_framework + compiler_flags="$compiler_flags $arg" + continue + ;; + -inst-prefix-dir) prev=inst_prefix continue @@ -1017,7 +1433,7 @@ compiler." # so, if we see these flags be careful not to treat them like -L -L[A-Z][A-Z]*:*) case $with_gcc/$host in - no/*-*-irix* | no/*-*-nonstopux*) + no/*-*-irix* | /*-*-irix*) compile_command="$compile_command $arg" finalize_command="$finalize_command $arg" ;; @@ -1034,7 +1450,7 @@ compiler." absdir=`cd "$dir" && pwd` if test -z "$absdir"; then $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2 - exit 1 + exit $EXIT_FAILURE fi dir="$absdir" ;; @@ -1068,28 +1484,78 @@ compiler." # These systems don't actually have a C library (as such) test "X$arg" = "X-lc" && continue ;; - *-*-openbsd* | *-*-freebsd*) + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc due to us having libc/libc_r. test "X$arg" = "X-lc" && continue ;; - esac - elif test "X$arg" = "X-lc_r"; then - case $host in - *-*-openbsd* | *-*-freebsd*) - # Do not include libc_r directly, use -pthread flag. + *-*-rhapsody* | *-*-darwin1.[012]) + # Rhapsody C and math libraries are in the System framework + deplibs="$deplibs -framework System" continue - ;; esac + elif test "X$arg" = "X-lc_r"; then + case $host in + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) + # Do not include libc_r directly, use -pthread flag. + continue + ;; + esac fi deplibs="$deplibs $arg" continue ;; + # Tru64 UNIX uses -model [arg] to determine the layout of C++ + # classes, name mangling, and exception handling. + -model) + compile_command="$compile_command $arg" + compiler_flags="$compiler_flags $arg" + finalize_command="$finalize_command $arg" + prev=xcompiler + continue + ;; + + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe) + compiler_flags="$compiler_flags $arg" + compile_command="$compile_command $arg" + finalize_command="$finalize_command $arg" + continue + ;; + -module) module=yes continue ;; + # -64, -mips[0-9] enable 64-bit mode on the SGI compiler + # -r[0-9][0-9]* specifies the processor on the SGI compiler + # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler + # +DA*, +DD* enable 64-bit mode on the HP compiler + # -q* pass through compiler args for the IBM compiler + # -m* pass through architecture-specific compiler args for GCC + -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*) + + # Unknown arguments in both finalize_command and compile_command need + # to be aesthetically quoted because they are evaled later. + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` + case $arg in + *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "") + arg="\"$arg\"" + ;; + esac + compile_command="$compile_command $arg" + finalize_command="$finalize_command $arg" + if test "$with_gcc" = "yes" ; then + compiler_flags="$compiler_flags $arg" + fi + continue + ;; + + -shrext) + prev=shrext + continue + ;; + -no-fast-install) fast_install=no continue @@ -1114,8 +1580,18 @@ compiler." continue ;; + -objectlist) + prev=objectlist + continue + ;; + -o) prev=output ;; + -precious-files-regex) + prev=precious_regex + continue + ;; + -release) prev=release continue @@ -1138,7 +1614,7 @@ compiler." [\\/]* | [A-Za-z]:[\\/]*) ;; *) $echo "$modename: only absolute run-paths are allowed" 1>&2 - exit 1 + exit $EXIT_FAILURE ;; esac case "$xrpath " in @@ -1166,6 +1642,11 @@ compiler." prev=vinfo continue ;; + -version-number) + prev=vinfo + vinfo_number=yes + continue + ;; -Wc,*) args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'` @@ -1174,7 +1655,7 @@ compiler." for flag in $args; do IFS="$save_ifs" case $flag in - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") + *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "") flag="\"$flag\"" ;; esac @@ -1192,7 +1673,7 @@ compiler." for flag in $args; do IFS="$save_ifs" case $flag in - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") + *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "") flag="\"$flag\"" ;; esac @@ -1214,41 +1695,118 @@ compiler." continue ;; + -XCClinker) + prev=xcclinker + continue + ;; + # Some other compiler flag. -* | +*) # Unknown arguments in both finalize_command and compile_command need # to be aesthetically quoted because they are evaled later. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") + *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "") arg="\"$arg\"" ;; esac ;; - *.lo | *.$objext) - # A library or standard object. - if test "$prev" = dlfiles; then - # This file was specified with -dlopen. - if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then - dlfiles="$dlfiles $arg" - prev= - continue - else - # If libtool objects are unsupported, then we need to preload. - prev=dlprefiles - fi - fi + *.$objext) + # A standard object. + objs="$objs $arg" + ;; - if test "$prev" = dlprefiles; then - # Preload the old-style object. - dlprefiles="$dlprefiles "`$echo "X$arg" | $Xsed -e "$lo2o"` - prev= - else + *.lo) + # A libtool-controlled object. + + # Check to see that this really is a libtool object. + if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then + pic_object= + non_pic_object= + + # Read the .lo file + # If there is no directory component, then add one. case $arg in - *.lo) libobjs="$libobjs $arg" ;; - *) objs="$objs $arg" ;; + */* | *\\*) . $arg ;; + *) . ./$arg ;; esac + + if test -z "$pic_object" || \ + test -z "$non_pic_object" || + test "$pic_object" = none && \ + test "$non_pic_object" = none; then + $echo "$modename: cannot find name of object for \`$arg'" 1>&2 + exit $EXIT_FAILURE + fi + + # Extract subdirectory from the argument. + xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` + if test "X$xdir" = "X$arg"; then + xdir= + else + xdir="$xdir/" + fi + + if test "$pic_object" != none; then + # Prepend the subdirectory the object is found in. + pic_object="$xdir$pic_object" + + if test "$prev" = dlfiles; then + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then + dlfiles="$dlfiles $pic_object" + prev= + continue + else + # If libtool objects are unsupported, then we need to preload. + prev=dlprefiles + fi + fi + + # CHECK ME: I think I busted this. -Ossama + if test "$prev" = dlprefiles; then + # Preload the old-style object. + dlprefiles="$dlprefiles $pic_object" + prev= + fi + + # A PIC object. + libobjs="$libobjs $pic_object" + arg="$pic_object" + fi + + # Non-PIC object. + if test "$non_pic_object" != none; then + # Prepend the subdirectory the object is found in. + non_pic_object="$xdir$non_pic_object" + + # A standard non-PIC object + non_pic_objects="$non_pic_objects $non_pic_object" + if test -z "$pic_object" || test "$pic_object" = none ; then + arg="$non_pic_object" + fi + fi + else + # Only an error if not doing a dry-run. + if test -z "$run"; then + $echo "$modename: \`$arg' is not a valid libtool object" 1>&2 + exit $EXIT_FAILURE + else + # Dry-run case. + + # Extract subdirectory from the argument. + xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'` + if test "X$xdir" = "X$arg"; then + xdir= + else + xdir="$xdir/" + fi + + pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"` + non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"` + libobjs="$libobjs $pic_object" + non_pic_objects="$non_pic_objects $non_pic_object" + fi fi ;; @@ -1282,7 +1840,7 @@ compiler." # to be aesthetically quoted because they are evaled later. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") + *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "") arg="\"$arg\"" ;; esac @@ -1299,7 +1857,7 @@ compiler." if test -n "$prev"; then $echo "$modename: the \`$prevarg' option requires an argument" 1>&2 $echo "$help" 1>&2 - exit 1 + exit $EXIT_FAILURE fi if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then @@ -1308,6 +1866,7 @@ compiler." finalize_command="$finalize_command $arg" fi + oldlibs= # calculate the name of the file, without its directory outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'` libobjs_save="$libobjs" @@ -1328,11 +1887,11 @@ compiler." output_objdir="$output_objdir/$objdir" fi # Create the object directory. - if test ! -d $output_objdir; then + if test ! -d "$output_objdir"; then $show "$mkdir $output_objdir" $run $mkdir $output_objdir status=$? - if test $status -ne 0 && test ! -d $output_objdir; then + if test "$status" -ne 0 && test ! -d "$output_objdir"; then exit $status fi fi @@ -1342,7 +1901,7 @@ compiler." "") $echo "$modename: you must specify an output file" 1>&2 $echo "$help" 1>&2 - exit 1 + exit $EXIT_FAILURE ;; *.$libext) linkmode=oldlib ;; *.lo | *.$objext) linkmode=obj ;; @@ -1350,7 +1909,17 @@ compiler." *) linkmode=prog ;; # Anything else should be a program. esac + case $host in + *cygwin* | *mingw* | *pw32*) + # don't eliminate duplications in $postdeps and $predeps + duplicate_compiler_generated_deps=yes + ;; + *) + duplicate_compiler_generated_deps=$duplicate_deps + ;; + esac specialdeplibs= + libs= # Find all interdependent deplibs by searching for libraries # that are linked more than once (e.g. -la -lb -la) @@ -1362,6 +1931,25 @@ compiler." fi libs="$libs $deplib" done + + if test "$linkmode" = lib; then + libs="$predeps $libs $compiler_lib_search_path $postdeps" + + # Compute libraries that are listed more than once in $predeps + # $postdeps and mark them as special (i.e., whose duplicates are + # not to be eliminated). + pre_post_deps= + if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then + for pre_post_dep in $predeps $postdeps; do + case "$pre_post_deps " in + *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;; + esac + pre_post_deps="$pre_post_deps $pre_post_dep" + done + fi + pre_post_deps= + fi + deplibs= newdependency_libs= newlib_search_path= @@ -1376,7 +1964,7 @@ compiler." *.la) ;; *) $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2 - exit 1 + exit $EXIT_FAILURE ;; esac done @@ -1393,39 +1981,55 @@ compiler." ;; esac for pass in $passes; do - if test $linkmode = prog; then - # Determine which files to process + if test "$linkmode,$pass" = "lib,link" || + test "$linkmode,$pass" = "prog,scan"; then + libs="$deplibs" + deplibs= + fi + if test "$linkmode" = prog; then case $pass in - dlopen) - libs="$dlfiles" - save_deplibs="$deplibs" # Collect dlpreopened libraries - deplibs= - ;; + dlopen) libs="$dlfiles" ;; dlpreopen) libs="$dlprefiles" ;; link) libs="$deplibs %DEPLIBS% $dependency_libs" ;; esac fi + if test "$pass" = dlopen; then + # Collect dlpreopened libraries + save_deplibs="$deplibs" + deplibs= + fi for deplib in $libs; do lib= found=no case $deplib in - -l*) - if test $linkmode = oldlib && test $linkmode = obj; then - $echo "$modename: warning: \`-l' is ignored for archives/objects: $deplib" 1>&2 - continue + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe) + if test "$linkmode,$pass" = "prog,link"; then + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + else + compiler_flags="$compiler_flags $deplib" fi - if test $pass = conv; then - deplibs="$deplib $deplibs" + continue + ;; + -l*) + if test "$linkmode" != lib && test "$linkmode" != prog; then + $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2 continue fi name=`$echo "X$deplib" | $Xsed -e 's/^-l//'` for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do - # Search the libtool library - lib="$searchdir/lib${name}.la" - if test -f "$lib"; then - found=yes - break - fi + for search_ext in .la $std_shrext .so .a; do + # Search the libtool library + lib="$searchdir/lib${name}${search_ext}" + if test -f "$lib"; then + if test "$search_ext" = ".la"; then + found=yes + else + found=no + fi + break 2 + fi + done done if test "$found" != yes; then # deplib doesn't seem to be a libtool library @@ -1434,40 +2038,76 @@ compiler." finalize_deplibs="$deplib $finalize_deplibs" else deplibs="$deplib $deplibs" - test $linkmode = lib && newdependency_libs="$deplib $newdependency_libs" + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" fi continue + else # deplib is a libtool library + # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib, + # We need to do some special things here, and not later. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then + case " $predeps $postdeps " in + *" $deplib "*) + if (${SED} -e '2q' $lib | + grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then + library_names= + old_library= + case $lib in + */* | *\\*) . $lib ;; + *) . ./$lib ;; + esac + for l in $old_library $library_names; do + ll="$l" + done + if test "X$ll" = "X$old_library" ; then # only static version available + found=no + ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'` + test "X$ladir" = "X$lib" && ladir="." + lib=$ladir/$old_library + if test "$linkmode,$pass" = "prog,link"; then + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + else + deplibs="$deplib $deplibs" + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs" + fi + continue + fi + fi + ;; + *) ;; + esac + fi fi ;; # -l -L*) case $linkmode in lib) deplibs="$deplib $deplibs" - test $pass = conv && continue + test "$pass" = conv && continue newdependency_libs="$deplib $newdependency_libs" newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'` ;; prog) - if test $pass = conv; then + if test "$pass" = conv; then deplibs="$deplib $deplibs" continue fi - if test $pass = scan; then + if test "$pass" = scan; then deplibs="$deplib $deplibs" - newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'` else compile_deplibs="$deplib $compile_deplibs" finalize_deplibs="$deplib $finalize_deplibs" fi + newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'` ;; *) - $echo "$modename: warning: \`-L' is ignored for archives/objects: $deplib" 1>&2 + $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2 ;; esac # linkmode continue ;; # -L -R*) - if test $pass = link; then + if test "$pass" = link; then dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'` # Make sure the xrpath contains only unique directories. case "$xrpath " in @@ -1480,30 +2120,45 @@ compiler." ;; *.la) lib="$deplib" ;; *.$libext) - if test $pass = conv; then + if test "$pass" = conv; then deplibs="$deplib $deplibs" continue fi case $linkmode in lib) - if test "$deplibs_check_method" != pass_all; then - echo - echo "*** Warning: Trying to link with static lib archive $deplib." - echo "*** I have the capability to make that library automatically link in when" - echo "*** you link to this library. But I can only do this if you have a" - echo "*** shared version of the library, which you do not appear to have" - echo "*** because the file extensions .$libext of this argument makes me believe" - echo "*** that it is just a static archive that I should not used here." + valid_a_lib=no + case $deplibs_check_method in + match_pattern*) + set dummy $deplibs_check_method + match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"` + if eval $echo \"$deplib\" 2>/dev/null \ + | $SED 10q \ + | $EGREP "$match_pattern_regex" > /dev/null; then + valid_a_lib=yes + fi + ;; + pass_all) + valid_a_lib=yes + ;; + esac + if test "$valid_a_lib" != yes; then + $echo + $echo "*** Warning: Trying to link with static lib archive $deplib." + $echo "*** I have the capability to make that library automatically link in when" + $echo "*** you link to this library. But I can only do this if you have a" + $echo "*** shared version of the library, which you do not appear to have" + $echo "*** because the file extensions .$libext of this argument makes me believe" + $echo "*** that it is just a static archive that I should not used here." else - echo - echo "*** Warning: Linking the shared library $output against the" - echo "*** static library $deplib is not portable!" + $echo + $echo "*** Warning: Linking the shared library $output against the" + $echo "*** static library $deplib is not portable!" deplibs="$deplib $deplibs" fi continue ;; prog) - if test $pass != link; then + if test "$pass" != link; then deplibs="$deplib $deplibs" else compile_deplibs="$deplib $compile_deplibs" @@ -1514,14 +2169,18 @@ compiler." esac # linkmode ;; # *.$libext *.lo | *.$objext) - if test $pass = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then - # If there is no dlopen support or we're linking statically, - # we need to preload. - newdlprefiles="$newdlprefiles $deplib" - compile_deplibs="$deplib $compile_deplibs" - finalize_deplibs="$deplib $finalize_deplibs" - else - newdlfiles="$newdlfiles $deplib" + if test "$pass" = conv; then + deplibs="$deplib $deplibs" + elif test "$linkmode" = prog; then + if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then + # If there is no dlopen support or we're linking statically, + # we need to preload. + newdlprefiles="$newdlprefiles $deplib" + compile_deplibs="$deplib $compile_deplibs" + finalize_deplibs="$deplib $finalize_deplibs" + else + newdlfiles="$newdlfiles $deplib" + fi fi continue ;; @@ -1530,17 +2189,17 @@ compiler." continue ;; esac # case $deplib - if test $found = yes || test -f "$lib"; then : + if test "$found" = yes || test -f "$lib"; then : else $echo "$modename: cannot find the library \`$lib'" 1>&2 - exit 1 + exit $EXIT_FAILURE fi # Check to see that this really is a libtool archive. - if (${SED} -e '2q' $lib | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : + if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : else $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 - exit 1 + exit $EXIT_FAILURE fi ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'` @@ -1553,8 +2212,11 @@ compiler." library_names= old_library= # If the library was installed with an old release of libtool, - # it will not redefine variable installed. + # it will not redefine variables installed, or shouldnotlink installed=yes + shouldnotlink=no + avoidtemprpath= + # Read the .la file case $lib in @@ -1564,19 +2226,18 @@ compiler." if test "$linkmode,$pass" = "lib,link" || test "$linkmode,$pass" = "prog,scan" || - { test $linkmode = oldlib && test $linkmode = obj; }; then - # Add dl[pre]opened files of deplib + { test "$linkmode" != prog && test "$linkmode" != lib; }; then test -n "$dlopen" && dlfiles="$dlfiles $dlopen" test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen" fi - if test $pass = conv; then + if test "$pass" = conv; then # Only check for convenience libraries deplibs="$lib $deplibs" if test -z "$libdir"; then if test -z "$old_library"; then $echo "$modename: cannot find name of link library for \`$lib'" 1>&2 - exit 1 + exit $EXIT_FAILURE fi # It is a libtool convenience library, so add in its objects. convenience="$convenience $ladir/$objdir/$old_library" @@ -1591,13 +2252,14 @@ compiler." fi tmp_libs="$tmp_libs $deplib" done - elif test $linkmode != prog && test $linkmode != lib; then + elif test "$linkmode" != prog && test "$linkmode" != lib; then $echo "$modename: \`$lib' is not a convenience library" 1>&2 - exit 1 + exit $EXIT_FAILURE fi continue fi # $pass = conv + # Get the name of the library we link against. linklib= for l in $old_library $library_names; do @@ -1605,19 +2267,23 @@ compiler." done if test -z "$linklib"; then $echo "$modename: cannot find name of link library for \`$lib'" 1>&2 - exit 1 + exit $EXIT_FAILURE fi # This library was specified with -dlopen. - if test $pass = dlopen; then + if test "$pass" = dlopen; then if test -z "$libdir"; then $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2 - exit 1 + exit $EXIT_FAILURE fi - if test -z "$dlname" || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then + if test -z "$dlname" || + test "$dlopen_support" != yes || + test "$build_libtool_libs" = no; then # If there is no dlname, no dlopen support or we're linking - # statically, we need to preload. - dlprefiles="$dlprefiles $lib" + # statically, we need to preload. We also need to preload any + # dependent libraries so libltdl's deplib preloader doesn't + # bomb out in the load deplibs phase. + dlprefiles="$dlprefiles $lib $dependency_libs" else newdlfiles="$newdlfiles $lib" fi @@ -1649,19 +2315,27 @@ compiler." dir="$libdir" absdir="$libdir" fi + test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes else - dir="$ladir/$objdir" - absdir="$abs_ladir/$objdir" - # Remove this search path later - notinst_path="$notinst_path $abs_ladir" + if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then + dir="$ladir" + absdir="$abs_ladir" + # Remove this search path later + notinst_path="$notinst_path $abs_ladir" + else + dir="$ladir/$objdir" + absdir="$abs_ladir/$objdir" + # Remove this search path later + notinst_path="$notinst_path $abs_ladir" + fi fi # $installed = yes name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'` # This library was specified with -dlpreopen. - if test $pass = dlpreopen; then + if test "$pass" = dlpreopen; then if test -z "$libdir"; then $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2 - exit 1 + exit $EXIT_FAILURE fi # Prefer using a static library (so that no silly _DYNAMIC symbols # are required to link). @@ -1677,18 +2351,19 @@ compiler." if test -z "$libdir"; then # Link the convenience library - if test $linkmode = lib; then + if test "$linkmode" = lib; then deplibs="$dir/$old_library $deplibs" elif test "$linkmode,$pass" = "prog,link"; then compile_deplibs="$dir/$old_library $compile_deplibs" finalize_deplibs="$dir/$old_library $finalize_deplibs" else - deplibs="$lib $deplibs" + deplibs="$lib $deplibs" # used for prog,scan pass fi continue fi - if test $linkmode = prog && test $pass != link; then + + if test "$linkmode" = prog && test "$pass" != link; then newlib_search_path="$newlib_search_path $ladir" deplibs="$lib $deplibs" @@ -1704,7 +2379,7 @@ compiler." -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test esac # Need to link against all dependency_libs? - if test $linkalldeplibs = yes; then + if test "$linkalldeplibs" = yes; then deplibs="$deplib $deplibs" else # Need to hardcode shared library paths @@ -1721,13 +2396,19 @@ compiler." continue fi # $linkmode = prog... - link_static=no # Whether the deplib will be linked statically - if test -n "$library_names" && - { test "$prefer_static_libs" = no || test -z "$old_library"; }; then - # Link against this shared library + if test "$linkmode,$pass" = "prog,link"; then + if test -n "$library_names" && + { test "$prefer_static_libs" = no || test -z "$old_library"; }; then + # We need to hardcode the library path + if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then + # Make sure the rpath contains only unique directories. + case "$temp_rpath " in + *" $dir "*) ;; + *" $absdir "*) ;; + *) temp_rpath="$temp_rpath $dir" ;; + esac + fi - if test "$linkmode,$pass" = "prog,link" || - { test $linkmode = lib && test $hardcode_into_libs = yes; }; then # Hardcode the library path. # Skip directories that are in the system default run-time # search path. @@ -1749,17 +2430,6 @@ compiler." esac ;; esac - if test $linkmode = prog; then - # We need to hardcode the library path - if test -n "$shlibpath_var"; then - # Make sure the rpath contains only unique directories. - case "$temp_rpath " in - *" $dir "*) ;; - *" $absdir "*) ;; - *) temp_rpath="$temp_rpath $dir" ;; - esac - fi - fi fi # $linkmode,$pass = prog,link... if test "$alldeplibs" = yes && @@ -1769,11 +2439,52 @@ compiler." # We only need to search for static libraries continue fi + fi + link_static=no # Whether the deplib will be linked statically + if test -n "$library_names" && + { test "$prefer_static_libs" = no || test -z "$old_library"; }; then if test "$installed" = no; then notinst_deplibs="$notinst_deplibs $lib" need_relink=yes fi + # This is a shared library + + # Warn about portability, can't link against -module's on + # some systems (darwin) + if test "$shouldnotlink" = yes && test "$pass" = link ; then + $echo + if test "$linkmode" = prog; then + $echo "*** Warning: Linking the executable $output against the loadable module" + else + $echo "*** Warning: Linking the shared library $output against the loadable module" + fi + $echo "*** $linklib is not portable!" + fi + if test "$linkmode" = lib && + test "$hardcode_into_libs" = yes; then + # Hardcode the library path. + # Skip directories that are in the system default run-time + # search path. + case " $sys_lib_dlsearch_path " in + *" $absdir "*) ;; + *) + case "$compile_rpath " in + *" $absdir "*) ;; + *) compile_rpath="$compile_rpath $absdir" + esac + ;; + esac + case " $sys_lib_dlsearch_path " in + *" $libdir "*) ;; + *) + case "$finalize_rpath " in + *" $libdir "*) ;; + *) finalize_rpath="$finalize_rpath $libdir" + esac + ;; + esac + fi if test -n "$old_archive_from_expsyms_cmds"; then # figure out the soname @@ -1787,7 +2498,7 @@ compiler." elif test -n "$soname_spec"; then # bleh windows case $host in - *cygwin*) + *cygwin* | mingw*) major=`expr $current - $age` versuffix="-$major" ;; @@ -1799,17 +2510,18 @@ compiler." # Make a new name for the extract_expsyms_cmds to use soroot="$soname" - soname=`echo $soroot | ${SED} -e 's/^.*\///'` - newlib="libimp-`echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a" + soname=`$echo $soroot | ${SED} -e 's/^.*\///'` + newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a" # If the library has no export list, then create one now if test -f "$output_objdir/$soname-def"; then : else $show "extracting exported symbol list from \`$soname'" save_ifs="$IFS"; IFS='~' - eval cmds=\"$extract_expsyms_cmds\" + cmds=$extract_expsyms_cmds for cmd in $cmds; do IFS="$save_ifs" + eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done @@ -1820,9 +2532,10 @@ compiler." if test -f "$output_objdir/$newlib"; then :; else $show "generating import library for \`$soname'" save_ifs="$IFS"; IFS='~' - eval cmds=\"$old_archive_from_expsyms_cmds\" + cmds=$old_archive_from_expsyms_cmds for cmd in $cmds; do IFS="$save_ifs" + eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done @@ -1831,9 +2544,9 @@ compiler." # make sure the library variables are pointing to the new library dir=$output_objdir linklib=$newlib - fi # test -n $old_archive_from_expsyms_cmds + fi # test -n "$old_archive_from_expsyms_cmds" - if test $linkmode = prog || test "$mode" != relink; then + if test "$linkmode" = prog || test "$mode" != relink; then add_shlibpath= add_dir= add= @@ -1842,6 +2555,22 @@ compiler." immediate | unsupported) if test "$hardcode_direct" = no; then add="$dir/$linklib" + case $host in + *-*-sco3.2v5* ) add_dir="-L$dir" ;; + *-*-darwin* ) + # if the lib is a module then we can not link against + # it, someone is ignoring the new warnings I added + if /usr/bin/file -L $add 2> /dev/null | $EGREP "bundle" >/dev/null ; then + $echo "** Warning, lib $linklib is a module, not a shared library" + if test -z "$old_library" ; then + $echo + $echo "** And there doesn't seem to be a static archive available" + $echo "** The link will probably fail, sorry" + else + add="$dir/$old_library" + fi + fi + esac elif test "$hardcode_minus_L" = no; then case $host in *-*-sunos*) add_shlibpath="$dir" ;; @@ -1860,6 +2589,14 @@ compiler." add="$dir/$linklib" elif test "$hardcode_minus_L" = yes; then add_dir="-L$dir" + # Try looking first in the location we're being installed to. + if test -n "$inst_prefix_dir"; then + case "$libdir" in + [\\/]*) + add_dir="$add_dir -L$inst_prefix_dir$libdir" + ;; + esac + fi add="-l$name" elif test "$hardcode_shlibpath_var" = yes; then add_shlibpath="$dir" @@ -1873,7 +2610,7 @@ compiler." if test "$lib_linked" != yes; then $echo "$modename: configuration error: unsupported hardcode properties" - exit 1 + exit $EXIT_FAILURE fi if test -n "$add_shlibpath"; then @@ -1882,7 +2619,7 @@ compiler." *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;; esac fi - if test $linkmode = prog; then + if test "$linkmode" = prog; then test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs" test -n "$add" && compile_deplibs="$add $compile_deplibs" else @@ -1899,7 +2636,7 @@ compiler." fi fi - if test $linkmode = prog || test "$mode" = relink; then + if test "$linkmode" = prog || test "$mode" = relink; then add_shlibpath= add_dir= add= @@ -1907,16 +2644,7 @@ compiler." if test "$hardcode_direct" = yes; then add="$libdir/$linklib" elif test "$hardcode_minus_L" = yes; then - # Try looking first in the location we're being installed to. - add_dir= - if test -n "$inst_prefix_dir"; then - case "$libdir" in - [\\/]*) - add_dir="-L$inst_prefix_dir$libdir" - ;; - esac - fi - add_dir="$add_dir -L$libdir" + add_dir="-L$libdir" add="-l$name" elif test "$hardcode_shlibpath_var" = yes; then case :$finalize_shlibpath: in @@ -1924,22 +2652,28 @@ compiler." *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; esac add="-l$name" + elif test "$hardcode_automatic" = yes; then + if test -n "$inst_prefix_dir" && + test -f "$inst_prefix_dir$libdir/$linklib" ; then + add="$inst_prefix_dir$libdir/$linklib" + else + add="$libdir/$linklib" + fi else # We cannot seem to hardcode it, guess we'll fake it. + add_dir="-L$libdir" # Try looking first in the location we're being installed to. - add_dir= if test -n "$inst_prefix_dir"; then case "$libdir" in - [\\/]*) - add_dir="-L$inst_prefix_dir$libdir" - ;; + [\\/]*) + add_dir="$add_dir -L$inst_prefix_dir$libdir" + ;; esac fi - add_dir="$add_dir -L$libdir" add="-l$name" fi - if test $linkmode = prog; then + if test "$linkmode" = prog; then test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs" test -n "$add" && finalize_deplibs="$add $finalize_deplibs" else @@ -1947,16 +2681,7 @@ compiler." test -n "$add" && deplibs="$add $deplibs" fi fi - elif test $linkmode = prog; then - if test "$alldeplibs" = yes && - { test "$deplibs_check_method" = pass_all || - { test "$build_libtool_libs" = yes && - test -n "$library_names"; }; }; then - # We only need to search for static libraries - continue - fi - - # Try to link the static library + elif test "$linkmode" = prog; then # Here we assume that one of hardcode_direct or hardcode_minus_L # is not unsupported. This is valid on all known static and # shared platforms. @@ -1976,21 +2701,21 @@ compiler." # Just print a warning and add the library to dependency_libs so # that the program can be linked against the static library. - echo - echo "*** Warning: This system can not link to static lib archive $lib." - echo "*** I have the capability to make that library automatically link in when" - echo "*** you link to this library. But I can only do this if you have a" - echo "*** shared version of the library, which you do not appear to have." + $echo + $echo "*** Warning: This system can not link to static lib archive $lib." + $echo "*** I have the capability to make that library automatically link in when" + $echo "*** you link to this library. But I can only do this if you have a" + $echo "*** shared version of the library, which you do not appear to have." if test "$module" = yes; then - echo "*** But as you try to build a module library, libtool will still create " - echo "*** a static module, that should work as long as the dlopening application" - echo "*** is linked with the -dlopen flag to resolve symbols at runtime." + $echo "*** But as you try to build a module library, libtool will still create " + $echo "*** a static module, that should work as long as the dlopening application" + $echo "*** is linked with the -dlopen flag to resolve symbols at runtime." if test -z "$global_symbol_pipe"; then - echo - echo "*** However, this would only work if libtool was able to extract symbol" - echo "*** lists from a program, using \`nm' or equivalent, but libtool could" - echo "*** not find such a program. So, this module is probably useless." - echo "*** \`nm' from GNU binutils and a full rebuild may help." + $echo + $echo "*** However, this would only work if libtool was able to extract symbol" + $echo "*** lists from a program, using \`nm' or equivalent, but libtool could" + $echo "*** not find such a program. So, this module is probably useless." + $echo "*** \`nm' from GNU binutils and a full rebuild may help." fi if test "$build_old_libs" = no; then build_libtool_libs=module @@ -2007,10 +2732,11 @@ compiler." fi fi # link shared/static library? - if test $linkmode = lib; then + if test "$linkmode" = lib; then if test -n "$dependency_libs" && - { test $hardcode_into_libs != yes || test $build_old_libs = yes || - test $link_static = yes; }; then + { test "$hardcode_into_libs" != yes || + test "$build_old_libs" = yes || + test "$link_static" = yes; }; then # Extract -R from dependency_libs temp_deplibs= for libdir in $dependency_libs; do @@ -2041,7 +2767,7 @@ compiler." tmp_libs="$tmp_libs $deplib" done - if test $link_all_deplibs != no; then + if test "$link_all_deplibs" != no; then # Add the search paths of all dependency libraries for deplib in $dependency_libs; do case $deplib in @@ -2061,38 +2787,83 @@ compiler." ;; esac if grep "^installed=no" $deplib > /dev/null; then - path="-L$absdir/$objdir" + path="$absdir/$objdir" else eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` if test -z "$libdir"; then $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2 - exit 1 + exit $EXIT_FAILURE fi if test "$absdir" != "$libdir"; then $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2 fi - path="-L$absdir" + path="$absdir" fi + depdepl= + case $host in + *-*-darwin*) + # we do not want to link against static libs, + # but need to link against shared + eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib` + if test -n "$deplibrary_names" ; then + for tmp in $deplibrary_names ; do + depdepl=$tmp + done + if test -f "$path/$depdepl" ; then + depdepl="$path/$depdepl" + fi + # do not add paths which are already there + case " $newlib_search_path " in + *" $path "*) ;; + *) newlib_search_path="$newlib_search_path $path";; + esac + fi + path="" + ;; + *) + path="-L$path" + ;; + esac + ;; + -l*) + case $host in + *-*-darwin*) + # Again, we only want to link against shared libraries + eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"` + for tmp in $newlib_search_path ; do + if test -f "$tmp/lib$tmp_libs.dylib" ; then + eval depdepl="$tmp/lib$tmp_libs.dylib" + break + fi + done + path="" + ;; + *) continue ;; + esac ;; *) continue ;; esac case " $deplibs " in *" $path "*) ;; - *) deplibs="$deplibs $path" ;; + *) deplibs="$path $deplibs" ;; + esac + case " $deplibs " in + *" $depdepl "*) ;; + *) deplibs="$depdepl $deplibs" ;; esac done fi # link_all_deplibs != no fi # linkmode = lib done # for deplib in $libs - if test $pass = dlpreopen; then + dependency_libs="$newdependency_libs" + if test "$pass" = dlpreopen; then # Link the dlpreopened libraries before other libraries for deplib in $save_deplibs; do deplibs="$deplib $deplibs" done fi - if test $pass != dlopen; then - test $pass != scan && dependency_libs="$newdependency_libs" - if test $pass != conv; then + if test "$pass" != dlopen; then + if test "$pass" != conv; then # Make sure lib_search_path contains only unique directories. lib_search_path= for dir in $newlib_search_path; do @@ -2114,9 +2885,30 @@ compiler." eval tmp_libs=\"\$$var\" new_libs= for deplib in $tmp_libs; do + # FIXME: Pedantically, this is the right thing to do, so + # that some nasty dependency loop isn't accidentally + # broken: + #new_libs="$deplib $new_libs" + # Pragmatically, this seems to cause very few problems in + # practice: case $deplib in -L*) new_libs="$deplib $new_libs" ;; + -R*) ;; *) + # And here is the reason: when a library appears more + # than once as an explicit dependence of a library, or + # is implicitly linked in more than once by the + # compiler, it is considered special, and multiple + # occurrences thereof are not removed. Compare this + # with having the same library being listed as a + # dependency of multiple other libraries: in this case, + # we know (pedantically, we assume) the library does not + # need to be listed more than once, so we keep only the + # last copy. This is not always right, but it is rare + # enough that we require users that really mean to play + # such unportable linking tricks to link the library + # using -Wl,-lname, so that libtool does not consider it + # for duplicate removal. case " $specialdeplibs " in *" $deplib "*) new_libs="$deplib $new_libs" ;; *) @@ -2144,19 +2936,32 @@ compiler." eval $var=\"$tmp_libs\" done # for var fi - if test "$pass" = "conv" && - { test "$linkmode" = "lib" || test "$linkmode" = "prog"; }; then - libs="$deplibs" # reset libs - deplibs= - fi + # Last step: remove runtime libs from dependency_libs + # (they stay in deplibs) + tmp_libs= + for i in $dependency_libs ; do + case " $predeps $postdeps $compiler_lib_search_path " in + *" $i "*) + i="" + ;; + esac + if test -n "$i" ; then + tmp_libs="$tmp_libs $i" + fi + done + dependency_libs=$tmp_libs done # for pass - if test $linkmode = prog; then + if test "$linkmode" = prog; then dlfiles="$newdlfiles" dlprefiles="$newdlprefiles" fi case $linkmode in oldlib) + if test -n "$deplibs"; then + $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2 + fi + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2 fi @@ -2170,7 +2975,7 @@ compiler." fi if test -n "$vinfo"; then - $echo "$modename: warning: \`-version-info' is ignored for archives" 1>&2 + $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2 fi if test -n "$release"; then @@ -2192,17 +2997,19 @@ compiler." case $outputname in lib*) name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'` + eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" ;; *) if test "$module" = no; then $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2 $echo "$help" 1>&2 - exit 1 + exit $EXIT_FAILURE fi if test "$need_lib_prefix" != no; then # Add the "lib" prefix for modules if required name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'` + eval shared_ext=\"$shrext_cmds\" eval libname=\"$libname_spec\" else libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'` @@ -2213,11 +3020,11 @@ compiler." if test -n "$objs"; then if test "$deplibs_check_method" != pass_all; then $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1 - exit 1 + exit $EXIT_FAILURE else - echo - echo "*** Warning: Linking the shared library $output against the non-libtool" - echo "*** objects $objs is not portable!" + $echo + $echo "*** Warning: Linking the shared library $output against the non-libtool" + $echo "*** objects $objs is not portable!" libobjs="$libobjs $objs" fi fi @@ -2227,7 +3034,7 @@ compiler." fi set dummy $rpath - if test $# -gt 2; then + if test "$#" -gt 2; then $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2 fi install_libdir="$2" @@ -2236,14 +3043,16 @@ compiler." if test -z "$rpath"; then if test "$build_libtool_libs" = yes; then # Building a libtool convenience library. - libext=al + # Some compilers have problems with a `.al' extension so + # convenience libraries should have the same extension an + # archive normally would. oldlibs="$output_objdir/$libname.$libext $oldlibs" build_libtool_libs=convenience build_old_libs=yes fi if test -n "$vinfo"; then - $echo "$modename: warning: \`-version-info' is ignored for convenience libraries" 1>&2 + $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2 fi if test -n "$release"; then @@ -2259,45 +3068,82 @@ compiler." if test -n "$8"; then $echo "$modename: too many parameters to \`-version-info'" 1>&2 $echo "$help" 1>&2 - exit 1 + exit $EXIT_FAILURE fi - current="$2" - revision="$3" - age="$4" + # convert absolute version numbers to libtool ages + # this retains compatibility with .la files and attempts + # to make the code below a bit more comprehensible + + case $vinfo_number in + yes) + number_major="$2" + number_minor="$3" + number_revision="$4" + # + # There are really only two kinds -- those that + # use the current revision as the major version + # and those that subtract age and use age as + # a minor version. But, then there is irix + # which has an extra 1 added just for fun + # + case $version_type in + darwin|linux|osf|windows) + current=`expr $number_major + $number_minor` + age="$number_minor" + revision="$number_revision" + ;; + freebsd-aout|freebsd-elf|sunos) + current="$number_major" + revision="$number_minor" + age="0" + ;; + irix|nonstopux) + current=`expr $number_major + $number_minor - 1` + age="$number_minor" + revision="$number_minor" + ;; + esac + ;; + no) + current="$2" + revision="$3" + age="$4" + ;; + esac # Check that each of the things are valid numbers. case $current in - [0-9]*) ;; + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) - $echo "$modename: CURRENT \`$current' is not a nonnegative integer" 1>&2 + $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 - exit 1 + exit $EXIT_FAILURE ;; esac case $revision in - [0-9]*) ;; + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) - $echo "$modename: REVISION \`$revision' is not a nonnegative integer" 1>&2 + $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 - exit 1 + exit $EXIT_FAILURE ;; esac case $age in - [0-9]*) ;; + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; *) - $echo "$modename: AGE \`$age' is not a nonnegative integer" 1>&2 + $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 - exit 1 + exit $EXIT_FAILURE ;; esac - if test $age -gt $current; then + if test "$age" -gt "$current"; then $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2 $echo "$modename: \`$vinfo' is not valid version information" 1>&2 - exit 1 + exit $EXIT_FAILURE fi # Calculate the version variables. @@ -2314,7 +3160,7 @@ compiler." versuffix="$major.$age.$revision" # Darwin ld doesn't like 0 for these options... minor_current=`expr $current + 1` - verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" + verstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision" ;; freebsd-aout) @@ -2338,7 +3184,7 @@ compiler." # Add in all the interfaces that we are compatible with. loop=$revision - while test $loop != 0; do + while test "$loop" -ne 0; do iface=`expr $revision - $loop` loop=`expr $loop - 1` verstring="$verstring_prefix$major.$iface:$verstring" @@ -2361,7 +3207,7 @@ compiler." # Add in all the interfaces that we are compatible with. loop=$age - while test $loop != 0; do + while test "$loop" -ne 0; do iface=`expr $current - $loop` loop=`expr $loop - 1` verstring="$verstring:${iface}.0" @@ -2385,20 +3231,19 @@ compiler." *) $echo "$modename: unknown library version type \`$version_type'" 1>&2 - echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2 - exit 1 + $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2 + exit $EXIT_FAILURE ;; esac # Clear the version info if we defaulted, and they specified a release. if test -z "$vinfo" && test -n "$release"; then major= - verstring="0.0" case $version_type in darwin) # we can't check for "0.0" in archive_cmds due to quoting # problems, so we reset it completely - verstring="" + verstring= ;; *) verstring="0.0" @@ -2432,9 +3277,30 @@ compiler." fi if test "$mode" != relink; then - # Remove our outputs. - $show "${rm}r $output_objdir/$outputname $output_objdir/$libname.* $output_objdir/${libname}${release}.*" - $run ${rm}r $output_objdir/$outputname $output_objdir/$libname.* $output_objdir/${libname}${release}.* + # Remove our outputs, but don't remove object files since they + # may have been created when compiling PIC objects. + removelist= + tempremovelist=`$echo "$output_objdir/*"` + for p in $tempremovelist; do + case $p in + *.$objext) + ;; + $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*) + if test "X$precious_files_regex" != "X"; then + if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1 + then + continue + fi + fi + removelist="$removelist $p" + ;; + *) ;; + esac + done + if test -n "$removelist"; then + $show "${rm}r $removelist" + $run ${rm}r $removelist + fi fi # Now set the variables for building old libraries. @@ -2447,9 +3313,9 @@ compiler." # Eliminate all temporary directories. for path in $notinst_path; do - lib_search_path=`echo "$lib_search_path " | ${SED} -e 's% $path % %g'` - deplibs=`echo "$deplibs " | ${SED} -e 's% -L$path % %g'` - dependency_libs=`echo "$dependency_libs " | ${SED} -e 's% -L$path % %g'` + lib_search_path=`$echo "$lib_search_path " | ${SED} -e 's% $path % %g'` + deplibs=`$echo "$deplibs " | ${SED} -e 's% -L$path % %g'` + dependency_libs=`$echo "$dependency_libs " | ${SED} -e 's% -L$path % %g'` done if test -n "$xrpath"; then @@ -2462,7 +3328,7 @@ compiler." *) finalize_rpath="$finalize_rpath $libdir" ;; esac done - if test $hardcode_into_libs != yes || test $build_old_libs = yes; then + if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then dependency_libs="$temp_xrpath $dependency_libs" fi fi @@ -2500,12 +3366,13 @@ compiler." *-*-netbsd*) # Don't link with libc until the a.out ld.so is fixed. ;; - *-*-openbsd* | *-*-freebsd*) + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc due to us having libc/libc_r. + test "X$arg" = "X-lc" && continue ;; - *) + *) # Add libc to deplibs on all other systems if necessary. - if test $build_libtool_need_lc = "yes"; then + if test "$build_libtool_need_lc" = "yes"; then deplibs="$deplibs -lc" fi ;; @@ -2532,7 +3399,7 @@ compiler." # This might be a little naive. We might want to check # whether the library exists or not. But this is on # osf3 & osf4 and I'm not really sure... Just - # implementing what was already the behaviour. + # implementing what was already the behavior. newdeplibs=$deplibs ;; test_compile) @@ -2545,45 +3412,22 @@ compiler." int main() { return 0; } EOF $rm conftest - $CC -o conftest conftest.c $deplibs - if test $? -eq 0 ; then + $LTCC -o conftest conftest.c $deplibs + if test "$?" -eq 0 ; then ldd_output=`ldd conftest` for i in $deplibs; do name="`expr $i : '-l\(.*\)'`" # If $name is empty we are operating on a -L argument. - if test -n "$name" && test "$name" != "0"; then - libname=`eval \\$echo \"$libname_spec\"` - deplib_matches=`eval \\$echo \"$library_names_spec\"` - set dummy $deplib_matches - deplib_match=$2 - if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then - newdeplibs="$newdeplibs $i" - else - droppeddeps=yes - echo - echo "*** Warning: dynamic linker does not accept needed library $i." - echo "*** I have the capability to make that library automatically link in when" - echo "*** you link to this library. But I can only do this if you have a" - echo "*** shared version of the library, which I believe you do not have" - echo "*** because a test_compile did reveal that the linker did not use it for" - echo "*** its dynamic dependency list that programs get resolved with at runtime." - fi - else - newdeplibs="$newdeplibs $i" - fi - done - else - # Error occured in the first compile. Let's try to salvage - # the situation: Compile a separate program for each library. - for i in $deplibs; do - name="`expr $i : '-l\(.*\)'`" - # If $name is empty we are operating on a -L argument. - if test -n "$name" && test "$name" != "0"; then - $rm conftest - $CC -o conftest conftest.c $i - # Did it work? - if test $? -eq 0 ; then - ldd_output=`ldd conftest` + if test "$name" != "" && test "$name" -ne "0"; then + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then + case " $predeps $postdeps " in + *" $i "*) + newdeplibs="$newdeplibs $i" + i="" + ;; + esac + fi + if test -n "$i" ; then libname=`eval \\$echo \"$libname_spec\"` deplib_matches=`eval \\$echo \"$library_names_spec\"` set dummy $deplib_matches @@ -2592,21 +3436,64 @@ EOF newdeplibs="$newdeplibs $i" else droppeddeps=yes - echo - echo "*** Warning: dynamic linker does not accept needed library $i." - echo "*** I have the capability to make that library automatically link in when" - echo "*** you link to this library. But I can only do this if you have a" - echo "*** shared version of the library, which you do not appear to have" - echo "*** because a test_compile did reveal that the linker did not use this one" - echo "*** as a dynamic dependency that programs can get resolved with at runtime." + $echo + $echo "*** Warning: dynamic linker does not accept needed library $i." + $echo "*** I have the capability to make that library automatically link in when" + $echo "*** you link to this library. But I can only do this if you have a" + $echo "*** shared version of the library, which I believe you do not have" + $echo "*** because a test_compile did reveal that the linker did not use it for" + $echo "*** its dynamic dependency list that programs get resolved with at runtime." + fi + fi + else + newdeplibs="$newdeplibs $i" + fi + done + else + # Error occurred in the first compile. Let's try to salvage + # the situation: Compile a separate program for each library. + for i in $deplibs; do + name="`expr $i : '-l\(.*\)'`" + # If $name is empty we are operating on a -L argument. + if test "$name" != "" && test "$name" != "0"; then + $rm conftest + $LTCC -o conftest conftest.c $i + # Did it work? + if test "$?" -eq 0 ; then + ldd_output=`ldd conftest` + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then + case " $predeps $postdeps " in + *" $i "*) + newdeplibs="$newdeplibs $i" + i="" + ;; + esac + fi + if test -n "$i" ; then + libname=`eval \\$echo \"$libname_spec\"` + deplib_matches=`eval \\$echo \"$library_names_spec\"` + set dummy $deplib_matches + deplib_match=$2 + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then + newdeplibs="$newdeplibs $i" + else + droppeddeps=yes + $echo + $echo "*** Warning: dynamic linker does not accept needed library $i." + $echo "*** I have the capability to make that library automatically link in when" + $echo "*** you link to this library. But I can only do this if you have a" + $echo "*** shared version of the library, which you do not appear to have" + $echo "*** because a test_compile did reveal that the linker did not use this one" + $echo "*** as a dynamic dependency that programs can get resolved with at runtime." + fi fi else droppeddeps=yes - echo - echo "*** Warning! Library $i is needed by this library but I was not able to" - echo "*** make it link in! You will probably need to install it or some" - echo "*** library that it depends on before this library will be fully" - echo "*** functional. Installing it before continuing would be even better." + $echo + $echo "*** Warning! Library $i is needed by this library but I was not able to" + $echo "*** make it link in! You will probably need to install it or some" + $echo "*** library that it depends on before this library will be fully" + $echo "*** functional. Installing it before continuing would be even better." fi else newdeplibs="$newdeplibs $i" @@ -2620,11 +3507,20 @@ EOF for a_deplib in $deplibs; do name="`expr $a_deplib : '-l\(.*\)'`" # If $name is empty we are operating on a -L argument. - if test -n "$name" && test "$name" != "0"; then - libname=`eval \\$echo \"$libname_spec\"` - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do - potential_libs=`ls $i/$libname[.-]* 2>/dev/null` - for potent_lib in $potential_libs; do + if test "$name" != "" && test "$name" != "0"; then + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then + case " $predeps $postdeps " in + *" $a_deplib "*) + newdeplibs="$newdeplibs $a_deplib" + a_deplib="" + ;; + esac + fi + if test -n "$a_deplib" ; then + libname=`eval \\$echo \"$libname_spec\"` + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do + potential_libs=`ls $i/$libname[.-]* 2>/dev/null` + for potent_lib in $potential_libs; do # Follow soft links. if ls -lLd "$potent_lib" 2>/dev/null \ | grep " -> " >/dev/null; then @@ -2645,26 +3541,27 @@ EOF done if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \ | ${SED} 10q \ - | egrep "$file_magic_regex" > /dev/null; then + | $EGREP "$file_magic_regex" > /dev/null; then newdeplibs="$newdeplibs $a_deplib" a_deplib="" break 2 fi - done - done + done + done + fi if test -n "$a_deplib" ; then droppeddeps=yes - echo - echo "*** Warning: linker path does not have real file for library $a_deplib." - echo "*** I have the capability to make that library automatically link in when" - echo "*** you link to this library. But I can only do this if you have a" - echo "*** shared version of the library, which you do not appear to have" - echo "*** because I did check the linker path looking for a file starting" + $echo + $echo "*** Warning: linker path does not have real file for library $a_deplib." + $echo "*** I have the capability to make that library automatically link in when" + $echo "*** you link to this library. But I can only do this if you have a" + $echo "*** shared version of the library, which you do not appear to have" + $echo "*** because I did check the linker path looking for a file starting" if test -z "$potlib" ; then - echo "*** with $libname but no candidates were found. (...for file magic test)" + $echo "*** with $libname but no candidates were found. (...for file magic test)" else - echo "*** with $libname and none of the candidates passed a file format test" - echo "*** using a file magic. Last file checked: $potlib" + $echo "*** with $libname and none of the candidates passed a file format test" + $echo "*** using a file magic. Last file checked: $potlib" fi fi else @@ -2680,33 +3577,43 @@ EOF name="`expr $a_deplib : '-l\(.*\)'`" # If $name is empty we are operating on a -L argument. if test -n "$name" && test "$name" != "0"; then - libname=`eval \\$echo \"$libname_spec\"` - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do - potential_libs=`ls $i/$libname[.-]* 2>/dev/null` - for potent_lib in $potential_libs; do - potlib="$potent_lib" # see symlink-check below in file_magic test - if eval echo \"$potent_lib\" 2>/dev/null \ - | ${SED} 10q \ - | egrep "$match_pattern_regex" > /dev/null; then - newdeplibs="$newdeplibs $a_deplib" - a_deplib="" - break 2 - fi + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then + case " $predeps $postdeps " in + *" $a_deplib "*) + newdeplibs="$newdeplibs $a_deplib" + a_deplib="" + ;; + esac + fi + if test -n "$a_deplib" ; then + libname=`eval \\$echo \"$libname_spec\"` + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do + potential_libs=`ls $i/$libname[.-]* 2>/dev/null` + for potent_lib in $potential_libs; do + potlib="$potent_lib" # see symlink-check above in file_magic test + if eval $echo \"$potent_lib\" 2>/dev/null \ + | ${SED} 10q \ + | $EGREP "$match_pattern_regex" > /dev/null; then + newdeplibs="$newdeplibs $a_deplib" + a_deplib="" + break 2 + fi + done done - done + fi if test -n "$a_deplib" ; then droppeddeps=yes - echo - echo "*** Warning: linker path does not have real file for library $a_deplib." - echo "*** I have the capability to make that library automatically link in when" - echo "*** you link to this library. But I can only do this if you have a" - echo "*** shared version of the library, which you do not appear to have" - echo "*** because I did check the linker path looking for a file starting" + $echo + $echo "*** Warning: linker path does not have real file for library $a_deplib." + $echo "*** I have the capability to make that library automatically link in when" + $echo "*** you link to this library. But I can only do this if you have a" + $echo "*** shared version of the library, which you do not appear to have" + $echo "*** because I did check the linker path looking for a file starting" if test -z "$potlib" ; then - echo "*** with $libname but no candidates were found. (...for regex pattern test)" + $echo "*** with $libname but no candidates were found. (...for regex pattern test)" else - echo "*** with $libname and none of the candidates passed a file format test" - echo "*** using a regex pattern. Last file checked: $potlib" + $echo "*** with $libname and none of the candidates passed a file format test" + $echo "*** using a regex pattern. Last file checked: $potlib" fi fi else @@ -2717,16 +3624,23 @@ EOF ;; none | unknown | *) newdeplibs="" - if $echo "X $deplibs" | $Xsed -e 's/ -lc$//' \ - -e 's/ -[LR][^ ]*//g' -e 's/[ ]//g' | - grep . >/dev/null; then - echo + tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \ + -e 's/ -[LR][^ ]*//g'` + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then + for i in $predeps $postdeps ; do + # can't use Xsed below, because $i might contain '/' + tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"` + done + fi + if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \ + | grep . >/dev/null; then + $echo if test "X$deplibs_check_method" = "Xnone"; then - echo "*** Warning: inter-library dependencies are not supported in this platform." + $echo "*** Warning: inter-library dependencies are not supported in this platform." else - echo "*** Warning: inter-library dependencies are not known to be supported." + $echo "*** Warning: inter-library dependencies are not known to be supported." fi - echo "*** All declared inter-library dependencies are being dropped." + $echo "*** All declared inter-library dependencies are being dropped." droppeddeps=yes fi ;; @@ -2746,17 +3660,17 @@ EOF if test "$droppeddeps" = yes; then if test "$module" = yes; then - echo - echo "*** Warning: libtool could not satisfy all declared inter-library" - echo "*** dependencies of module $libname. Therefore, libtool will create" - echo "*** a static module, that should work as long as the dlopening" - echo "*** application is linked with the -dlopen flag." + $echo + $echo "*** Warning: libtool could not satisfy all declared inter-library" + $echo "*** dependencies of module $libname. Therefore, libtool will create" + $echo "*** a static module, that should work as long as the dlopening" + $echo "*** application is linked with the -dlopen flag." if test -z "$global_symbol_pipe"; then - echo - echo "*** However, this would only work if libtool was able to extract symbol" - echo "*** lists from a program, using \`nm' or equivalent, but libtool could" - echo "*** not find such a program. So, this module is probably useless." - echo "*** \`nm' from GNU binutils and a full rebuild may help." + $echo + $echo "*** However, this would only work if libtool was able to extract symbol" + $echo "*** lists from a program, using \`nm' or equivalent, but libtool could" + $echo "*** not find such a program. So, this module is probably useless." + $echo "*** \`nm' from GNU binutils and a full rebuild may help." fi if test "$build_old_libs" = no; then oldlibs="$output_objdir/$libname.$libext" @@ -2766,16 +3680,16 @@ EOF build_libtool_libs=no fi else - echo "*** The inter-library dependencies that have been dropped here will be" - echo "*** automatically added whenever a program is linked with this library" - echo "*** or is declared to -dlopen it." + $echo "*** The inter-library dependencies that have been dropped here will be" + $echo "*** automatically added whenever a program is linked with this library" + $echo "*** or is declared to -dlopen it." - if test $allow_undefined = no; then - echo - echo "*** Since this library must not contain undefined symbols," - echo "*** because either the platform does not support them or" - echo "*** it was explicitly requested with -no-undefined," - echo "*** libtool will only create a static version of it." + if test "$allow_undefined" = no; then + $echo + $echo "*** Since this library must not contain undefined symbols," + $echo "*** because either the platform does not support them or" + $echo "*** it was explicitly requested with -no-undefined," + $echo "*** libtool will only create a static version of it." if test "$build_old_libs" = no; then oldlibs="$output_objdir/$libname.$libext" build_libtool_libs=module @@ -2797,7 +3711,7 @@ EOF # Test again, we may have decided not to build it any more if test "$build_libtool_libs" = yes; then - if test $hardcode_into_libs = yes; then + if test "$hardcode_into_libs" = yes; then # Hardcode the library paths hardcode_libdirs= dep_rpath= @@ -2833,7 +3747,11 @@ EOF if test -n "$hardcode_libdir_separator" && test -n "$hardcode_libdirs"; then libdir="$hardcode_libdirs" - eval dep_rpath=\"$hardcode_libdir_flag_spec\" + if test -n "$hardcode_libdir_flag_spec_ld"; then + eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\" + else + eval dep_rpath=\"$hardcode_libdir_flag_spec\" + fi fi if test -n "$runpath_var" && test -n "$perm_rpath"; then # We should set the runpath_var. @@ -2853,6 +3771,7 @@ EOF fi # Get the real and link names of the library. + eval shared_ext=\"$shrext_cmds\" eval library_names=\"$library_names_spec\" set dummy $library_names realname="$2" @@ -2863,7 +3782,9 @@ EOF else soname="$realname" fi - test -z "$dlname" && dlname=$soname + if test -z "$dlname"; then + dlname=$soname + fi lib="$output_objdir/$realname" for link @@ -2871,23 +3792,6 @@ EOF linknames="$linknames $link" done - # Ensure that we have .o objects for linkers which dislike .lo - # (e.g. aix) in case we are running --disable-static - for obj in $libobjs; do - xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'` - if test "X$xdir" = "X$obj"; then - xdir="." - else - xdir="$xdir" - fi - baseobj=`$echo "X$obj" | $Xsed -e 's%^.*/%%'` - oldobj=`$echo "X$baseobj" | $Xsed -e "$lo2o"` - if test ! -f $xdir/$oldobj; then - $show "(cd $xdir && ${LN_S} $baseobj $oldobj)" - $run eval '(cd $xdir && ${LN_S} $baseobj $oldobj)' || exit $? - fi - done - # Use standard objects if they are pic test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` @@ -2897,17 +3801,26 @@ EOF $show "generating symbol list for \`$libname.la'" export_symbols="$output_objdir/$libname.exp" $run $rm $export_symbols - eval cmds=\"$export_symbols_cmds\" + cmds=$export_symbols_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" - $show "$cmd" - $run eval "$cmd" || exit $? + eval cmd=\"$cmd\" + if len=`expr "X$cmd" : ".*"` && + test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then + $show "$cmd" + $run eval "$cmd" || exit $? + skipped_export=false + else + # The command line is too long to execute in one step. + $show "using reloadable object file for export list..." + skipped_export=: + fi done IFS="$save_ifs" if test -n "$export_symbols_regex"; then - $show "egrep -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\"" - $run eval 'egrep -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' + $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\"" + $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' $show "$mv \"${export_symbols}T\" \"$export_symbols\"" $run eval '$mv "${export_symbols}T" "$export_symbols"' fi @@ -2918,46 +3831,30 @@ EOF $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"' fi + tmp_deplibs= + for test_deplib in $deplibs; do + case " $convenience " in + *" $test_deplib "*) ;; + *) + tmp_deplibs="$tmp_deplibs $test_deplib" + ;; + esac + done + deplibs="$tmp_deplibs" + if test -n "$convenience"; then if test -n "$whole_archive_flag_spec"; then + save_libobjs=$libobjs eval libobjs=\"\$libobjs $whole_archive_flag_spec\" else gentop="$output_objdir/${outputname}x" - $show "${rm}r $gentop" - $run ${rm}r "$gentop" - $show "mkdir $gentop" - $run mkdir "$gentop" - status=$? - if test $status -ne 0 && test ! -d "$gentop"; then - exit $status - fi generated="$generated $gentop" - for xlib in $convenience; do - # Extract the objects. - case $xlib in - [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;; - *) xabs=`pwd`"/$xlib" ;; - esac - xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'` - xdir="$gentop/$xlib" - - $show "${rm}r $xdir" - $run ${rm}r "$xdir" - $show "mkdir $xdir" - $run mkdir "$xdir" - status=$? - if test $status -ne 0 && test ! -d "$xdir"; then - exit $status - fi - $show "(cd $xdir && $AR x $xabs)" - $run eval "(cd \$xdir && $AR x \$xabs)" || exit $? - - libobjs="$libobjs "`find $xdir -name \*.o -print -o -name \*.lo -print | $NL2SP` - done + func_extract_archives $gentop $convenience + libobjs="$libobjs $func_extract_archives_result" fi fi - + if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then eval flag=\"$thread_safe_flag_spec\" linker_flags="$linker_flags $flag" @@ -2969,25 +3866,148 @@ EOF fi # Do each of the archive commands. - if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then - eval cmds=\"$archive_expsym_cmds\" + if test "$module" = yes && test -n "$module_cmds" ; then + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then + eval test_cmds=\"$module_expsym_cmds\" + cmds=$module_expsym_cmds + else + eval test_cmds=\"$module_cmds\" + cmds=$module_cmds + fi else - save_deplibs="$deplibs" - for conv in $convenience; do - tmp_deplibs= - for test_deplib in $deplibs; do - if test "$test_deplib" != "$conv"; then - tmp_deplibs="$tmp_deplibs $test_deplib" + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then + eval test_cmds=\"$archive_expsym_cmds\" + cmds=$archive_expsym_cmds + else + eval test_cmds=\"$archive_cmds\" + cmds=$archive_cmds + fi + fi + + if test "X$skipped_export" != "X:" && len=`expr "X$test_cmds" : ".*"` && + test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then + : + else + # The command line is too long to link in one step, link piecewise. + $echo "creating reloadable object files..." + + # Save the value of $output and $libobjs because we want to + # use them later. If we have whole_archive_flag_spec, we + # want to use save_libobjs as it was before + # whole_archive_flag_spec was expanded, because we can't + # assume the linker understands whole_archive_flag_spec. + # This may have to be revisited, in case too many + # convenience libraries get linked in and end up exceeding + # the spec. + if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then + save_libobjs=$libobjs + fi + save_output=$output + output_la=`$echo "X$output" | $Xsed -e "$basename"` + + # Clear the reloadable object creation command queue and + # initialize k to one. + test_cmds= + concat_cmds= + objlist= + delfiles= + last_robj= + k=1 + output=$output_objdir/$output_la-${k}.$objext + # Loop over the list of objects to be linked. + for obj in $save_libobjs + do + eval test_cmds=\"$reload_cmds $objlist $last_robj\" + if test "X$objlist" = X || + { len=`expr "X$test_cmds" : ".*"` && + test "$len" -le "$max_cmd_len"; }; then + objlist="$objlist $obj" + else + # The command $test_cmds is almost too long, add a + # command to the queue. + if test "$k" -eq 1 ; then + # The first file doesn't have a previous command to add. + eval concat_cmds=\"$reload_cmds $objlist $last_robj\" + else + # All subsequent reloadable object files will link in + # the last one created. + eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\" fi - done - deplibs="$tmp_deplibs" + last_robj=$output_objdir/$output_la-${k}.$objext + k=`expr $k + 1` + output=$output_objdir/$output_la-${k}.$objext + objlist=$obj + len=1 + fi done - eval cmds=\"$archive_cmds\" - deplibs="$save_deplibs" + # Handle the remaining objects by creating one last + # reloadable object file. All subsequent reloadable object + # files will link in the last one created. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~ + eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\" + + if ${skipped_export-false}; then + $show "generating symbol list for \`$libname.la'" + export_symbols="$output_objdir/$libname.exp" + $run $rm $export_symbols + libobjs=$output + # Append the command to create the export file. + eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\" + fi + + # Set up a command to remove the reloadable object files + # after they are used. + i=0 + while test "$i" -lt "$k" + do + i=`expr $i + 1` + delfiles="$delfiles $output_objdir/$output_la-${i}.$objext" + done + + $echo "creating a temporary reloadable object file: $output" + + # Loop through the commands generated above and execute them. + save_ifs="$IFS"; IFS='~' + for cmd in $concat_cmds; do + IFS="$save_ifs" + $show "$cmd" + $run eval "$cmd" || exit $? + done + IFS="$save_ifs" + + libobjs=$output + # Restore the value of output. + output=$save_output + + if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then + eval libobjs=\"\$libobjs $whole_archive_flag_spec\" + fi + # Expand the library linking commands again to reset the + # value of $libobjs for piecewise linking. + + # Do each of the archive commands. + if test "$module" = yes && test -n "$module_cmds" ; then + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then + cmds=$module_expsym_cmds + else + cmds=$module_cmds + fi + else + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then + cmds=$archive_expsym_cmds + else + cmds=$archive_cmds + fi + fi + + # Append the command to remove the reloadable object files + # to the just-reset $cmds. + eval cmds=\"\$cmds~\$rm $delfiles\" fi save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" + eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done @@ -2996,7 +4016,7 @@ EOF # Restore the uninstalled library and exit if test "$mode" = relink; then $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $? - exit 0 + exit $EXIT_SUCCESS fi # Create links to the real library. @@ -3044,7 +4064,7 @@ EOF *.lo) if test -n "$objs$old_deplibs"; then $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2 - exit 1 + exit $EXIT_FAILURE fi libobj="$output" obj=`$echo "X$output" | $Xsed -e "$lo2o"` @@ -3073,38 +4093,10 @@ EOF eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\" else gentop="$output_objdir/${obj}x" - $show "${rm}r $gentop" - $run ${rm}r "$gentop" - $show "mkdir $gentop" - $run mkdir "$gentop" - status=$? - if test $status -ne 0 && test ! -d "$gentop"; then - exit $status - fi generated="$generated $gentop" - for xlib in $convenience; do - # Extract the objects. - case $xlib in - [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;; - *) xabs=`pwd`"/$xlib" ;; - esac - xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'` - xdir="$gentop/$xlib" - - $show "${rm}r $xdir" - $run ${rm}r "$xdir" - $show "mkdir $xdir" - $run mkdir "$xdir" - status=$? - if test $status -ne 0 && test ! -d "$xdir"; then - exit $status - fi - $show "(cd $xdir && $AR x $xabs)" - $run eval "(cd \$xdir && $AR x \$xabs)" || exit $? - - reload_conv_objs="$reload_objs "`find $xdir -name \*.o -print -o -name \*.lo -print | $NL2SP` - done + func_extract_archives $gentop $convenience + reload_conv_objs="$reload_objs $func_extract_archives_result" fi fi @@ -3112,10 +4104,11 @@ EOF reload_objs="$objs$old_deplibs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test output="$obj" - eval cmds=\"$reload_cmds\" + cmds=$reload_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" + eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done @@ -3128,7 +4121,7 @@ EOF $run ${rm}r $gentop fi - exit 0 + exit $EXIT_SUCCESS fi if test "$build_libtool_libs" != yes; then @@ -3139,37 +4132,24 @@ EOF # Create an invalid libtool object if no PIC, so that we don't # accidentally link it into a program. - $show "echo timestamp > $libobj" - $run eval "echo timestamp > $libobj" || exit $? - exit 0 + # $show "echo timestamp > $libobj" + # $run eval "echo timestamp > $libobj" || exit $? + exit $EXIT_SUCCESS fi if test -n "$pic_flag" || test "$pic_mode" != default; then # Only do commands if we really have different PIC objects. reload_objs="$libobjs $reload_conv_objs" output="$libobj" - eval cmds=\"$reload_cmds\" + cmds=$reload_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" + eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done IFS="$save_ifs" - else - # Just create a symlink. - $show $rm $libobj - $run $rm $libobj - xdir=`$echo "X$libobj" | $Xsed -e 's%/[^/]*$%%'` - if test "X$xdir" = "X$libobj"; then - xdir="." - else - xdir="$xdir" - fi - baseobj=`$echo "X$libobj" | $Xsed -e 's%^.*/%%'` - oldobj=`$echo "X$baseobj" | $Xsed -e "$lo2o"` - $show "(cd $xdir && $LN_S $oldobj $baseobj)" - $run eval '(cd $xdir && $LN_S $oldobj $baseobj)' || exit $? fi if test -n "$gentop"; then @@ -3177,12 +4157,12 @@ EOF $run ${rm}r $gentop fi - exit 0 + exit $EXIT_SUCCESS ;; prog) case $host in - *cygwin*) output=`echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;; + *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;; esac if test -n "$vinfo"; then $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2 @@ -3204,16 +4184,19 @@ EOF # On Rhapsody replace the C library is the System framework compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'` finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'` - case $host in - *darwin*) - # Don't allow lazy linking, it breaks C++ global constructors - compile_command="$compile_command ${wl}-bind_at_load" - finalize_command="$finalize_command ${wl}-bind_at_load" - ;; - esac ;; esac + case $host in + *darwin*) + # Don't allow lazy linking, it breaks C++ global constructors + if test "$tagname" = CXX ; then + compile_command="$compile_command ${wl}-bind_at_load" + finalize_command="$finalize_command ${wl}-bind_at_load" + fi + ;; + esac + compile_command="$compile_command $compile_deplibs" finalize_command="$finalize_command $finalize_deplibs" @@ -3364,31 +4347,31 @@ extern \"C\" { done if test -n "$exclude_expsyms"; then - $run eval 'egrep -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T' + $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T' $run eval '$mv "$nlist"T "$nlist"' fi if test -n "$export_symbols_regex"; then - $run eval 'egrep -e "$export_symbols_regex" "$nlist" > "$nlist"T' + $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T' $run eval '$mv "$nlist"T "$nlist"' fi # Prepare the list of exported symbols if test -z "$export_symbols"; then - export_symbols="$output_objdir/$output.exp" + export_symbols="$output_objdir/$outputname.exp" $run $rm $export_symbols $run eval "${SED} -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' else - $run eval "${SED} -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$output.exp"' - $run eval 'grep -f "$output_objdir/$output.exp" < "$nlist" > "$nlist"T' + $run eval "${SED} -e 's/\([ ][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"' + $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' $run eval 'mv "$nlist"T "$nlist"' fi fi for arg in $dlprefiles; do $show "extracting global C symbols from \`$arg'" - name=`echo "$arg" | ${SED} -e 's%^.*/%%'` - $run eval 'echo ": $name " >> "$nlist"' + name=`$echo "$arg" | ${SED} -e 's%^.*/%%'` + $run eval '$echo ": $name " >> "$nlist"' $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'" done @@ -3397,7 +4380,7 @@ extern \"C\" { test -f "$nlist" || : > "$nlist" if test -n "$exclude_expsyms"; then - egrep -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T + $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T $mv "$nlist"T "$nlist" fi @@ -3417,7 +4400,7 @@ extern \"C\" { if test -f "$nlist"S; then eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"' else - echo '/* NONE */' >> "$output_objdir/$dlsyms" + $echo '/* NONE */' >> "$output_objdir/$dlsyms" fi $echo >> "$output_objdir/$dlsyms" "\ @@ -3432,7 +4415,26 @@ extern \"C\" { #endif /* The mapping between symbol names and symbols. */ +" + + case $host in + *cygwin* | *mingw* ) + $echo >> "$output_objdir/$dlsyms" "\ +/* DATA imports from DLLs on WIN32 can't be const, because + runtime relocations are performed -- see ld's documentation + on pseudo-relocs */ +struct { +" + ;; + * ) + $echo >> "$output_objdir/$dlsyms" "\ const struct { +" + ;; + esac + + + $echo >> "$output_objdir/$dlsyms" "\ const char *name; lt_ptr address; } @@ -3469,18 +4471,18 @@ static const void *lt_preloaded_setup() { *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*) case "$compile_command " in *" -static "*) ;; - *) pic_flag_for_symtable=" $pic_flag -DPIC -DFREEBSD_WORKAROUND";; + *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";; esac;; *-*-hpux*) case "$compile_command " in *" -static "*) ;; - *) pic_flag_for_symtable=" $pic_flag -DPIC";; + *) pic_flag_for_symtable=" $pic_flag";; esac esac # Now compile the dynamic symbol file. - $show "(cd $output_objdir && $CC -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")" - $run eval '(cd $output_objdir && $CC -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $? + $show "(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")" + $run eval '(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $? # Clean up the generated files. $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T" @@ -3492,7 +4494,7 @@ static const void *lt_preloaded_setup() { ;; *) $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2 - exit 1 + exit $EXIT_FAILURE ;; esac else @@ -3505,7 +4507,7 @@ static const void *lt_preloaded_setup() { finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"` fi - if test $need_relink = no || test "$build_libtool_libs" != yes; then + if test "$need_relink" = no || test "$build_libtool_libs" != yes; then # Replace the output file specification. compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` link_command="$compile_command$compile_rpath" @@ -3580,7 +4582,7 @@ static const void *lt_preloaded_setup() { # Link the executable and exit $show "$link_command" $run eval "$link_command" || exit $? - exit 0 + exit $EXIT_SUCCESS fi if test "$hardcode_action" = relink; then @@ -3635,10 +4637,10 @@ static const void *lt_preloaded_setup() { fi # Quote $echo for shipping. - if test "X$echo" = "X$SHELL $0 --fallback-echo"; then - case $0 in - [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $0 --fallback-echo";; - *) qecho="$SHELL `pwd`/$0 --fallback-echo";; + if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then + case $progpath in + [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";; + *) qecho="$SHELL `pwd`/$progpath --fallback-echo";; esac qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"` else @@ -3650,15 +4652,230 @@ static const void *lt_preloaded_setup() { # win32 will think the script is a binary if it has # a .exe suffix, so we strip it off here. case $output in - *.exe) output=`echo $output|${SED} 's,.exe$,,'` ;; + *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;; esac # test for cygwin because mv fails w/o .exe extensions case $host in - *cygwin*) exeext=.exe ;; + *cygwin*) + exeext=.exe + outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;; *) exeext= ;; esac + case $host in + *cygwin* | *mingw* ) + cwrappersource=`$echo ${objdir}/lt-${outputname}.c` + cwrapper=`$echo ${output}.exe` + $rm $cwrappersource $cwrapper + trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15 + + cat > $cwrappersource <> $cwrappersource<<"EOF" +#include +#include +#include +#include +#include +#include + +#if defined(PATH_MAX) +# define LT_PATHMAX PATH_MAX +#elif defined(MAXPATHLEN) +# define LT_PATHMAX MAXPATHLEN +#else +# define LT_PATHMAX 1024 +#endif + +#ifndef DIR_SEPARATOR +#define DIR_SEPARATOR '/' +#endif + +#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \ + defined (__OS2__) +#define HAVE_DOS_BASED_FILE_SYSTEM +#ifndef DIR_SEPARATOR_2 +#define DIR_SEPARATOR_2 '\\' +#endif +#endif + +#ifndef DIR_SEPARATOR_2 +# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR) +#else /* DIR_SEPARATOR_2 */ +# define IS_DIR_SEPARATOR(ch) \ + (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2)) +#endif /* DIR_SEPARATOR_2 */ + +#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type))) +#define XFREE(stale) do { \ + if (stale) { free ((void *) stale); stale = 0; } \ +} while (0) + +const char *program_name = NULL; + +void * xmalloc (size_t num); +char * xstrdup (const char *string); +char * basename (const char *name); +char * fnqualify(const char *path); +char * strendzap(char *str, const char *pat); +void lt_fatal (const char *message, ...); + +int +main (int argc, char *argv[]) +{ + char **newargz; + int i; + + program_name = (char *) xstrdup ((char *) basename (argv[0])); + newargz = XMALLOC(char *, argc+2); +EOF + + cat >> $cwrappersource <> $cwrappersource <<"EOF" + newargz[1] = fnqualify(argv[0]); + /* we know the script has the same name, without the .exe */ + /* so make sure newargz[1] doesn't end in .exe */ + strendzap(newargz[1],".exe"); + for (i = 1; i < argc; i++) + newargz[i+1] = xstrdup(argv[i]); + newargz[argc+1] = NULL; +EOF + + cat >> $cwrappersource <> $cwrappersource <<"EOF" +} + +void * +xmalloc (size_t num) +{ + void * p = (void *) malloc (num); + if (!p) + lt_fatal ("Memory exhausted"); + + return p; +} + +char * +xstrdup (const char *string) +{ + return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL +; +} + +char * +basename (const char *name) +{ + const char *base; + +#if defined (HAVE_DOS_BASED_FILE_SYSTEM) + /* Skip over the disk name in MSDOS pathnames. */ + if (isalpha (name[0]) && name[1] == ':') + name += 2; +#endif + + for (base = name; *name; name++) + if (IS_DIR_SEPARATOR (*name)) + base = name + 1; + return (char *) base; +} + +char * +fnqualify(const char *path) +{ + size_t size; + char *p; + char tmp[LT_PATHMAX + 1]; + + assert(path != NULL); + + /* Is it qualified already? */ +#if defined (HAVE_DOS_BASED_FILE_SYSTEM) + if (isalpha (path[0]) && path[1] == ':') + return xstrdup (path); +#endif + if (IS_DIR_SEPARATOR (path[0])) + return xstrdup (path); + + /* prepend the current directory */ + /* doesn't handle '~' */ + if (getcwd (tmp, LT_PATHMAX) == NULL) + lt_fatal ("getcwd failed"); + size = strlen(tmp) + 1 + strlen(path) + 1; /* +2 for '/' and '\0' */ + p = XMALLOC(char, size); + sprintf(p, "%s%c%s", tmp, DIR_SEPARATOR, path); + return p; +} + +char * +strendzap(char *str, const char *pat) +{ + size_t len, patlen; + + assert(str != NULL); + assert(pat != NULL); + + len = strlen(str); + patlen = strlen(pat); + + if (patlen <= len) + { + str += len - patlen; + if (strcmp(str, pat) == 0) + *str = '\0'; + } + return str; +} + +static void +lt_error_core (int exit_status, const char * mode, + const char * message, va_list ap) +{ + fprintf (stderr, "%s: %s: ", program_name, mode); + vfprintf (stderr, message, ap); + fprintf (stderr, ".\n"); + + if (exit_status >= 0) + exit (exit_status); +} + +void +lt_fatal (const char *message, ...) +{ + va_list ap; + va_start (ap, message); + lt_error_core (EXIT_FAILURE, "FATAL", message, ap); + va_end (ap); +} +EOF + # we should really use a build-platform specific compiler + # here, but OTOH, the wrappers (shell script and this C one) + # are only useful if you want to execute the "real" binary. + # Since the "real" binary is built for $host, then this + # wrapper might as well be built for $host, too. + $run $LTCC -s -o $cwrapper $cwrappersource + ;; + esac $rm $output - trap "$rm $output; exit 1" 1 2 15 + trap "$rm $output; exit $EXIT_FAILURE" 1 2 15 $echo > $output "\ #! $SHELL @@ -3674,12 +4891,12 @@ static const void *lt_preloaded_setup() { # Sed substitution that helps us do robust quoting. It backslashifies # metacharacters that are still active within double-quoted strings. -Xsed="${SED}"' -e 1s/^X//' +Xsed='${SED} -e 1s/^X//' sed_quote_subst='$sed_quote_subst' # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. -if test \"\${CDPATH+set}\" = set; then CDPATH=:; export CDPATH; fi +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH relink_command=\"$relink_command\" @@ -3734,7 +4951,7 @@ else " if test "$fast_install" = yes; then - echo >> $output "\ + $echo >> $output "\ program=lt-'$outputname'$exeext progdir=\"\$thisdir/$objdir\" @@ -3750,7 +4967,7 @@ else $rm \"\$progdir/\$file\" fi" - echo >> $output "\ + $echo >> $output "\ # relink executable if necessary if test -n \"\$relink_command\"; then @@ -3758,7 +4975,7 @@ else else $echo \"\$relink_command_output\" >&2 $rm \"\$progdir/\$file\" - exit 1 + exit $EXIT_FAILURE fi fi @@ -3768,13 +4985,13 @@ else $rm \"\$progdir/\$file\" fi" else - echo >> $output "\ + $echo >> $output "\ program='$outputname' progdir=\"\$thisdir/$objdir\" " fi - echo >> $output "\ + $echo >> $output "\ if test -f \"\$progdir/\$program\"; then" @@ -3785,7 +5002,7 @@ else $shlibpath_var=\"$temp_rpath\$$shlibpath_var\" # Some systems cannot cope with colon-terminated $shlibpath_var - # The second colon is a workaround for a bug in BeOS R4 ${SED} + # The second colon is a workaround for a bug in BeOS R4 sed $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\` export $shlibpath_var @@ -3805,14 +5022,6 @@ else # Run the actual program with our arguments. " case $host in - # win32 systems need to use the prog path for dll - # lookup to work - *-*-cygwin* | *-*-pw32*) - $echo >> $output "\ - exec \$progdir/\$program \${1+\"\$@\"} -" - ;; - # Backslashes separate directories on plain windows *-*-mingw | *-*-os2*) $echo >> $output "\ @@ -3822,30 +5031,26 @@ else *) $echo >> $output "\ - # Export the path to the program. - PATH=\"\$progdir:\$PATH\" - export PATH - - exec \$program \${1+\"\$@\"} + exec \$progdir/\$program \${1+\"\$@\"} " ;; esac $echo >> $output "\ \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\" - exit 1 + exit $EXIT_FAILURE fi else # The program doesn't exist. \$echo \"\$0: error: \$progdir/\$program does not exist\" 1>&2 \$echo \"This script is just a wrapper for \$program.\" 1>&2 - echo \"See the $PACKAGE documentation for more information.\" 1>&2 - exit 1 + $echo \"See the $PACKAGE documentation for more information.\" 1>&2 + exit $EXIT_FAILURE fi fi\ " chmod +x $output fi - exit 0 + exit $EXIT_SUCCESS ;; esac @@ -3861,74 +5066,130 @@ fi\ oldobjs="$libobjs_save" build_libtool_libs=no else - oldobjs="$objs$old_deplibs "`$echo "X$libobjs_save" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP` + oldobjs="$old_deplibs $non_pic_objects" fi addlibs="$old_convenience" fi if test -n "$addlibs"; then gentop="$output_objdir/${outputname}x" - $show "${rm}r $gentop" - $run ${rm}r "$gentop" - $show "mkdir $gentop" - $run mkdir "$gentop" - status=$? - if test $status -ne 0 && test ! -d "$gentop"; then - exit $status - fi generated="$generated $gentop" - # Add in members from convenience archives. - for xlib in $addlibs; do - # Extract the objects. - case $xlib in - [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;; - *) xabs=`pwd`"/$xlib" ;; - esac - xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'` - xdir="$gentop/$xlib" - - $show "${rm}r $xdir" - $run ${rm}r "$xdir" - $show "mkdir $xdir" - $run mkdir "$xdir" - status=$? - if test $status -ne 0 && test ! -d "$xdir"; then - exit $status - fi - $show "(cd $xdir && $AR x $xabs)" - $run eval "(cd \$xdir && $AR x \$xabs)" || exit $? - - oldobjs="$oldobjs "`find $xdir -name \*.${objext} -print -o -name \*.lo -print | $NL2SP` - done + func_extract_archives $gentop $addlibs + oldobjs="$oldobjs $func_extract_archives_result" fi # Do each command in the archive commands. if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then - eval cmds=\"$old_archive_from_new_cmds\" + cmds=$old_archive_from_new_cmds else - # Ensure that we have .o objects in place in case we decided - # not to build a shared library, and have fallen back to building - # static libs even though --disable-static was passed! - for oldobj in $oldobjs; do - if test ! -f $oldobj; then - xdir=`$echo "X$oldobj" | $Xsed -e 's%/[^/]*$%%'` - if test "X$xdir" = "X$oldobj"; then - xdir="." - else - xdir="$xdir" + # POSIX demands no paths to be encoded in archives. We have + # to avoid creating archives with duplicate basenames if we + # might have to extract them afterwards, e.g., when creating a + # static archive out of a convenience library, or when linking + # the entirety of a libtool archive into another (currently + # not supported by libtool). + if (for obj in $oldobjs + do + $echo "X$obj" | $Xsed -e 's%^.*/%%' + done | sort | sort -uc >/dev/null 2>&1); then + : + else + $echo "copying selected object files to avoid basename conflicts..." + + if test -z "$gentop"; then + gentop="$output_objdir/${outputname}x" + generated="$generated $gentop" + + $show "${rm}r $gentop" + $run ${rm}r "$gentop" + $show "$mkdir $gentop" + $run $mkdir "$gentop" + status=$? + if test "$status" -ne 0 && test ! -d "$gentop"; then + exit $status fi - baseobj=`$echo "X$oldobj" | $Xsed -e 's%^.*/%%'` - obj=`$echo "X$baseobj" | $Xsed -e "$o2lo"` - $show "(cd $xdir && ${LN_S} $obj $baseobj)" - $run eval '(cd $xdir && ${LN_S} $obj $baseobj)' || exit $? fi - done + + save_oldobjs=$oldobjs + oldobjs= + counter=1 + for obj in $save_oldobjs + do + objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'` + case " $oldobjs " in + " ") oldobjs=$obj ;; + *[\ /]"$objbase "*) + while :; do + # Make sure we don't pick an alternate name that also + # overlaps. + newobj=lt$counter-$objbase + counter=`expr $counter + 1` + case " $oldobjs " in + *[\ /]"$newobj "*) ;; + *) if test ! -f "$gentop/$newobj"; then break; fi ;; + esac + done + $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj" + $run ln "$obj" "$gentop/$newobj" || + $run cp "$obj" "$gentop/$newobj" + oldobjs="$oldobjs $gentop/$newobj" + ;; + *) oldobjs="$oldobjs $obj" ;; + esac + done + fi eval cmds=\"$old_archive_cmds\" + + if len=`expr "X$cmds" : ".*"` && + test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then + cmds=$old_archive_cmds + else + # the command line is too long to link in one step, link in parts + $echo "using piecewise archive linking..." + save_RANLIB=$RANLIB + RANLIB=: + objlist= + concat_cmds= + save_oldobjs=$oldobjs + + # Is there a better way of finding the last object in the list? + for obj in $save_oldobjs + do + last_oldobj=$obj + done + for obj in $save_oldobjs + do + oldobjs="$objlist $obj" + objlist="$objlist $obj" + eval test_cmds=\"$old_archive_cmds\" + if len=`expr "X$test_cmds" : ".*"` && + test "$len" -le "$max_cmd_len"; then + : + else + # the above command should be used before it gets too long + oldobjs=$objlist + if test "$obj" = "$last_oldobj" ; then + RANLIB=$save_RANLIB + fi + test -z "$concat_cmds" || concat_cmds=$concat_cmds~ + eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\" + objlist= + fi + done + RANLIB=$save_RANLIB + oldobjs=$objlist + if test "X$oldobjs" = "X" ; then + eval cmds=\"\$concat_cmds\" + else + eval cmds=\"\$concat_cmds~\$old_archive_cmds\" + fi + fi fi save_ifs="$IFS"; IFS='~' for cmd in $cmds; do + eval cmd=\"$cmd\" IFS="$save_ifs" $show "$cmd" $run eval "$cmd" || exit $? @@ -3960,8 +5221,12 @@ fi\ fi done # Quote the link command for shipping. - relink_command="(cd `pwd`; $SHELL $0 --mode=relink $libtool_args @inst_prefix_dir@)" + relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"` + if test "$hardcode_automatic" = yes ; then + relink_command= + fi + # Only create the output if not a dry run. if test -z "$run"; then @@ -3980,7 +5245,7 @@ fi\ eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` if test -z "$libdir"; then $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2 - exit 1 + exit $EXIT_FAILURE fi newdependency_libs="$newdependency_libs $libdir/$name" ;; @@ -3994,7 +5259,7 @@ fi\ eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` if test -z "$libdir"; then $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 - exit 1 + exit $EXIT_FAILURE fi newdlfiles="$newdlfiles $libdir/$name" done @@ -4005,17 +5270,36 @@ fi\ eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` if test -z "$libdir"; then $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 - exit 1 + exit $EXIT_FAILURE fi newdlprefiles="$newdlprefiles $libdir/$name" done dlprefiles="$newdlprefiles" + else + newdlfiles= + for lib in $dlfiles; do + case $lib in + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; + *) abs=`pwd`"/$lib" ;; + esac + newdlfiles="$newdlfiles $abs" + done + dlfiles="$newdlfiles" + newdlprefiles= + for lib in $dlprefiles; do + case $lib in + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; + *) abs=`pwd`"/$lib" ;; + esac + newdlprefiles="$newdlprefiles $abs" + done + dlprefiles="$newdlprefiles" fi $rm $output # place dlname in correct position for cygwin tdlname=$dlname case $host,$output,$installed,$module,$dlname in - *cygwin*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;; + *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;; esac $echo > $output "\ # $outputname - a libtool library file @@ -4044,13 +5328,16 @@ revision=$revision # Is this an already installed library? installed=$installed +# Should we warn about portability when linking against -modules? +shouldnotlink=$module + # Files to dlopen/dlpreopen dlopen='$dlfiles' dlpreopen='$dlprefiles' # Directory that this library needs to be installed in: libdir='$install_libdir'" - if test "$installed" = no && test $need_relink = yes; then + if test "$installed" = no && test "$need_relink" = yes; then $echo >> $output "\ relink_command=\"$relink_command\"" fi @@ -4063,7 +5350,7 @@ relink_command=\"$relink_command\"" $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $? ;; esac - exit 0 + exit $EXIT_SUCCESS ;; # libtool install mode @@ -4078,7 +5365,7 @@ relink_command=\"$relink_command\"" # Aesthetically quote it. arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"` case $arg in - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*) + *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "") arg="\"$arg\"" ;; esac @@ -4094,7 +5381,7 @@ relink_command=\"$relink_command\"" # Aesthetically quote it. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*) + *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "") arg="\"$arg\"" ;; esac @@ -4142,7 +5429,7 @@ relink_command=\"$relink_command\"" # Aesthetically quote the argument. arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` case $arg in - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*) + *$quote_scanset* | *]* | *\|* | *\&* | *\(* | *\)* | "") arg="\"$arg\"" ;; esac @@ -4152,13 +5439,13 @@ relink_command=\"$relink_command\"" if test -z "$install_prog"; then $echo "$modename: you must specify an install program" 1>&2 $echo "$help" 1>&2 - exit 1 + exit $EXIT_FAILURE fi if test -n "$prev"; then $echo "$modename: the \`$prev' option requires an argument" 1>&2 $echo "$help" 1>&2 - exit 1 + exit $EXIT_FAILURE fi if test -z "$files"; then @@ -4168,7 +5455,7 @@ relink_command=\"$relink_command\"" $echo "$modename: you must specify a destination" 1>&2 fi $echo "$help" 1>&2 - exit 1 + exit $EXIT_FAILURE fi # Strip any trailing slash from the destination. @@ -4186,10 +5473,10 @@ relink_command=\"$relink_command\"" # Not a directory, so check to see that there is only one file specified. set dummy $files - if test $# -gt 2; then + if test "$#" -gt 2; then $echo "$modename: \`$dest' is not a directory" 1>&2 $echo "$help" 1>&2 - exit 1 + exit $EXIT_FAILURE fi fi case $destdir in @@ -4201,7 +5488,7 @@ relink_command=\"$relink_command\"" *) $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2 $echo "$help" 1>&2 - exit 1 + exit $EXIT_FAILURE ;; esac done @@ -4226,11 +5513,11 @@ relink_command=\"$relink_command\"" *.la) # Check to see that this really is a libtool archive. - if (${SED} -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : + if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : else $echo "$modename: \`$file' is not a valid libtool archive" 1>&2 $echo "$help" 1>&2 - exit 1 + exit $EXIT_FAILURE fi library_names= @@ -4262,21 +5549,24 @@ relink_command=\"$relink_command\"" if test -n "$relink_command"; then # Determine the prefix the user has applied to our future dir. - inst_prefix_dir=`$echo "$destdir" | sed "s%$libdir\$%%"` + inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"` # Don't allow the user to place us outside of our expected # location b/c this prevents finding dependent libraries that # are installed to the same prefix. + # At present, this check doesn't affect windows .dll's that + # are installed into $libdir/../bin (currently, that works fine) + # but it's something to keep an eye on. if test "$inst_prefix_dir" = "$destdir"; then $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2 - exit 1 + exit $EXIT_FAILURE fi if test -n "$inst_prefix_dir"; then # Stick the inst_prefix_dir data into the link command. - relink_command=`$echo "$relink_command" | sed "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"` + relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"` else - relink_command=`$echo "$relink_command" | sed "s%@inst_prefix_dir@%%"` + relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%%"` fi $echo "$modename: warning: relinking \`$file'" 1>&2 @@ -4284,7 +5574,7 @@ relink_command=\"$relink_command\"" if $run eval "$relink_command"; then : else $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2 - exit 1 + exit $EXIT_FAILURE fi fi @@ -4306,7 +5596,7 @@ relink_command=\"$relink_command\"" $run eval "$striplib $destdir/$realname" || exit $? fi - if test $# -gt 0; then + if test "$#" -gt 0; then # Delete the old symlinks, and create new ones. for linkname do @@ -4319,10 +5609,11 @@ relink_command=\"$relink_command\"" # Do each command in the postinstall commands. lib="$destdir/$realname" - eval cmds=\"$postinstall_cmds\" + cmds=$postinstall_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" + eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done @@ -4362,7 +5653,7 @@ relink_command=\"$relink_command\"" *) $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2 $echo "$help" 1>&2 - exit 1 + exit $EXIT_FAILURE ;; esac @@ -4380,7 +5671,7 @@ relink_command=\"$relink_command\"" $show "$install_prog $staticobj $staticdest" $run eval "$install_prog \$staticobj \$staticdest" || exit $? fi - exit 0 + exit $EXIT_SUCCESS ;; *) @@ -4392,29 +5683,49 @@ relink_command=\"$relink_command\"" destfile="$destdir/$destfile" fi + # If the file is missing, and there is a .exe on the end, strip it + # because it is most likely a libtool script we actually want to + # install + stripped_ext="" + case $file in + *.exe) + if test ! -f "$file"; then + file=`$echo $file|${SED} 's,.exe$,,'` + stripped_ext=".exe" + fi + ;; + esac + # Do a test to see if this is really a libtool program. case $host in *cygwin*|*mingw*) - wrapper=`echo $file | ${SED} -e 's,.exe$,,'` + wrapper=`$echo $file | ${SED} -e 's,.exe$,,'` ;; *) wrapper=$file ;; esac - if (${SED} -e '4q' $wrapper | egrep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then + if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then notinst_deplibs= relink_command= + # To insure that "foo" is sourced, and not "foo.exe", + # finese the cygwin/MSYS system by explicitly sourcing "foo." + # which disallows the automatic-append-.exe behavior. + case $build in + *cygwin* | *mingw*) wrapperdot=${wrapper}. ;; + *) wrapperdot=${wrapper} ;; + esac # If there is no directory component, then add one. case $file in - */* | *\\*) . $wrapper ;; - *) . ./$wrapper ;; + */* | *\\*) . ${wrapperdot} ;; + *) . ./${wrapperdot} ;; esac # Check the variables that should have been set. if test -z "$notinst_deplibs"; then $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2 - exit 1 + exit $EXIT_FAILURE fi finalize=yes @@ -4436,10 +5747,17 @@ relink_command=\"$relink_command\"" done relink_command= + # To insure that "foo" is sourced, and not "foo.exe", + # finese the cygwin/MSYS system by explicitly sourcing "foo." + # which disallows the automatic-append-.exe behavior. + case $build in + *cygwin* | *mingw*) wrapperdot=${wrapper}. ;; + *) wrapperdot=${wrapper} ;; + esac # If there is no directory component, then add one. case $file in - */* | *\\*) . $wrapper ;; - *) . ./$wrapper ;; + */* | *\\*) . ${wrapperdot} ;; + *) . ./${wrapperdot} ;; esac outputname= @@ -4447,17 +5765,17 @@ relink_command=\"$relink_command\"" if test "$finalize" = yes && test -z "$run"; then tmpdir="/tmp" test -n "$TMPDIR" && tmpdir="$TMPDIR" - tmpdir=`mktemp -d $tmpdir/libtool-XXXXXX 2> /dev/null` - if test $? = 0 ; then : - else - tmpdir="$tmpdir/libtool-$$" - fi - if $mkdir -p "$tmpdir" && chmod 700 "$tmpdir"; then : + tmpdir="$tmpdir/libtool-$$" + save_umask=`umask` + umask 0077 + if $mkdir "$tmpdir"; then + umask $save_umask else + umask $save_umask $echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2 continue fi - file=`$echo "X$file" | $Xsed -e 's%^.*/%%'` + file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'` outputname="$tmpdir/$file" # Replace the output file specification. relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'` @@ -4475,14 +5793,14 @@ relink_command=\"$relink_command\"" fi else # Install the binary that we compiled earlier. - file=`$echo "X$file" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"` + file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"` fi fi # remove .exe since cygwin /usr/bin/install will append another # one anyways case $install_prog,$host in - /usr/bin/install*,*cygwin*) + */usr/bin/install*,*cygwin*) case $file:$destfile in *.exe:*.exe) # this is ok @@ -4491,7 +5809,7 @@ relink_command=\"$relink_command\"" destfile=$destfile.exe ;; *:*.exe) - destfile=`echo $destfile | ${SED} -e 's,.exe$,,'` + destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'` ;; esac ;; @@ -4512,16 +5830,17 @@ relink_command=\"$relink_command\"" $show "$install_prog $file $oldlib" $run eval "$install_prog \$file \$oldlib" || exit $? - if test -n "$stripme" && test -n "$striplib"; then + if test -n "$stripme" && test -n "$old_striplib"; then $show "$old_striplib $oldlib" $run eval "$old_striplib $oldlib" || exit $? fi # Do each command in the postinstall commands. - eval cmds=\"$old_postinstall_cmds\" + cmds=$old_postinstall_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" + eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || exit $? done @@ -4535,9 +5854,9 @@ relink_command=\"$relink_command\"" if test -n "$current_libdirs"; then # Maybe just do a dry run. test -n "$run" && current_libdirs=" -n$current_libdirs" - exec_cmd='$SHELL $0 --finish$current_libdirs' + exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs' else - exit 0 + exit $EXIT_SUCCESS fi ;; @@ -4556,10 +5875,11 @@ relink_command=\"$relink_command\"" for libdir in $libdirs; do if test -n "$finish_cmds"; then # Do each command in the finish commands. - eval cmds=\"$finish_cmds\" + cmds=$finish_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" + eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" || admincmds="$admincmds $cmd" @@ -4576,43 +5896,43 @@ relink_command=\"$relink_command\"" fi # Exit here if they wanted silent mode. - test "$show" = ":" && exit 0 + test "$show" = : && exit $EXIT_SUCCESS - echo "----------------------------------------------------------------------" - echo "Libraries have been installed in:" + $echo "----------------------------------------------------------------------" + $echo "Libraries have been installed in:" for libdir in $libdirs; do - echo " $libdir" + $echo " $libdir" done - echo - echo "If you ever happen to want to link against installed libraries" - echo "in a given directory, LIBDIR, you must either use libtool, and" - echo "specify the full pathname of the library, or use the \`-LLIBDIR'" - echo "flag during linking and do at least one of the following:" + $echo + $echo "If you ever happen to want to link against installed libraries" + $echo "in a given directory, LIBDIR, you must either use libtool, and" + $echo "specify the full pathname of the library, or use the \`-LLIBDIR'" + $echo "flag during linking and do at least one of the following:" if test -n "$shlibpath_var"; then - echo " - add LIBDIR to the \`$shlibpath_var' environment variable" - echo " during execution" + $echo " - add LIBDIR to the \`$shlibpath_var' environment variable" + $echo " during execution" fi if test -n "$runpath_var"; then - echo " - add LIBDIR to the \`$runpath_var' environment variable" - echo " during linking" + $echo " - add LIBDIR to the \`$runpath_var' environment variable" + $echo " during linking" fi if test -n "$hardcode_libdir_flag_spec"; then libdir=LIBDIR eval flag=\"$hardcode_libdir_flag_spec\" - echo " - use the \`$flag' linker flag" + $echo " - use the \`$flag' linker flag" fi if test -n "$admincmds"; then - echo " - have your system administrator run these commands:$admincmds" + $echo " - have your system administrator run these commands:$admincmds" fi if test -f /etc/ld.so.conf; then - echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'" + $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'" fi - echo - echo "See any operating system documentation about shared libraries for" - echo "more information, such as the ld(1) and ld.so(8) manual pages." - echo "----------------------------------------------------------------------" - exit 0 + $echo + $echo "See any operating system documentation about shared libraries for" + $echo "more information, such as the ld(1) and ld.so(8) manual pages." + $echo "----------------------------------------------------------------------" + exit $EXIT_SUCCESS ;; # libtool execute mode @@ -4624,7 +5944,7 @@ relink_command=\"$relink_command\"" if test -z "$cmd"; then $echo "$modename: you must specify a COMMAND" 1>&2 $echo "$help" - exit 1 + exit $EXIT_FAILURE fi # Handle -dlopen flags immediately. @@ -4632,18 +5952,18 @@ relink_command=\"$relink_command\"" if test ! -f "$file"; then $echo "$modename: \`$file' is not a file" 1>&2 $echo "$help" 1>&2 - exit 1 + exit $EXIT_FAILURE fi dir= case $file in *.la) # Check to see that this really is a libtool archive. - if (${SED} -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : + if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : else $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 $echo "$help" 1>&2 - exit 1 + exit $EXIT_FAILURE fi # Read the libtool library. @@ -4670,7 +5990,7 @@ relink_command=\"$relink_command\"" dir="$dir/$objdir" else $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2 - exit 1 + exit $EXIT_FAILURE fi ;; @@ -4710,7 +6030,7 @@ relink_command=\"$relink_command\"" -*) ;; *) # Do a test to see if this is really a libtool program. - if (${SED} -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then + if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then # If there is no directory component, then add one. case $file in */* | *\\*) . $file ;; @@ -4733,7 +6053,7 @@ relink_command=\"$relink_command\"" eval "export $shlibpath_var" fi - # Restore saved enviroment variables + # Restore saved environment variables if test "${save_LC_ALL+set}" = set; then LC_ALL="$save_LC_ALL"; export LC_ALL fi @@ -4750,7 +6070,7 @@ relink_command=\"$relink_command\"" $echo "export $shlibpath_var" fi $echo "$cmd$args" - exit 0 + exit $EXIT_SUCCESS fi ;; @@ -4778,24 +6098,25 @@ relink_command=\"$relink_command\"" if test -z "$rm"; then $echo "$modename: you must specify an RM program" 1>&2 $echo "$help" 1>&2 - exit 1 + exit $EXIT_FAILURE fi rmdirs= + origobjdir="$objdir" for file in $files; do dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'` if test "X$dir" = "X$file"; then dir=. - objdir="$objdir" + objdir="$origobjdir" else - objdir="$dir/$objdir" + objdir="$dir/$origobjdir" fi name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` - test $mode = uninstall && objdir="$dir" + test "$mode" = uninstall && objdir="$dir" # Remember objdir for removal later, being careful to avoid duplicates - if test $mode = clean; then + if test "$mode" = clean; then case " $rmdirs " in *" $objdir "*) ;; *) rmdirs="$rmdirs $objdir" ;; @@ -4819,7 +6140,7 @@ relink_command=\"$relink_command\"" case $name in *.la) # Possibly a libtool archive, so verify it. - if (${SED} -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then + if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then . $dir/$name # Delete the libtool libraries and symlinks. @@ -4827,18 +6148,19 @@ relink_command=\"$relink_command\"" rmfiles="$rmfiles $objdir/$n" done test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library" - test $mode = clean && rmfiles="$rmfiles $objdir/$name $objdir/${name}i" + test "$mode" = clean && rmfiles="$rmfiles $objdir/$name $objdir/${name}i" - if test $mode = uninstall; then + if test "$mode" = uninstall; then if test -n "$library_names"; then # Do each command in the postuninstall commands. - eval cmds=\"$postuninstall_cmds\" + cmds=$postuninstall_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" + eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" - if test $? != 0 && test "$rmforce" != yes; then + if test "$?" -ne 0 && test "$rmforce" != yes; then exit_status=1 fi done @@ -4847,13 +6169,14 @@ relink_command=\"$relink_command\"" if test -n "$old_library"; then # Do each command in the old_postuninstall commands. - eval cmds=\"$old_postuninstall_cmds\" + cmds=$old_postuninstall_cmds save_ifs="$IFS"; IFS='~' for cmd in $cmds; do IFS="$save_ifs" + eval cmd=\"$cmd\" $show "$cmd" $run eval "$cmd" - if test $? != 0 && test "$rmforce" != yes; then + if test "$?" -ne 0 && test "$rmforce" != yes; then exit_status=1 fi done @@ -4865,22 +6188,52 @@ relink_command=\"$relink_command\"" ;; *.lo) - if test "$build_old_libs" = yes; then - oldobj=`$echo "X$name" | $Xsed -e "$lo2o"` - rmfiles="$rmfiles $dir/$oldobj" + # Possibly a libtool object, so verify it. + if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then + + # Read the .lo file + . $dir/$name + + # Add PIC object to the list of files to remove. + if test -n "$pic_object" \ + && test "$pic_object" != none; then + rmfiles="$rmfiles $dir/$pic_object" + fi + + # Add non-PIC object to the list of files to remove. + if test -n "$non_pic_object" \ + && test "$non_pic_object" != none; then + rmfiles="$rmfiles $dir/$non_pic_object" + fi fi ;; *) - # Do a test to see if this is a libtool program. - if test $mode = clean && - (${SED} -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then - relink_command= - . $dir/$file + if test "$mode" = clean ; then + noexename=$name + case $file in + *.exe) + file=`$echo $file|${SED} 's,.exe$,,'` + noexename=`$echo $name|${SED} 's,.exe$,,'` + # $file with .exe has already been added to rmfiles, + # add $file without .exe + rmfiles="$rmfiles $file" + ;; + esac + # Do a test to see if this is a libtool program. + if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then + relink_command= + . $dir/$noexename - rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}" - if test "$fast_install" = yes && test -n "$relink_command"; then - rmfiles="$rmfiles $objdir/lt-$name" + # note $name still contains .exe if it was in $file originally + # as does the version of $file that was added into $rmfiles + rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}" + if test "$fast_install" = yes && test -n "$relink_command"; then + rmfiles="$rmfiles $objdir/lt-$name" + fi + if test "X$noexename" != "X$name" ; then + rmfiles="$rmfiles $objdir/lt-${noexename}.c" + fi fi fi ;; @@ -4888,6 +6241,7 @@ relink_command=\"$relink_command\"" $show "$rm $rmfiles" $run $rm $rmfiles || exit_status=1 done + objdir="$origobjdir" # Try to remove the ${objdir}s in the directories where we deleted files for dir in $rmdirs; do @@ -4903,20 +6257,20 @@ relink_command=\"$relink_command\"" "") $echo "$modename: you must specify a MODE" 1>&2 $echo "$generic_help" 1>&2 - exit 1 + exit $EXIT_FAILURE ;; esac if test -z "$exec_cmd"; then $echo "$modename: invalid operation mode \`$mode'" 1>&2 $echo "$generic_help" 1>&2 - exit 1 + exit $EXIT_FAILURE fi fi # test -z "$show_help" if test -n "$exec_cmd"; then eval exec $exec_cmd - exit 1 + exit $EXIT_FAILURE fi # We need to display help for each of the modes. @@ -4935,6 +6289,7 @@ Provide generalized library-building support services. --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS] --quiet same as \`--silent' --silent don't print informational messages + --tag=TAG use configuration variables from tag TAG --version print version information MODE must be one of the following: @@ -4948,8 +6303,10 @@ MODE must be one of the following: uninstall remove libraries from an installed directory MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for -a more detailed description of MODE." - exit 0 +a more detailed description of MODE. + +Report bugs to ." + exit $EXIT_SUCCESS ;; clean) @@ -5060,6 +6417,9 @@ The following components of LINK-COMMAND are treated specially: -no-install link a not-installable executable -no-undefined declare that a library does not refer to external symbols -o OUTPUT-FILE create OUTPUT-FILE from the specified objects + -objectlist FILE Use a list of object files found in FILE to specify objects + -precious-files-regex REGEX + don't remove output files matching REGEX -release RELEASE specify package release information -rpath LIBDIR the created library will eventually be installed in LIBDIR -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries @@ -5101,14 +6461,34 @@ Otherwise, only FILE itself is deleted using RM." *) $echo "$modename: invalid operation mode \`$mode'" 1>&2 $echo "$help" 1>&2 - exit 1 + exit $EXIT_FAILURE ;; esac -echo +$echo $echo "Try \`$modename --help' for more information about other modes." -exit 0 +exit $? + +# The TAGs below are defined such that we never get into a situation +# in which we disable both kinds of libraries. Given conflicting +# choices, we go for a static library, that is the most portable, +# since we can't tell whether shared libraries were disabled because +# the user asked for that or because the platform doesn't support +# them. This is particularly important on AIX, because we don't +# support having both static and shared libraries enabled at the same +# time on that platform, so we default to a shared-only configuration. +# If a disable-shared tag is given, we'll fallback to a static-only +# configuration. But we'll never go from static-only to shared-only. + +# ### BEGIN LIBTOOL TAG CONFIG: disable-shared +build_libtool_libs=no +build_old_libs=yes +# ### END LIBTOOL TAG CONFIG: disable-shared + +# ### BEGIN LIBTOOL TAG CONFIG: disable-static +build_old_libs=`case $build_libtool_libs in yes) $echo no;; *) $echo yes;; esac` +# ### END LIBTOOL TAG CONFIG: disable-static # Local Variables: # mode:shell-script diff --git a/apt/buildlib/tools.m4 b/apt/buildlib/tools.m4 index 67ea1cc..21ac652 100644 --- a/apt/buildlib/tools.m4 +++ b/apt/buildlib/tools.m4 @@ -1,4 +1,4 @@ -AC_DEFUN(ah_HAVE_GETCONF, +AC_DEFUN([ah_HAVE_GETCONF], [AC_ARG_WITH(getconf, [ --with-getconf Enable automagical buildtime configuration], [if test "$withval" = "yes"; then @@ -14,7 +14,7 @@ AC_DEFUN(ah_HAVE_GETCONF, ]) dnl ah_GET_CONF(variable, value ..., [default]) -AC_DEFUN(ah_GET_GETCONF, +AC_DEFUN([ah_GET_GETCONF], [AC_REQUIRE([ah_HAVE_GETCONF]) if test ! -z "$GETCONF";then old_args="[$]@" @@ -28,7 +28,7 @@ AC_DEFUN(ah_GET_GETCONF, eval $1="$3" fi ]) -AC_DEFUN(ah_NUM_CPUS, +AC_DEFUN([ah_NUM_CPUS], [AC_MSG_CHECKING([number of cpus]) AC_ARG_WITH(cpus, [ --with-cpus The number of cpus to be used for building(see --with-procs, default 1)], @@ -56,7 +56,7 @@ AC_DEFUN(ah_NUM_CPUS, AC_MSG_RESULT([$ah_NUM_CPUS_msg]) AC_SUBST(NUM_CPUS) ]) -AC_DEFUN(ah_PROC_MULTIPLY, +AC_DEFUN([ah_PROC_MULTIPLY], [AC_REQUIRE([ah_NUM_CPUS]) AC_MSG_CHECKING([processor multiplier]) AC_ARG_WITH(proc-multiply, @@ -72,7 +72,7 @@ AC_DEFUN(ah_PROC_MULTIPLY, AC_SUBST(PROC_MULTIPLY) ]) -AC_DEFUN(ah_NUM_PROCS, +AC_DEFUN([ah_NUM_PROCS], [AC_REQUIRE([ah_PROC_MULTIPLY]) AC_REQUIRE([ah_NUM_CPUS]) AC_MSG_CHECKING([number of processes to run during make]) @@ -89,7 +89,7 @@ AC_DEFUN(ah_NUM_PROCS, AC_SUBST(NUM_PROCS) ]) -AC_DEFUN(rc_GLIBC_VER, +AC_DEFUN([rc_GLIBC_VER], [AC_MSG_CHECKING([glibc version]) dummy=if$$ cat <<_GLIBC_>$dummy.c @@ -111,7 +111,7 @@ _GLIBC_ AC_SUBST(GLIBC_VER) ]) -AC_DEFUN(rc_LIBSTDCPP_VER, +AC_DEFUN([rc_LIBSTDCPP_VER], [AC_MSG_CHECKING([libstdc++ version]) dummy=if$$ cat <<_LIBSTDCPP_>$dummy.cc @@ -138,7 +138,7 @@ _LIBSTDCPP_ AC_SUBST(LIBSTDCPP_VER) ]) -AC_DEFUN(ah_GCC3DEP,[ +AC_DEFUN([ah_GCC3DEP],[ AC_MSG_CHECKING(if $CXX -MD works) touch gcc3dep.cc ${CXX-c++} -MD -o gcc3dep_test.o -c gcc3dep.cc diff --git a/apt/cmdline/Makefile.in b/apt/cmdline/Makefile.in index 3abb7f5..4a54921 100644 --- a/apt/cmdline/Makefile.in +++ b/apt/cmdline/Makefile.in @@ -1,8 +1,8 @@ -# Makefile.in generated by automake 1.7.9 from Makefile.am. +# Makefile.in generated by automake 1.9.5 from Makefile.am. # @configure_input@ -# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 -# Free Software Foundation, Inc. +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -14,6 +14,8 @@ @SET_MAKE@ +SOURCES = $(apt_cache_SOURCES) $(apt_cache_static_SOURCES) $(apt_cdrom_SOURCES) $(apt_cdrom_static_SOURCES) $(apt_config_SOURCES) $(apt_get_SOURCES) $(apt_get_static_SOURCES) $(apt_shell_SOURCES) + srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ @@ -21,7 +23,6 @@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = .. - am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 @@ -35,14 +36,115 @@ POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : +build_triplet = @build@ host_triplet = @host@ +bin_PROGRAMS = apt-get$(EXEEXT) apt-cache$(EXEEXT) apt-cdrom$(EXEEXT) \ + apt-config$(EXEEXT) $(am__EXEEXT_1) $(am__EXEEXT_2) @COMPILE_APTSHELL_TRUE@am__append_1 = apt-shell @COMPILE_STATIC_TRUE@am__append_2 = apt-get-static apt-cache-static apt-cdrom-static +subdir = cmdline +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/buildlib/tools.m4 \ + $(top_srcdir)/m4/codeset.m4 $(top_srcdir)/m4/gettext.m4 \ + $(top_srcdir)/m4/glibc21.m4 $(top_srcdir)/m4/iconv.m4 \ + $(top_srcdir)/m4/intdiv0.m4 $(top_srcdir)/m4/inttypes-pri.m4 \ + $(top_srcdir)/m4/inttypes.m4 $(top_srcdir)/m4/inttypes_h.m4 \ + $(top_srcdir)/m4/lcmessage.m4 $(top_srcdir)/m4/lib-ld.m4 \ + $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ + $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/stdint_h.m4 \ + $(top_srcdir)/m4/uintmax_t.m4 $(top_srcdir)/m4/ulonglong.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(SHELL) $(top_srcdir)/buildlib/mkinstalldirs +CONFIG_HEADER = $(top_builddir)/include/config.h +CONFIG_CLEAN_FILES = +@COMPILE_APTSHELL_TRUE@am__EXEEXT_1 = apt-shell$(EXEEXT) +@COMPILE_STATIC_TRUE@am__EXEEXT_2 = apt-get-static$(EXEEXT) \ +@COMPILE_STATIC_TRUE@ apt-cache-static$(EXEEXT) \ +@COMPILE_STATIC_TRUE@ apt-cdrom-static$(EXEEXT) +am__installdirs = "$(DESTDIR)$(bindir)" +binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) +PROGRAMS = $(bin_PROGRAMS) +am_apt_cache_OBJECTS = apt-cache.$(OBJEXT) +apt_cache_OBJECTS = $(am_apt_cache_OBJECTS) +apt_cache_LDADD = $(LDADD) +am__DEPENDENCIES_1 = +apt_cache_DEPENDENCIES = ../apt-pkg/libapt-pkg.la \ + $(am__DEPENDENCIES_1) +am__objects_1 = apt-cache.$(OBJEXT) +am_apt_cache_static_OBJECTS = $(am__objects_1) +apt_cache_static_OBJECTS = $(am_apt_cache_static_OBJECTS) +apt_cache_static_LDADD = $(LDADD) +apt_cache_static_DEPENDENCIES = ../apt-pkg/libapt-pkg.la \ + $(am__DEPENDENCIES_1) +am_apt_cdrom_OBJECTS = apt-cdrom.$(OBJEXT) rpmindexcopy.$(OBJEXT) +apt_cdrom_OBJECTS = $(am_apt_cdrom_OBJECTS) +apt_cdrom_LDADD = $(LDADD) +apt_cdrom_DEPENDENCIES = ../apt-pkg/libapt-pkg.la \ + $(am__DEPENDENCIES_1) +am__objects_2 = apt-cdrom.$(OBJEXT) rpmindexcopy.$(OBJEXT) +am_apt_cdrom_static_OBJECTS = $(am__objects_2) +apt_cdrom_static_OBJECTS = $(am_apt_cdrom_static_OBJECTS) +apt_cdrom_static_LDADD = $(LDADD) +apt_cdrom_static_DEPENDENCIES = ../apt-pkg/libapt-pkg.la \ + $(am__DEPENDENCIES_1) +am_apt_config_OBJECTS = apt-config.$(OBJEXT) +apt_config_OBJECTS = $(am_apt_config_OBJECTS) +apt_config_LDADD = $(LDADD) +apt_config_DEPENDENCIES = ../apt-pkg/libapt-pkg.la \ + $(am__DEPENDENCIES_1) +am_apt_get_OBJECTS = apt-get.$(OBJEXT) acqprogress.$(OBJEXT) +apt_get_OBJECTS = $(am_apt_get_OBJECTS) +apt_get_LDADD = $(LDADD) +apt_get_DEPENDENCIES = ../apt-pkg/libapt-pkg.la $(am__DEPENDENCIES_1) +am__objects_3 = apt-get.$(OBJEXT) acqprogress.$(OBJEXT) +am_apt_get_static_OBJECTS = $(am__objects_3) +apt_get_static_OBJECTS = $(am_apt_get_static_OBJECTS) +apt_get_static_LDADD = $(LDADD) +apt_get_static_DEPENDENCIES = ../apt-pkg/libapt-pkg.la \ + $(am__DEPENDENCIES_1) +am_apt_shell_OBJECTS = apt-shell.$(OBJEXT) acqprogress.$(OBJEXT) +apt_shell_OBJECTS = $(am_apt_shell_OBJECTS) +am__DEPENDENCIES_2 = ../apt-pkg/libapt-pkg.la $(am__DEPENDENCIES_1) +apt_shell_DEPENDENCIES = $(am__DEPENDENCIES_2) +DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/include +depcomp = $(SHELL) $(top_srcdir)/buildlib/depcomp +am__depfiles_maybe = depfiles +CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) +LTCXXCOMPILE = $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CXXFLAGS) $(CXXFLAGS) +CXXLD = $(CXX) +CXXLINK = $(LIBTOOL) --tag=CXX --mode=link $(CXXLD) $(AM_CXXFLAGS) \ + $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ + $(AM_LDFLAGS) $(LDFLAGS) -o $@ +SOURCES = $(apt_cache_SOURCES) $(apt_cache_static_SOURCES) \ + $(apt_cdrom_SOURCES) $(apt_cdrom_static_SOURCES) \ + $(apt_config_SOURCES) $(apt_get_SOURCES) \ + $(apt_get_static_SOURCES) $(apt_shell_SOURCES) +DIST_SOURCES = $(apt_cache_SOURCES) $(apt_cache_static_SOURCES) \ + $(apt_cdrom_SOURCES) $(apt_cdrom_static_SOURCES) \ + $(apt_config_SOURCES) $(apt_get_SOURCES) \ + $(apt_get_static_SOURCES) $(apt_shell_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ +AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ @@ -61,6 +163,7 @@ COMPILE_STATIC_TRUE = @COMPILE_STATIC_TRUE@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ +CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ @@ -74,6 +177,8 @@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ +F77 = @F77@ +FFLAGS = @FFLAGS@ GENCAT = @GENCAT@ GLIBC21 = @GLIBC21@ GLIBC_VER = @GLIBC_VER@ @@ -136,8 +241,10 @@ VERSION = @VERSION@ WITH_LUA_FALSE = @WITH_LUA_FALSE@ WITH_LUA_TRUE = @WITH_LUA_TRUE@ XGETTEXT = @XGETTEXT@ +ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ ac_ct_RANLIB = @ac_ct_RANLIB@ ac_ct_STRIP = @ac_ct_STRIP@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ @@ -147,6 +254,8 @@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ @@ -167,6 +276,7 @@ libdir = @libdir@ libexecdir = @libexecdir@ localstatedir = @localstatedir@ mandir = @mandir@ +mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ prefix = @prefix@ program_transform_name = @program_transform_name@ @@ -174,152 +284,64 @@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ - EXTRA_DIST = indexcopy.cc indexcopy.h - -bin_PROGRAMS = apt-get apt-cache apt-cdrom apt-config $(am__append_1) $(am__append_2) - LDADD = ../apt-pkg/libapt-pkg.la $(RPMLIBS) - apt_get_SOURCES = apt-get.cc acqprogress.cc acqprogress.h apt_cache_SOURCES = apt-cache.cc apt_shell_SOURCES = apt-shell.cc acqprogress.cc acqprogress.h apt_shell_LDADD = $(LDADD) -lreadline -lncurses apt_config_SOURCES = apt-config.cc apt_cdrom_SOURCES = apt-cdrom.cc rpmindexcopy.cc rpmindexcopy.h - apt_get_static_SOURCES = $(apt_get_SOURCES) apt_get_static_LDFLAGS = -all-static apt_cache_static_SOURCES = $(apt_cache_SOURCES) apt_cache_static_LDFLAGS = -all-static apt_cdrom_static_SOURCES = $(apt_cdrom_SOURCES) apt_cdrom_static_LDFLAGS = -all-static -subdir = cmdline -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -mkinstalldirs = $(SHELL) $(top_srcdir)/buildlib/mkinstalldirs -CONFIG_HEADER = $(top_builddir)/include/config.h -CONFIG_CLEAN_FILES = -@COMPILE_APTSHELL_FALSE@@COMPILE_STATIC_TRUE@bin_PROGRAMS = \ -@COMPILE_APTSHELL_FALSE@@COMPILE_STATIC_TRUE@ apt-get$(EXEEXT) \ -@COMPILE_APTSHELL_FALSE@@COMPILE_STATIC_TRUE@ apt-cache$(EXEEXT) \ -@COMPILE_APTSHELL_FALSE@@COMPILE_STATIC_TRUE@ apt-cdrom$(EXEEXT) \ -@COMPILE_APTSHELL_FALSE@@COMPILE_STATIC_TRUE@ apt-config$(EXEEXT) \ -@COMPILE_APTSHELL_FALSE@@COMPILE_STATIC_TRUE@ apt-get-static$(EXEEXT) \ -@COMPILE_APTSHELL_FALSE@@COMPILE_STATIC_TRUE@ apt-cache-static$(EXEEXT) \ -@COMPILE_APTSHELL_FALSE@@COMPILE_STATIC_TRUE@ apt-cdrom-static$(EXEEXT) -@COMPILE_APTSHELL_FALSE@@COMPILE_STATIC_FALSE@bin_PROGRAMS = \ -@COMPILE_APTSHELL_FALSE@@COMPILE_STATIC_FALSE@ apt-get$(EXEEXT) \ -@COMPILE_APTSHELL_FALSE@@COMPILE_STATIC_FALSE@ apt-cache$(EXEEXT) \ -@COMPILE_APTSHELL_FALSE@@COMPILE_STATIC_FALSE@ apt-cdrom$(EXEEXT) \ -@COMPILE_APTSHELL_FALSE@@COMPILE_STATIC_FALSE@ apt-config$(EXEEXT) -@COMPILE_APTSHELL_TRUE@@COMPILE_STATIC_TRUE@bin_PROGRAMS = \ -@COMPILE_APTSHELL_TRUE@@COMPILE_STATIC_TRUE@ apt-get$(EXEEXT) \ -@COMPILE_APTSHELL_TRUE@@COMPILE_STATIC_TRUE@ apt-cache$(EXEEXT) \ -@COMPILE_APTSHELL_TRUE@@COMPILE_STATIC_TRUE@ apt-cdrom$(EXEEXT) \ -@COMPILE_APTSHELL_TRUE@@COMPILE_STATIC_TRUE@ apt-config$(EXEEXT) \ -@COMPILE_APTSHELL_TRUE@@COMPILE_STATIC_TRUE@ apt-shell$(EXEEXT) \ -@COMPILE_APTSHELL_TRUE@@COMPILE_STATIC_TRUE@ apt-get-static$(EXEEXT) \ -@COMPILE_APTSHELL_TRUE@@COMPILE_STATIC_TRUE@ apt-cache-static$(EXEEXT) \ -@COMPILE_APTSHELL_TRUE@@COMPILE_STATIC_TRUE@ apt-cdrom-static$(EXEEXT) -@COMPILE_APTSHELL_TRUE@@COMPILE_STATIC_FALSE@bin_PROGRAMS = \ -@COMPILE_APTSHELL_TRUE@@COMPILE_STATIC_FALSE@ apt-get$(EXEEXT) \ -@COMPILE_APTSHELL_TRUE@@COMPILE_STATIC_FALSE@ apt-cache$(EXEEXT) \ -@COMPILE_APTSHELL_TRUE@@COMPILE_STATIC_FALSE@ apt-cdrom$(EXEEXT) \ -@COMPILE_APTSHELL_TRUE@@COMPILE_STATIC_FALSE@ apt-config$(EXEEXT) \ -@COMPILE_APTSHELL_TRUE@@COMPILE_STATIC_FALSE@ apt-shell$(EXEEXT) -PROGRAMS = $(bin_PROGRAMS) - -am_apt_cache_OBJECTS = apt-cache.$(OBJEXT) -apt_cache_OBJECTS = $(am_apt_cache_OBJECTS) -apt_cache_LDADD = $(LDADD) -apt_cache_DEPENDENCIES = ../apt-pkg/libapt-pkg.la -apt_cache_LDFLAGS = -am__objects_1 = apt-cache.$(OBJEXT) -am_apt_cache_static_OBJECTS = $(am__objects_1) -apt_cache_static_OBJECTS = $(am_apt_cache_static_OBJECTS) -apt_cache_static_LDADD = $(LDADD) -apt_cache_static_DEPENDENCIES = ../apt-pkg/libapt-pkg.la -am_apt_cdrom_OBJECTS = apt-cdrom.$(OBJEXT) rpmindexcopy.$(OBJEXT) -apt_cdrom_OBJECTS = $(am_apt_cdrom_OBJECTS) -apt_cdrom_LDADD = $(LDADD) -apt_cdrom_DEPENDENCIES = ../apt-pkg/libapt-pkg.la -apt_cdrom_LDFLAGS = -am__objects_2 = apt-cdrom.$(OBJEXT) rpmindexcopy.$(OBJEXT) -am_apt_cdrom_static_OBJECTS = $(am__objects_2) -apt_cdrom_static_OBJECTS = $(am_apt_cdrom_static_OBJECTS) -apt_cdrom_static_LDADD = $(LDADD) -apt_cdrom_static_DEPENDENCIES = ../apt-pkg/libapt-pkg.la -am_apt_config_OBJECTS = apt-config.$(OBJEXT) -apt_config_OBJECTS = $(am_apt_config_OBJECTS) -apt_config_LDADD = $(LDADD) -apt_config_DEPENDENCIES = ../apt-pkg/libapt-pkg.la -apt_config_LDFLAGS = -am_apt_get_OBJECTS = apt-get.$(OBJEXT) acqprogress.$(OBJEXT) -apt_get_OBJECTS = $(am_apt_get_OBJECTS) -apt_get_LDADD = $(LDADD) -apt_get_DEPENDENCIES = ../apt-pkg/libapt-pkg.la -apt_get_LDFLAGS = -am__objects_3 = apt-get.$(OBJEXT) acqprogress.$(OBJEXT) -am_apt_get_static_OBJECTS = $(am__objects_3) -apt_get_static_OBJECTS = $(am_apt_get_static_OBJECTS) -apt_get_static_LDADD = $(LDADD) -apt_get_static_DEPENDENCIES = ../apt-pkg/libapt-pkg.la -am_apt_shell_OBJECTS = apt-shell.$(OBJEXT) acqprogress.$(OBJEXT) -apt_shell_OBJECTS = $(am_apt_shell_OBJECTS) -apt_shell_DEPENDENCIES = ../apt-pkg/libapt-pkg.la -apt_shell_LDFLAGS = - -DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/include -depcomp = $(SHELL) $(top_srcdir)/buildlib/depcomp -am__depfiles_maybe = depfiles -@AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/acqprogress.Po \ -@AMDEP_TRUE@ ./$(DEPDIR)/apt-cache.Po ./$(DEPDIR)/apt-cdrom.Po \ -@AMDEP_TRUE@ ./$(DEPDIR)/apt-config.Po ./$(DEPDIR)/apt-get.Po \ -@AMDEP_TRUE@ ./$(DEPDIR)/apt-shell.Po \ -@AMDEP_TRUE@ ./$(DEPDIR)/rpmindexcopy.Po -CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ - $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -LTCXXCOMPILE = $(LIBTOOL) --mode=compile $(CXX) $(DEFS) \ - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ - $(AM_CXXFLAGS) $(CXXFLAGS) -CXXLD = $(CXX) -CXXLINK = $(LIBTOOL) --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) \ - $(AM_LDFLAGS) $(LDFLAGS) -o $@ -COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ - $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) \ - $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -CCLD = $(CC) -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ - $(AM_LDFLAGS) $(LDFLAGS) -o $@ -DIST_SOURCES = $(apt_cache_SOURCES) $(apt_cache_static_SOURCES) \ - $(apt_cdrom_SOURCES) $(apt_cdrom_static_SOURCES) \ - $(apt_config_SOURCES) $(apt_get_SOURCES) \ - $(apt_get_static_SOURCES) $(apt_shell_SOURCES) -DIST_COMMON = $(srcdir)/Makefile.in Makefile.am -SOURCES = $(apt_cache_SOURCES) $(apt_cache_static_SOURCES) $(apt_cdrom_SOURCES) $(apt_cdrom_static_SOURCES) $(apt_config_SOURCES) $(apt_get_SOURCES) $(apt_get_static_SOURCES) $(apt_shell_SOURCES) - all: all-am .SUFFIXES: .SUFFIXES: .cc .lo .o .obj -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign cmdline/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign cmdline/Makefile -Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in $(top_builddir)/config.status - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe) -binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) - $(mkinstalldirs) $(DESTDIR)$(bindir) + test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)" @list='$(bin_PROGRAMS)'; for p in $$list; do \ p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ if test -f $$p \ || test -f $$p1 \ ; then \ f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ - echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f"; \ - $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f || exit 1; \ + echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \ + $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \ else :; fi; \ done @@ -327,8 +349,8 @@ uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(bin_PROGRAMS)'; for p in $$list; do \ f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ - echo " rm -f $(DESTDIR)$(bindir)/$$f"; \ - rm -f $(DESTDIR)$(bindir)/$$f; \ + echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \ + rm -f "$(DESTDIR)$(bindir)/$$f"; \ done clean-binPROGRAMS: @@ -363,7 +385,7 @@ apt-shell$(EXEEXT): $(apt_shell_OBJECTS) $(apt_shell_DEPENDENCIES) $(CXXLINK) $(apt_shell_LDFLAGS) $(apt_shell_OBJECTS) $(apt_shell_LDADD) $(LIBS) mostlyclean-compile: - -rm -f *.$(OBJEXT) core *.core + -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @@ -377,37 +399,28 @@ distclean-compile: @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rpmindexcopy.Po@am__quote@ .cc.o: -@am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \ -@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \ -@am__fastdepCXX_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi +@am__fastdepCXX_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`; \ +@am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$$depbase.Tpo" -c -o $@ $<; \ +@am__fastdepCXX_TRUE@ then mv -f "$$depbase.Tpo" "$$depbase.Po"; else rm -f "$$depbase.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$< +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< .cc.obj: -@am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o $@ `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi`; \ -@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \ -@am__fastdepCXX_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi +@am__fastdepCXX_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`; \ +@am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$$depbase.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ +@am__fastdepCXX_TRUE@ then mv -f "$$depbase.Tpo" "$$depbase.Po"; else rm -f "$$depbase.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi` +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cc.lo: -@am__fastdepCXX_TRUE@ if $(LTCXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \ -@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; \ -@am__fastdepCXX_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi +@am__fastdepCXX_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`; \ +@am__fastdepCXX_TRUE@ if $(LTCXXCOMPILE) -MT $@ -MD -MP -MF "$$depbase.Tpo" -c -o $@ $<; \ +@am__fastdepCXX_TRUE@ then mv -f "$$depbase.Tpo" "$$depbase.Plo"; else rm -f "$$depbase.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='$(DEPDIR)/$*.Plo' tmpdepfile='$(DEPDIR)/$*.TPlo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$< +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo @@ -419,14 +432,6 @@ distclean-libtool: -rm -f libtool uninstall-info-am: -ETAGS = etags -ETAGSFLAGS = - -CTAGS = ctags -CTAGSFLAGS = - -tags: TAGS - ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ @@ -435,6 +440,7 @@ ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique +tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) @@ -446,10 +452,11 @@ TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ - test -z "$(ETAGS_ARGS)$$tags$$unique" \ - || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$tags $$unique - + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) @@ -472,10 +479,6 @@ GTAGS: distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) - -top_distdir = .. -distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ @@ -489,7 +492,7 @@ distdir: $(DISTFILES) dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ - $(mkinstalldirs) "$(distdir)$$dir"; \ + $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ @@ -507,9 +510,10 @@ distdir: $(DISTFILES) check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) - installdirs: - $(mkinstalldirs) $(DESTDIR)$(bindir) + for dir in "$(DESTDIR)$(bindir)"; do \ + test -z "$$dir" || $(mkdir_p) "$$dir"; \ + done install: install-am install-exec: install-exec-am install-data: install-data-am @@ -529,7 +533,7 @@ mostlyclean-generic: clean-generic: distclean-generic: - -rm -f $(CONFIG_CLEAN_FILES) + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @@ -548,6 +552,8 @@ dvi: dvi-am dvi-am: +html: html-am + info: info-am info-am: @@ -585,14 +591,14 @@ uninstall-am: uninstall-binPROGRAMS uninstall-info-am .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \ clean-generic clean-libtool ctags distclean distclean-compile \ distclean-generic distclean-libtool distclean-tags distdir dvi \ - dvi-am info info-am install install-am install-binPROGRAMS \ - install-data install-data-am install-exec install-exec-am \ - install-info install-info-am install-man install-strip \ - installcheck installcheck-am installdirs maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-compile \ - mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ - tags uninstall uninstall-am uninstall-binPROGRAMS \ - uninstall-info-am + dvi-am html html-am info info-am install install-am \ + install-binPROGRAMS install-data install-data-am install-exec \ + install-exec-am install-info install-info-am install-man \ + install-strip installcheck installcheck-am installdirs \ + maintainer-clean maintainer-clean-generic mostlyclean \ + mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ + pdf pdf-am ps ps-am tags uninstall uninstall-am \ + uninstall-binPROGRAMS uninstall-info-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. diff --git a/apt/cmdline/acqprogress.cc b/apt/cmdline/acqprogress.cc index dbc8ade..5a6198d 100644 --- a/apt/cmdline/acqprogress.cc +++ b/apt/cmdline/acqprogress.cc @@ -18,6 +18,8 @@ #include #include +#include +#include #include /*}}}*/ @@ -277,6 +279,62 @@ bool AcqTextStatus::MediaChange(string Media,string Drive) while (C != '\n' && C != '\r') read(STDIN_FILENO,&C,1); + Update = true; + return true; +} + /*}}}*/ +// AcqTextStatus::Authenticate - Authenticate the user /*{{{*/ +// --------------------------------------------------------------------- +/* Prompt for a username and password */ +bool AcqTextStatus::Authenticate(string Desc,string &User,string &Pass) +{ + if (Quiet > 0) + return false; + + cout << '\r' << BlankLine << '\r'; + + ioprintf(cout,_("Please login to %s\nUsername: "), Desc.c_str()); + cout << flush; + + char S[1024]; + char C = 0; + size_t idx = 0; + while (C != '\n' && C != '\r' && idx < (sizeof(S) - 1)) + { + read(STDIN_FILENO,&C,1); + S[idx++] = C; + } + S[--idx] = '\0'; + User = S; + + ioprintf(cout,_("Password: ")); + cout << flush; + + // Turn off echo for entering the password + struct termios TermIO; + tcgetattr(STDIN_FILENO, &TermIO); + + struct termios TermIO_noecho; + TermIO_noecho = TermIO; + TermIO_noecho.c_lflag &= !ECHO; + tcsetattr(STDIN_FILENO, TCSANOW, &TermIO_noecho); + + C = 0; + idx = 0; + while (C != '\n' && C != '\r' && idx < (sizeof(S) - 1)) + { + read(STDIN_FILENO,&C,1); + S[idx++] = C; + } + S[--idx] = '\0'; + Pass = S; + + // Turn echo back on + tcsetattr(STDIN_FILENO, TCSANOW, &TermIO); + + ioprintf(cout,_("\n")); + cout << flush; + Update = true; return true; } diff --git a/apt/cmdline/acqprogress.h b/apt/cmdline/acqprogress.h index 48f90ae..ba77b44 100644 --- a/apt/cmdline/acqprogress.h +++ b/apt/cmdline/acqprogress.h @@ -22,6 +22,7 @@ class AcqTextStatus : public pkgAcquireStatus public: virtual bool MediaChange(string Media,string Drive); + virtual bool Authenticate(string Desc,string &User,string &Pass); virtual void IMSHit(pkgAcquire::ItemDesc &Itm); virtual void Fetch(pkgAcquire::ItemDesc &Itm); virtual void Done(pkgAcquire::ItemDesc &Itm); diff --git a/apt/cmdline/apt-cache.cc b/apt/cmdline/apt-cache.cc index 9b9616a..6240edc 100644 --- a/apt/cmdline/apt-cache.cc +++ b/apt/cmdline/apt-cache.cc @@ -1569,11 +1569,14 @@ bool Search(CommandLine &CmdL) bool Match = true; if (J->NameMatch == false) { - string LongDesc = P.LongDesc(); + string LongDesc = P.LongDesc(); + // CNC 2004-04-10 + string ShortDesc = P.ShortDesc(); Match = NumPatterns != 0; for (unsigned I = 0; I != NumPatterns; I++) { - if (regexec(&Patterns[I],LongDesc.c_str(),0,0,0) == 0) + if (regexec(&Patterns[I],LongDesc.c_str(),0,0,0) == 0 || + regexec(&Patterns[I],ShortDesc.c_str(),0,0,0) == 0) Match &= true; else Match = false; @@ -1624,6 +1627,27 @@ bool ShowPackage(CommandLine &CmdL) ++found; + // CNC:2004-07-09 + // If it's a virtual package, require user to select similarly to apt-get + if (Pkg.VersionList().end() == true and Pkg->ProvidesList != 0) + { + ioprintf(cout, _("Package %s is a virtual package provided by:\n"), + Pkg.Name()); + for (pkgCache::PrvIterator Prv = Pkg.ProvidesList(); + Prv.end() == false; Prv++) + { + pkgCache::VerIterator V = Plcy.GetCandidateVer(Prv.OwnerPkg()); + if (V.end() == true) + continue; + if (V != Prv.OwnerVer()) + continue; + cout << " " << Prv.OwnerPkg().Name() << " " << V.VerStr() << endl; + } + cout << _("You should explicitly select one to show.") << endl; + _error->Error(_("Package %s is a virtual package with multiple providers."), Pkg.Name()); + return false; + } + // Find the proper version to use. if (_config->FindB("APT::Cache::AllVersions","true") == true) { @@ -1809,7 +1833,11 @@ bool Policy(CommandLine &CmdL) cout << " *** " << V.VerStr(); else cout << " " << V.VerStr(); - cout << " " << Plcy.GetPriority(Pkg) << endl; + // CNC:2004-05-29 + if (Plcy.GetCandidateVer(Pkg) == V) + cout << " " << Plcy.GetPriority(Pkg) << endl; + else + cout << " 0" << endl; for (pkgCache::VerFileIterator VF = V.FileList(); VF.end() == false; VF++) { // Locate the associated index files so we can derive a description diff --git a/apt/cmdline/apt-get.cc b/apt/cmdline/apt-get.cc index 2cb787e..c0749e6 100644 --- a/apt/cmdline/apt-get.cc +++ b/apt/cmdline/apt-get.cc @@ -825,10 +825,10 @@ bool CacheFile::CheckDeps(bool AllowBroken) } else { - c1out << _("You might want to run `apt-get -f install' to correct these.") << endl; + c1out << _("You might want to run `apt-get --fix-broken install' to correct these.") << endl; ShowBroken(c1out,*this,true); - return _error->Error(_("Unmet dependencies. Try using -f.")); + return _error->Error(_("Unmet dependencies. Try using --fix-broken.")); } return true; @@ -1213,7 +1213,7 @@ bool TryToInstall(pkgCache::PkgIterator Pkg,pkgDepCache &Cache, unsigned int &ExpectedInst,bool AllowFail = true) { // CNC:2004-03-03 - Improved virtual package handling. - if (Cache[Pkg].CandidateVer == 0 && Pkg->ProvidesList != 0) + if (Pkg->VersionList == 0 && Pkg->ProvidesList != 0) { vector GoodSolutions; for (pkgCache::PrvIterator Prv = Pkg.ProvidesList(); @@ -1605,6 +1605,18 @@ pkgSrcRecords::Parser *FindSrc(const char *Name,pkgRecords &Recs, // DoUpdate - Update the package lists /*{{{*/ // --------------------------------------------------------------------- /* */ + +// CNC:2004-04-19 +class UpdateLogCleaner : public pkgArchiveCleaner +{ + protected: + virtual void Erase(const char *File,string Pkg,string Ver,struct stat &St) + { + c1out << "Del " << Pkg << " " << Ver << " [" << SizeToStr(St.st_size) << "B]" << endl; + unlink(File); + }; +}; + bool DoUpdate(CommandLine &CmdL) { // CNC:2003-03-27 @@ -1738,6 +1750,15 @@ bool DoUpdate(CommandLine &CmdL) _lua->RunScripts("Scripts::AptGet::Update::Post"); #endif #endif + + // CNC:2004-04-19 + if (Failed == false && _config->FindB("APT::Get::Archive-Cleanup",true) == true) + { + UpdateLogCleaner Cleaner; + Cleaner.Go(_config->FindDir("Dir::Cache::archives"), *Cache); + Cleaner.Go(_config->FindDir("Dir::Cache::archives") + "partial/", + *Cache); + } if (Failed == true) return _error->Error(_("Some index files failed to download, they have been ignored, or old ones used instead.")); @@ -2037,10 +2058,10 @@ bool DoInstall(CommandLine &CmdL) packages */ if (BrokenFix == true && Cache->BrokenCount() != 0) { - c1out << _("You might want to run `apt-get -f install' to correct these:") << endl; + c1out << _("You might want to run `apt-get --fix-broken install' to correct these:") << endl; ShowBroken(c1out,Cache,false); - return _error->Error(_("Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).")); + return _error->Error(_("Unmet dependencies. Try 'apt-get --fix-broken install' with no packages (or specify a solution).")); } // Call the scored problem resolver @@ -2093,12 +2114,13 @@ bool DoInstall(CommandLine &CmdL) if ((*Cache)[I].Install() == false) continue; - const char **J; - for (J = CmdL.FileList + 1; *J != 0; J++) - if (strcmp(*J,I.Name()) == 0) + // CNC:2004-06-15 + const char **K; + for (K = CmdL.FileList + 1; *K != 0; K++) + if (strcmp(*K,I.Name()) == 0) break; - if (*J == 0) { + if (*K == 0) { List += string(I.Name()) + " "; VersionsList += string(Cache[I].CandVersion) + "\n"; } @@ -2428,8 +2450,38 @@ bool DoSource(CommandLine &CmdL) unsigned J = 0; for (const char **I = CmdL.FileList + 1; *I != 0; I++, J++) { + // CNC:2004-09-23 - Try to handle unknown file items. + unsigned int Length = strlen(*I); + char S[300]; + if (Length >= sizeof(S)) + continue; + strcpy(S,*I); + + if (S[0] == '/') + { + pkgRecords Recs(Cache); + if (_error->PendingError() == true) + return false; + pkgCache::PkgIterator Pkg = (*Cache).PkgBegin(); + for (; Pkg.end() == false; Pkg++) + { + // Should we try on all versions? + pkgCache::VerIterator Ver = (*Cache)[Pkg].CandidateVerIter(*Cache); + if (Ver.end() == false) + { + pkgRecords::Parser &Parse = Recs.Lookup(Ver.FileList()); + if (Parse.HasFile(S)) { + ioprintf(c1out,_("Selecting %s for '%s'\n"), + Pkg.Name(),S); + strcpy(S, Pkg.Name()); + break; + } + } + } + } + string Src; - pkgSrcRecords::Parser *Last = FindSrc(*I,Recs,SrcRecs,Src,*Cache); + pkgSrcRecords::Parser *Last = FindSrc(S,Recs,SrcRecs,Src,*Cache); if (Last == 0) return _error->Error(_("Unable to find a source package for %s"),Src.c_str()); @@ -2643,7 +2695,9 @@ bool DoSource(CommandLine &CmdL) bool DoBuildDep(CommandLine &CmdL) { CacheFile Cache; - if (Cache.Open(true) == false) + // CNC:2004-04-06 + if (Cache.OpenForInstall() == false || + Cache.CheckDeps() == false) return false; if (CmdL.FileSize() <= 1) @@ -2892,8 +2946,12 @@ bool DoBuildDep(CommandLine &CmdL) // Now we check the state of the packages, if (Cache->BrokenCount() != 0) + { + // CNC:2004-07-05 + ShowBroken(c1out, Cache, false); return _error->Error(_("Some broken packages were found while trying to process build-dependencies for %s.\n" - "You might want to run `apt-get -f install' to correct these."),*I); + "You might want to run `apt-get --fix-broken install' to correct these."),*I); + } } if (InstallPackages(Cache, false, true) == false) diff --git a/apt/cmdline/apt-shell.cc b/apt/cmdline/apt-shell.cc index 610ff3a..6d1f767 100644 --- a/apt/cmdline/apt-shell.cc +++ b/apt/cmdline/apt-shell.cc @@ -150,7 +150,7 @@ class AutoReOpenCache if ((*Cache)->CheckDeps(true) == false) { c1out << _("There are broken packages. ") << _("Run `check' to see them.") << endl; - c1out << _("You can try to fix them automatically with `install -f'.") << endl; + c1out << _("You can try to fix them automatically with `install --fix-broken'0.") << endl; } } }; @@ -930,10 +930,10 @@ bool CacheFile::CheckDeps(bool AllowBroken) } else { - c1out << _("You might want to run `install -f' to correct these.") << endl; + c1out << _("You might want to run `install --fix-broken' to correct these.") << endl; ShowBroken(c1out,*this,true); - return _error->Error(_("Unmet dependencies. Try using -f.")); + return _error->Error(_("Unmet dependencies. Try using --fix-broken.")); } return true; @@ -1328,9 +1328,9 @@ bool TryToInstall(pkgCache::PkgIterator Pkg,pkgDepCache &Cache, } } vector GoodSolutionNames; - for (int i = 0; i != GoodSolutionNames.size(); i++) + for (int i = 0; i != GoodSolutions.size(); i++) { - pkgCache::PkgIterator GoodPkg(Cache, GoodSolutions[0]); + pkgCache::PkgIterator GoodPkg(Cache, GoodSolutions[i]); GoodSolutionNames.push_back(GoodPkg.Name()); } #ifdef WITH_LUA @@ -1339,6 +1339,7 @@ bool TryToInstall(pkgCache::PkgIterator Pkg,pkgDepCache &Cache, vector VS; _lua->SetDepCache(&Cache); _lua->SetDontFix(); + _lua->SetGlobal("virtualname", Pkg.Name()); _lua->SetGlobal("packages", GoodSolutions); _lua->SetGlobal("packagenames", GoodSolutionNames); _lua->SetGlobal("selected"); @@ -1680,6 +1681,18 @@ pkgSrcRecords::Parser *FindSrc(const char *Name,pkgRecords &Recs, // DoUpdate - Update the package lists /*{{{*/ // --------------------------------------------------------------------- /* */ + +// CNC:2004-04-19 +class UpdateLogCleaner : public pkgArchiveCleaner +{ + protected: + virtual void Erase(const char *File,string Pkg,string Ver,struct stat &St) + { + c1out << "Del " << Pkg << " " << Ver << " [" << SizeToStr(St.st_size) << "B]" << endl; + unlink(File); + }; +}; + bool DoUpdate(CommandLine &CmdL) { if (CheckHelp(CmdL) == true) @@ -1797,6 +1810,15 @@ bool DoUpdate(CommandLine &CmdL) _lua->RunScripts("Scripts::AptGet::Update::Post"); _lua->ResetCaches(); #endif + + // CNC:2004-04-19 + if (Failed == false && _config->FindB("APT::Get::Archive-Cleanup",true) == true) + { + UpdateLogCleaner Cleaner; + Cleaner.Go(_config->FindDir("Dir::Cache::archives"), *GCache); + Cleaner.Go(_config->FindDir("Dir::Cache::archives") + "partial/", + *GCache); + } if (Failed == true) return _error->Error(_("Some index files failed to download, they have been ignored, or old ones used instead.")); @@ -2114,7 +2136,7 @@ bool DoInstall(CommandLine &CmdL) ConfirmChanges(Cache, StateGuard); c1out << _("There are still broken packages. ") << _("Run `check' to see them.") << endl; - c1out << _("You can try to fix them automatically with `install -f'.") << endl; + c1out << _("You can try to fix them automatically with `install --fix-broken'.") << endl; return true; } @@ -2651,7 +2673,7 @@ bool DoBuildDep(CommandLine &CmdL) // Now we check the state of the packages, if (Cache->BrokenCount() != 0) return _error->Error(_("Some broken packages were found while trying to process build-dependencies for %s.\n" - "You might want to run `apt-get -f install' to correct these."),*I); + "You might want to run `apt-get --fix-broken install' to correct these."),*I); } ConfirmChanges(Cache, StateGuard); @@ -3430,10 +3452,13 @@ bool Search(CommandLine &CmdL) if (J->NameMatch == false) { string LongDesc = P.LongDesc(); + // CNC 2004-2004-04-10 + string ShortDesc = P.ShortDesc(); Match = NumPatterns != 0; for (unsigned I = 0; I != NumPatterns; I++) { - if (regexec(&Patterns[I],LongDesc.c_str(),0,0,0) == 0) + if (regexec(&Patterns[I],LongDesc.c_str(),0,0,0) == 0 || + regexec(&Patterns[I],ShortDesc.c_str(),0,0,0) == 0) Match &= true; else Match = false; @@ -4420,7 +4445,7 @@ int main(int argc,const char *argv[]) if (GCache->CheckDeps(true) == false) { c1out << _("There are broken packages. ") << _("Run `check' to see them.") << endl; - c1out << _("You can try to fix them automatically with `install -f'.") << endl; + c1out << _("You can try to fix them automatically with `install --fix-broken'.") << endl; } // Make a copy of the configuration. Each command will modify its @@ -4520,7 +4545,7 @@ int main(int argc,const char *argv[]) // CNC:2003-03-19 #ifdef WITH_LUA - if (HasCmdScripts == true) { + if (HasCmdScripts == true && _error->PendingError() == false) { _lua->SetDepCache(*GCache); _lua->SetGlobal("command_args", CmdL.FileList); _lua->SetGlobal("command_consume", 0.0); diff --git a/apt/configure b/apt/configure index 9301b44..42e467a 100755 --- a/apt/configure +++ b/apt/configure @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.58 for apt 0.5.15cnc6. +# Generated by GNU Autoconf 2.59 for apt 0.5.15lorg2. # # Copyright (C) 2003 Free Software Foundation, Inc. # This configure script is free software; the Free Software Foundation @@ -241,17 +241,6 @@ IFS=" $as_nl" $as_unset CDPATH -# Find the correct PATH separator. Usually this is `:', but -# DJGPP uses `;' like DOS. -if test "X${PATH_SEPARATOR+set}" != Xset; then - UNAME=${UNAME-`uname 2>/dev/null`} - case X$UNAME in - *-DOS) lt_cv_sys_path_separator=';' ;; - *) lt_cv_sys_path_separator=':' ;; - esac - PATH_SEPARATOR=$lt_cv_sys_path_separator -fi - # Check that we are running under the correct shell. SHELL=${CONFIG_SHELL-/bin/sh} @@ -270,7 +259,7 @@ if test "X$1" = X--no-reexec; then elif test "X$1" = X--fallback-echo; then # Avoid inline document here, it may be left over : -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then # Yippee, $echo works! : else @@ -282,14 +271,14 @@ if test "X$1" = X--fallback-echo; then # used as fallback echo shift cat </dev/null 2>&1 && unset CDPATH if test -z "$ECHO"; then if test "X${echo_test_string+set}" != Xset; then @@ -316,8 +305,9 @@ else # # So, first we look for a working echo in the user's PATH. - IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for dir in $PATH /usr/ucb; do + IFS="$lt_save_ifs" if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && @@ -326,7 +316,7 @@ else break fi done - IFS="$save_ifs" + IFS="$lt_save_ifs" if test "X$echo" = Xecho; then # We didn't find a better echo, so look for alternatives. @@ -400,6 +390,11 @@ fi + +tagnames=${tagnames+${tagnames},}CXX + +tagnames=${tagnames+${tagnames},}F77 + # Name of the host. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, # so uname gets run too. @@ -426,8 +421,8 @@ SHELL=${CONFIG_SHELL-/bin/sh} # Identity of this package. PACKAGE_NAME='apt' PACKAGE_TARNAME='apt' -PACKAGE_VERSION='0.5.15cnc6' -PACKAGE_STRING='apt 0.5.15cnc6' +PACKAGE_VERSION='0.5.15lorg2' +PACKAGE_STRING='apt 0.5.15lorg2' PACKAGE_BUGREPORT='' ac_unique_file="configure.in" @@ -468,7 +463,7 @@ ac_includes_default="\ # include #endif" -ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S ECHO RANLIB ac_ct_RANLIB CPP EGREP LIBTOOL CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE SOCKETLIBS PTHREADLIB RPM_PATH RPMLIBS WITH_LUA_TRUE WITH_LUA_FALSE COMPILE_STATIC_TRUE COMPILE_STATIC_FALSE COMPILE_APTSHELL_TRUE COMPILE_APTSHELL_FALSE NEED_INTTYPES_H_TRUE NEED_INTTYPES_H_FALSE NEED_STATVFS_H_TRUE NEED_STATVFS_H_FALSE HAVE_TIMEGM NEED_SOCKLEN_T_DEFINE NEED_NETDB_H_TRUE NEED_NETDB_H_FALSE DOCBOOK2MAN COMPILE_MANPAGES_TRUE COMPILE_MANPAGES_FALSE MKINSTALLDIRS MSGFMT GMSGFMT XGETTEXT MSGMERGE ALLOCA GLIBC21 LIBICONV LTLIBICONV INTLBISON USE_NLS BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT INTLOBJS DATADIRNAME INSTOBJEXT GENCAT INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB GLIBC_VER LIBSTDCPP_VER LIBOBJS LTLIBOBJS' +ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL SOCKETLIBS PTHREADLIB RPM_PATH RPMLIBS WITH_LUA_TRUE WITH_LUA_FALSE COMPILE_STATIC_TRUE COMPILE_STATIC_FALSE COMPILE_APTSHELL_TRUE COMPILE_APTSHELL_FALSE NEED_INTTYPES_H_TRUE NEED_INTTYPES_H_FALSE NEED_STATVFS_H_TRUE NEED_STATVFS_H_FALSE HAVE_TIMEGM NEED_SOCKLEN_T_DEFINE NEED_NETDB_H_TRUE NEED_NETDB_H_FALSE DOCBOOK2MAN COMPILE_MANPAGES_TRUE COMPILE_MANPAGES_FALSE MKINSTALLDIRS MSGFMT GMSGFMT XGETTEXT MSGMERGE ALLOCA GLIBC21 LIBICONV LTLIBICONV INTLBISON USE_NLS BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT INTLOBJS DATADIRNAME INSTOBJEXT GENCAT INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB GLIBC_VER LIBSTDCPP_VER LIBOBJS LTLIBOBJS' ac_subst_files='' # Initialize some variables set by options. @@ -937,6 +932,18 @@ ac_env_CXXFLAGS_set=${CXXFLAGS+set} ac_env_CXXFLAGS_value=$CXXFLAGS ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} ac_cv_env_CXXFLAGS_value=$CXXFLAGS +ac_env_CXXCPP_set=${CXXCPP+set} +ac_env_CXXCPP_value=$CXXCPP +ac_cv_env_CXXCPP_set=${CXXCPP+set} +ac_cv_env_CXXCPP_value=$CXXCPP +ac_env_F77_set=${F77+set} +ac_env_F77_value=$F77 +ac_cv_env_F77_set=${F77+set} +ac_cv_env_F77_value=$F77 +ac_env_FFLAGS_set=${FFLAGS+set} +ac_env_FFLAGS_value=$FFLAGS +ac_cv_env_FFLAGS_set=${FFLAGS+set} +ac_cv_env_FFLAGS_value=$FFLAGS # # Report the --help message. @@ -945,7 +952,7 @@ if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures apt 0.5.15cnc6 to adapt to many kinds of systems. +\`configure' configures apt 0.5.15lorg2 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1011,20 +1018,23 @@ fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of apt 0.5.15cnc6:";; + short | recursive ) echo "Configuration of apt 0.5.15lorg2:";; esac cat <<\_ACEOF Optional Features: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] - --enable-maintainer-mode enable make rules and dependencies not useful - (and sometimes confusing) to the casual installer - --enable-shared=PKGS build shared libraries default=yes - --enable-static=PKGS build static libraries default=yes - --enable-fast-install=PKGS optimize for fast installation default=yes - --disable-dependency-tracking Speeds up one-time builds - --enable-dependency-tracking Do not reject slow dependency extractors + --enable-maintainer-mode enable make rules and dependencies not useful + (and sometimes confusing) to the casual installer + --enable-shared[=PKGS] + build shared libraries [default=yes] + --enable-static[=PKGS] + build static libraries [default=yes] + --enable-fast-install[=PKGS] + optimize for fast installation [default=yes] + --disable-dependency-tracking speeds up one-time build + --enable-dependency-tracking do not reject slow dependency extractors --disable-libtool-lock avoid locking (might break parallel builds) --disable-scripts disable the extension system --enable-static-progs Build completely static (standalone) binaries. @@ -1035,8 +1045,12 @@ Optional Features: Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) + --with-gnu-ld assume the C compiler uses GNU ld [default=no] + --with-pic try to use only PIC/non-PIC objects [default=use + both] + --with-tags[=TAGS] + include additional configurations [automatic] --with-gnu-ld assume the C compiler uses GNU ld default=no - --with-pic try to use only PIC/non-PIC objects default=use both --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib --without-libiconv-prefix don't search for libiconv in includedir and libdir --with-included-gettext use the GNU gettext library included here @@ -1053,6 +1067,9 @@ Some influential environment variables: CPP C preprocessor CXX C++ compiler command CXXFLAGS C++ compiler flags + CXXCPP C++ preprocessor + F77 Fortran 77 compiler command + FFLAGS Fortran 77 compiler flags Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. @@ -1090,40 +1107,43 @@ case $srcdir in ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_builddir$srcdir ;; esac -case "$ac_dir" in -.) ac_abs_builddir=$ac_builddir;; + +# Do not use `cd foo && pwd` to compute absolute paths, because +# the directories may not exist. +case `pwd` in +.) ac_abs_builddir="$ac_dir";; *) - case $ac_builddir in - .) ac_abs_builddir="$ac_dir";; - [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;; - *) ac_abs_builddir="$ac_dir"/$ac_builddir;; + case "$ac_dir" in + .) ac_abs_builddir=`pwd`;; + [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; + *) ac_abs_builddir=`pwd`/"$ac_dir";; esac;; esac -case "$ac_dir" in +case $ac_abs_builddir in .) ac_abs_top_builddir=${ac_top_builddir}.;; *) case ${ac_top_builddir}. in - .) ac_abs_top_builddir="$ac_dir";; + .) ac_abs_top_builddir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; - *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;; + *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; esac;; esac -case "$ac_dir" in +case $ac_abs_builddir in .) ac_abs_srcdir=$ac_srcdir;; *) case $ac_srcdir in - .) ac_abs_srcdir="$ac_dir";; + .) ac_abs_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; - *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;; + *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; esac;; esac -case "$ac_dir" in +case $ac_abs_builddir in .) ac_abs_top_srcdir=$ac_top_srcdir;; *) case $ac_top_srcdir in - .) ac_abs_top_srcdir="$ac_dir";; + .) ac_abs_top_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; - *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;; + *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; esac;; esac @@ -1149,8 +1169,8 @@ fi test -n "$ac_init_help" && exit 0 if $ac_init_version; then cat <<\_ACEOF -apt configure 0.5.15cnc6 -generated by GNU Autoconf 2.58 +apt configure 0.5.15lorg2 +generated by GNU Autoconf 2.59 Copyright (C) 2003 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation @@ -1163,8 +1183,8 @@ cat >&5 <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by apt $as_me 0.5.15cnc6, which was -generated by GNU Autoconf 2.58. Invocation command line was +It was created by apt $as_me 0.5.15lorg2, which was +generated by GNU Autoconf 2.59. Invocation command line was $ $0 $@ @@ -1579,7 +1599,7 @@ host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` -am__api_version="1.7" +am__api_version="1.9" # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: @@ -1717,7 +1737,6 @@ _ACEOF program_transform_name=`echo $program_transform_name | sed -f conftest.sed` rm conftest.sed - # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` @@ -1731,6 +1750,39 @@ else echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} fi +if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then + # We used to keeping the `.' as first argument, in order to + # allow $(mkdir_p) to be used without argument. As in + # $(mkdir_p) $(somedir) + # where $(somedir) is conditionally defined. However this is wrong + # for two reasons: + # 1. if the package is installed by a user who cannot write `.' + # make install will fail, + # 2. the above comment should most certainly read + # $(mkdir_p) $(DESTDIR)$(somedir) + # so it does not work when $(somedir) is undefined and + # $(DESTDIR) is not. + # To support the latter case, we have to write + # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), + # so the `.' trick is pointless. + mkdir_p='mkdir -p --' +else + # On NextStep and OpenStep, the `mkdir' command does not + # recognize any option. It will interpret all options as + # directories to create, and then abort because `.' already + # exists. + for d in ./-p ./--version; + do + test -d $d && rmdir $d + done + # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. + if test -f "$ac_aux_dir/mkinstalldirs"; then + mkdir_p='$(mkinstalldirs)' + else + mkdir_p='$(install_sh) -d' + fi +fi + for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. @@ -1809,7 +1861,7 @@ else fi rmdir .tst 2>/dev/null - # test to see if srcdir already configured +# test to see if srcdir already configured if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 @@ -1829,7 +1881,7 @@ fi # Define the identity of the package. PACKAGE='apt' - VERSION='0.5.15cnc6' + VERSION='0.5.15lorg2' cat >>confdefs.h <<_ACEOF @@ -1857,9 +1909,6 @@ AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} - -AMTAR=${AMTAR-"${am_missing_run}tar"} - install_sh=${install_sh-"$am_aux_dir/install-sh"} # Installed binaries are usually stripped using `strip' when the user @@ -1952,6 +2001,13 @@ INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" # We need awk for the "check" target. The system "awk" is bad on # some platforms. +# Always define AMTAR for backward compatibility. + +AMTAR=${AMTAR-"${am_missing_run}tar"} + +am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' + + @@ -1987,68 +2043,74 @@ fi if test "${enable_shared+set}" = set; then enableval="$enable_shared" p=${PACKAGE-default} -case $enableval in -yes) enable_shared=yes ;; -no) enable_shared=no ;; -*) - enable_shared=no - # Look at the argument we got. We use all the common list separators. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," - for pkg in $enableval; do - if test "X$pkg" = "X$p"; then - enable_shared=yes - fi - done - IFS="$ac_save_ifs" - ;; -esac + case $enableval in + yes) enable_shared=yes ;; + no) enable_shared=no ;; + *) + enable_shared=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_shared=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac else enable_shared=yes fi; + # Check whether --enable-static or --disable-static was given. if test "${enable_static+set}" = set; then enableval="$enable_static" p=${PACKAGE-default} -case $enableval in -yes) enable_static=yes ;; -no) enable_static=no ;; -*) - enable_static=no - # Look at the argument we got. We use all the common list separators. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," - for pkg in $enableval; do - if test "X$pkg" = "X$p"; then - enable_static=yes - fi - done - IFS="$ac_save_ifs" - ;; -esac + case $enableval in + yes) enable_static=yes ;; + no) enable_static=no ;; + *) + enable_static=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_static=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac else enable_static=yes fi; + # Check whether --enable-fast-install or --disable-fast-install was given. if test "${enable_fast_install+set}" = set; then enableval="$enable_fast_install" p=${PACKAGE-default} -case $enableval in -yes) enable_fast_install=yes ;; -no) enable_fast_install=no ;; -*) - enable_fast_install=no - # Look at the argument we got. We use all the common list separators. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," - for pkg in $enableval; do - if test "X$pkg" = "X$p"; then - enable_fast_install=yes - fi - done - IFS="$ac_save_ifs" - ;; -esac + case $enableval in + yes) enable_fast_install=yes ;; + no) enable_fast_install=no ;; + *) + enable_fast_install=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_fast_install=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac else enable_fast_install=yes fi; + DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" @@ -3085,7 +3147,9 @@ else : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c - : > sub/conftst$i.h + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with + # Solaris 8's {/usr,}/bin/sh. + touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf @@ -3113,9 +3177,14 @@ else grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings - # (even with -Werror). So we grep stderr for any message - # that says an option was ignored. - if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CC_dependencies_compiler_type=$depmode break fi @@ -3146,17 +3215,78 @@ else fi -# Find the correct PATH separator. Usually this is `:', but -# DJGPP uses `;' like DOS. -if test "X${PATH_SEPARATOR+set}" != Xset; then - UNAME=${UNAME-`uname 2>/dev/null`} - case X$UNAME in - *-DOS) lt_cv_sys_path_separator=';' ;; - *) lt_cv_sys_path_separator=':' ;; - esac - PATH_SEPARATOR=$lt_cv_sys_path_separator +echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 +echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 +if test "${lt_cv_path_SED+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + # Loop through the user's path and test for sed and gsed. +# Then use that list of sed's as ones to test for truncation. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for lt_ac_prog in sed gsed; do + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" + fi + done + done +done +lt_ac_max=0 +lt_ac_count=0 +# Add /usr/xpg4/bin/sed as it is typically found on Solaris +# along with /bin/sed that truncates output. +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do + test ! -f $lt_ac_sed && continue + cat /dev/null > conftest.in + lt_ac_count=0 + echo $ECHO_N "0123456789$ECHO_C" >conftest.in + # Check for GNU sed and select it if it is found. + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then + lt_cv_path_SED=$lt_ac_sed + break + fi + while true; do + cat conftest.in conftest.in >conftest.tmp + mv conftest.tmp conftest.in + cp conftest.in conftest.nl + echo >>conftest.nl + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break + cmp -s conftest.out conftest.nl || break + # 10000 chars as input seems more than enough + test $lt_ac_count -gt 10 && break + lt_ac_count=`expr $lt_ac_count + 1` + if test $lt_ac_count -gt $lt_ac_max; then + lt_ac_max=$lt_ac_count + lt_cv_path_SED=$lt_ac_sed + fi + done +done + fi +SED=$lt_cv_path_SED +echo "$as_me:$LINENO: result: $SED" >&5 +echo "${ECHO_T}$SED" >&6 + +echo "$as_me:$LINENO: checking for egrep" >&5 +echo $ECHO_N "checking for egrep... $ECHO_C" >&6 +if test "${ac_cv_prog_egrep+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if echo a | (grep -E '(a|b)') >/dev/null 2>&1 + then ac_cv_prog_egrep='grep -E' + else ac_cv_prog_egrep='egrep' + fi +fi +echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 +echo "${ECHO_T}$ac_cv_prog_egrep" >&6 + EGREP=$ac_cv_prog_egrep + + # Check whether --with-gnu-ld or --without-gnu-ld was given. if test "${with_gnu_ld+set}" = set; then @@ -3168,8 +3298,8 @@ fi; ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. - echo "$as_me:$LINENO: checking for ld used by GCC" >&5 -echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 + echo "$as_me:$LINENO: checking for ld used by $CC" >&5 +echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw @@ -3179,12 +3309,12 @@ echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 esac case $ac_prog in # Accept absolute paths. - [\\/]* | [A-Za-z]:[\\/]*) + [\\/]* | ?:[\\/]*) re_direlt='/[^/][^/]*/\.\./' - # Canonicalize the path of ld - ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` + # Canonicalize the pathname of ld + ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do - ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` + ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; @@ -3208,22 +3338,26 @@ if test "${lt_cv_path_LD+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else if test -z "$LD"; then - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do + IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then lt_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some GNU ld's only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. - if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then + case `"$lt_cv_path_LD" -v 2>&1 &6 else # I'd rather use --version here, but apparently some GNU ld's only accept -v. -if $LD -v 2>&1 &5; then +case `$LD -v 2>&1 &5 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 @@ -3267,7 +3404,20 @@ fi echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 reload_flag=$lt_cv_ld_reload_flag -test -n "$reload_flag" && reload_flag=" $reload_flag" +case $reload_flag in +"" | " "*) ;; +*) reload_flag=" $reload_flag" ;; +esac +reload_cmds='$LD$reload_flag -o $output$reload_objs' +case $host_os in + darwin*) + if test "$GCC" = yes; then + reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs' + else + reload_cmds='$LD$reload_flag -o $output$reload_objs' + fi + ;; +esac echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 @@ -3278,120 +3428,42 @@ else # Let the user override the test. lt_cv_path_NM="$NM" else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do + IFS="$lt_save_ifs" test -z "$ac_dir" && ac_dir=. - tmp_nm=$ac_dir/${ac_tool_prefix}nm - if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then + tmp_nm="$ac_dir/${ac_tool_prefix}nm" + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then # Check to see if the nm accepts a BSD-compat flag. # Adding the `sed 1q' prevents false positives on HP-UX, which says: # nm: unknown option "B" ignored # Tru64's nm complains that /dev/null is an invalid object file - if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in + */dev/null* | *'Invalid file or object type'*) lt_cv_path_NM="$tmp_nm -B" break - elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then - lt_cv_path_NM="$tmp_nm -p" - break - else - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but - continue # so that we can try to find one that supports BSD flags - fi + ;; + *) + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in + */dev/null*) + lt_cv_path_NM="$tmp_nm -p" + break + ;; + *) + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but + continue # so that we can try to find one that supports BSD flags + ;; + esac + esac fi done - IFS="$ac_save_ifs" + IFS="$lt_save_ifs" test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm fi fi - +echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 +echo "${ECHO_T}$lt_cv_path_NM" >&6 NM="$lt_cv_path_NM" -echo "$as_me:$LINENO: result: $NM" >&5 -echo "${ECHO_T}$NM" >&6 - -echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 -echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 -if test "${lt_cv_path_SED+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - # Loop through the user's path and test for sed and gsed. -# Then use that list of sed's as ones to test for truncation. -as_executable_p="test -f" -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for ac_prog in sed gsed; do - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then - _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext" - fi - done - done -done - - # Create a temporary directory, and hook for its removal unless debugging. -$debug || -{ - trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 - trap '{ (exit 1); exit 1; }' 1 2 13 15 -} - -# Create a (secure) tmp directory for tmp files. -: ${TMPDIR=/tmp} -{ - tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` && - test -n "$tmp" && test -d "$tmp" -} || -{ - tmp=$TMPDIR/sed$$-$RANDOM - (umask 077 && mkdir $tmp) -} || -{ - echo "$me: cannot create a temporary directory in $TMPDIR" >&2 - { (exit 1); exit 1; } -} - _max=0 - _count=0 - # Add /usr/xpg4/bin/sed as it is typically found on Solaris - # along with /bin/sed that truncates output. - for _sed in $_sed_list /usr/xpg4/bin/sed; do - test ! -f ${_sed} && break - cat /dev/null > "$tmp/sed.in" - _count=0 - echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in" - # Check for GNU sed and select it if it is found. - if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then - lt_cv_path_SED=${_sed} - break - fi - while true; do - cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp" - mv "$tmp/sed.tmp" "$tmp/sed.in" - cp "$tmp/sed.in" "$tmp/sed.nl" - echo >>"$tmp/sed.nl" - ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break - cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break - # 40000 chars as input seems more than enough - test $_count -gt 10 && break - _count=`expr $_count + 1` - if test $_count -gt $_max; then - _max=$_count - lt_cv_path_SED=$_sed - fi - done - done - rm -rf "$tmp" - -fi - -if test "X$SED" != "X"; then - lt_cv_path_SED=$SED -else - SED=$lt_cv_path_SED -fi -echo "$as_me:$LINENO: result: $SED" >&5 -echo "${ECHO_T}$SED" >&6 echo "$as_me:$LINENO: checking whether ln -s works" >&5 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 @@ -3419,7 +3491,7 @@ lt_cv_deplibs_check_method='unknown' # 'pass_all' -- all dependencies passed with no checks. # 'test_compile' -- check by making test program. # 'file_magic [[regex]]' -- check by looking for files in library path -# which responds to the $file_magic_cmd with a given egrep regex. +# which responds to the $file_magic_cmd with a given extended regex. # If you have `file' or equivalent on your system and you're not sure # whether `pass_all' will *always* work, you probably want this one. @@ -3432,37 +3504,36 @@ beos*) lt_cv_deplibs_check_method=pass_all ;; -bsdi4*) +bsdi[45]*) lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' lt_cv_file_magic_cmd='/usr/bin/file -L' lt_cv_file_magic_test_file=/shlib/libc.so ;; -cygwin* | mingw* | pw32*) +cygwin*) + # func_win32_libid is a shell function defined in ltmain.sh + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' + ;; + +mingw* | pw32*) + # Base MSYS/MinGW do not provide the 'file' command needed by + # func_win32_libid shell function, so use a weaker test based on 'objdump'. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' lt_cv_file_magic_cmd='$OBJDUMP -f' ;; darwin* | rhapsody*) - lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' - lt_cv_file_magic_cmd='/usr/bin/file -L' - case "$host_os" in - rhapsody* | darwin1.[012]) - lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1` - ;; - *) # Darwin 1.3 on - lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' - ;; - esac + lt_cv_deplibs_check_method=pass_all ;; -freebsd*) +freebsd* | kfreebsd*-gnu | dragonfly*) if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then case $host_cpu in i*86 ) # Not sure whether the presence of OpenBSD here was a mistake. # Let's accept both of them until this is cleared up. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ;; @@ -3476,50 +3547,44 @@ gnu*) lt_cv_deplibs_check_method=pass_all ;; -hpux10.20*|hpux11*) - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' +hpux10.20* | hpux11*) lt_cv_file_magic_cmd=/usr/bin/file - lt_cv_file_magic_test_file=/usr/lib/libc.sl + case "$host_cpu" in + ia64*) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so + ;; + hppa*64*) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl + ;; + *) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' + lt_cv_file_magic_test_file=/usr/lib/libc.sl + ;; + esac ;; irix5* | irix6* | nonstopux*) - case $host_os in - irix5* | nonstopux*) - # this will be overridden with pass_all, but let us keep it just in case - lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" - ;; - *) - case $LD in - *-32|*"-32 ") libmagic=32-bit;; - *-n32|*"-n32 ") libmagic=N32;; - *-64|*"-64 ") libmagic=64-bit;; - *) libmagic=never-match;; - esac - # this will be overridden with pass_all, but let us keep it just in case - lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" - ;; + case $LD in + *-32|*"-32 ") libmagic=32-bit;; + *-n32|*"-n32 ") libmagic=N32;; + *-64|*"-64 ") libmagic=64-bit;; + *) libmagic=never-match;; esac - lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` lt_cv_deplibs_check_method=pass_all ;; # This must be Linux ELF. -linux-gnu*) - case $host_cpu in - alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*) - lt_cv_deplibs_check_method=pass_all ;; - *) - # glibc up to 2.1.1 does not perform some relocations on ARM - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; - esac - lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` +linux*) + lt_cv_deplibs_check_method=pass_all ;; netbsd*) if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then - lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' else - lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' fi ;; @@ -3529,20 +3594,19 @@ newos6*) lt_cv_file_magic_test_file=/usr/lib/libnls.so ;; +nto-qnx*) + lt_cv_deplibs_check_method=unknown + ;; + openbsd*) - lt_cv_file_magic_cmd=/usr/bin/file - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' else - lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' fi ;; osf3* | osf4* | osf5*) - # this will be overridden with pass_all, but let us keep it just in case - lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' - lt_cv_file_magic_test_file=/shlib/libc.so lt_cv_deplibs_check_method=pass_all ;; @@ -3551,11 +3615,6 @@ sco3.2v5*) ;; solaris*) - lt_cv_deplibs_check_method=pass_all - lt_cv_file_magic_test_file=/lib/libc.so - ;; - -sysv5uw[78]* | sysv4*uw2*) lt_cv_deplibs_check_method=pass_all ;; @@ -3582,6 +3641,10 @@ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) ;; esac ;; + +sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) + lt_cv_deplibs_check_method=pass_all + ;; esac fi @@ -3589,211 +3652,210 @@ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 file_magic_cmd=$lt_cv_file_magic_cmd deplibs_check_method=$lt_cv_deplibs_check_method +test -z "$deplibs_check_method" && deplibs_check_method=unknown +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# Allow CC to be a program name with arguments. +compiler=$CC +# Check whether --enable-libtool-lock or --disable-libtool-lock was given. +if test "${enable_libtool_lock+set}" = set; then + enableval="$enable_libtool_lock" +fi; +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes -# Check for command to grab the raw symbol name followed by C symbol from nm. -echo "$as_me:$LINENO: checking command to parse $NM output" >&5 -echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6 -if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - -# These are sane defaults that work on at least a few old systems. -# [They come from Ultrix. What could be older than Ultrix?!! ;)] - -# Character class describing NM global symbol codes. -symcode='[BCDEGRST]' - -# Regexp to match symbols that can be accessed directly from C. -sympat='\([_A-Za-z][_A-Za-z0-9]*\)' - -# Transform the above into a raw symbol and a C symbol. -symxfrm='\1 \2\3 \3' - -# Transform an extracted symbol line into a proper C declaration -lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'" - -# Transform an extracted symbol line into symbol name and symbol address -lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" - -# Define system-specific variables. -case $host_os in -aix*) - symcode='[BCDT]' - ;; -cygwin* | mingw* | pw32*) - symcode='[ABCDGISTW]' - ;; -hpux*) # Its linker distinguishes data from code symbols - lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" - lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" - ;; -irix* | nonstopux*) - symcode='[BCDEGRST]' - ;; -osf*) - symcode='[BCDEGQRST]' - ;; -solaris* | sysv5*) - symcode='[BDT]' - ;; -sysv4) - symcode='[DFNSTU]' - ;; -esac - -# Handle CRLF in mingw tool chain -opt_cr= -case $host_os in -mingw*) - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp - ;; -esac - -# If we're using GNU nm, then use its standard symbol codes. -if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then - symcode='[ABCDGISTW]' -fi - -# Try without a prefix undercore, then with it. -for ac_symprfx in "" "_"; do - - # Write the raw and C identifiers. -lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" - - # Check to see that the pipe works correctly. - pipe_works=no - rm -f conftest* - cat > conftest.$ac_ext < conftest.$ac_ext if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; then - # Now try to grab the symbols. - nlist=conftest.nm - if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 - (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 + case `/usr/bin/file conftest.$ac_objext` in + *ELF-32*) + HPUX_IA64_MODE="32" + ;; + *ELF-64*) + HPUX_IA64_MODE="64" + ;; + esac + fi + rm -rf conftest* + ;; +*-*-irix6*) + # Find out which ABI we are using. + echo '#line 3698 "configure"' > conftest.$ac_ext + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && test -s "$nlist"; then - # Try sorting and uniquifying the output. - if sort "$nlist" | uniq > "$nlist"T; then - mv -f "$nlist"T "$nlist" - else - rm -f "$nlist"T - fi + (exit $ac_status); }; then + if test "$lt_cv_prog_gnu_ld" = yes; then + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -melf32bsmip" + ;; + *N32*) + LD="${LD-ld} -melf32bmipn32" + ;; + *64-bit*) + LD="${LD-ld} -melf64bmip" + ;; + esac + else + case `/usr/bin/file conftest.$ac_objext` in + *32-bit*) + LD="${LD-ld} -32" + ;; + *N32*) + LD="${LD-ld} -n32" + ;; + *64-bit*) + LD="${LD-ld} -64" + ;; + esac + fi + fi + rm -rf conftest* + ;; - # Make sure that we snagged all the symbols we need. - if egrep ' nm_test_var$' "$nlist" >/dev/null; then - if egrep ' nm_test_func$' "$nlist" >/dev/null; then - cat < conftest.$ac_ext -#ifdef __cplusplus -extern "C" { -#endif +x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) + # Find out which ABI we are using. + echo 'int i;' > conftest.$ac_ext + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; then + case "`/usr/bin/file conftest.o`" in + *32-bit*) + case $host in + x86_64-*linux*) + LD="${LD-ld} -m elf_i386" + ;; + ppc64-*linux*|powerpc64-*linux*) + LD="${LD-ld} -m elf32ppclinux" + ;; + s390x-*linux*) + LD="${LD-ld} -m elf_s390" + ;; + sparc64-*linux*) + LD="${LD-ld} -m elf32_sparc" + ;; + esac + ;; + *64-bit*) + case $host in + x86_64-*linux*) + LD="${LD-ld} -m elf_x86_64" + ;; + ppc*-*linux*|powerpc*-*linux*) + LD="${LD-ld} -m elf64ppc" + ;; + s390*-*linux*) + LD="${LD-ld} -m elf64_s390" + ;; + sparc*-*linux*) + LD="${LD-ld} -m elf64_sparc" + ;; + esac + ;; + esac + fi + rm -rf conftest* + ;; -EOF - # Now generate the symbol file. - eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext' +*-*-sco3.2v5*) + # On SCO OpenServer 5, we need -belf to get full-featured binaries. + SAVE_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -belf" + echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 +echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 +if test "${lt_cv_cc_needs_belf+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu - cat <> conftest.$ac_ext -#if defined (__STDC__) && __STDC__ -# define lt_ptr void * -#else -# define lt_ptr char * -# define const -#endif + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ -/* The mapping between symbol names and symbols. */ -const struct { - const char *name; - lt_ptr address; -} -lt_preloaded_symbols[] = +int +main () { -EOF - sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext - cat <<\EOF >> conftest.$ac_ext - {0, (lt_ptr) 0} -}; -#ifdef __cplusplus + ; + return 0; } -#endif -EOF - # Now try linking the two files. - mv conftest.$ac_objext conftstm.$ac_objext - save_LIBS="$LIBS" - save_CFLAGS="$CFLAGS" - LIBS="conftstm.$ac_objext" - CFLAGS="$CFLAGS$no_builtin_flag" - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>&5 +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && test -s conftest$ac_exeext; then - pipe_works=yes - fi - LIBS="$save_LIBS" - CFLAGS="$save_CFLAGS" - else - echo "cannot find nm_test_func in $nlist" >&5 - fi - else - echo "cannot find nm_test_var in $nlist" >&5 - fi - else - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 - fi - else - echo "$progname: failed program was:" >&5 - cat conftest.$ac_ext >&5 - fi - rm -f conftest* conftst* - - # Do not use the global_symbol_pipe unless it works. - if test "$pipe_works" = yes; then - break - else - lt_cv_sys_global_symbol_pipe= - fi -done - -fi - -global_symbol_pipe="$lt_cv_sys_global_symbol_pipe" -if test -z "$lt_cv_sys_global_symbol_pipe"; then - global_symbol_to_cdecl= - global_symbol_to_c_name_address= + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + lt_cv_cc_needs_belf=yes else - global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl" - global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address" + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +lt_cv_cc_needs_belf=no fi -if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address"; -then - echo "$as_me:$LINENO: result: failed" >&5 -echo "${ECHO_T}failed" >&6 -else - echo "$as_me:$LINENO: result: ok" >&5 -echo "${ECHO_T}ok" >&6 +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + fi +echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 +echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 + if test x"$lt_cv_cc_needs_belf" != x"yes"; then + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf + CFLAGS="$SAVE_CFLAGS" + fi + ;; + +esac + +need_locks="$enable_libtool_lock" + ac_ext=c ac_cpp='$CPP $CPPFLAGS' @@ -4030,21 +4092,6 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ ac_compiler_gnu=$ac_cv_c_compiler_gnu -echo "$as_me:$LINENO: checking for egrep" >&5 -echo $ECHO_N "checking for egrep... $ECHO_C" >&6 -if test "${ac_cv_prog_egrep+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - if echo a | (grep -E '(a|b)') >/dev/null 2>&1 - then ac_cv_prog_egrep='grep -E' - else ac_cv_prog_egrep='egrep' - fi -fi -echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 -echo "${ECHO_T}$ac_cv_prog_egrep" >&6 - EGREP=$ac_cv_prog_egrep - - echo "$as_me:$LINENO: checking for ANSI C header files" >&5 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 if test "${ac_cv_header_stdc+set}" = set; then @@ -4433,150 +4480,1399 @@ fi done - - - - - -# Only perform the check for file, if the check method requires it -case $deplibs_check_method in -file_magic*) - if test "$file_magic_cmd" = '$MAGIC_CMD'; then - echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 -echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then +ac_ext=cc +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu +if test -n "$ac_tool_prefix"; then + for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - case $MAGIC_CMD in - /*) - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. - ;; - ?:/*) - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. - ;; - *) - ac_save_MAGIC_CMD="$MAGIC_CMD" - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="/usr/bin:$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/${ac_tool_prefix}file; then - lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" - if test -n "$file_magic_test_file"; then - case $deplibs_check_method in - "file_magic "*) - file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" - MAGIC_CMD="$lt_cv_path_MAGIC_CMD" - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | - egrep "$file_magic_regex" > /dev/null; then - : - else - cat <&2 + if test -n "$CXX"; then + ac_cv_prog_CXX="$CXX" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done -*** Warning: the command libtool uses to detect shared libraries, -*** $file_magic_cmd, produces output that libtool cannot recognize. -*** The result is that libtool may fail to recognize shared libraries -*** as such. This will affect the creation of libtool libraries that -*** depend on shared libraries, but programs linked with such libtool -*** libraries will work regardless of this problem. Nevertheless, you -*** may want to report the problem to your system manager and/or to -*** bug-libtool@gnu.org - -EOF - fi ;; - esac - fi - break - fi - done - IFS="$ac_save_ifs" - MAGIC_CMD="$ac_save_MAGIC_CMD" - ;; -esac fi - -MAGIC_CMD="$lt_cv_path_MAGIC_CMD" -if test -n "$MAGIC_CMD"; then - echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 -echo "${ECHO_T}$MAGIC_CMD" >&6 +fi +CXX=$ac_cv_prog_CXX +if test -n "$CXX"; then + echo "$as_me:$LINENO: result: $CXX" >&5 +echo "${ECHO_T}$CXX" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi -if test -z "$lt_cv_path_MAGIC_CMD"; then - if test -n "$ac_tool_prefix"; then - echo "$as_me:$LINENO: checking for file" >&5 -echo $ECHO_N "checking for file... $ECHO_C" >&6 -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then + test -n "$CXX" && break + done +fi +if test -z "$CXX"; then + ac_ct_CXX=$CXX + for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - case $MAGIC_CMD in - /*) - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. - ;; - ?:/*) - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. - ;; - *) - ac_save_MAGIC_CMD="$MAGIC_CMD" - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="/usr/bin:$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/file; then - lt_cv_path_MAGIC_CMD="$ac_dir/file" - if test -n "$file_magic_test_file"; then - case $deplibs_check_method in - "file_magic "*) - file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" - MAGIC_CMD="$lt_cv_path_MAGIC_CMD" - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | - egrep "$file_magic_regex" > /dev/null; then - : - else - cat <&2 + if test -n "$ac_ct_CXX"; then + ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_CXX="$ac_prog" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done -*** Warning: the command libtool uses to detect shared libraries, -*** $file_magic_cmd, produces output that libtool cannot recognize. -*** The result is that libtool may fail to recognize shared libraries -*** as such. This will affect the creation of libtool libraries that -*** depend on shared libraries, but programs linked with such libtool -*** libraries will work regardless of this problem. Nevertheless, you -*** may want to report the problem to your system manager and/or to -*** bug-libtool@gnu.org - -EOF - fi ;; - esac - fi - break - fi - done - IFS="$ac_save_ifs" - MAGIC_CMD="$ac_save_MAGIC_CMD" - ;; -esac fi - -MAGIC_CMD="$lt_cv_path_MAGIC_CMD" -if test -n "$MAGIC_CMD"; then - echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 -echo "${ECHO_T}$MAGIC_CMD" >&6 +fi +ac_ct_CXX=$ac_cv_prog_ac_ct_CXX +if test -n "$ac_ct_CXX"; then + echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 +echo "${ECHO_T}$ac_ct_CXX" >&6 else echo "$as_me:$LINENO: result: no" >&5 echo "${ECHO_T}no" >&6 fi + test -n "$ac_ct_CXX" && break +done +test -n "$ac_ct_CXX" || ac_ct_CXX="g++" + + CXX=$ac_ct_CXX +fi + + +# Provide some information about the compiler. +echo "$as_me:$LINENO:" \ + "checking for C++ compiler version" >&5 +ac_compiler=`set X $ac_compile; echo $2` +{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5 + (eval $ac_compiler --version &5) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5 + (eval $ac_compiler -v &5) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5 + (eval $ac_compiler -V &5) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } + +echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 +echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 +if test "${ac_cv_cxx_compiler_gnu+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_compiler_gnu=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_compiler_gnu=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_cxx_compiler_gnu=$ac_compiler_gnu + +fi +echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 +echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 +GXX=`test $ac_compiler_gnu = yes && echo yes` +ac_test_CXXFLAGS=${CXXFLAGS+set} +ac_save_CXXFLAGS=$CXXFLAGS +CXXFLAGS="-g" +echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 +echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 +if test "${ac_cv_prog_cxx_g+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_prog_cxx_g=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_prog_cxx_g=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 +echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 +if test "$ac_test_CXXFLAGS" = set; then + CXXFLAGS=$ac_save_CXXFLAGS +elif test $ac_cv_prog_cxx_g = yes; then + if test "$GXX" = yes; then + CXXFLAGS="-g -O2" else - MAGIC_CMD=: + CXXFLAGS="-g" + fi +else + if test "$GXX" = yes; then + CXXFLAGS="-O2" + else + CXXFLAGS= + fi +fi +for ac_declaration in \ + '' \ + 'extern "C" void std::exit (int) throw (); using std::exit;' \ + 'extern "C" void std::exit (int); using std::exit;' \ + 'extern "C" void exit (int) throw ();' \ + 'extern "C" void exit (int);' \ + 'void exit (int);' +do + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_declaration +#include +int +main () +{ +exit (42); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + : +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +continue +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_declaration +int +main () +{ +exit (42); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + break +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +done +rm -f conftest* +if test -n "$ac_declaration"; then + echo '#ifdef __cplusplus' >>confdefs.h + echo $ac_declaration >>confdefs.h + echo '#endif' >>confdefs.h +fi + +ac_ext=cc +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + +depcc="$CXX" am_compiler_list= + +echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 +if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then + # We make a subdir and do the tests there. Otherwise we can end up + # making bogus files that we don't know about and never remove. For + # instance it was reported that on HP-UX the gcc test will end up + # making a dummy file named `D' -- because `-MD' means `put the output + # in D'. + mkdir conftest.dir + # Copy depcomp to subdir because otherwise we won't find it if we're + # using a relative directory. + cp "$am_depcomp" conftest.dir + cd conftest.dir + # We will build objects and dependencies in a subdirectory because + # it helps to detect inapplicable dependency modes. For instance + # both Tru64's cc and ICC support -MD to output dependencies as a + # side effect of compilation, but ICC will put the dependencies in + # the current directory while Tru64 will put them in the object + # directory. + mkdir sub + + am_cv_CXX_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` + fi + for depmode in $am_compiler_list; do + # Setup a source with many dependencies, because some compilers + # like to wrap large dependency lists on column 80 (with \), and + # we should not choose a depcomp mode which is confused by this. + # + # We need to recreate these files for each test, as the compiler may + # overwrite some of them when testing with obscure command lines. + # This happens at least with the AIX C compiler. + : > sub/conftest.c + for i in 1 2 3 4 5 6; do + echo '#include "conftst'$i'.h"' >> sub/conftest.c + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with + # Solaris 8's {/usr,}/bin/sh. + touch sub/conftst$i.h + done + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf + + case $depmode in + nosideeffect) + # after this tag, mechanisms are not by side-effect, so they'll + # only be used when explicitly requested + if test "x$enable_dependency_tracking" = xyes; then + continue + else + break + fi + ;; + none) break ;; + esac + # We check with `-c' and `-o' for the sake of the "dashmstdout" + # mode. It turns out that the SunPro C++ compiler does not properly + # handle `-M -o', and we need to detect this. + if depmode=$depmode \ + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ + >/dev/null 2>conftest.err && + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then + # icc doesn't choke on unknown options, it will just issue warnings + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else + am_cv_CXX_dependencies_compiler_type=$depmode + break + fi + fi + done + + cd .. + rm -rf conftest.dir +else + am_cv_CXX_dependencies_compiler_type=none +fi + +fi +echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 +echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 +CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type + + + +if + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then + am__fastdepCXX_TRUE= + am__fastdepCXX_FALSE='#' +else + am__fastdepCXX_TRUE='#' + am__fastdepCXX_FALSE= +fi + + + + +if test -n "$CXX" && ( test "X$CXX" != "Xno" && + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || + (test "X$CXX" != "Xg++"))) ; then + ac_ext=cc +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu +echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 +echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 +if test -z "$CXXCPP"; then + if test "${ac_cv_prog_CXXCPP+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + # Double quotes because CXXCPP needs to be expanded + for CXXCPP in "$CXX -E" "/lib/cpp" + do + ac_preproc_ok=false +for ac_cxx_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null; then + if test -s conftest.err; then + ac_cpp_err=$ac_cxx_preproc_warn_flag + ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + : +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.$ac_ext + + # OK, works on sane cases. Now check whether non-existent headers + # can be detected and how. + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +_ACEOF +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null; then + if test -s conftest.err; then + ac_cpp_err=$ac_cxx_preproc_warn_flag + ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + # Broken: success on invalid input. +continue +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.err conftest.$ac_ext +if $ac_preproc_ok; then + break +fi + + done + ac_cv_prog_CXXCPP=$CXXCPP + +fi + CXXCPP=$ac_cv_prog_CXXCPP +else + ac_cv_prog_CXXCPP=$CXXCPP +fi +echo "$as_me:$LINENO: result: $CXXCPP" >&5 +echo "${ECHO_T}$CXXCPP" >&6 +ac_preproc_ok=false +for ac_cxx_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null; then + if test -s conftest.err; then + ac_cpp_err=$ac_cxx_preproc_warn_flag + ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + : +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.$ac_ext + + # OK, works on sane cases. Now check whether non-existent headers + # can be detected and how. + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +_ACEOF +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null; then + if test -s conftest.err; then + ac_cpp_err=$ac_cxx_preproc_warn_flag + ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + # Broken: success on invalid input. +continue +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.err conftest.$ac_ext +if $ac_preproc_ok; then + : +else + { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check +See \`config.log' for more details." >&5 +echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check +See \`config.log' for more details." >&2;} + { (exit 1); exit 1; }; } +fi + +ac_ext=cc +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + +fi + + +ac_ext=f +ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' +ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_f77_compiler_gnu +if test -n "$ac_tool_prefix"; then + for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran + do + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_F77+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$F77"; then + ac_cv_prog_F77="$F77" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_F77="$ac_tool_prefix$ac_prog" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +F77=$ac_cv_prog_F77 +if test -n "$F77"; then + echo "$as_me:$LINENO: result: $F77" >&5 +echo "${ECHO_T}$F77" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + test -n "$F77" && break + done +fi +if test -z "$F77"; then + ac_ct_F77=$F77 + for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran +do + # Extract the first word of "$ac_prog", so it can be a program name with args. +set dummy $ac_prog; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_ac_ct_F77+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$ac_ct_F77"; then + ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_F77="$ac_prog" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +ac_ct_F77=$ac_cv_prog_ac_ct_F77 +if test -n "$ac_ct_F77"; then + echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 +echo "${ECHO_T}$ac_ct_F77" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + test -n "$ac_ct_F77" && break +done + + F77=$ac_ct_F77 +fi + + +# Provide some information about the compiler. +echo "$as_me:5277:" \ + "checking for Fortran 77 compiler version" >&5 +ac_compiler=`set X $ac_compile; echo $2` +{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version &5\"") >&5 + (eval $ac_compiler --version &5) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5 + (eval $ac_compiler -v &5) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5 + (eval $ac_compiler -V &5) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } +rm -f a.out + +# If we don't use `.F' as extension, the preprocessor is not run on the +# input file. (Note that this only needs to work for GNU compilers.) +ac_save_ext=$ac_ext +ac_ext=F +echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 +echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 +if test "${ac_cv_f77_compiler_gnu+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF + program main +#ifndef __GNUC__ + choke me +#endif + + end +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_f77_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_compiler_gnu=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_compiler_gnu=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +ac_cv_f77_compiler_gnu=$ac_compiler_gnu + +fi +echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 +echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 +ac_ext=$ac_save_ext +ac_test_FFLAGS=${FFLAGS+set} +ac_save_FFLAGS=$FFLAGS +FFLAGS= +echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 +echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 +if test "${ac_cv_prog_f77_g+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + FFLAGS=-g +cat >conftest.$ac_ext <<_ACEOF + program main + + end +_ACEOF +rm -f conftest.$ac_objext +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_f77_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest.$ac_objext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_prog_f77_g=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_prog_f77_g=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext + +fi +echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 +echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 +if test "$ac_test_FFLAGS" = set; then + FFLAGS=$ac_save_FFLAGS +elif test $ac_cv_prog_f77_g = yes; then + if test "x$ac_cv_f77_compiler_gnu" = xyes; then + FFLAGS="-g -O2" + else + FFLAGS="-g" + fi +else + if test "x$ac_cv_f77_compiler_gnu" = xyes; then + FFLAGS="-O2" + else + FFLAGS= fi fi +G77=`test $ac_compiler_gnu = yes && echo yes` +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + + +# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! + +# find the maximum length of command line arguments +echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 +echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 +if test "${lt_cv_sys_max_cmd_len+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + i=0 + teststring="ABCD" + + case $build_os in + msdosdjgpp*) + # On DJGPP, this test can blow up pretty badly due to problems in libc + # (any single argument exceeding 2000 bytes causes a buffer overrun + # during glob expansion). Even if it were fixed, the result of this + # check would be larger than it should be. + lt_cv_sys_max_cmd_len=12288; # 12K is about right + ;; + + gnu*) + # Under GNU Hurd, this test is not required because there is + # no limit to the length of command line arguments. + # Libtool will interpret -1 as no limit whatsoever + lt_cv_sys_max_cmd_len=-1; + ;; + + cygwin* | mingw*) + # On Win9x/ME, this test blows up -- it succeeds, but takes + # about 5 minutes as the teststring grows exponentially. + # Worse, since 9x/ME are not pre-emptively multitasking, + # you end up with a "frozen" computer, even though with patience + # the test eventually succeeds (with a max line length of 256k). + # Instead, let's just punt: use the minimum linelength reported by + # all of the supported platforms: 8192 (on NT/2K/XP). + lt_cv_sys_max_cmd_len=8192; + ;; + + amigaos*) + # On AmigaOS with pdksh, this test takes hours, literally. + # So we just punt and use a minimum line length of 8192. + lt_cv_sys_max_cmd_len=8192; + ;; + + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) + # This has been around since 386BSD, at least. Likely further. + if test -x /sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` + elif test -x /usr/sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` + else + lt_cv_sys_max_cmd_len=65536 # usable default for *BSD + fi + # And add a safety zone + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + ;; + osf*) + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not + # nice to cause kernel panics so lets avoid the loop below. + # First set a reasonable default. + lt_cv_sys_max_cmd_len=16384 + # + if test -x /sbin/sysconfig; then + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in + *1*) lt_cv_sys_max_cmd_len=-1 ;; + esac + fi + ;; + *) + # If test is not a shell built-in, we'll probably end up computing a + # maximum length that is only half of the actual maximum length, but + # we can't tell. + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} + while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ + = "XX$teststring") >/dev/null 2>&1 && + new_result=`expr "X$teststring" : ".*" 2>&1` && + lt_cv_sys_max_cmd_len=$new_result && + test $i != 17 # 1/2 MB should be enough + do + i=`expr $i + 1` + teststring=$teststring$teststring + done + teststring= + # Add a significant safety factor because C++ compilers can tack on massive + # amounts of additional arguments before passing them to the linker. + # It appears as though 1/2 is a usable value. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` + ;; + esac + +fi + +if test -n $lt_cv_sys_max_cmd_len ; then + echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 +echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 +else + echo "$as_me:$LINENO: result: none" >&5 +echo "${ECHO_T}none" >&6 +fi + + + + +# Check for command to grab the raw symbol name followed by C symbol from nm. +echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 +echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 +if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + +# These are sane defaults that work on at least a few old systems. +# [They come from Ultrix. What could be older than Ultrix?!! ;)] + +# Character class describing NM global symbol codes. +symcode='[BCDEGRST]' + +# Regexp to match symbols that can be accessed directly from C. +sympat='\([_A-Za-z][_A-Za-z0-9]*\)' + +# Transform an extracted symbol line into a proper C declaration +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" + +# Transform an extracted symbol line into symbol name and symbol address +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" + +# Define system-specific variables. +case $host_os in +aix*) + symcode='[BCDT]' + ;; +cygwin* | mingw* | pw32*) + symcode='[ABCDGISTW]' + ;; +hpux*) # Its linker distinguishes data from code symbols + if test "$host_cpu" = ia64; then + symcode='[ABCDEGRST]' + fi + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" + lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" + ;; +linux*) + if test "$host_cpu" = ia64; then + symcode='[ABCDGIRSTW]' + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" + lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" + fi + ;; +irix* | nonstopux*) + symcode='[BCDEGRST]' + ;; +osf*) + symcode='[BCDEGQRST]' + ;; +solaris* | sysv5*) + symcode='[BDRT]' + ;; +sysv4) + symcode='[DFNSTU]' + ;; +esac + +# Handle CRLF in mingw tool chain +opt_cr= +case $build_os in +mingw*) + opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp + ;; +esac + +# If we're using GNU nm, then use its standard symbol codes. +case `$NM -V 2>&1` in +*GNU* | *'with BFD'*) + symcode='[ABCDGIRSTW]' ;; +esac + +# Try without a prefix undercore, then with it. +for ac_symprfx in "" "_"; do + + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. + symxfrm="\\1 $ac_symprfx\\2 \\2" + + # Write the raw and C identifiers. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" + + # Check to see that the pipe works correctly. + pipe_works=no + + rm -f conftest* + cat > conftest.$ac_ext <&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; then + # Now try to grab the symbols. + nlist=conftest.nm + if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 + (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && test -s "$nlist"; then + # Try sorting and uniquifying the output. + if sort "$nlist" | uniq > "$nlist"T; then + mv -f "$nlist"T "$nlist" + else + rm -f "$nlist"T + fi + + # Make sure that we snagged all the symbols we need. + if grep ' nm_test_var$' "$nlist" >/dev/null; then + if grep ' nm_test_func$' "$nlist" >/dev/null; then + cat < conftest.$ac_ext +#ifdef __cplusplus +extern "C" { +#endif + +EOF + # Now generate the symbol file. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' + + cat <> conftest.$ac_ext +#if defined (__STDC__) && __STDC__ +# define lt_ptr_t void * +#else +# define lt_ptr_t char * +# define const +#endif + +/* The mapping between symbol names and symbols. */ +const struct { + const char *name; + lt_ptr_t address; +} +lt_preloaded_symbols[] = +{ +EOF + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext + cat <<\EOF >> conftest.$ac_ext + {0, (lt_ptr_t) 0} +}; + +#ifdef __cplusplus +} +#endif +EOF + # Now try linking the two files. + mv conftest.$ac_objext conftstm.$ac_objext + lt_save_LIBS="$LIBS" + lt_save_CFLAGS="$CFLAGS" + LIBS="conftstm.$ac_objext" + CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && test -s conftest${ac_exeext}; then + pipe_works=yes + fi + LIBS="$lt_save_LIBS" + CFLAGS="$lt_save_CFLAGS" + else + echo "cannot find nm_test_func in $nlist" >&5 + fi + else + echo "cannot find nm_test_var in $nlist" >&5 + fi + else + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 + fi + else + echo "$progname: failed program was:" >&5 + cat conftest.$ac_ext >&5 + fi + rm -f conftest* conftst* + + # Do not use the global_symbol_pipe unless it works. + if test "$pipe_works" = yes; then + break + else + lt_cv_sys_global_symbol_pipe= + fi +done + +fi + +if test -z "$lt_cv_sys_global_symbol_pipe"; then + lt_cv_sys_global_symbol_to_cdecl= +fi +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then + echo "$as_me:$LINENO: result: failed" >&5 +echo "${ECHO_T}failed" >&6 +else + echo "$as_me:$LINENO: result: ok" >&5 +echo "${ECHO_T}ok" >&6 +fi + +echo "$as_me:$LINENO: checking for objdir" >&5 +echo $ECHO_N "checking for objdir... $ECHO_C" >&6 +if test "${lt_cv_objdir+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + rm -f .libs 2>/dev/null +mkdir .libs 2>/dev/null +if test -d .libs; then + lt_cv_objdir=.libs +else + # MS-DOS does not allow filenames that begin with a dot. + lt_cv_objdir=_libs +fi +rmdir .libs 2>/dev/null +fi +echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 +echo "${ECHO_T}$lt_cv_objdir" >&6 +objdir=$lt_cv_objdir + + + + + +case $host_os in +aix3*) + # AIX sometimes has problems with the GCC collect2 program. For some + # reason, if we set the COLLECT_NAMES environment variable, the problems + # vanish in a puff of smoke. + if test "X${COLLECT_NAMES+set}" != Xset; then + COLLECT_NAMES= + export COLLECT_NAMES fi ;; esac +# Sed substitution that helps us do robust quoting. It backslashifies +# metacharacters that are still active within double-quoted strings. +Xsed='sed -e 1s/^X//' +sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' + +# Same as above, but do not quote variable references. +double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' + +# Sed substitution to delay expansion of an escaped shell variable in a +# double_quote_subst'ed string. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' + +# Sed substitution to avoid accidental globbing in evaled expressions +no_glob_subst='s/\*/\\\*/g' + +# Constants: +rm="rm -f" + +# Global variables: +default_ofile=libtool +can_build_shared=yes + +# All known linkers require a `.a' archive for static linking (except M$VC, +# which needs '.lib'). +libext=a +ltmain="$ac_aux_dir/ltmain.sh" +ofile="$default_ofile" +with_gnu_ld="$lt_cv_prog_gnu_ld" + +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. +set dummy ${ac_tool_prefix}ar; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_AR+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$AR"; then + ac_cv_prog_AR="$AR" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_AR="${ac_tool_prefix}ar" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +AR=$ac_cv_prog_AR +if test -n "$AR"; then + echo "$as_me:$LINENO: result: $AR" >&5 +echo "${ECHO_T}$AR" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + +fi +if test -z "$ac_cv_prog_AR"; then + ac_ct_AR=$AR + # Extract the first word of "ar", so it can be a program name with args. +set dummy ar; ac_word=$2 +echo "$as_me:$LINENO: checking for $ac_word" >&5 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 +if test "${ac_cv_prog_ac_ct_AR+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$ac_ct_AR"; then + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. +else +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then + ac_cv_prog_ac_ct_AR="ar" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + + test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" +fi +fi +ac_ct_AR=$ac_cv_prog_ac_ct_AR +if test -n "$ac_ct_AR"; then + echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 +echo "${ECHO_T}$ac_ct_AR" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + AR=$ac_ct_AR +else + AR="$ac_cv_prog_AR" +fi + if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. set dummy ${ac_tool_prefix}ranlib; ac_word=$2 @@ -4738,150 +6034,6 @@ else fi -enable_dlopen=no -enable_win32_dll=no - -# Check whether --enable-libtool-lock or --disable-libtool-lock was given. -if test "${enable_libtool_lock+set}" = set; then - enableval="$enable_libtool_lock" - -fi; -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes - -# Some flags need to be propagated to the compiler or linker for good -# libtool support. -case $host in -*-*-irix6*) - # Find out which ABI we are using. - echo '#line 4756 "configure"' > conftest.$ac_ext - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - case `/usr/bin/file conftest.$ac_objext` in - *32-bit*) - LD="${LD-ld} -32" - ;; - *N32*) - LD="${LD-ld} -n32" - ;; - *64-bit*) - LD="${LD-ld} -64" - ;; - esac - fi - rm -rf conftest* - ;; - -*-*-sco3.2v5*) - # On SCO OpenServer 5, we need -belf to get full-featured binaries. - SAVE_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS -belf" - echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 -echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 -if test "${lt_cv_cc_needs_belf+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - - - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - lt_cv_cc_needs_belf=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -lt_cv_cc_needs_belf=no -fi -rm -f conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -fi -echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 -echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 - if test x"$lt_cv_cc_needs_belf" != x"yes"; then - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf - CFLAGS="$SAVE_CFLAGS" - fi - ;; - - -esac - -# Sed substitution that helps us do robust quoting. It backslashifies -# metacharacters that are still active within double-quoted strings. -Xsed='sed -e s/^X//' -sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' - -# Same as above, but do not quote variable references. -double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' - -# Sed substitution to delay expansion of an escaped shell variable in a -# double_quote_subst'ed string. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' - -# Constants: -rm="rm -f" - -# Global variables: -default_ofile=libtool -can_build_shared=yes - -# All known linkers require a `.a' archive for static linking (except M$VC, -# which needs '.lib'). -libext=a -ltmain="$ac_aux_dir/ltmain.sh" -ofile="$default_ofile" -with_gnu_ld="$lt_cv_prog_gnu_ld" -need_locks="$enable_libtool_lock" - old_CC="$CC" old_CFLAGS="$CFLAGS" @@ -4890,40 +6042,18 @@ test -z "$AR" && AR=ar test -z "$AR_FLAGS" && AR_FLAGS=cru test -z "$AS" && AS=as test -z "$CC" && CC=cc +test -z "$LTCC" && LTCC=$CC test -z "$DLLTOOL" && DLLTOOL=dlltool test -z "$LD" && LD=ld test -z "$LN_S" && LN_S="ln -s" test -z "$MAGIC_CMD" && MAGIC_CMD=file test -z "$NM" && NM=nm +test -z "$SED" && SED=sed test -z "$OBJDUMP" && OBJDUMP=objdump test -z "$RANLIB" && RANLIB=: test -z "$STRIP" && STRIP=: test -z "$ac_objext" && ac_objext=o -if test x"$host" != x"$build"; then - ac_tool_prefix=${host_alias}- -else - ac_tool_prefix= -fi - -# Transform linux* to *-*-linux-gnu*, to support old configure scripts. -case $host_os in -linux-gnu*) ;; -linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` -esac - -case $host_os in -aix3*) - # AIX sometimes has problems with the GCC collect2 program. For some - # reason, if we set the COLLECT_NAMES environment variable, the problems - # vanish in a puff of smoke. - if test "X${COLLECT_NAMES+set}" != Xset; then - COLLECT_NAMES= - export COLLECT_NAMES - fi - ;; -esac - # Determine commands to create old-style static archives. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' old_postinstall_cmds='chmod 644 $oldlib' @@ -4941,24 +6071,161 @@ if test -n "$RANLIB"; then old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" fi -# Allow CC to be a program name with arguments. -set dummy $CC -compiler="$2" +for cc_temp in $compiler""; do + case $cc_temp in + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` -echo "$as_me:$LINENO: checking for objdir" >&5 -echo $ECHO_N "checking for objdir... $ECHO_C" >&6 -rm -f .libs 2>/dev/null -mkdir .libs 2>/dev/null -if test -d .libs; then - objdir=.libs + +# Only perform the check for file, if the check method requires it +case $deplibs_check_method in +file_magic*) + if test "$file_magic_cmd" = '$MAGIC_CMD'; then + echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 +echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 else - # MS-DOS does not allow filenames that begin with a dot. - objdir=_libs -fi -rmdir .libs 2>/dev/null -echo "$as_me:$LINENO: result: $objdir" >&5 -echo "${ECHO_T}$objdir" >&6 + case $MAGIC_CMD in +[\\/*] | ?:[\\/]*) + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. + ;; +*) + lt_save_MAGIC_CMD="$MAGIC_CMD" + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" + for ac_dir in $ac_dummy; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/${ac_tool_prefix}file; then + lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" + if test -n "$file_magic_test_file"; then + case $deplibs_check_method in + "file_magic "*) + file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" + MAGIC_CMD="$lt_cv_path_MAGIC_CMD" + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | + $EGREP "$file_magic_regex" > /dev/null; then + : + else + cat <&2 +*** Warning: the command libtool uses to detect shared libraries, +*** $file_magic_cmd, produces output that libtool cannot recognize. +*** The result is that libtool may fail to recognize shared libraries +*** as such. This will affect the creation of libtool libraries that +*** depend on shared libraries, but programs linked with such libtool +*** libraries will work regardless of this problem. Nevertheless, you +*** may want to report the problem to your system manager and/or to +*** bug-libtool@gnu.org + +EOF + fi ;; + esac + fi + break + fi + done + IFS="$lt_save_ifs" + MAGIC_CMD="$lt_save_MAGIC_CMD" + ;; +esac +fi + +MAGIC_CMD="$lt_cv_path_MAGIC_CMD" +if test -n "$MAGIC_CMD"; then + echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 +echo "${ECHO_T}$MAGIC_CMD" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + +if test -z "$lt_cv_path_MAGIC_CMD"; then + if test -n "$ac_tool_prefix"; then + echo "$as_me:$LINENO: checking for file" >&5 +echo $ECHO_N "checking for file... $ECHO_C" >&6 +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + case $MAGIC_CMD in +[\\/*] | ?:[\\/]*) + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. + ;; +*) + lt_save_MAGIC_CMD="$MAGIC_CMD" + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" + for ac_dir in $ac_dummy; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f $ac_dir/file; then + lt_cv_path_MAGIC_CMD="$ac_dir/file" + if test -n "$file_magic_test_file"; then + case $deplibs_check_method in + "file_magic "*) + file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" + MAGIC_CMD="$lt_cv_path_MAGIC_CMD" + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | + $EGREP "$file_magic_regex" > /dev/null; then + : + else + cat <&2 + +*** Warning: the command libtool uses to detect shared libraries, +*** $file_magic_cmd, produces output that libtool cannot recognize. +*** The result is that libtool may fail to recognize shared libraries +*** as such. This will affect the creation of libtool libraries that +*** depend on shared libraries, but programs linked with such libtool +*** libraries will work regardless of this problem. Nevertheless, you +*** may want to report the problem to your system manager and/or to +*** bug-libtool@gnu.org + +EOF + fi ;; + esac + fi + break + fi + done + IFS="$lt_save_ifs" + MAGIC_CMD="$lt_save_MAGIC_CMD" + ;; +esac +fi + +MAGIC_CMD="$lt_cv_path_MAGIC_CMD" +if test -n "$MAGIC_CMD"; then + echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 +echo "${ECHO_T}$MAGIC_CMD" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + else + MAGIC_CMD=: + fi +fi + + fi + ;; +esac + +enable_dlopen=no +enable_win32_dll=no + +# Check whether --enable-libtool-lock or --disable-libtool-lock was given. +if test "${enable_libtool_lock+set}" = set; then + enableval="$enable_libtool_lock" + +fi; +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes # Check whether --with-pic or --without-pic was given. @@ -4970,453 +6237,497 @@ else fi; test -z "$pic_mode" && pic_mode=default -# We assume here that the value for lt_cv_prog_cc_pic will not be cached -# in isolation, and that seeing it set (from the cache) indicates that -# the associated values are set (in the cache) correctly too. -echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 -if test "${lt_cv_prog_cc_pic+set}" = set; then +# Use C for the default configuration in the libtool script +tagname= +lt_save_CC="$CC" +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +# Source file extension for C test sources. +ac_ext=c + +# Object file extension for compiled C test sources. +objext=o +objext=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code="int some_variable = 0;\n" + +# Code to be used in simple link tests +lt_simple_link_test_code='int main(){return(0);}\n' + + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# Allow CC to be a program name with arguments. +compiler=$CC + + +# save warnings/boilerplate of simple test code +ac_outfile=conftest.$ac_objext +printf "$lt_simple_compile_test_code" >conftest.$ac_ext +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err +_lt_compiler_boilerplate=`cat conftest.err` +$rm conftest* + +ac_outfile=conftest.$ac_objext +printf "$lt_simple_link_test_code" >conftest.$ac_ext +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err +_lt_linker_boilerplate=`cat conftest.err` +$rm conftest* + + +# +# Check for any special shared library compilation flags. +# +lt_prog_cc_shlib= +if test "$GCC" = no; then + case $host_os in + sco3.2v5*) + lt_prog_cc_shlib='-belf' + ;; + esac +fi +if test -n "$lt_prog_cc_shlib"; then + { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 +echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} + if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : + else + { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 +echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} + lt_cv_prog_cc_can_build_shared=no + fi +fi + + +# +# Check to make sure the static flag actually works. +# +echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 +echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 +if test "${lt_prog_compiler_static_works+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - lt_cv_prog_cc_pic= - lt_cv_prog_cc_shlib= - lt_cv_prog_cc_wl= - lt_cv_prog_cc_static= - lt_cv_prog_cc_no_builtin= - lt_cv_prog_cc_can_build_shared=$can_build_shared + lt_prog_compiler_static_works=no + save_LDFLAGS="$LDFLAGS" + LDFLAGS="$LDFLAGS $lt_prog_compiler_static" + printf "$lt_simple_link_test_code" > conftest.$ac_ext + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + if test -s conftest.err; then + # Append any errors to the config.log. + cat conftest.err 1>&5 + $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp + $SED '/^$/d' conftest.err >conftest.er2 + if diff conftest.exp conftest.er2 >/dev/null; then + lt_prog_compiler_static_works=yes + fi + else + lt_prog_compiler_static_works=yes + fi + fi + $rm conftest* + LDFLAGS="$save_LDFLAGS" + +fi +echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 +echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 + +if test x"$lt_prog_compiler_static_works" = xyes; then + : +else + lt_prog_compiler_static= +fi + + + + +lt_prog_compiler_no_builtin_flag= + +if test "$GCC" = yes; then + lt_prog_compiler_no_builtin_flag=' -fno-builtin' + + +echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 +echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 +if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + lt_cv_prog_compiler_rtti_exceptions=no + ac_outfile=conftest.$ac_objext + printf "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="-fno-rtti -fno-exceptions" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:6375: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "$as_me:6379: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp + $SED '/^$/d' conftest.err >conftest.er2 + if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_rtti_exceptions=yes + fi + fi + $rm conftest* + +fi +echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 +echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 + +if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then + lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" +else + : +fi + +fi + +lt_prog_compiler_wl= +lt_prog_compiler_pic= +lt_prog_compiler_static= + +echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 +echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 if test "$GCC" = yes; then - lt_cv_prog_cc_wl='-Wl,' - lt_cv_prog_cc_static='-static' + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_static='-static' case $host_os in - aix*) - # Below there is a dirty hack to force normal static linking with -ldl - # The problem is because libdl dynamically linked with both libc and - # libC (AIX C++ library), which obviously doesn't included in libraries - # list by gcc. This cause undefined symbols with -static flags. - # This hack allows C programs to be linked with "-static -ldl", but - # not sure about C++ programs. - lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC" + aix*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static='-Bstatic' + fi ;; + amigaos*) # FIXME: we need at least 68020 code to build shared libraries, but # adding the `-m68020' flag to GCC prevents building anything better, # like `-m68040'. - lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4' + lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' ;; - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) # PIC is the default for these OSes. ;; + + mingw* | pw32* | os2*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_prog_compiler_pic='-DDLL_EXPORT' + ;; + darwin* | rhapsody*) # PIC is the default on this platform # Common symbols not allowed in MH_DYLIB files - lt_cv_prog_cc_pic='-fno-common' + lt_prog_compiler_pic='-fno-common' ;; - cygwin* | mingw* | pw32* | os2*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - lt_cv_prog_cc_pic='-DDLL_EXPORT' + + msdosdjgpp*) + # Just because we use GCC doesn't mean we suddenly get shared libraries + # on systems that don't support them. + lt_prog_compiler_can_build_shared=no + enable_shared=no ;; + sysv4*MP*) if test -d /usr/nec; then - lt_cv_prog_cc_pic=-Kconform_pic + lt_prog_compiler_pic=-Kconform_pic fi ;; + + hpux*) + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but + # not for PA HP-UX. + case "$host_cpu" in + hppa*64*|ia64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic='-fPIC' + ;; + esac + ;; + *) - lt_cv_prog_cc_pic='-fPIC' + lt_prog_compiler_pic='-fPIC' ;; esac else - # PORTME Check for PIC flags for the system compiler. + # PORTME Check for flag to pass linker flags through the system compiler. case $host_os in - aix3* | aix4* | aix5*) - lt_cv_prog_cc_wl='-Wl,' - # All AIX code is PIC. + aix*) + lt_prog_compiler_wl='-Wl,' if test "$host_cpu" = ia64; then # AIX 5 now supports IA64 processor - lt_cv_prog_cc_static='-Bstatic' + lt_prog_compiler_static='-Bstatic' else - lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp' + lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' fi ;; + darwin*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + case $cc_basename in + xlc*) + lt_prog_compiler_pic='-qnocommon' + lt_prog_compiler_wl='-Wl,' + ;; + esac + ;; + + mingw* | pw32* | os2*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_prog_compiler_pic='-DDLL_EXPORT' + ;; hpux9* | hpux10* | hpux11*) - # Is there a better lt_cv_prog_cc_static that works with the bundled CC? - lt_cv_prog_cc_wl='-Wl,' - lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive" - lt_cv_prog_cc_pic='+Z' + lt_prog_compiler_wl='-Wl,' + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but + # not for PA HP-UX. + case "$host_cpu" in + hppa*64*|ia64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic='+Z' + ;; + esac + # Is there a better lt_prog_compiler_static that works with the bundled CC? + lt_prog_compiler_static='${wl}-a ${wl}archive' ;; irix5* | irix6* | nonstopux*) - lt_cv_prog_cc_wl='-Wl,' - lt_cv_prog_cc_static='-non_shared' + lt_prog_compiler_wl='-Wl,' # PIC (with -KPIC) is the default. - ;; - - cygwin* | mingw* | pw32* | os2*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - lt_cv_prog_cc_pic='-DDLL_EXPORT' + lt_prog_compiler_static='-non_shared' ;; newsos6) - lt_cv_prog_cc_pic='-KPIC' - lt_cv_prog_cc_static='-Bstatic' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + ;; + + linux*) + case $cc_basename in + icc* | ecc*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-static' + ;; + pgcc* | pgf77* | pgf90*) + # Portland Group compilers (*not* the Pentium gcc compiler, + # which looks to be a dead project) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-fpic' + lt_prog_compiler_static='-static' + ;; + ccc*) + lt_prog_compiler_wl='-Wl,' + # All Alpha code is PIC. + lt_prog_compiler_static='-non_shared' + ;; + esac ;; osf3* | osf4* | osf5*) + lt_prog_compiler_wl='-Wl,' # All OSF/1 code is PIC. - lt_cv_prog_cc_wl='-Wl,' - lt_cv_prog_cc_static='-non_shared' + lt_prog_compiler_static='-non_shared' ;; sco3.2v5*) - lt_cv_prog_cc_pic='-Kpic' - lt_cv_prog_cc_static='-dn' - lt_cv_prog_cc_shlib='-belf' + lt_prog_compiler_pic='-Kpic' + lt_prog_compiler_static='-dn' ;; solaris*) - lt_cv_prog_cc_pic='-KPIC' - lt_cv_prog_cc_static='-Bstatic' - lt_cv_prog_cc_wl='-Wl,' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' + case $cc_basename in + f77* | f90* | f95*) + lt_prog_compiler_wl='-Qoption ld ';; + *) + lt_prog_compiler_wl='-Wl,';; + esac ;; sunos4*) - lt_cv_prog_cc_pic='-PIC' - lt_cv_prog_cc_static='-Bstatic' - lt_cv_prog_cc_wl='-Qoption ld ' + lt_prog_compiler_wl='-Qoption ld ' + lt_prog_compiler_pic='-PIC' + lt_prog_compiler_static='-Bstatic' ;; sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) - lt_cv_prog_cc_pic='-KPIC' - lt_cv_prog_cc_static='-Bstatic' - lt_cv_prog_cc_wl='-Wl,' - ;; - - uts4*) - lt_cv_prog_cc_pic='-pic' - lt_cv_prog_cc_static='-Bstatic' + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_pic='-KPIC' + lt_prog_compiler_static='-Bstatic' ;; sysv4*MP*) if test -d /usr/nec ;then - lt_cv_prog_cc_pic='-Kconform_pic' - lt_cv_prog_cc_static='-Bstatic' + lt_prog_compiler_pic='-Kconform_pic' + lt_prog_compiler_static='-Bstatic' fi ;; + unicos*) + lt_prog_compiler_wl='-Wl,' + lt_prog_compiler_can_build_shared=no + ;; + + uts4*) + lt_prog_compiler_pic='-pic' + lt_prog_compiler_static='-Bstatic' + ;; + *) - lt_cv_prog_cc_can_build_shared=no + lt_prog_compiler_can_build_shared=no ;; esac fi -fi +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 +echo "${ECHO_T}$lt_prog_compiler_pic" >&6 -if test -z "$lt_cv_prog_cc_pic"; then - echo "$as_me:$LINENO: result: none" >&5 -echo "${ECHO_T}none" >&6 -else - echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5 -echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6 +# +# Check to make sure the PIC flag actually works. +# +if test -n "$lt_prog_compiler_pic"; then - # Check to make sure the pic_flag actually works. - echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5 -echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6 - if test "${lt_cv_prog_cc_pic_works+set}" = set; then +echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 +echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 +if test "${lt_prog_compiler_pic_works+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - save_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ + lt_prog_compiler_pic_works=no + ac_outfile=conftest.$ac_objext + printf "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="$lt_prog_compiler_pic -DPIC" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:6637: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "$as_me:6641: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp + $SED '/^$/d' conftest.err >conftest.er2 + if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then + lt_prog_compiler_pic_works=yes + fi + fi + $rm conftest* -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - case $host_os in - hpux9* | hpux10* | hpux11*) - # On HP-UX, both CC and GCC only warn that PIC is supported... then - # they create non-PIC objects. So, if there were any warnings, we - # assume that PIC is not supported. - if test -s conftest.err; then - lt_cv_prog_cc_pic_works=no - else - lt_cv_prog_cc_pic_works=yes - fi - ;; - *) - lt_cv_prog_cc_pic_works=yes - ;; - esac +fi +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 +echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 +if test x"$lt_prog_compiler_pic_works" = xyes; then + case $lt_prog_compiler_pic in + "" | " "*) ;; + *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; + esac else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - lt_cv_prog_cc_pic_works=no - -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - CFLAGS="$save_CFLAGS" - + lt_prog_compiler_pic= + lt_prog_compiler_can_build_shared=no fi - - if test "X$lt_cv_prog_cc_pic_works" = Xno; then - lt_cv_prog_cc_pic= - lt_cv_prog_cc_can_build_shared=no - else - lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic" - fi - - echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5 -echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6 fi +case "$host_os" in + # For platforms which do not support PIC, -DPIC is meaningless: + *djgpp*) + lt_prog_compiler_pic= + ;; + *) + lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" + ;; +esac -# Check for any special shared library compilation flags. -if test -n "$lt_cv_prog_cc_shlib"; then - { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5 -echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;} - if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then : - else - { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 -echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} - lt_cv_prog_cc_can_build_shared=no - fi -fi - -echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5 -echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6 -if test "${lt_cv_prog_cc_static_works+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - lt_cv_prog_cc_static_works=no - save_LDFLAGS="$LDFLAGS" - LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static" - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext conftest$ac_exeext -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 - (eval $ac_link) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest$ac_exeext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - lt_cv_prog_cc_static_works=yes -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -fi -rm -f conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext - LDFLAGS="$save_LDFLAGS" - -fi - - -# Belt *and* braces to stop my trousers falling down: -test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static= -echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5 -echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6 - -pic_flag="$lt_cv_prog_cc_pic" -special_shlib_compile_flags="$lt_cv_prog_cc_shlib" -wl="$lt_cv_prog_cc_wl" -link_static_flag="$lt_cv_prog_cc_static" -no_builtin_flag="$lt_cv_prog_cc_no_builtin" -can_build_shared="$lt_cv_prog_cc_can_build_shared" - - -# Check to see if options -o and -c are simultaneously supported by compiler echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 -if test "${lt_cv_compiler_c_o+set}" = set; then +if test "${lt_cv_prog_compiler_c_o+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else + lt_cv_prog_compiler_c_o=no + $rm -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + printf "$lt_simple_compile_test_code" > conftest.$ac_ext -$rm -r conftest 2>/dev/null -mkdir conftest -cd conftest -echo "int some_variable = 0;" > conftest.$ac_ext -mkdir out -# According to Tom Tromey, Ian Lance Taylor reported there are C compilers -# that will create temporary files in the current directory regardless of -# the output directory. Thus, making CWD read-only will cause this test -# to fail, enabling locking or at least warning the user not to do parallel -# builds. -chmod -w . -save_CFLAGS="$CFLAGS" -CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" -compiler_c_o=no -if { (eval echo configure:5314: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings - if test -s out/conftest.err; then - lt_cv_compiler_c_o=no - else - lt_cv_compiler_c_o=yes - fi -else - # Append any errors to the config.log. - cat out/conftest.err 1>&5 - lt_cv_compiler_c_o=no -fi -CFLAGS="$save_CFLAGS" -chmod u+w . -$rm conftest* out/* -rmdir out -cd .. -rmdir conftest -$rm -r conftest 2>/dev/null + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:6699: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "$as_me:6703: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp + $SED '/^$/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o=yes + fi + fi + chmod u+w . + $rm conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files + $rm out/* && rmdir out + cd .. + rmdir conftest + $rm conftest* fi +echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 +echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 -compiler_c_o=$lt_cv_compiler_c_o -echo "$as_me:$LINENO: result: $compiler_c_o" >&5 -echo "${ECHO_T}$compiler_c_o" >&6 -if test x"$compiler_c_o" = x"yes"; then - # Check to see if we can write to a .lo - echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5 -echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6 - if test "${lt_cv_compiler_o_lo+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - - lt_cv_compiler_o_lo=no - save_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS -c -o conftest.lo" - save_objext="$ac_objext" - ac_objext=lo - cat >conftest.$ac_ext <<_ACEOF -/* confdefs.h. */ -_ACEOF -cat confdefs.h >>conftest.$ac_ext -cat >>conftest.$ac_ext <<_ACEOF -/* end confdefs.h. */ - -int -main () -{ -int some_variable = 0; - ; - return 0; -} -_ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 - ac_status=$? - grep -v '^ *+' conftest.er1 >conftest.err - rm -f conftest.er1 - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } && - { ac_try='test -z "$ac_c_werror_flag" - || test ! -s conftest.err' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 - (eval $ac_try) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; }; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings - if test -s conftest.err; then - lt_cv_compiler_o_lo=no - else - lt_cv_compiler_o_lo=yes - fi - -else - echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - ac_objext="$save_objext" - CFLAGS="$save_CFLAGS" - -fi - - compiler_o_lo=$lt_cv_compiler_o_lo - echo "$as_me:$LINENO: result: $compiler_o_lo" >&5 -echo "${ECHO_T}$compiler_o_lo" >&6 -else - compiler_o_lo=no -fi - -# Check to see if we can do hard links to lock some files if needed hard_links="nottested" -if test "$compiler_c_o" = no && test "$need_locks" != no; then +if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then # do not overwrite the value of need_locks provided by the user echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 @@ -5437,15 +6748,358 @@ else need_locks=no fi -if test "$GCC" = yes; then - # Check to see if options -fno-rtti -fno-exceptions are supported by compiler - echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 -echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 - echo "int some_variable = 0;" > conftest.$ac_ext - save_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" - compiler_rtti_exceptions=no - cat >conftest.$ac_ext <<_ACEOF +echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 + + runpath_var= + allow_undefined_flag= + enable_shared_with_static_runtimes=no + archive_cmds= + archive_expsym_cmds= + old_archive_From_new_cmds= + old_archive_from_expsyms_cmds= + export_dynamic_flag_spec= + whole_archive_flag_spec= + thread_safe_flag_spec= + hardcode_libdir_flag_spec= + hardcode_libdir_flag_spec_ld= + hardcode_libdir_separator= + hardcode_direct=no + hardcode_minus_L=no + hardcode_shlibpath_var=unsupported + link_all_deplibs=unknown + hardcode_automatic=no + module_cmds= + module_expsym_cmds= + always_export_symbols=no + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + # include_expsyms should be a list of space-separated symbols to be *always* + # included in the symbol list + include_expsyms= + # exclude_expsyms can be an extended regexp of symbols to exclude + # it will be wrapped by ` (' and `)$', so one must not match beginning or + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', + # as well as any symbol that contains `d'. + exclude_expsyms="_GLOBAL_OFFSET_TABLE_" + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out + # platforms (ab)use it in PIC code, but their linkers get confused if + # the symbol is explicitly referenced. Since portable code cannot + # rely on this symbol name, it's probably fine to never include it in + # preloaded symbol tables. + extract_expsyms_cmds= + # Just being paranoid about ensuring that cc_basename is set. + for cc_temp in $compiler""; do + case $cc_temp in + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` + + case $host_os in + cygwin* | mingw* | pw32*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + if test "$GCC" != yes; then + with_gnu_ld=no + fi + ;; + openbsd*) + with_gnu_ld=no + ;; + esac + + ld_shlibs=yes + if test "$with_gnu_ld" = yes; then + # If archive_cmds runs LD, not CC, wlarc should be empty + wlarc='${wl}' + + # Set some defaults for GNU ld with shared library support. These + # are reset later if shared libraries are not supported. Putting them + # here allows them to be overridden if necessary. + runpath_var=LD_RUN_PATH + hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' + export_dynamic_flag_spec='${wl}--export-dynamic' + # ancient GNU ld didn't support --whole-archive et. al. + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + whole_archive_flag_spec= + fi + supports_anon_versioning=no + case `$LD -v 2>/dev/null` in + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... + *\ 2.11.*) ;; # other 2.11 versions + *) supports_anon_versioning=yes ;; + esac + + # See if GNU ld supports shared libraries. + case $host_os in + aix3* | aix4* | aix5*) + # On AIX/PPC, the GNU linker is very broken + if test "$host_cpu" != ia64; then + ld_shlibs=no + cat <&2 + +*** Warning: the GNU linker, at least up to release 2.9.1, is reported +*** to be unable to reliably create shared libraries on AIX. +*** Therefore, libtool is disabling shared libraries support. If you +*** really care for shared libraries, you may want to modify your PATH +*** so that a non-GNU linker is found, and then restart. + +EOF + fi + ;; + + amigaos*) + archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + + # Samuel A. Falvo II reports + # that the semantics of dynamic libraries on AmigaOS, at least up + # to version 4, is to share data among multiple programs linked + # with the same dynamic library. Since this doesn't match the + # behavior of shared libraries on other platforms, we can't use + # them. + ld_shlibs=no + ;; + + beos*) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + allow_undefined_flag=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + else + ld_shlibs=no + fi + ;; + + cygwin* | mingw* | pw32*) + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec='-L$libdir' + allow_undefined_flag=unsupported + always_export_symbols=no + enable_shared_with_static_runtimes=yes + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' + + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is; otherwise, prepend... + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' + else + ld_shlibs=no + fi + ;; + + linux*) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + tmp_addflag= + case $cc_basename,$host_cpu in + pgcc*) # Portland Group C compiler + whole_archive_flag_spec= + ;; + pgf77* | pgf90* ) # Portland Group f77 and f90 compilers + whole_archive_flag_spec= + tmp_addflag=' -fpic -Mnomain' ;; + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 + tmp_addflag=' -i_dynamic' ;; + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 + tmp_addflag=' -i_dynamic -nofor_main' ;; + ifc* | ifort*) # Intel Fortran compiler + tmp_addflag=' -nofor_main' ;; + esac + archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + + if test $supports_anon_versioning = yes; then + archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + $echo "local: *; };" >> $output_objdir/$libname.ver~ + $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' + fi + else + ld_shlibs=no + fi + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' + wlarc= + else + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + fi + ;; + + solaris* | sysv5*) + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then + ld_shlibs=no + cat <&2 + +*** Warning: The releases 2.8.* of the GNU linker cannot reliably +*** create shared libraries on Solaris systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.9.1 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +EOF + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + + sunos4*) + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' + wlarc= + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + *) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs=no + fi + ;; + esac + + if test "$ld_shlibs" = no; then + runpath_var= + hardcode_libdir_flag_spec= + export_dynamic_flag_spec= + whole_archive_flag_spec= + fi + else + # PORTME fill in a description of your system's linker (not GNU ld) + case $host_os in + aix3*) + allow_undefined_flag=unsupported + always_export_symbols=yes + archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' + # Note: this linker hardcodes the directories in LIBPATH if there + # are no directories specified by -L. + hardcode_minus_L=yes + if test "$GCC" = yes && test -z "$link_static_flag"; then + # Neither direct hardcoding nor static linking is supported with a + # broken collect2. + hardcode_direct=unsupported + fi + ;; + + aix4* | aix5*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag="" + else + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to AIX nm, but means don't demangle with GNU nm + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then + export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' + else + export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' + fi + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[23]|aix4.[23].*|aix5*) + for ld_flag in $LDFLAGS; do + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then + aix_use_runtimelinking=yes + break + fi + done + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + archive_cmds='' + hardcode_direct=yes + hardcode_libdir_separator=':' + link_all_deplibs=yes + + if test "$GCC" = yes; then + case $host_os in aix4.[012]|aix4.[012].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && \ + strings "$collect2name" | grep resolve_lib_name >/dev/null + then + # We have reworked collect2 + hardcode_direct=yes + else + # We have old collect2 + hardcode_direct=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + hardcode_minus_L=yes + hardcode_libdir_flag_spec='-L$libdir' + hardcode_libdir_separator= + fi + esac + shared_flag='-shared' + if test "$aix_use_runtimelinking" = yes; then + shared_flag="$shared_flag "'${wl}-G' + fi + else + # not using gcc + if test "$host_cpu" = ia64; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test "$aix_use_runtimelinking" = yes; then + shared_flag='${wl}-G' + else + shared_flag='${wl}-bM:SRE' + fi + fi + fi + + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to export. + always_export_symbols=yes + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + allow_undefined_flag='-berok' + # Determine the default libpath from the value encoded in an empty executable. + cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF cat confdefs.h >>conftest.$ac_ext @@ -5455,14 +7109,14 @@ cat >>conftest.$ac_ext <<_ACEOF int main () { -int some_variable = 0; + ; return 0; } _ACEOF -rm -f conftest.$ac_objext -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>conftest.er1 +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 ac_status=$? grep -v '^ *+' conftest.er1 >conftest.err rm -f conftest.er1 @@ -5476,788 +7130,596 @@ if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; } && - { ac_try='test -s conftest.$ac_objext' + { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings - if test -s conftest.err; then - compiler_rtti_exceptions=no - else - compiler_rtti_exceptions=yes - fi +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } +}'` +# Check for a 64-bit object if we didn't find anything. +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } +}'`; fi else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 fi -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext - CFLAGS="$save_CFLAGS" - echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5 -echo "${ECHO_T}$compiler_rtti_exceptions" >&6 +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi - if test "$compiler_rtti_exceptions" = "yes"; then - no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions' - else - no_builtin_flag=' -fno-builtin' - fi -fi + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" + archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else + if test "$host_cpu" = ia64; then + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' + allow_undefined_flag="-z nodefs" + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an empty executable. + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ -# See if the linker supports building shared libraries. -echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5 -echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6 +int +main () +{ -allow_undefined_flag= -no_undefined_flag= -need_lib_prefix=unknown -need_version=unknown -# when you set need_version to no, make sure it does not cause -set_version -# flags to be left without arguments -archive_cmds= -archive_expsym_cmds= -old_archive_from_new_cmds= -old_archive_from_expsyms_cmds= -export_dynamic_flag_spec= -whole_archive_flag_spec= -thread_safe_flag_spec= -hardcode_into_libs=no -hardcode_libdir_flag_spec= -hardcode_libdir_separator= -hardcode_direct=no -hardcode_minus_L=no -hardcode_shlibpath_var=unsupported -runpath_var= -link_all_deplibs=unknown -always_export_symbols=no -export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' -# include_expsyms should be a list of space-separated symbols to be *always* -# included in the symbol list -include_expsyms= -# exclude_expsyms can be an egrep regular expression of symbols to exclude -# it will be wrapped by ` (' and `)$', so one must not match beginning or -# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', -# as well as any symbol that contains `d'. -exclude_expsyms="_GLOBAL_OFFSET_TABLE_" -# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out -# platforms (ab)use it in PIC code, but their linkers get confused if -# the symbol is explicitly referenced. Since portable code cannot -# rely on this symbol name, it's probably fine to never include it in -# preloaded symbol tables. -extract_expsyms_cmds= + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then -case $host_os in -cygwin* | mingw* | pw32*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - if test "$GCC" != yes; then - with_gnu_ld=no - fi - ;; -openbsd*) - with_gnu_ld=no - ;; -esac - -ld_shlibs=yes -if test "$with_gnu_ld" = yes; then - # If archive_cmds runs LD, not CC, wlarc should be empty - wlarc='${wl}' - - # See if GNU ld supports shared libraries. - case $host_os in - aix3* | aix4* | aix5*) - # On AIX, the GNU linker is very broken - # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available. - ld_shlibs=no - cat <&2 - -*** Warning: the GNU linker, at least up to release 2.9.1, is reported -*** to be unable to reliably create shared libraries on AIX. -*** Therefore, libtool is disabling shared libraries support. If you -*** really care for shared libraries, you may want to modify your PATH -*** so that a non-GNU linker is found, and then restart. - -EOF - ;; - - amigaos*) - archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - hardcode_libdir_flag_spec='-L$libdir' - hardcode_minus_L=yes - - # Samuel A. Falvo II reports - # that the semantics of dynamic libraries on AmigaOS, at least up - # to version 4, is to share data among multiple programs linked - # with the same dynamic library. Since this doesn't match the - # behavior of shared libraries on other platforms, we can use - # them. - ld_shlibs=no - ;; - - beos*) - if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then - allow_undefined_flag=unsupported - # Joseph Beckenbach says some releases of gcc - # support --undefined. This deserves some investigation. FIXME - archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - else - ld_shlibs=no - fi - ;; - - cygwin* | mingw* | pw32*) - # hardcode_libdir_flag_spec is actually meaningless, as there is - # no search path for DLLs. - hardcode_libdir_flag_spec='-L$libdir' - allow_undefined_flag=unsupported - always_export_symbols=yes - - extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ - sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ - test -f $output_objdir/impgen.exe || (cd $output_objdir && \ - if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ - else $CC -o impgen impgen.c ; fi)~ - $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' - - old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' - - # cygwin and mingw dlls have different entry points and sets of symbols - # to exclude. - # FIXME: what about values for MSVC? - dll_entry=__cygwin_dll_entry@12 - dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ - case $host_os in - mingw*) - # mingw values - dll_entry=_DllMainCRTStartup@12 - dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ - ;; - esac - - # mingw and cygwin differ, and it's simplest to just exclude the union - # of the two symbol sets. - dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 - - # recent cygwin and mingw systems supply a stub DllMain which the user - # can override, but on older systems we have to supply one (in ltdll.c) - if test "x$lt_cv_need_dllmain" = "xyes"; then - ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " - ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~ - test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' - else - ltdll_obj= - ltdll_cmds= - fi - - # Extract the symbol export list from an `--export-all' def file, - # then regenerate the def file from the symbol export list, so that - # the compiled dll only exports the symbol export list. - # Be careful not to strip the DATA tag left be newer dlltools. - export_symbols_cmds="$ltdll_cmds"' - $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ - sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' - - # If the export-symbols file already is a .def file (1st line - # is EXPORTS), use it as is. - # If DATA tags from a recent dlltool are present, honour them! - archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then - cp $export_symbols $output_objdir/$soname-def; - else - echo EXPORTS > $output_objdir/$soname-def; - _lt_hint=1; - cat $export_symbols | while read symbol; do - set dummy \$symbol; - case \$# in - 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; - 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;; - *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;; - esac; - _lt_hint=`expr 1 + \$_lt_hint`; - done; - fi~ - '"$ltdll_cmds"' - $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ - $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~ - $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ - $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~ - $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags' - ;; - - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' - wlarc= - else - archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - fi - ;; - - solaris* | sysv5*) - if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then - ld_shlibs=no - cat <&2 - -*** Warning: The releases 2.8.* of the GNU linker cannot reliably -*** create shared libraries on Solaris systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.9.1 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. - -EOF - elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - ld_shlibs=no - fi - ;; - - sunos4*) - archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' - wlarc= - hardcode_direct=yes - hardcode_shlibpath_var=no - ;; - - *) - if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' - else - ld_shlibs=no - fi - ;; - esac - - if test "$ld_shlibs" = yes; then - runpath_var=LD_RUN_PATH - hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' - export_dynamic_flag_spec='${wl}--export-dynamic' - case $host_os in - cygwin* | mingw* | pw32*) - # dlltool doesn't understand --whole-archive et. al. - whole_archive_flag_spec= - ;; - *) - # ancient GNU ld didn't support --whole-archive et. al. - if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then - whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' - else - whole_archive_flag_spec= - fi - ;; - esac - fi +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } +}'` +# Check for a 64-bit object if we didn't find anything. +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } +}'`; fi else - # PORTME fill in a description of your system's linker (not GNU ld) - case $host_os in - aix3*) - allow_undefined_flag=unsupported - always_export_symbols=yes - archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' - # Note: this linker hardcodes the directories in LIBPATH if there - # are no directories specified by -L. - hardcode_minus_L=yes - if test "$GCC" = yes && test -z "$link_static_flag"; then - # Neither direct hardcoding nor static linking is supported with a - # broken collect2. - hardcode_direct=unsupported - fi - ;; + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 - aix4* | aix5*) - if test "$host_cpu" = ia64; then - # On IA64, the linker does run time linking by default, so we don't - # have to do anything special. - aix_use_runtimelinking=no - exp_sym_flag='-Bexport' - no_entry_flag="" - else - aix_use_runtimelinking=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi - # Test if we are trying to use run time linking or normal - # AIX style linking. If -brtl is somewhere in LDFLAGS, we - # need to do runtime linking. - case $host_os in aix4.[23]|aix4.[23].*|aix5*) - for ld_flag in $LDFLAGS; do - case $ld_flag in - *-brtl*) - aix_use_runtimelinking=yes - break - ;; - esac - done - esac - - exp_sym_flag='-bexport' - no_entry_flag='-bnoentry' - fi - - # When large executables or shared objects are built, AIX ld can - # have problems creating the table of contents. If linking a library - # or program results in "error TOC overflow" add -mminimal-toc to - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. - - hardcode_direct=yes - archive_cmds='' - hardcode_libdir_separator=':' - if test "$GCC" = yes; then - case $host_os in aix4.[012]|aix4.[012].*) - collect2name=`${CC} -print-prog-name=collect2` - if test -f "$collect2name" && \ - strings "$collect2name" | grep resolve_lib_name >/dev/null - then - # We have reworked collect2 - hardcode_direct=yes - else - # We have old collect2 - hardcode_direct=unsupported - # It fails to find uninstalled libraries when the uninstalled - # path is not listed in the libpath. Setting hardcode_minus_L - # to unsupported forces relinking - hardcode_minus_L=yes - hardcode_libdir_flag_spec='-L$libdir' - hardcode_libdir_separator= - fi - esac - - shared_flag='-shared' - else - # not using gcc - if test "$host_cpu" = ia64; then - shared_flag='${wl}-G' - else - if test "$aix_use_runtimelinking" = yes; then - shared_flag='${wl}-G' - else - shared_flag='${wl}-bM:SRE' + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + no_undefined_flag=' ${wl}-bernotok' + allow_undefined_flag=' ${wl}-berok' + # -bexpall does not export symbols beginning with underscore (_) + always_export_symbols=yes + # Exported symbols can be pulled into shared objects from archives + whole_archive_flag_spec=' ' + archive_cmds_need_lc=yes + # This is similar to how AIX traditionally builds it's shared libraries. + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' fi fi - fi - - # It seems that -bexpall can do strange things, so it is better to - # generate a list of symbols to export. - always_export_symbols=yes - if test "$aix_use_runtimelinking" = yes; then - # Warning - without using the other runtime loading flags (-brtl), - # -berok will link without error, but may produce a broken library. - allow_undefined_flag='-berok' - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib' - archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" - else - if test "$host_cpu" = ia64; then - hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' - allow_undefined_flag="-z nodefs" - archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" - else - hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib' - # Warning - without using the other run time loading flags, - # -berok will link without error, but may produce a broken library. - allow_undefined_flag='${wl}-berok' - # This is a bit strange, but is similar to how AIX traditionally builds - # it's shared libraries. - archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname' - fi - fi - ;; - - amigaos*) - archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - hardcode_libdir_flag_spec='-L$libdir' - hardcode_minus_L=yes - # see comment about different semantics on the GNU ld section - ld_shlibs=no - ;; - - cygwin* | mingw* | pw32*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. - # hardcode_libdir_flag_spec is actually meaningless, as there is - # no search path for DLLs. - hardcode_libdir_flag_spec=' ' - allow_undefined_flag=unsupported - # Tell ltmain to make .lib files, not .a files. - libext=lib - # FIXME: Setting linknames here is a bad hack. - archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' - # The linker will automatically build a .lib file if we build a DLL. - old_archive_from_new_cmds='true' - # FIXME: Should let the user specify the lib program. - old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' - fix_srcfile_path='`cygpath -w "$srcfile"`' - ;; - - darwin* | rhapsody*) - case "$host_os" in - rhapsody* | darwin1.[012]) - allow_undefined_flag='-undefined suppress' ;; - *) # Darwin 1.3 on - allow_undefined_flag='-flat_namespace -undefined suppress' + + amigaos*) + archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + # see comment about different semantics on the GNU ld section + ld_shlibs=no ;; - esac - # FIXME: Relying on posixy $() will cause problems for - # cross-compilation, but unfortunately the echo tests do not - # yet detect zsh echo's removal of \ escapes. Also zsh mangles - # `"' quotes if we put them in here... so don't! - archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)' - # We need to add '_' to the symbols in $export_symbols first - #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols' - hardcode_direct=yes - hardcode_shlibpath_var=no - whole_archive_flag_spec='-all_load $convenience' - ;; - freebsd1*) - ld_shlibs=no - ;; + bsdi[45]*) + export_dynamic_flag_spec=-rdynamic + ;; - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor - # support. Future versions do this automatically, but an explicit c++rt0.o - # does not break anything, and helps significantly (at the cost of a little - # extra space). - freebsd2.2*) - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' - hardcode_libdir_flag_spec='-R$libdir' - hardcode_direct=yes - hardcode_shlibpath_var=no - ;; + cygwin* | mingw* | pw32*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + hardcode_libdir_flag_spec=' ' + allow_undefined_flag=unsupported + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=".dll" + # FIXME: Setting linknames here is a bad hack. + archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' + # The linker will automatically build a .lib file if we build a DLL. + old_archive_From_new_cmds='true' + # FIXME: Should let the user specify the lib program. + old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' + fix_srcfile_path='`cygpath -w "$srcfile"`' + enable_shared_with_static_runtimes=yes + ;; - # Unfortunately, older versions of FreeBSD 2 do not have this feature. - freebsd2*) - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct=yes - hardcode_minus_L=yes - hardcode_shlibpath_var=no - ;; - - # FreeBSD 3 and greater uses gcc -shared to do shared libraries. - freebsd*) - archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' - hardcode_libdir_flag_spec='-R$libdir' - hardcode_direct=yes - hardcode_shlibpath_var=no - ;; - - hpux9* | hpux10* | hpux11*) - case $host_os in - hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;; - *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; - esac - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' - hardcode_libdir_separator=: - hardcode_direct=yes - hardcode_minus_L=yes # Not in the search PATH, but as the default - # location of the library. - export_dynamic_flag_spec='${wl}-E' - ;; - - irix5* | irix6* | nonstopux*) - if test "$GCC" = yes; then - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' - else - archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - hardcode_libdir_flag_spec='-rpath $libdir' - fi - hardcode_libdir_separator=: - link_all_deplibs=yes - ;; - - netbsd*) - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out - else - archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF - fi - hardcode_libdir_flag_spec='-R$libdir' - hardcode_direct=yes - hardcode_shlibpath_var=no - ;; - - newsos6) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct=yes - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator=: - hardcode_shlibpath_var=no - ;; - - openbsd*) - hardcode_direct=yes - hardcode_shlibpath_var=no - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - hardcode_libdir_flag_spec='${wl}-rpath,$libdir' - export_dynamic_flag_spec='${wl}-E' - else + darwin* | rhapsody*) case "$host_os" in - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec='-R$libdir' - ;; - *) - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - hardcode_libdir_flag_spec='${wl}-rpath,$libdir' - ;; + rhapsody* | darwin1.[012]) + allow_undefined_flag='${wl}-undefined ${wl}suppress' + ;; + *) # Darwin 1.3 on + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then + allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' + else + case ${MACOSX_DEPLOYMENT_TARGET} in + 10.[012]) + allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' + ;; + 10.*) + allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' + ;; + esac + fi + ;; + esac + archive_cmds_need_lc=no + hardcode_direct=no + hardcode_automatic=yes + hardcode_shlibpath_var=unsupported + whole_archive_flag_spec='' + link_all_deplibs=yes + if test "$GCC" = yes ; then + output_verbose_link_cmd='echo' + archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' + module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's + archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + else + case $cc_basename in + xlc*) + output_verbose_link_cmd='echo' + archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' + module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's + archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + ;; + *) + ld_shlibs=no + ;; esac fi - ;; + ;; - os2*) - hardcode_libdir_flag_spec='-L$libdir' - hardcode_minus_L=yes - allow_undefined_flag=unsupported - archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' - old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' - ;; + dgux*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_shlibpath_var=no + ;; - osf3*) - if test "$GCC" = yes; then - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' - else - allow_undefined_flag=' -expect_unresolved \*' - archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - fi - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' - hardcode_libdir_separator=: - ;; + freebsd1*) + ld_shlibs=no + ;; - osf4* | osf5*) # as osf3* with the addition of -msym flag - if test "$GCC" = yes; then - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor + # support. Future versions do this automatically, but an explicit c++rt0.o + # does not break anything, and helps significantly (at the cost of a little + # extra space). + freebsd2.2*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + # Unfortunately, older versions of FreeBSD 2 do not have this feature. + freebsd2*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes + hardcode_minus_L=yes + hardcode_shlibpath_var=no + ;; + + # FreeBSD 3 and greater uses gcc -shared to do shared libraries. + freebsd* | kfreebsd*-gnu | dragonfly*) + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; + + hpux9*) + if test "$GCC" = yes; then + archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + else + archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + fi + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_direct=yes + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + export_dynamic_flag_spec='${wl}-E' + ;; + + hpux10* | hpux11*) + if test "$GCC" = yes -a "$with_gnu_ld" = no; then + case "$host_cpu" in + hppa*64*|ia64*) + archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + else + case "$host_cpu" in + hppa*64*|ia64*) + archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' + ;; + *) + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' + ;; + esac + fi + if test "$with_gnu_ld" = no; then + case "$host_cpu" in + hppa*64*) + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_flag_spec_ld='+b $libdir' + hardcode_libdir_separator=: + hardcode_direct=no + hardcode_shlibpath_var=no + ;; + ia64*) + hardcode_libdir_flag_spec='-L$libdir' + hardcode_direct=no + hardcode_shlibpath_var=no + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + ;; + *) + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_direct=yes + export_dynamic_flag_spec='${wl}-E' + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L=yes + ;; + esac + fi + ;; + + irix5* | irix6* | nonstopux*) + if test "$GCC" = yes; then + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + hardcode_libdir_flag_spec_ld='-rpath $libdir' + fi hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' - else - allow_undefined_flag=' -expect_unresolved \*' - archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' - archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' + hardcode_libdir_separator=: + link_all_deplibs=yes + ;; - #Both c and cxx compiler support -rpath directly - hardcode_libdir_flag_spec='-rpath $libdir' - fi - hardcode_libdir_separator=: - ;; + netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out + else + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF + fi + hardcode_libdir_flag_spec='-R$libdir' + hardcode_direct=yes + hardcode_shlibpath_var=no + ;; - sco3.2v5*) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_shlibpath_var=no - runpath_var=LD_RUN_PATH - hardcode_runpath_var=yes - export_dynamic_flag_spec='${wl}-Bexport' - ;; + newsos6) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + hardcode_shlibpath_var=no + ;; - solaris*) - # gcc --version < 3.0 without binutils cannot create self contained - # shared libraries reliably, requiring libgcc.a to resolve some of - # the object symbols generated in some cases. Libraries that use - # assert need libgcc.a to resolve __eprintf, for example. Linking - # a copy of libgcc.a into every shared library to guarantee resolving - # such symbols causes other problems: According to Tim Van Holder - # , C++ libraries end up with a separate - # (to the application) exception stack for one thing. - no_undefined_flag=' -z defs' - if test "$GCC" = yes; then - case `$CC --version 2>/dev/null` in - [12].*) - cat <&2 + openbsd*) + hardcode_direct=yes + hardcode_shlibpath_var=no + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + export_dynamic_flag_spec='${wl}-E' + else + case $host_os in + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-R$libdir' + ;; + *) + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' + ;; + esac + fi + ;; -*** Warning: Releases of GCC earlier than version 3.0 cannot reliably -*** create self contained shared libraries on Solaris systems, without -*** introducing a dependency on libgcc.a. Therefore, libtool is disabling -*** -no-undefined support, which will at least allow you to build shared -*** libraries. However, you may find that when you link such libraries -*** into an application without using GCC, you have to manually add -*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to -*** upgrade to a newer version of GCC. Another option is to rebuild your -*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer. + os2*) + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + allow_undefined_flag=unsupported + archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' + old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' + ;; -EOF - no_undefined_flag= - ;; - esac - fi - # $CC -shared without GNU ld will not create a library from C++ - # object files and a static libstdc++, better avoid it by now - archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' - hardcode_libdir_flag_spec='-R$libdir' - hardcode_shlibpath_var=no - case $host_os in - solaris2.[0-5] | solaris2.[0-5].*) ;; - *) # Supported since Solaris 2.6 (maybe 2.5.1?) - whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; - esac - link_all_deplibs=yes - ;; + osf3*) + if test "$GCC" = yes; then + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + allow_undefined_flag=' -expect_unresolved \*' + archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + fi + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator=: + ;; - sunos4*) - if test "x$host_vendor" = xsequent; then - # Use $CC to link under sequent, because it throws in some extra .o - # files that make .init and .fini sections work. - archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' - fi - hardcode_libdir_flag_spec='-L$libdir' - hardcode_direct=yes - hardcode_minus_L=yes - hardcode_shlibpath_var=no - ;; + osf4* | osf5*) # as osf3* with the addition of -msym flag + if test "$GCC" = yes; then + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' + else + allow_undefined_flag=' -expect_unresolved \*' + archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ + $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' - sysv4) - case $host_vendor in - sni) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct=yes # is this really true??? - ;; - siemens) - ## LD is ld it makes a PLAMLIB - ## CC just makes a GrossModule. - archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' - reload_cmds='$CC -r -o $output$reload_objs' - hardcode_direct=no - ;; - motorola) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct=no #Motorola manual says yes, but my tests say they lie - ;; - esac - runpath_var='LD_RUN_PATH' - hardcode_shlibpath_var=no - ;; + # Both c and cxx compiler support -rpath directly + hardcode_libdir_flag_spec='-rpath $libdir' + fi + hardcode_libdir_separator=: + ;; - sysv4.3*) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_shlibpath_var=no - export_dynamic_flag_spec='-Bexport' - ;; - - sysv5*) - no_undefined_flag=' -z text' - # $CC -shared without GNU ld will not create a library from C++ - # object files and a static libstdc++, better avoid it by now - archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' - hardcode_libdir_flag_spec= - hardcode_shlibpath_var=no - runpath_var='LD_RUN_PATH' - ;; - - uts4*) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec='-L$libdir' - hardcode_shlibpath_var=no - ;; - - dgux*) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec='-L$libdir' - hardcode_shlibpath_var=no - ;; - - sysv4*MP*) - if test -d /usr/nec; then + sco3.2v5*) archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' hardcode_shlibpath_var=no + export_dynamic_flag_spec='${wl}-Bexport' runpath_var=LD_RUN_PATH hardcode_runpath_var=yes - ld_shlibs=yes - fi - ;; + ;; - sysv4.2uw2*) - archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct=yes - hardcode_minus_L=no - hardcode_shlibpath_var=no - hardcode_runpath_var=yes - runpath_var=LD_RUN_PATH - ;; + solaris*) + no_undefined_flag=' -z text' + if test "$GCC" = yes; then + wlarc='${wl}' + archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' + else + wlarc='' + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' + fi + hardcode_libdir_flag_spec='-R$libdir' + hardcode_shlibpath_var=no + case $host_os in + solaris2.[0-5] | solaris2.[0-5].*) ;; + *) + # The compiler driver will combine linker options so we + # cannot just pass the convience library names through + # without $wl, iff we do not link with $LD. + # Luckily, gcc supports the same syntax we need for Sun Studio. + # Supported since Solaris 2.6 (maybe 2.5.1?) + case $wlarc in + '') + whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; + *) + whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; + esac ;; + esac + link_all_deplibs=yes + ;; - sysv5uw7* | unixware7*) - no_undefined_flag='${wl}-z ${wl}text' - if test "$GCC" = yes; then - archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - runpath_var='LD_RUN_PATH' - hardcode_shlibpath_var=no - ;; + sunos4*) + if test "x$host_vendor" = xsequent; then + # Use $CC to link under sequent, because it throws in some extra .o + # files that make .init and .fini sections work. + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' + fi + hardcode_libdir_flag_spec='-L$libdir' + hardcode_direct=yes + hardcode_minus_L=yes + hardcode_shlibpath_var=no + ;; + + sysv4) + case $host_vendor in + sni) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes # is this really true??? + ;; + siemens) + ## LD is ld it makes a PLAMLIB + ## CC just makes a GrossModule. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' + reload_cmds='$CC -r -o $output$reload_objs' + hardcode_direct=no + ;; + motorola) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=no #Motorola manual says yes, but my tests say they lie + ;; + esac + runpath_var='LD_RUN_PATH' + hardcode_shlibpath_var=no + ;; + + sysv4.3*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var=no + export_dynamic_flag_spec='-Bexport' + ;; + + sysv4*MP*) + if test -d /usr/nec; then + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var=no + runpath_var=LD_RUN_PATH + hardcode_runpath_var=yes + ld_shlibs=yes + fi + ;; + + sysv4.2uw2*) + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct=yes + hardcode_minus_L=no + hardcode_shlibpath_var=no + hardcode_runpath_var=yes + runpath_var=LD_RUN_PATH + ;; + + sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) + no_undefined_flag='${wl}-z ${wl}text' + if test "$GCC" = yes; then + archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + runpath_var='LD_RUN_PATH' + hardcode_shlibpath_var=no + ;; + + sysv5*) + no_undefined_flag=' -z text' + # $CC -shared without GNU ld will not create a library from C++ + # object files and a static libstdc++, better avoid it by now + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' + hardcode_libdir_flag_spec= + hardcode_shlibpath_var=no + runpath_var='LD_RUN_PATH' + ;; + + uts4*) + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec='-L$libdir' + hardcode_shlibpath_var=no + ;; + + *) + ld_shlibs=no + ;; + esac + fi - *) - ld_shlibs=no - ;; - esac -fi echo "$as_me:$LINENO: result: $ld_shlibs" >&5 echo "${ECHO_T}$ld_shlibs" >&6 test "$ld_shlibs" = no && can_build_shared=no -# Check hardcoding attributes. -echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 -hardcode_action= -if test -n "$hardcode_libdir_flag_spec" || \ - test -n "$runpath_var"; then +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" +if test "$GCC" = yes; then + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" +fi - # We can hardcode non-existant directories. - if test "$hardcode_direct" != no && - # If the only mechanism to avoid hardcoding is shlibpath_var, we - # have to relink, otherwise we might link with an installed library - # when we should be linking with a yet-to-be-installed one - ## test "$hardcode_shlibpath_var" != no && - test "$hardcode_minus_L" != no; then - # Linking always hardcodes the temporary library directory. - hardcode_action=relink - else - # We can link without hardcoding, and we can hardcode nonexisting dirs. - hardcode_action=immediate +# +# Do we need to explicitly link libc? +# +case "x$archive_cmds_need_lc" in +x|xyes) + # Assume -lc should be added + archive_cmds_need_lc=yes + + if test "$enable_shared" = yes && test "$GCC" = yes; then + case $archive_cmds in + *'~'*) + # FIXME: we may have to deal with multi-command sequences. + ;; + '$CC '*) + # Test whether the compiler implicitly links with -lc since on some + # systems, -lgcc has to come before -lc. If gcc already passes -lc + # to ld, don't add -lc before -lgcc. + echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 +echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 + $rm conftest* + printf "$lt_simple_compile_test_code" > conftest.$ac_ext + + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } 2>conftest.err; then + soname=conftest + lib=conftest + libobjs=conftest.$ac_objext + deplibs= + wl=$lt_prog_compiler_wl + compiler_flags=-v + linker_flags=-v + verstring= + output_objdir=. + libname=conftest + lt_save_allow_undefined_flag=$allow_undefined_flag + allow_undefined_flag= + if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 + (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } + then + archive_cmds_need_lc=no + else + archive_cmds_need_lc=yes + fi + allow_undefined_flag=$lt_save_allow_undefined_flag + else + cat conftest.err 1>&5 + fi + $rm conftest* + echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 +echo "${ECHO_T}$archive_cmds_need_lc" >&6 + ;; + esac fi -else - # We cannot hardcode anything, or else we can only hardcode existing - # directories. - hardcode_action=unsupported -fi -echo "$as_me:$LINENO: result: $hardcode_action" >&5 -echo "${ECHO_T}$hardcode_action" >&6 + ;; +esac -striplib= -old_striplib= -echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 -echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" - test -z "$striplib" && striplib="$STRIP --strip-unneeded" - echo "$as_me:$LINENO: result: yes" >&5 -echo "${ECHO_T}yes" >&6 -else - echo "$as_me:$LINENO: result: no" >&5 -echo "${ECHO_T}no" >&6 -fi - -reload_cmds='$LD$reload_flag -o $output$reload_objs' -test -z "$deplibs_check_method" && deplibs_check_method=unknown - -# PORTME Fill in your ld.so characteristics echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 library_names_spec= libname_spec='lib$name' soname_spec= +shrext_cmds=".so" postinstall_cmds= postuninstall_cmds= finish_cmds= @@ -6267,16 +7729,35 @@ shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" sys_lib_dlsearch_path_spec="/lib /usr/lib" -sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" +if test "$GCC" = yes; then + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then + # if the path contains ";" then we assume it to be the separator + # otherwise default to the standard path separator (i.e. ":") - it is + # assumed that no part of a normal pathname contains ";" but that should + # okay in the real world where ";" in dirpaths is itself problematic. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + else + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi +else + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" +fi +need_lib_prefix=unknown +hardcode_into_libs=no + +# when you set need_version to no, make sure it does not cause -set_version +# flags to be left without arguments +need_version=unknown case $host_os in aix3*) version_type=linux - library_names_spec='${libname}${release}.so$versuffix $libname.a' + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' shlibpath_var=LIBPATH - # AIX has no versioning support, so we append a major version to the name. - soname_spec='${libname}${release}.so$major' + # AIX 3 has no versioning support, so we append a major version to the name. + soname_spec='${libname}${release}${shared_ext}$major' ;; aix4* | aix5*) @@ -6286,7 +7767,7 @@ aix4* | aix5*) hardcode_into_libs=yes if test "$host_cpu" = ia64; then # AIX 5 supports IA64 - library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH else # With GCC up to 2.95.x, collect2 would create an import file @@ -6296,57 +7777,54 @@ aix4* | aix5*) # development snapshots of GCC prior to 3.0. case $host_os in aix4 | aix4.[01] | aix4.[01].*) - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' - echo ' yes ' - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then - : - else - can_build_shared=no - fi - ;; + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' + echo ' yes ' + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then + : + else + can_build_shared=no + fi + ;; esac - # AIX (on Power*) has no versioning support, so currently we can - # not hardcode correct soname into executable. Probably we can - # add versioning support to collect2, so additional links can - # be useful in future. + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct + # soname into executable. Probably we can add versioning support to + # collect2, so additional links can be useful in future. if test "$aix_use_runtimelinking" = yes; then # If using run time linking (on AIX 4.2 or later) use lib.so # instead of lib.a to let people know that these are not # typical AIX shared libraries. - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' else # We preserve .a as extension for shared libraries through AIX4.2 # and later when we are not doing run time linking. library_names_spec='${libname}${release}.a $libname.a' - soname_spec='${libname}${release}.so$major' + soname_spec='${libname}${release}${shared_ext}$major' fi shlibpath_var=LIBPATH fi - hardcode_into_libs=yes ;; amigaos*) library_names_spec='$libname.ixlibrary $libname.a' # Create ${libname}_ixlibrary.a entries in /sys/libs. - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done' + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' ;; beos*) - library_names_spec='${libname}.so' + library_names_spec='${libname}${shared_ext}' dynamic_linker="$host_os ld.so" shlibpath_var=LIBRARY_PATH ;; -bsdi4*) +bsdi[45]*) version_type=linux need_version=no - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' - soname_spec='${libname}${release}.so$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" - export_dynamic_flag_spec=-rdynamic # the default ld.so.conf also contains /usr/contrib/lib and # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow # libtool to hard-code these into programs @@ -6354,29 +7832,55 @@ bsdi4*) cygwin* | mingw* | pw32*) version_type=windows + shrext_cmds=".dll" need_version=no need_lib_prefix=no + case $GCC,$host_os in - yes,cygwin*) + yes,cygwin* | yes,mingw* | yes,pw32*) library_names_spec='$libname.dll.a' - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' - postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ dldir=$destdir/`dirname \$dlpath`~ test -d \$dldir || mkdir -p \$dldir~ - $install_prog .libs/$dlname \$dldir/$dlname' - postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ + $install_prog $dir/$dlname \$dldir/$dlname' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ dlpath=$dir/\$dldll~ $rm \$dlpath' + shlibpath_overrides_runpath=yes + + case $host_os in + cygwin*) + # Cygwin DLLs use 'cyg' prefix rather than 'lib' + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" + ;; + mingw*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` + if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then + # It is most probably a Windows format PATH printed by + # mingw gcc, but we are running on Cygwin. Gcc prints its search + # path with ; separators, and with drive letters. We can handle the + # drive letters (cygwin fileutils understands them), so leave them, + # especially as we might pass files found there to a mingw objdump, + # which wouldn't understand a cygwinified path. Ahh. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + else + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + ;; + pw32*) + # pw32 DLLs use 'pw' prefix rather than 'lib' + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + ;; + esac ;; - yes,mingw*) - library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"` - ;; - yes,pw32*) - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll' - ;; + *) - library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib' + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' ;; esac dynamic_linker='Win32 ld.exe' @@ -6389,30 +7893,58 @@ darwin* | rhapsody*) version_type=darwin need_lib_prefix=no need_version=no - # FIXME: Relying on posixy $() will cause problems for - # cross-compilation, but unfortunately the echo tests do not - # yet detect zsh echo's removal of \ escapes. - library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)' - soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' + soname_spec='${libname}${release}${major}$shared_ext' shlibpath_overrides_runpath=yes shlibpath_var=DYLD_LIBRARY_PATH + shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. + if test "$GCC" = yes; then + sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` + else + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' + fi + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' + ;; + +dgux*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH ;; freebsd1*) dynamic_linker=no ;; -freebsd*) +kfreebsd*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='GNU ld.so' + ;; + +freebsd* | dragonfly*) + # DragonFly does not have aout. When/if they implement a new + # versioning mechanism, adjust this. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` version_type=freebsd-$objformat case $version_type in freebsd-elf*) - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' need_version=no need_lib_prefix=no ;; freebsd-*) - library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' need_version=yes ;; esac @@ -6421,7 +7953,11 @@ freebsd*) freebsd2*) shlibpath_overrides_runpath=yes ;; - *) + freebsd3.[01]* | freebsdelf3.[01]*) + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + *) # from 3.2 on shlibpath_overrides_runpath=no hardcode_into_libs=yes ;; @@ -6432,8 +7968,8 @@ gnu*) version_type=linux need_lib_prefix=no need_version=no - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' - soname_spec='${libname}${release}.so$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH hardcode_into_libs=yes ;; @@ -6441,14 +7977,45 @@ gnu*) hpux9* | hpux10* | hpux11*) # Give a soname corresponding to the major version so that dld.sl refuses to # link against other versions. - dynamic_linker="$host_os dld.sl" version_type=sunos need_lib_prefix=no need_version=no - shlibpath_var=SHLIB_PATH - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH - library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' - soname_spec='${libname}${release}.sl$major' + case "$host_cpu" in + ia64*) + shrext_cmds='.so' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.so" + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + if test "X$HPUX_IA64_MODE" = X32; then + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" + else + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" + fi + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + hppa*64*) + shrext_cmds='.sl' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.sl" + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + *) + shrext_cmds='.sl' + dynamic_linker="$host_os dld.sl" + shlibpath_var=SHLIB_PATH + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + ;; + esac # HP-UX runs *really* slowly unless shared libraries are mode 555. postinstall_cmds='chmod 555 $lib' ;; @@ -6456,21 +8023,29 @@ hpux9* | hpux10* | hpux11*) irix5* | irix6* | nonstopux*) case $host_os in nonstopux*) version_type=nonstopux ;; - *) version_type=irix ;; + *) + if test "$lt_cv_prog_gnu_ld" = yes; then + version_type=linux + else + version_type=irix + fi ;; esac need_lib_prefix=no need_version=no - soname_spec='${libname}${release}.so$major' - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' case $host_os in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in # libtool.m4 will add one of these switches to LD - *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; - *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; - *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") + libsuff= shlibsuff= libmagic=32-bit;; + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") + libsuff=32 shlibsuff=N32 libmagic=N32;; + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") + libsuff=64 shlibsuff=64 libmagic=64-bit;; *) libsuff= shlibsuff= libmagic=never-match;; esac ;; @@ -6479,20 +8054,21 @@ irix5* | irix6* | nonstopux*) shlibpath_overrides_runpath=no sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" + hardcode_into_libs=yes ;; # No shared lib support for Linux oldld, aout, or coff. -linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*) +linux*oldld* | linux*aout* | linux*coff*) dynamic_linker=no ;; # This must be Linux ELF. -linux-gnu*) +linux*) version_type=linux need_lib_prefix=no need_version=no - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' - soname_spec='${libname}${release}.so$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=no @@ -6501,6 +8077,33 @@ linux-gnu*) # before this can be enabled. hardcode_into_libs=yes + # find out which ABI we are using + libsuff= + case "$host_cpu" in + x86_64*|s390x*|powerpc64*) + echo '#line 8084 "configure"' > conftest.$ac_ext + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; then + case `/usr/bin/file conftest.$ac_objext` in + *64-bit*) + libsuff=64 + sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" + ;; + esac + fi + rm -rf conftest* + ;; + esac + + # Append ld.so.conf contents to the search path + if test -f /etc/ld.so.conf; then + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` + sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" + fi + # We used to test for /lib/ld.so.1 and disable shared libraries on # powerpc, because MkLinux only supported shared libraries with the # GNU dynamic linker. Since this was broken with cross compilers, @@ -6510,17 +8113,29 @@ linux-gnu*) dynamic_linker='GNU/Linux ld.so' ;; +knetbsd*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='GNU ld.so' + ;; + netbsd*) version_type=sunos need_lib_prefix=no need_version=no if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then - library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' dynamic_linker='NetBSD (a.out) ld.so' else - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' - soname_spec='${libname}${release}.so$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' dynamic_linker='NetBSD ld.elf_so' fi shlibpath_var=LD_LIBRARY_PATH @@ -6530,7 +8145,17 @@ netbsd*) newsos6) version_type=linux - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +nto-qnx*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes ;; @@ -6539,46 +8164,47 @@ openbsd*) version_type=sunos need_lib_prefix=no need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + shlibpath_var=LD_LIBRARY_PATH if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - case "$host_os" in - openbsd2.[89] | openbsd2.[89].*) - shlibpath_overrides_runpath=no - ;; - *) - shlibpath_overrides_runpath=yes - ;; - esac + case $host_os in + openbsd2.[89] | openbsd2.[89].*) + shlibpath_overrides_runpath=no + ;; + *) + shlibpath_overrides_runpath=yes + ;; + esac else shlibpath_overrides_runpath=yes fi - library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - shlibpath_var=LD_LIBRARY_PATH ;; os2*) libname_spec='$name' + shrext_cmds=".dll" need_lib_prefix=no - library_names_spec='$libname.dll $libname.a' + library_names_spec='$libname${shared_ext} $libname.a' dynamic_linker='OS/2 ld.exe' shlibpath_var=LIBPATH ;; osf3* | osf4* | osf5*) version_type=osf + need_lib_prefix=no need_version=no - soname_spec='${libname}${release}.so$major' - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" - hardcode_into_libs=yes ;; sco3.2v5*) version_type=osf - soname_spec='${libname}${release}.so$major' - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' shlibpath_var=LD_LIBRARY_PATH ;; @@ -6586,8 +8212,8 @@ solaris*) version_type=linux need_lib_prefix=no need_version=no - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' - soname_spec='${libname}${release}.so$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes hardcode_into_libs=yes @@ -6597,7 +8223,7 @@ solaris*) sunos4*) version_type=sunos - library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' shlibpath_var=LD_LIBRARY_PATH shlibpath_overrides_runpath=yes @@ -6609,8 +8235,8 @@ sunos4*) sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) version_type=linux - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' - soname_spec='${libname}${release}.so$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' shlibpath_var=LD_LIBRARY_PATH case $host_vendor in sni) @@ -6631,31 +8257,22 @@ sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) esac ;; -uts4*) - version_type=linux - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' - soname_spec='${libname}${release}.so$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -dgux*) - version_type=linux - need_lib_prefix=no - need_version=no - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' - soname_spec='${libname}${release}.so$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - sysv4*MP*) if test -d /usr/nec ;then version_type=linux - library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' - soname_spec='$libname.so.$major' + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' + soname_spec='$libname${shared_ext}.$major' shlibpath_var=LD_LIBRARY_PATH fi ;; +uts4*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + *) dynamic_linker=no ;; @@ -6664,42 +8281,33 @@ echo "$as_me:$LINENO: result: $dynamic_linker" >&5 echo "${ECHO_T}$dynamic_linker" >&6 test "$dynamic_linker" = no && can_build_shared=no -# Report the final consequences. -echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 -echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 -echo "$as_me:$LINENO: result: $can_build_shared" >&5 -echo "${ECHO_T}$can_build_shared" >&6 +echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 +echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 +hardcode_action= +if test -n "$hardcode_libdir_flag_spec" || \ + test -n "$runpath_var" || \ + test "X$hardcode_automatic" = "Xyes" ; then -echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 -echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 -test "$can_build_shared" = "no" && enable_shared=no - -# On AIX, shared libraries and static libraries use the same namespace, and -# are all built from PIC. -case "$host_os" in -aix3*) - test "$enable_shared" = yes && enable_static=no - if test -n "$RANLIB"; then - archive_cmds="$archive_cmds~\$RANLIB \$lib" - postinstall_cmds='$RANLIB $lib' + # We can hardcode non-existant directories. + if test "$hardcode_direct" != no && + # If the only mechanism to avoid hardcoding is shlibpath_var, we + # have to relink, otherwise we might link with an installed library + # when we should be linking with a yet-to-be-installed one + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && + test "$hardcode_minus_L" != no; then + # Linking always hardcodes the temporary library directory. + hardcode_action=relink + else + # We can link without hardcoding, and we can hardcode nonexisting dirs. + hardcode_action=immediate fi - ;; - -aix4*) - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then - test "$enable_shared" = yes && enable_static=no - fi - ;; -esac -echo "$as_me:$LINENO: result: $enable_shared" >&5 -echo "${ECHO_T}$enable_shared" >&6 - -echo "$as_me:$LINENO: checking whether to build static libraries" >&5 -echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 -# Make sure either enable_shared or enable_static is yes. -test "$enable_shared" = yes || enable_static=yes -echo "$as_me:$LINENO: result: $enable_static" >&5 -echo "${ECHO_T}$enable_static" >&6 +else + # We cannot hardcode anything, or else we can only hardcode existing + # directories. + hardcode_action=unsupported +fi +echo "$as_me:$LINENO: result: $hardcode_action" >&5 +echo "${ECHO_T}$hardcode_action" >&6 if test "$hardcode_action" = relink; then # Fast installation is not supported @@ -6710,9 +8318,33 @@ elif test "$shlibpath_overrides_runpath" = yes || enable_fast_install=needless fi -variables_saved_for_relink="PATH $shlibpath_var $runpath_var" -if test "$GCC" = yes; then - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" +striplib= +old_striplib= +echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 +echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" + test -z "$striplib" && striplib="$STRIP --strip-unneeded" + echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6 +else +# FIXME - insert some real tests, host_os isn't really good enough + case $host_os in + darwin*) + if test -n "$STRIP" ; then + striplib="$STRIP -x" + echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6 + else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + ;; + *) + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 + ;; + esac fi if test "x$enable_dlopen" != xyes; then @@ -6730,11 +8362,94 @@ else lt_cv_dlopen_self=yes ;; - cygwin* | mingw* | pw32*) + mingw* | pw32*) lt_cv_dlopen="LoadLibrary" lt_cv_dlopen_libs= ;; + cygwin*) + lt_cv_dlopen="dlopen" + lt_cv_dlopen_libs= + ;; + + darwin*) + # if libdl is installed we need to link against it + echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 +echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 +if test "${ac_cv_lib_dl_dlopen+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char dlopen (); +int +main () +{ +dlopen (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_dl_dlopen=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_lib_dl_dlopen=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 +echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 +if test $ac_cv_lib_dl_dlopen = yes; then + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" +else + + lt_cv_dlopen="dyld" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + +fi + + ;; + *) echo "$as_me:$LINENO: checking for shl_load" >&5 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 @@ -7218,7 +8933,7 @@ fi case $lt_cv_dlopen in dlopen) save_CPPFLAGS="$CPPFLAGS" - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" save_LDFLAGS="$LDFLAGS" eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" @@ -7234,10 +8949,10 @@ else if test "$cross_compiling" = yes; then : lt_cv_dlopen_self=cross else - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_status=$lt_dlunknown cat > conftest.$ac_ext < conftest.$ac_ext <&6 fi -if test "$enable_shared" = yes && test "$GCC" = yes; then - case $archive_cmds in - *'~'*) - # FIXME: we may have to deal with multi-command sequences. +# Report which librarie types wil actually be built +echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 +echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 +echo "$as_me:$LINENO: result: $can_build_shared" >&5 +echo "${ECHO_T}$can_build_shared" >&6 + +echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 +echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 +test "$can_build_shared" = "no" && enable_shared=no + +# On AIX, shared libraries and static libraries use the same namespace, and +# are all built from PIC. +case "$host_os" in +aix3*) + test "$enable_shared" = yes && enable_static=no + if test -n "$RANLIB"; then + archive_cmds="$archive_cmds~\$RANLIB \$lib" + postinstall_cmds='$RANLIB $lib' + fi + ;; + +aix4* | aix5*) + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then + test "$enable_shared" = yes && enable_static=no + fi ;; - '$CC '*) - # Test whether the compiler implicitly links with -lc since on some - # systems, -lgcc has to come before -lc. If gcc already passes -lc - # to ld, don't add -lc before -lgcc. - echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 - if test "${lt_cv_archive_cmds_need_lc+set}" = set; then - echo $ECHO_N "(cached) $ECHO_C" >&6 -else - $rm conftest* - echo 'static int dummy;' > conftest.$ac_ext +esac +echo "$as_me:$LINENO: result: $enable_shared" >&5 +echo "${ECHO_T}$enable_shared" >&6 - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); }; then - soname=conftest - lib=conftest - libobjs=conftest.$ac_objext - deplibs= - wl=$lt_cv_prog_cc_wl - compiler_flags=-v - linker_flags=-v - verstring= - output_objdir=. - libname=conftest - save_allow_undefined_flag=$allow_undefined_flag - allow_undefined_flag= - if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 - (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - then - lt_cv_archive_cmds_need_lc=no - else - lt_cv_archive_cmds_need_lc=yes - fi - allow_undefined_flag=$save_allow_undefined_flag - else - cat conftest.err 1>&5 - fi -fi +echo "$as_me:$LINENO: checking whether to build static libraries" >&5 +echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 +# Make sure either enable_shared or enable_static is yes. +test "$enable_shared" = yes || enable_static=yes +echo "$as_me:$LINENO: result: $enable_static" >&5 +echo "${ECHO_T}$enable_static" >&6 - echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5 -echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6 - ;; - esac -fi -need_lc=${lt_cv_archive_cmds_need_lc-yes} - -# The second clause should only fire when bootstrapping the +# The else clause should only fire when bootstrapping the # libtool distribution, otherwise you forgot to ship ltmain.sh # with your package, and you will get complaints that there are # no rules to generate ltmain.sh. if test -f "$ltmain"; then - : -else - # If there is no Makefile yet, we rely on a make rule to execute - # `config.status --recheck' to rerun these tests and create the - # libtool script then. - test -f Makefile && make "$ltmain" -fi - -if test -f "$ltmain"; then - trap "$rm \"${ofile}T\"; exit 1" 1 2 15 - $rm -f "${ofile}T" - - echo creating $ofile - + # See if we are running on zsh, and set the options which allow our commands through + # without removal of \ escapes. + if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST + fi # Now quote all the things that may contain metacharacters while being # careful not to overquote the AC_SUBSTed values. We take copies of the # variables and quote the copies for generation of the libtool script. - for var in echo old_CC old_CFLAGS SED \ - AR AR_FLAGS CC LD LN_S NM SHELL \ - reload_flag reload_cmds wl \ - pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \ - thread_safe_flag_spec whole_archive_flag_spec libname_spec \ - library_names_spec soname_spec \ - RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \ - old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \ - postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \ - old_striplib striplib file_magic_cmd export_symbols_cmds \ - deplibs_check_method allow_undefined_flag no_undefined_flag \ - finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \ - global_symbol_to_c_name_address \ - hardcode_libdir_flag_spec hardcode_libdir_separator \ + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ + SED SHELL STRIP \ + libname_spec library_names_spec soname_spec extract_expsyms_cmds \ + old_striplib striplib file_magic_cmd finish_cmds finish_eval \ + deplibs_check_method reload_flag reload_cmds need_locks \ + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ + lt_cv_sys_global_symbol_to_c_name_address \ sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ - compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do + old_postinstall_cmds old_postuninstall_cmds \ + compiler \ + CC \ + LD \ + lt_prog_compiler_wl \ + lt_prog_compiler_pic \ + lt_prog_compiler_static \ + lt_prog_compiler_no_builtin_flag \ + export_dynamic_flag_spec \ + thread_safe_flag_spec \ + whole_archive_flag_spec \ + enable_shared_with_static_runtimes \ + old_archive_cmds \ + old_archive_from_new_cmds \ + predep_objects \ + postdep_objects \ + predeps \ + postdeps \ + compiler_lib_search_path \ + archive_cmds \ + archive_expsym_cmds \ + postinstall_cmds \ + postuninstall_cmds \ + old_archive_from_expsyms_cmds \ + allow_undefined_flag \ + no_undefined_flag \ + export_symbols_cmds \ + hardcode_libdir_flag_spec \ + hardcode_libdir_flag_spec_ld \ + hardcode_libdir_separator \ + hardcode_automatic \ + module_cmds \ + module_expsym_cmds \ + lt_cv_prog_compiler_c_o \ + exclude_expsyms \ + include_expsyms; do case $var in - reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \ - old_postinstall_cmds | old_postuninstall_cmds | \ - export_symbols_cmds | archive_cmds | archive_expsym_cmds | \ - extract_expsyms_cmds | old_archive_from_expsyms_cmds | \ + old_archive_cmds | \ + old_archive_from_new_cmds | \ + archive_cmds | \ + archive_expsym_cmds | \ + module_cmds | \ + module_expsym_cmds | \ + old_archive_from_expsyms_cmds | \ + export_symbols_cmds | \ + extract_expsyms_cmds | reload_cmds | finish_cmds | \ postinstall_cmds | postuninstall_cmds | \ - finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) + old_postinstall_cmds | old_postuninstall_cmds | \ + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) # Double-quote double-evaled strings. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" ;; @@ -7551,14 +9271,29 @@ if test -f "$ltmain"; then esac done - cat <<__EOF__ > "${ofile}T" + case $lt_echo in + *'\$0 --fallback-echo"') + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` + ;; + esac + +cfgfile="${ofile}T" + trap "$rm \"$cfgfile\"; exit 1" 1 2 15 + $rm -f "$cfgfile" + { echo "$as_me:$LINENO: creating $ofile" >&5 +echo "$as_me: creating $ofile" >&6;} + + cat <<__EOF__ >> "$cfgfile" #! $SHELL -# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. +# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) # NOTE: Changes made to this file will be lost: look at ltmain.sh. # -# Copyright (C) 1996-2000 Free Software Foundation, Inc. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 +# Free Software Foundation, Inc. +# +# This file is part of GNU Libtool: # Originally by Gordon Matzigkeit , 1996 # # This program is free software; you can redistribute it and/or modify @@ -7573,22 +9308,25 @@ if test -f "$ltmain"; then # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. -# A sed that does not truncate output. +# A sed program that does not truncate output. SED=$lt_SED # Sed that helps us avoid accidentally triggering echo(1) options like -n. -Xsed="${SED} -e s/^X//" +Xsed="$SED -e 1s/^X//" # The HP-UX ksh and POSIX shell print the target directory to stdout # if CDPATH is set. -if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +# The names of the tagged configurations supported by this script. +available_tags= # ### BEGIN LIBTOOL CONFIG @@ -7604,7 +9342,10 @@ build_libtool_libs=$enable_shared build_old_libs=$enable_static # Whether or not to add -lc for building shared libraries. -build_libtool_need_lc=$need_lc +build_libtool_need_lc=$archive_cmds_need_lc + +# Whether or not to disallow shared libs when runtime libs are static +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes # Whether or not to optimize for fast installation. fast_install=$enable_fast_install @@ -7612,6 +9353,12 @@ fast_install=$enable_fast_install # The host system. host_alias=$host_alias host=$host +host_os=$host_os + +# The build system. +build_alias=$build_alias +build=$build +build_os=$build_os # An echo program that does not interpret backslashes. echo=$lt_echo @@ -7620,12 +9367,18 @@ echo=$lt_echo AR=$lt_AR AR_FLAGS=$lt_AR_FLAGS -# The default C compiler. -CC=$lt_CC +# A C compiler. +LTCC=$lt_LTCC + +# A language-specific compiler. +CC=$lt_compiler # Is the compiler the GNU C compiler? with_gcc=$GCC +# An ERE matcher. +EGREP=$lt_EGREP + # The linker used to build libraries. LD=$lt_LD @@ -7636,7 +9389,7 @@ LN_S=$lt_LN_S NM=$lt_NM # A symbol stripping program -STRIP=$STRIP +STRIP=$lt_STRIP # Used to examine libraries when file_magic_cmd begins "file" MAGIC_CMD=$MAGIC_CMD @@ -7658,7 +9411,7 @@ reload_flag=$lt_reload_flag reload_cmds=$lt_reload_cmds # How to pass a linker flag through the compiler. -wl=$lt_wl +wl=$lt_lt_prog_compiler_wl # Object file suffix (normally "o"). objext="$ac_objext" @@ -7666,20 +9419,23 @@ objext="$ac_objext" # Old archive suffix (normally "a"). libext="$libext" +# Shared library suffix (normally ".so"). +shrext_cmds='$shrext_cmds' + # Executable file suffix (normally ""). exeext="$exeext" # Additional compiler flags for building library objects. -pic_flag=$lt_pic_flag +pic_flag=$lt_lt_prog_compiler_pic pic_mode=$pic_mode +# What is the maximum length of a command? +max_cmd_len=$lt_cv_sys_max_cmd_len + # Does compiler simultaneously support -c and -o options? -compiler_c_o=$lt_compiler_c_o +compiler_c_o=$lt_lt_cv_prog_compiler_c_o -# Can we write directly to a .lo ? -compiler_o_lo=$lt_compiler_o_lo - -# Must we lock files when doing compilation ? +# Must we lock files when doing compilation? need_locks=$lt_need_locks # Do we need the lib prefix for modules? @@ -7698,10 +9454,10 @@ dlopen_self=$enable_dlopen_self dlopen_self_static=$enable_dlopen_self_static # Compiler flag to prevent dynamic linking. -link_static_flag=$lt_link_static_flag +link_static_flag=$lt_lt_prog_compiler_static # Compiler flag to turn off builtin functions. -no_builtin_flag=$lt_no_builtin_flag +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag # Compiler flag to allow reflexive dlopens. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec @@ -7743,10 +9499,34 @@ archive_expsym_cmds=$lt_archive_expsym_cmds postinstall_cmds=$lt_postinstall_cmds postuninstall_cmds=$lt_postuninstall_cmds +# Commands used to build a loadable module (assumed same as above if empty) +module_cmds=$lt_module_cmds +module_expsym_cmds=$lt_module_expsym_cmds + # Commands to strip libraries. old_striplib=$lt_old_striplib striplib=$lt_striplib +# Dependencies to place before the objects being linked to create a +# shared library. +predep_objects=$lt_predep_objects + +# Dependencies to place after the objects being linked to create a +# shared library. +postdep_objects=$lt_postdep_objects + +# Dependencies to place before the objects being linked to create a +# shared library. +predeps=$lt_predeps + +# Dependencies to place after the objects being linked to create a +# shared library. +postdeps=$lt_postdeps + +# The library search path used internally by the compiler when linking +# a shared library. +compiler_lib_search_path=$lt_compiler_lib_search_path + # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method @@ -7766,13 +9546,13 @@ finish_cmds=$lt_finish_cmds finish_eval=$lt_finish_eval # Take the output of nm and produce a listing of raw symbols and C names. -global_symbol_pipe=$lt_global_symbol_pipe +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe # Transform the output of nm in a proper C declaration -global_symbol_to_cdecl=$lt_global_symbol_to_cdecl +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl # Transform the output of nm in a C name address pair -global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address # This is the shared library runtime path variable. runpath_var=$runpath_var @@ -7793,10 +9573,15 @@ hardcode_into_libs=$hardcode_into_libs # This must work even if \$libdir does not exist. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec +# If ld is used when linking, flag to hardcode \$libdir into +# a binary during linking. This must work even if \$libdir does +# not exist. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld + # Whether we need a single -rpath flag with a separated argument. hardcode_libdir_separator=$lt_hardcode_libdir_separator -# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the # resulting binary. hardcode_direct=$hardcode_direct @@ -7808,6 +9593,10 @@ hardcode_minus_L=$hardcode_minus_L # the resulting binary. hardcode_shlibpath_var=$hardcode_shlibpath_var +# Set to yes if building a shared library automatically hardcodes DIR into the library +# and all subsequent libraries and executables linked against it. +hardcode_automatic=$hardcode_automatic + # Variables whose values should be saved in libtool wrapper scripts and # restored at relink time. variables_saved_for_relink="$variables_saved_for_relink" @@ -7843,9 +9632,10 @@ include_expsyms=$lt_include_expsyms __EOF__ + case $host_os in aix3*) - cat <<\EOF >> "${ofile}T" + cat <<\EOF >> "$cfgfile" # AIX sometimes has problems with the GCC collect2 program. For some # reason, if we set the COLLECT_NAMES environment variable, the problems @@ -7854,186 +9644,6 @@ if test "X${COLLECT_NAMES+set}" != Xset; then COLLECT_NAMES= export COLLECT_NAMES fi -EOF - ;; - esac - - case $host_os in - cygwin* | mingw* | pw32* | os2*) - cat <<'EOF' >> "${ofile}T" - # This is a source program that is used to create dlls on Windows - # Don't remove nor modify the starting and closing comments -# /* ltdll.c starts here */ -# #define WIN32_LEAN_AND_MEAN -# #include -# #undef WIN32_LEAN_AND_MEAN -# #include -# -# #ifndef __CYGWIN__ -# # ifdef __CYGWIN32__ -# # define __CYGWIN__ __CYGWIN32__ -# # endif -# #endif -# -# #ifdef __cplusplus -# extern "C" { -# #endif -# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); -# #ifdef __cplusplus -# } -# #endif -# -# #ifdef __CYGWIN__ -# #include -# DECLARE_CYGWIN_DLL( DllMain ); -# #endif -# HINSTANCE __hDllInstance_base; -# -# BOOL APIENTRY -# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) -# { -# __hDllInstance_base = hInst; -# return TRUE; -# } -# /* ltdll.c ends here */ - # This is a source program that is used to create import libraries - # on Windows for dlls which lack them. Don't remove nor modify the - # starting and closing comments -# /* impgen.c starts here */ -# /* Copyright (C) 1999-2000 Free Software Foundation, Inc. -# -# This file is part of GNU libtool. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -# */ -# -# #include /* for printf() */ -# #include /* for open(), lseek(), read() */ -# #include /* for O_RDONLY, O_BINARY */ -# #include /* for strdup() */ -# -# /* O_BINARY isn't required (or even defined sometimes) under Unix */ -# #ifndef O_BINARY -# #define O_BINARY 0 -# #endif -# -# static unsigned int -# pe_get16 (fd, offset) -# int fd; -# int offset; -# { -# unsigned char b[2]; -# lseek (fd, offset, SEEK_SET); -# read (fd, b, 2); -# return b[0] + (b[1]<<8); -# } -# -# static unsigned int -# pe_get32 (fd, offset) -# int fd; -# int offset; -# { -# unsigned char b[4]; -# lseek (fd, offset, SEEK_SET); -# read (fd, b, 4); -# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); -# } -# -# static unsigned int -# pe_as32 (ptr) -# void *ptr; -# { -# unsigned char *b = ptr; -# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); -# } -# -# int -# main (argc, argv) -# int argc; -# char *argv[]; -# { -# int dll; -# unsigned long pe_header_offset, opthdr_ofs, num_entries, i; -# unsigned long export_rva, export_size, nsections, secptr, expptr; -# unsigned long name_rvas, nexp; -# unsigned char *expdata, *erva; -# char *filename, *dll_name; -# -# filename = argv[1]; -# -# dll = open(filename, O_RDONLY|O_BINARY); -# if (dll < 1) -# return 1; -# -# dll_name = filename; -# -# for (i=0; filename[i]; i++) -# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':') -# dll_name = filename + i +1; -# -# pe_header_offset = pe_get32 (dll, 0x3c); -# opthdr_ofs = pe_header_offset + 4 + 20; -# num_entries = pe_get32 (dll, opthdr_ofs + 92); -# -# if (num_entries < 1) /* no exports */ -# return 1; -# -# export_rva = pe_get32 (dll, opthdr_ofs + 96); -# export_size = pe_get32 (dll, opthdr_ofs + 100); -# nsections = pe_get16 (dll, pe_header_offset + 4 +2); -# secptr = (pe_header_offset + 4 + 20 + -# pe_get16 (dll, pe_header_offset + 4 + 16)); -# -# expptr = 0; -# for (i = 0; i < nsections; i++) -# { -# char sname[8]; -# unsigned long secptr1 = secptr + 40 * i; -# unsigned long vaddr = pe_get32 (dll, secptr1 + 12); -# unsigned long vsize = pe_get32 (dll, secptr1 + 16); -# unsigned long fptr = pe_get32 (dll, secptr1 + 20); -# lseek(dll, secptr1, SEEK_SET); -# read(dll, sname, 8); -# if (vaddr <= export_rva && vaddr+vsize > export_rva) -# { -# expptr = fptr + (export_rva - vaddr); -# if (export_rva + export_size > vaddr + vsize) -# export_size = vsize - (export_rva - vaddr); -# break; -# } -# } -# -# expdata = (unsigned char*)malloc(export_size); -# lseek (dll, expptr, SEEK_SET); -# read (dll, expdata, export_size); -# erva = expdata - export_rva; -# -# nexp = pe_as32 (expdata+24); -# name_rvas = pe_as32 (expdata+32); -# -# printf ("EXPORTS\n"); -# for (i = 0; i> "${ofile}T" || (rm -f "${ofile}T"; exit 1) + sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) - mv -f "${ofile}T" "$ofile" || \ - (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T") + mv -f "$cfgfile" "$ofile" || \ + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") chmod +x "$ofile" + +else + # If there is no Makefile yet, we rely on a make rule to execute + # `config.status --recheck' to rerun these tests and create the + # libtool script then. + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` + if test -f "$ltmain_in"; then + test -f Makefile && make "$ltmain" + fi fi +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +CC="$lt_save_CC" + + +# Check whether --with-tags or --without-tags was given. +if test "${with_tags+set}" = set; then + withval="$with_tags" + tagnames="$withval" +fi; + +if test -f "$ltmain" && test -n "$tagnames"; then + if test ! -f "${ofile}"; then + { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 +echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} + fi + + if test -z "$LTCC"; then + eval "`$SHELL ${ofile} --config | grep '^LTCC='`" + if test -z "$LTCC"; then + { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 +echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} + else + { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 +echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} + fi + fi + + # Extract list of available tagged configurations in $ofile. + # Note that this assumes the entire list is on one line. + available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` + + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for tagname in $tagnames; do + IFS="$lt_save_ifs" + # Check whether tagname contains only valid characters + case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in + "") ;; + *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 +echo "$as_me: error: invalid tag name: $tagname" >&2;} + { (exit 1); exit 1; }; } + ;; + esac + + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null + then + { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 +echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} + { (exit 1); exit 1; }; } + fi + + # Update the list of available tags. + if test -n "$tagname"; then + echo appending configuration tag \"$tagname\" to $ofile + + case $tagname in + CXX) + if test -n "$CXX" && ( test "X$CXX" != "Xno" && + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || + (test "X$CXX" != "Xg++"))) ; then + ac_ext=cc +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu + + + + +archive_cmds_need_lc_CXX=no +allow_undefined_flag_CXX= +always_export_symbols_CXX=no +archive_expsym_cmds_CXX= +export_dynamic_flag_spec_CXX= +hardcode_direct_CXX=no +hardcode_libdir_flag_spec_CXX= +hardcode_libdir_flag_spec_ld_CXX= +hardcode_libdir_separator_CXX= +hardcode_minus_L_CXX=no +hardcode_automatic_CXX=no +module_cmds_CXX= +module_expsym_cmds_CXX= +link_all_deplibs_CXX=unknown +old_archive_cmds_CXX=$old_archive_cmds +no_undefined_flag_CXX= +whole_archive_flag_spec_CXX= +enable_shared_with_static_runtimes_CXX=no + +# Dependencies to place before and after the object being linked: +predep_objects_CXX= +postdep_objects_CXX= +predeps_CXX= +postdeps_CXX= +compiler_lib_search_path_CXX= + +# Source file extension for C++ test sources. +ac_ext=cc + +# Object file extension for compiled C++ test sources. +objext=o +objext_CXX=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code="int some_variable = 0;\n" + +# Code to be used in simple link tests +lt_simple_link_test_code='int main(int, char *) { return(0); }\n' + +# ltmain only uses $CC for tagged configurations so make sure $CC is set. + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# Allow CC to be a program name with arguments. +compiler=$CC + + +# save warnings/boilerplate of simple test code +ac_outfile=conftest.$ac_objext +printf "$lt_simple_compile_test_code" >conftest.$ac_ext +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err +_lt_compiler_boilerplate=`cat conftest.err` +$rm conftest* + +ac_outfile=conftest.$ac_objext +printf "$lt_simple_link_test_code" >conftest.$ac_ext +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err +_lt_linker_boilerplate=`cat conftest.err` +$rm conftest* + + +# Allow CC to be a program name with arguments. +lt_save_CC=$CC +lt_save_LD=$LD +lt_save_GCC=$GCC +GCC=$GXX +lt_save_with_gnu_ld=$with_gnu_ld +lt_save_path_LD=$lt_cv_path_LD +if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx +else + unset lt_cv_prog_gnu_ld +fi +if test -n "${lt_cv_path_LDCXX+set}"; then + lt_cv_path_LD=$lt_cv_path_LDCXX +else + unset lt_cv_path_LD +fi +test -z "${LDCXX+set}" || LD=$LDCXX +CC=${CXX-"c++"} +compiler=$CC +compiler_CXX=$CC +for cc_temp in $compiler""; do + case $cc_temp in + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` + + +# We don't want -fno-exception wen compiling C++ code, so set the +# no_builtin_flag separately +if test "$GXX" = yes; then + lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' +else + lt_prog_compiler_no_builtin_flag_CXX= +fi + +if test "$GXX" = yes; then + # Set up default GNU C++ configuration + + +# Check whether --with-gnu-ld or --without-gnu-ld was given. +if test "${with_gnu_ld+set}" = set; then + withval="$with_gnu_ld" + test "$withval" = no || with_gnu_ld=yes +else + with_gnu_ld=no +fi; +ac_prog=ld +if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + echo "$as_me:$LINENO: checking for ld used by $CC" >&5 +echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [\\/]* | ?:[\\/]*) + re_direlt='/[^/][^/]*/\.\./' + # Canonicalize the pathname of ld + ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do + ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` + done + test -z "$LD" && LD="$ac_prog" + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test "$with_gnu_ld" = yes; then + echo "$as_me:$LINENO: checking for GNU ld" >&5 +echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 +else + echo "$as_me:$LINENO: checking for non-GNU ld" >&5 +echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 +fi +if test "${lt_cv_path_LD+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -z "$LD"; then + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + IFS="$lt_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + lt_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some GNU ld's only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$lt_cv_path_LD" -v 2>&1 &5 +echo "${ECHO_T}$LD" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi +test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 +echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} + { (exit 1); exit 1; }; } +echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 +echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 +if test "${lt_cv_prog_gnu_ld+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + # I'd rather use --version here, but apparently some GNU ld's only accept -v. +case `$LD -v 2>&1 &5 +echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 +with_gnu_ld=$lt_cv_prog_gnu_ld + + + + # Check if GNU C++ uses GNU ld as the underlying linker, since the + # archiving commands below assume that GNU ld is being used. + if test "$with_gnu_ld" = yes; then + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + + hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + + # If archive_cmds runs LD, not CC, wlarc should be empty + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to + # investigate it a little bit more. (MM) + wlarc='${wl}' + + # ancient GNU ld didn't support --whole-archive et. al. + if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ + grep 'no-whole-archive' > /dev/null; then + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + whole_archive_flag_spec_CXX= + fi + else + with_gnu_ld=no + wlarc= + + # A generic and very simple default shared library creation + # command for GNU C++ for the case where it uses the native + # linker, instead of GNU ld. If possible, this setting should + # overridden to take advantage of the native linker features on + # the platform it is being used on. + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' + fi + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' + +else + GXX=no + with_gnu_ld=no + wlarc= +fi + +# PORTME: fill in a description of your system's C++ link characteristics +echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 +ld_shlibs_CXX=yes +case $host_os in + aix3*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + aix4* | aix5*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag="" + else + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[23]|aix4.[23].*|aix5*) + for ld_flag in $LDFLAGS; do + case $ld_flag in + *-brtl*) + aix_use_runtimelinking=yes + break + ;; + esac + done + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + archive_cmds_CXX='' + hardcode_direct_CXX=yes + hardcode_libdir_separator_CXX=':' + link_all_deplibs_CXX=yes + + if test "$GXX" = yes; then + case $host_os in aix4.[012]|aix4.[012].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && \ + strings "$collect2name" | grep resolve_lib_name >/dev/null + then + # We have reworked collect2 + hardcode_direct_CXX=yes + else + # We have old collect2 + hardcode_direct_CXX=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + hardcode_minus_L_CXX=yes + hardcode_libdir_flag_spec_CXX='-L$libdir' + hardcode_libdir_separator_CXX= + fi + esac + shared_flag='-shared' + if test "$aix_use_runtimelinking" = yes; then + shared_flag="$shared_flag "'${wl}-G' + fi + else + # not using gcc + if test "$host_cpu" = ia64; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test "$aix_use_runtimelinking" = yes; then + shared_flag='${wl}-G' + else + shared_flag='${wl}-bM:SRE' + fi + fi + fi + + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to export. + always_export_symbols_CXX=yes + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + allow_undefined_flag_CXX='-berok' + # Determine the default libpath from the value encoded in an empty executable. + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } +}'` +# Check for a 64-bit object if we didn't find anything. +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } +}'`; fi +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi + + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" + + archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else + if test "$host_cpu" = ia64; then + hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' + allow_undefined_flag_CXX="-z nodefs" + archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an empty executable. + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } +}'` +# Check for a 64-bit object if we didn't find anything. +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } +}'`; fi +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi + + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + no_undefined_flag_CXX=' ${wl}-bernotok' + allow_undefined_flag_CXX=' ${wl}-berok' + # -bexpall does not export symbols beginning with underscore (_) + always_export_symbols_CXX=yes + # Exported symbols can be pulled into shared objects from archives + whole_archive_flag_spec_CXX=' ' + archive_cmds_need_lc_CXX=yes + # This is similar to how AIX traditionally builds it's shared libraries. + archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' + fi + fi + ;; + chorus*) + case $cc_basename in + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + + + cygwin* | mingw* | pw32*) + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec_CXX='-L$libdir' + allow_undefined_flag_CXX=unsupported + always_export_symbols_CXX=no + enable_shared_with_static_runtimes_CXX=yes + + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is; otherwise, prepend... + archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' + else + ld_shlibs_CXX=no + fi + ;; + darwin* | rhapsody*) + case "$host_os" in + rhapsody* | darwin1.[012]) + allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' + ;; + *) # Darwin 1.3 on + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then + allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' + else + case ${MACOSX_DEPLOYMENT_TARGET} in + 10.[012]) + allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' + ;; + 10.*) + allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' + ;; + esac + fi + ;; + esac + archive_cmds_need_lc_CXX=no + hardcode_direct_CXX=no + hardcode_automatic_CXX=yes + hardcode_shlibpath_var_CXX=unsupported + whole_archive_flag_spec_CXX='' + link_all_deplibs_CXX=yes + + if test "$GXX" = yes ; then + lt_int_apple_cc_single_mod=no + output_verbose_link_cmd='echo' + if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then + lt_int_apple_cc_single_mod=yes + fi + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then + archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' + else + archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' + fi + module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then + archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + else + archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + fi + module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + else + case $cc_basename in + xlc*) + output_verbose_link_cmd='echo' + archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' + module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's + archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + ;; + *) + ld_shlibs_CXX=no + ;; + esac + fi + ;; + + dgux*) + case $cc_basename in + ec++*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + ghcx*) + # Green Hills C++ Compiler + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + freebsd[12]*) + # C++ shared libraries reported to be fairly broken before switch to ELF + ld_shlibs_CXX=no + ;; + freebsd-elf*) + archive_cmds_need_lc_CXX=no + ;; + freebsd* | kfreebsd*-gnu | dragonfly*) + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF + # conventions + ld_shlibs_CXX=yes + ;; + gnu*) + ;; + hpux9*) + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' + hardcode_libdir_separator_CXX=: + export_dynamic_flag_spec_CXX='${wl}-E' + hardcode_direct_CXX=yes + hardcode_minus_L_CXX=yes # Not in the search PATH, + # but as the default + # location of the library. + + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + aCC*) + archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + ;; + *) + if test "$GXX" = yes; then + archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + else + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + fi + ;; + esac + ;; + hpux10*|hpux11*) + if test $with_gnu_ld = no; then + case "$host_cpu" in + hppa*64*) + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' + hardcode_libdir_flag_spec_ld_CXX='+b $libdir' + hardcode_libdir_separator_CXX=: + ;; + ia64*) + hardcode_libdir_flag_spec_CXX='-L$libdir' + ;; + *) + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' + hardcode_libdir_separator_CXX=: + export_dynamic_flag_spec_CXX='${wl}-E' + ;; + esac + fi + case "$host_cpu" in + hppa*64*) + hardcode_direct_CXX=no + hardcode_shlibpath_var_CXX=no + ;; + ia64*) + hardcode_direct_CXX=no + hardcode_shlibpath_var_CXX=no + hardcode_minus_L_CXX=yes # Not in the search PATH, + # but as the default + # location of the library. + ;; + *) + hardcode_direct_CXX=yes + hardcode_minus_L_CXX=yes # Not in the search PATH, + # but as the default + # location of the library. + ;; + esac + + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + aCC*) + case "$host_cpu" in + hppa*64*|ia64*) + archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' + ;; + *) + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + esac + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + ;; + *) + if test "$GXX" = yes; then + if test $with_gnu_ld = no; then + case "$host_cpu" in + ia64*|hppa*64*) + archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' + ;; + *) + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + ;; + esac + fi + else + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + fi + ;; + esac + ;; + irix5* | irix6*) + case $cc_basename in + CC*) + # SGI C++ + archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + + # Archives containing C++ object files must be created using + # "CC -ar", where "CC" is the IRIX C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' + ;; + *) + if test "$GXX" = yes; then + if test "$with_gnu_ld" = no; then + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' + fi + fi + link_all_deplibs_CXX=yes + ;; + esac + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator_CXX=: + ;; + linux*) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + + hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + + # Archives containing C++ object files must be created using + # "CC -Bstatic", where "CC" is the KAI C++ compiler. + old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' + ;; + icpc*) + # Intel C++ + with_gnu_ld=yes + # version 8.0 and above of icpc choke on multiply defined symbols + # if we add $predep_objects and $postdep_objects, however 7.1 and + # earlier do not add the objects themselves. + case `$CC -V 2>&1` in + *"Version 7."*) + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + ;; + *) # Version 8.0 or newer + tmp_idyn= + case $host_cpu in + ia64*) tmp_idyn=' -i_dynamic';; + esac + archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + ;; + esac + archive_cmds_need_lc_CXX=no + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' + ;; + pgCC*) + # Portland Group C++ compiler + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' + + hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' + export_dynamic_flag_spec_CXX='${wl}--export-dynamic' + whole_archive_flag_spec_CXX='' + ;; + cxx*) + # Compaq C++ + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' + + runpath_var=LD_RUN_PATH + hardcode_libdir_flag_spec_CXX='-rpath $libdir' + hardcode_libdir_separator_CXX=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + ;; + esac + ;; + lynxos*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + m88k*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + mvs*) + case $cc_basename in + cxx*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' + wlarc= + hardcode_libdir_flag_spec_CXX='-R$libdir' + hardcode_direct_CXX=yes + hardcode_shlibpath_var_CXX=no + fi + # Workaround some broken pre-1.5 toolchains + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' + ;; + openbsd2*) + # C++ shared libraries are fairly broken + ld_shlibs_CXX=no + ;; + openbsd*) + hardcode_direct_CXX=yes + hardcode_shlibpath_var_CXX=no + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' + export_dynamic_flag_spec_CXX='${wl}-E' + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + fi + output_verbose_link_cmd='echo' + ;; + osf3*) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + hardcode_libdir_separator_CXX=: + + # Archives containing C++ object files must be created using + # "CC -Bstatic", where "CC" is the KAI C++ compiler. + old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' + + ;; + RCC*) + # Rational C++ 2.4.1 + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + cxx*) + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator_CXX=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + ;; + *) + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator_CXX=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' + + else + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + fi + ;; + esac + ;; + osf4* | osf5*) + case $cc_basename in + KCC*) + # Kuck and Associates, Inc. (KAI) C++ Compiler + + # KCC will only create a shared library if the output file + # ends with ".so" (or ".sl" for HP-UX), so rename the library + # to its proper name (with version) after linking. + archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' + hardcode_libdir_separator_CXX=: + + # Archives containing C++ object files must be created using + # the KAI C++ compiler. + old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' + ;; + RCC*) + # Rational C++ 2.4.1 + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + cxx*) + allow_undefined_flag_CXX=' -expect_unresolved \*' + archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ + echo "-hidden">> $lib.exp~ + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ + $rm $lib.exp' + + hardcode_libdir_flag_spec_CXX='-rpath $libdir' + hardcode_libdir_separator_CXX=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + ;; + *) + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator_CXX=: + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' + + else + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + fi + ;; + esac + ;; + psos*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + sco*) + archive_cmds_need_lc_CXX=no + case $cc_basename in + CC*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + sunos4*) + case $cc_basename in + CC*) + # Sun C++ 4.x + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + lcc*) + # Lucid + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + solaris*) + case $cc_basename in + CC*) + # Sun C++ 4.2, 5.x and Centerline C++ + no_undefined_flag_CXX=' -zdefs' + archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' + archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' + + hardcode_libdir_flag_spec_CXX='-R$libdir' + hardcode_shlibpath_var_CXX=no + case $host_os in + solaris2.[0-5] | solaris2.[0-5].*) ;; + *) + # The C++ compiler is used as linker so we must use $wl + # flag to pass the commands to the underlying system + # linker. We must also pass each convience library through + # to the system linker between allextract/defaultextract. + # The C++ compiler will combine linker options so we + # cannot just pass the convience library names through + # without $wl. + # Supported since Solaris 2.6 (maybe 2.5.1?) + whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' + ;; + esac + link_all_deplibs_CXX=yes + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + # + # There doesn't appear to be a way to prevent this compiler from + # explicitly linking system object files so we need to strip them + # from the output so that they don't get included in the library + # dependencies. + output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' + + # Archives containing C++ object files must be created using + # "CC -xar", where "CC" is the Sun C++ compiler. This is + # necessary to make sure instantiated templates are included + # in the archive. + old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' + ;; + gcx*) + # Green Hills C++ Compiler + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + + # The C++ compiler must be used to create the archive. + old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' + ;; + *) + # GNU C++ compiler with Solaris linker + if test "$GXX" = yes && test "$with_gnu_ld" = no; then + no_undefined_flag_CXX=' ${wl}-z ${wl}defs' + if $CC --version | grep -v '^2\.7' > /dev/null; then + archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" + else + # g++ 2.7 appears to require `-G' NOT `-shared' on this + # platform. + archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' + archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' + + # Commands to make compiler produce verbose output that lists + # what "hidden" libraries, object files and flags are used when + # linking a shared library. + output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" + fi + + hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' + fi + ;; + esac + ;; + sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) + archive_cmds_need_lc_CXX=no + ;; + tandem*) + case $cc_basename in + NCC*) + # NonStop-UX NCC 3.20 + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + esac + ;; + vxworks*) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; + *) + # FIXME: insert proper C++ library support + ld_shlibs_CXX=no + ;; +esac +echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 +echo "${ECHO_T}$ld_shlibs_CXX" >&6 +test "$ld_shlibs_CXX" = no && can_build_shared=no + +GCC_CXX="$GXX" +LD_CXX="$LD" + + +cat > conftest.$ac_ext <&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; then + # Parse the compiler output and extract the necessary + # objects, libraries and library flags. + + # Sentinel used to keep track of whether or not we are before + # the conftest object file. + pre_test_object_deps_done=no + + # The `*' in the case matches for architectures that use `case' in + # $output_verbose_cmd can trigger glob expansion during the loop + # eval without this substitution. + output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" + + for p in `eval $output_verbose_link_cmd`; do + case $p in + + -L* | -R* | -l*) + # Some compilers place space between "-{L,R}" and the path. + # Remove the space. + if test $p = "-L" \ + || test $p = "-R"; then + prev=$p + continue + else + prev= + fi + + if test "$pre_test_object_deps_done" = no; then + case $p in + -L* | -R*) + # Internal compiler library paths should come after those + # provided the user. The postdeps already come after the + # user supplied libs so there is no need to process them. + if test -z "$compiler_lib_search_path_CXX"; then + compiler_lib_search_path_CXX="${prev}${p}" + else + compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" + fi + ;; + # The "-l" case would never come before the object being + # linked, so don't bother handling this case. + esac + else + if test -z "$postdeps_CXX"; then + postdeps_CXX="${prev}${p}" + else + postdeps_CXX="${postdeps_CXX} ${prev}${p}" + fi + fi + ;; + + *.$objext) + # This assumes that the test object file only shows up + # once in the compiler output. + if test "$p" = "conftest.$objext"; then + pre_test_object_deps_done=yes + continue + fi + + if test "$pre_test_object_deps_done" = no; then + if test -z "$predep_objects_CXX"; then + predep_objects_CXX="$p" + else + predep_objects_CXX="$predep_objects_CXX $p" + fi + else + if test -z "$postdep_objects_CXX"; then + postdep_objects_CXX="$p" + else + postdep_objects_CXX="$postdep_objects_CXX $p" + fi + fi + ;; + + *) ;; # Ignore the rest. + + esac + done + + # Clean up. + rm -f a.out a.exe +else + echo "libtool.m4: error: problem compiling CXX test program" +fi + +$rm -f confest.$objext + +case " $postdeps_CXX " in +*" -lc "*) archive_cmds_need_lc_CXX=no ;; +esac + +lt_prog_compiler_wl_CXX= +lt_prog_compiler_pic_CXX= +lt_prog_compiler_static_CXX= + +echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 +echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 + + # C++ specific cases for pic, static, wl, etc. + if test "$GXX" = yes; then + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='-static' + + case $host_os in + aix*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static_CXX='-Bstatic' + fi + ;; + amigaos*) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, + # like `-m68040'. + lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' + ;; + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + mingw* | os2* | pw32*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_prog_compiler_pic_CXX='-DDLL_EXPORT' + ;; + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + lt_prog_compiler_pic_CXX='-fno-common' + ;; + *djgpp*) + # DJGPP does not support shared libraries at all + lt_prog_compiler_pic_CXX= + ;; + sysv4*MP*) + if test -d /usr/nec; then + lt_prog_compiler_pic_CXX=-Kconform_pic + fi + ;; + hpux*) + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but + # not for PA HP-UX. + case "$host_cpu" in + hppa*64*|ia64*) + ;; + *) + lt_prog_compiler_pic_CXX='-fPIC' + ;; + esac + ;; + *) + lt_prog_compiler_pic_CXX='-fPIC' + ;; + esac + else + case $host_os in + aix4* | aix5*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static_CXX='-Bstatic' + else + lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' + fi + ;; + chorus*) + case $cc_basename in + cxch68*) + # Green Hills C++ Compiler + # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" + ;; + esac + ;; + darwin*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + case $cc_basename in + xlc*) + lt_prog_compiler_pic_CXX='-qnocommon' + lt_prog_compiler_wl_CXX='-Wl,' + ;; + esac + ;; + dgux*) + case $cc_basename in + ec++*) + lt_prog_compiler_pic_CXX='-KPIC' + ;; + ghcx*) + # Green Hills C++ Compiler + lt_prog_compiler_pic_CXX='-pic' + ;; + *) + ;; + esac + ;; + freebsd* | kfreebsd*-gnu | dragonfly*) + # FreeBSD uses GNU C++ + ;; + hpux9* | hpux10* | hpux11*) + case $cc_basename in + CC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" + if test "$host_cpu" != ia64; then + lt_prog_compiler_pic_CXX='+Z' + fi + ;; + aCC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" + case "$host_cpu" in + hppa*64*|ia64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic_CXX='+Z' + ;; + esac + ;; + *) + ;; + esac + ;; + irix5* | irix6* | nonstopux*) + case $cc_basename in + CC*) + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_static_CXX='-non_shared' + # CC pic flag -KPIC is the default. + ;; + *) + ;; + esac + ;; + linux*) + case $cc_basename in + KCC*) + # KAI C++ Compiler + lt_prog_compiler_wl_CXX='--backend -Wl,' + lt_prog_compiler_pic_CXX='-fPIC' + ;; + icpc* | ecpc*) + # Intel C++ + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-static' + ;; + pgCC*) + # Portland Group C++ compiler. + lt_prog_compiler_wl_CXX='-Wl,' + lt_prog_compiler_pic_CXX='-fpic' + lt_prog_compiler_static_CXX='-static' + ;; + cxx*) + # Compaq C++ + # Make sure the PIC flag is empty. It appears that all Alpha + # Linux and Compaq Tru64 Unix objects are PIC. + lt_prog_compiler_pic_CXX= + lt_prog_compiler_static_CXX='-non_shared' + ;; + *) + ;; + esac + ;; + lynxos*) + ;; + m88k*) + ;; + mvs*) + case $cc_basename in + cxx*) + lt_prog_compiler_pic_CXX='-W c,exportall' + ;; + *) + ;; + esac + ;; + netbsd*) + ;; + osf3* | osf4* | osf5*) + case $cc_basename in + KCC*) + lt_prog_compiler_wl_CXX='--backend -Wl,' + ;; + RCC*) + # Rational C++ 2.4.1 + lt_prog_compiler_pic_CXX='-pic' + ;; + cxx*) + # Digital/Compaq C++ + lt_prog_compiler_wl_CXX='-Wl,' + # Make sure the PIC flag is empty. It appears that all Alpha + # Linux and Compaq Tru64 Unix objects are PIC. + lt_prog_compiler_pic_CXX= + lt_prog_compiler_static_CXX='-non_shared' + ;; + *) + ;; + esac + ;; + psos*) + ;; + sco*) + case $cc_basename in + CC*) + lt_prog_compiler_pic_CXX='-fPIC' + ;; + *) + ;; + esac + ;; + solaris*) + case $cc_basename in + CC*) + # Sun C++ 4.2, 5.x and Centerline C++ + lt_prog_compiler_pic_CXX='-KPIC' + lt_prog_compiler_static_CXX='-Bstatic' + lt_prog_compiler_wl_CXX='-Qoption ld ' + ;; + gcx*) + # Green Hills C++ Compiler + lt_prog_compiler_pic_CXX='-PIC' + ;; + *) + ;; + esac + ;; + sunos4*) + case $cc_basename in + CC*) + # Sun C++ 4.x + lt_prog_compiler_pic_CXX='-pic' + lt_prog_compiler_static_CXX='-Bstatic' + ;; + lcc*) + # Lucid + lt_prog_compiler_pic_CXX='-pic' + ;; + *) + ;; + esac + ;; + tandem*) + case $cc_basename in + NCC*) + # NonStop-UX NCC 3.20 + lt_prog_compiler_pic_CXX='-KPIC' + ;; + *) + ;; + esac + ;; + unixware*) + ;; + vxworks*) + ;; + *) + lt_prog_compiler_can_build_shared_CXX=no + ;; + esac + fi + +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 +echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 + +# +# Check to make sure the PIC flag actually works. +# +if test -n "$lt_prog_compiler_pic_CXX"; then + +echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 +echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 +if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + lt_prog_compiler_pic_works_CXX=no + ac_outfile=conftest.$ac_objext + printf "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:11301: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "$as_me:11305: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp + $SED '/^$/d' conftest.err >conftest.er2 + if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then + lt_prog_compiler_pic_works_CXX=yes + fi + fi + $rm conftest* + +fi +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 +echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 + +if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then + case $lt_prog_compiler_pic_CXX in + "" | " "*) ;; + *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; + esac +else + lt_prog_compiler_pic_CXX= + lt_prog_compiler_can_build_shared_CXX=no +fi + +fi +case "$host_os" in + # For platforms which do not support PIC, -DPIC is meaningless: + *djgpp*) + lt_prog_compiler_pic_CXX= + ;; + *) + lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" + ;; +esac + +echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 +echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 +if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + lt_cv_prog_compiler_c_o_CXX=no + $rm -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + printf "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:11363: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "$as_me:11367: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp + $SED '/^$/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o_CXX=yes + fi + fi + chmod u+w . + $rm conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files + $rm out/* && rmdir out + cd .. + rmdir conftest + $rm conftest* + +fi +echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 +echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 + + +hard_links="nottested" +if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then + # do not overwrite the value of need_locks provided by the user + echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 +echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 + hard_links=yes + $rm conftest* + ln conftest.a conftest.b 2>/dev/null && hard_links=no + touch conftest.a + ln conftest.a conftest.b 2>&5 || hard_links=no + ln conftest.a conftest.b 2>/dev/null && hard_links=no + echo "$as_me:$LINENO: result: $hard_links" >&5 +echo "${ECHO_T}$hard_links" >&6 + if test "$hard_links" = no; then + { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 +echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} + need_locks=warn + fi +else + need_locks=no +fi + +echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 + + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + case $host_os in + aix4* | aix5*) + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to AIX nm, but means don't demangle with GNU nm + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then + export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' + else + export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' + fi + ;; + pw32*) + export_symbols_cmds_CXX="$ltdll_cmds" + ;; + cygwin* | mingw*) + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' + ;; + *) + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + ;; + esac + +echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 +echo "${ECHO_T}$ld_shlibs_CXX" >&6 +test "$ld_shlibs_CXX" = no && can_build_shared=no + +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" +if test "$GCC" = yes; then + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" +fi + +# +# Do we need to explicitly link libc? +# +case "x$archive_cmds_need_lc_CXX" in +x|xyes) + # Assume -lc should be added + archive_cmds_need_lc_CXX=yes + + if test "$enable_shared" = yes && test "$GCC" = yes; then + case $archive_cmds_CXX in + *'~'*) + # FIXME: we may have to deal with multi-command sequences. + ;; + '$CC '*) + # Test whether the compiler implicitly links with -lc since on some + # systems, -lgcc has to come before -lc. If gcc already passes -lc + # to ld, don't add -lc before -lgcc. + echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 +echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 + $rm conftest* + printf "$lt_simple_compile_test_code" > conftest.$ac_ext + + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } 2>conftest.err; then + soname=conftest + lib=conftest + libobjs=conftest.$ac_objext + deplibs= + wl=$lt_prog_compiler_wl_CXX + compiler_flags=-v + linker_flags=-v + verstring= + output_objdir=. + libname=conftest + lt_save_allow_undefined_flag=$allow_undefined_flag_CXX + allow_undefined_flag_CXX= + if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 + (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } + then + archive_cmds_need_lc_CXX=no + else + archive_cmds_need_lc_CXX=yes + fi + allow_undefined_flag_CXX=$lt_save_allow_undefined_flag + else + cat conftest.err 1>&5 + fi + $rm conftest* + echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 +echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 + ;; + esac + fi + ;; +esac + +echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 +echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 +library_names_spec= +libname_spec='lib$name' +soname_spec= +shrext_cmds=".so" +postinstall_cmds= +postuninstall_cmds= +finish_cmds= +finish_eval= +shlibpath_var= +shlibpath_overrides_runpath=unknown +version_type=none +dynamic_linker="$host_os ld.so" +sys_lib_dlsearch_path_spec="/lib /usr/lib" +if test "$GCC" = yes; then + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then + # if the path contains ";" then we assume it to be the separator + # otherwise default to the standard path separator (i.e. ":") - it is + # assumed that no part of a normal pathname contains ";" but that should + # okay in the real world where ";" in dirpaths is itself problematic. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + else + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi +else + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" +fi +need_lib_prefix=unknown +hardcode_into_libs=no + +# when you set need_version to no, make sure it does not cause -set_version +# flags to be left without arguments +need_version=unknown + +case $host_os in +aix3*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' + shlibpath_var=LIBPATH + + # AIX 3 has no versioning support, so we append a major version to the name. + soname_spec='${libname}${release}${shared_ext}$major' + ;; + +aix4* | aix5*) + version_type=linux + need_lib_prefix=no + need_version=no + hardcode_into_libs=yes + if test "$host_cpu" = ia64; then + # AIX 5 supports IA64 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + else + # With GCC up to 2.95.x, collect2 would create an import file + # for dependence libraries. The import file would start with + # the line `#! .'. This would cause the generated library to + # depend on `.', always an invalid library. This was fixed in + # development snapshots of GCC prior to 3.0. + case $host_os in + aix4 | aix4.[01] | aix4.[01].*) + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' + echo ' yes ' + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then + : + else + can_build_shared=no + fi + ;; + esac + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct + # soname into executable. Probably we can add versioning support to + # collect2, so additional links can be useful in future. + if test "$aix_use_runtimelinking" = yes; then + # If using run time linking (on AIX 4.2 or later) use lib.so + # instead of lib.a to let people know that these are not + # typical AIX shared libraries. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + else + # We preserve .a as extension for shared libraries through AIX4.2 + # and later when we are not doing run time linking. + library_names_spec='${libname}${release}.a $libname.a' + soname_spec='${libname}${release}${shared_ext}$major' + fi + shlibpath_var=LIBPATH + fi + ;; + +amigaos*) + library_names_spec='$libname.ixlibrary $libname.a' + # Create ${libname}_ixlibrary.a entries in /sys/libs. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' + ;; + +beos*) + library_names_spec='${libname}${shared_ext}' + dynamic_linker="$host_os ld.so" + shlibpath_var=LIBRARY_PATH + ;; + +bsdi[45]*) + version_type=linux + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" + # the default ld.so.conf also contains /usr/contrib/lib and + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow + # libtool to hard-code these into programs + ;; + +cygwin* | mingw* | pw32*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$host_os in + yes,cygwin* | yes,mingw* | yes,pw32*) + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $rm \$dlpath' + shlibpath_overrides_runpath=yes + + case $host_os in + cygwin*) + # Cygwin DLLs use 'cyg' prefix rather than 'lib' + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" + ;; + mingw*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` + if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then + # It is most probably a Windows format PATH printed by + # mingw gcc, but we are running on Cygwin. Gcc prints its search + # path with ; separators, and with drive letters. We can handle the + # drive letters (cygwin fileutils understands them), so leave them, + # especially as we might pass files found there to a mingw objdump, + # which wouldn't understand a cygwinified path. Ahh. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + else + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + ;; + pw32*) + # pw32 DLLs use 'pw' prefix rather than 'lib' + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + ;; + esac + ;; + + *) + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' + ;; + esac + dynamic_linker='Win32 ld.exe' + # FIXME: first we should search . and the directory the executable is in + shlibpath_var=PATH + ;; + +darwin* | rhapsody*) + dynamic_linker="$host_os dyld" + version_type=darwin + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' + soname_spec='${libname}${release}${major}$shared_ext' + shlibpath_overrides_runpath=yes + shlibpath_var=DYLD_LIBRARY_PATH + shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. + if test "$GCC" = yes; then + sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` + else + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' + fi + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' + ;; + +dgux*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +freebsd1*) + dynamic_linker=no + ;; + +kfreebsd*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='GNU ld.so' + ;; + +freebsd* | dragonfly*) + # DragonFly does not have aout. When/if they implement a new + # versioning mechanism, adjust this. + objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` + version_type=freebsd-$objformat + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + need_version=no + need_lib_prefix=no + ;; + freebsd-*) + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' + need_version=yes + ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in + freebsd2*) + shlibpath_overrides_runpath=yes + ;; + freebsd3.[01]* | freebsdelf3.[01]*) + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + *) # from 3.2 on + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + esac + ;; + +gnu*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + hardcode_into_libs=yes + ;; + +hpux9* | hpux10* | hpux11*) + # Give a soname corresponding to the major version so that dld.sl refuses to + # link against other versions. + version_type=sunos + need_lib_prefix=no + need_version=no + case "$host_cpu" in + ia64*) + shrext_cmds='.so' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.so" + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + if test "X$HPUX_IA64_MODE" = X32; then + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" + else + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" + fi + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + hppa*64*) + shrext_cmds='.sl' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.sl" + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + *) + shrext_cmds='.sl' + dynamic_linker="$host_os dld.sl" + shlibpath_var=SHLIB_PATH + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + ;; + esac + # HP-UX runs *really* slowly unless shared libraries are mode 555. + postinstall_cmds='chmod 555 $lib' + ;; + +irix5* | irix6* | nonstopux*) + case $host_os in + nonstopux*) version_type=nonstopux ;; + *) + if test "$lt_cv_prog_gnu_ld" = yes; then + version_type=linux + else + version_type=irix + fi ;; + esac + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' + case $host_os in + irix5* | nonstopux*) + libsuff= shlibsuff= + ;; + *) + case $LD in # libtool.m4 will add one of these switches to LD + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") + libsuff= shlibsuff= libmagic=32-bit;; + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") + libsuff=32 shlibsuff=N32 libmagic=N32;; + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") + libsuff=64 shlibsuff=64 libmagic=64-bit;; + *) libsuff= shlibsuff= libmagic=never-match;; + esac + ;; + esac + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH + shlibpath_overrides_runpath=no + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" + hardcode_into_libs=yes + ;; + +# No shared lib support for Linux oldld, aout, or coff. +linux*oldld* | linux*aout* | linux*coff*) + dynamic_linker=no + ;; + +# This must be Linux ELF. +linux*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + # This implies no fast_install, which is unacceptable. + # Some rework will be needed to allow for fast_install + # before this can be enabled. + hardcode_into_libs=yes + + # find out which ABI we are using + libsuff= + case "$host_cpu" in + x86_64*|s390x*|powerpc64*) + echo '#line 11878 "configure"' > conftest.$ac_ext + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; then + case `/usr/bin/file conftest.$ac_objext` in + *64-bit*) + libsuff=64 + sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" + ;; + esac + fi + rm -rf conftest* + ;; + esac + + # Append ld.so.conf contents to the search path + if test -f /etc/ld.so.conf; then + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` + sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" + fi + + # We used to test for /lib/ld.so.1 and disable shared libraries on + # powerpc, because MkLinux only supported shared libraries with the + # GNU dynamic linker. Since this was broken with cross compilers, + # most powerpc-linux boxes support dynamic linking these days and + # people can always --disable-shared, the test was removed, and we + # assume the GNU/Linux dynamic linker is in use. + dynamic_linker='GNU/Linux ld.so' + ;; + +knetbsd*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='GNU ld.so' + ;; + +netbsd*) + version_type=sunos + need_lib_prefix=no + need_version=no + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + dynamic_linker='NetBSD (a.out) ld.so' + else + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='NetBSD ld.elf_so' + fi + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + +newsos6) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +nto-qnx*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +openbsd*) + version_type=sunos + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + shlibpath_var=LD_LIBRARY_PATH + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + case $host_os in + openbsd2.[89] | openbsd2.[89].*) + shlibpath_overrides_runpath=no + ;; + *) + shlibpath_overrides_runpath=yes + ;; + esac + else + shlibpath_overrides_runpath=yes + fi + ;; + +os2*) + libname_spec='$name' + shrext_cmds=".dll" + need_lib_prefix=no + library_names_spec='$libname${shared_ext} $libname.a' + dynamic_linker='OS/2 ld.exe' + shlibpath_var=LIBPATH + ;; + +osf3* | osf4* | osf5*) + version_type=osf + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" + ;; + +sco3.2v5*) + version_type=osf + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + ;; + +solaris*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + # ldd complains unless libraries are executable + postinstall_cmds='chmod +x $lib' + ;; + +sunos4*) + version_type=sunos + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + if test "$with_gnu_ld" = yes; then + need_lib_prefix=no + fi + need_version=yes + ;; + +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + case $host_vendor in + sni) + shlibpath_overrides_runpath=no + need_lib_prefix=no + export_dynamic_flag_spec='${wl}-Blargedynsym' + runpath_var=LD_RUN_PATH + ;; + siemens) + need_lib_prefix=no + ;; + motorola) + need_lib_prefix=no + need_version=no + shlibpath_overrides_runpath=no + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' + ;; + esac + ;; + +sysv4*MP*) + if test -d /usr/nec ;then + version_type=linux + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' + soname_spec='$libname${shared_ext}.$major' + shlibpath_var=LD_LIBRARY_PATH + fi + ;; + +uts4*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +*) + dynamic_linker=no + ;; +esac +echo "$as_me:$LINENO: result: $dynamic_linker" >&5 +echo "${ECHO_T}$dynamic_linker" >&6 +test "$dynamic_linker" = no && can_build_shared=no + +echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 +echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 +hardcode_action_CXX= +if test -n "$hardcode_libdir_flag_spec_CXX" || \ + test -n "$runpath_var_CXX" || \ + test "X$hardcode_automatic_CXX" = "Xyes" ; then + + # We can hardcode non-existant directories. + if test "$hardcode_direct_CXX" != no && + # If the only mechanism to avoid hardcoding is shlibpath_var, we + # have to relink, otherwise we might link with an installed library + # when we should be linking with a yet-to-be-installed one + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && + test "$hardcode_minus_L_CXX" != no; then + # Linking always hardcodes the temporary library directory. + hardcode_action_CXX=relink + else + # We can link without hardcoding, and we can hardcode nonexisting dirs. + hardcode_action_CXX=immediate + fi +else + # We cannot hardcode anything, or else we can only hardcode existing + # directories. + hardcode_action_CXX=unsupported +fi +echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 +echo "${ECHO_T}$hardcode_action_CXX" >&6 + +if test "$hardcode_action_CXX" = relink; then + # Fast installation is not supported + enable_fast_install=no +elif test "$shlibpath_overrides_runpath" = yes || + test "$enable_shared" = no; then + # Fast installation is not necessary + enable_fast_install=needless +fi + +striplib= +old_striplib= +echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 +echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" + test -z "$striplib" && striplib="$STRIP --strip-unneeded" + echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6 +else +# FIXME - insert some real tests, host_os isn't really good enough + case $host_os in + darwin*) + if test -n "$STRIP" ; then + striplib="$STRIP -x" + echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6 + else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + ;; + *) + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 + ;; + esac +fi + +if test "x$enable_dlopen" != xyes; then + enable_dlopen=unknown + enable_dlopen_self=unknown + enable_dlopen_self_static=unknown +else + lt_cv_dlopen=no + lt_cv_dlopen_libs= + + case $host_os in + beos*) + lt_cv_dlopen="load_add_on" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + ;; + + mingw* | pw32*) + lt_cv_dlopen="LoadLibrary" + lt_cv_dlopen_libs= + ;; + + cygwin*) + lt_cv_dlopen="dlopen" + lt_cv_dlopen_libs= + ;; + + darwin*) + # if libdl is installed we need to link against it + echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 +echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 +if test "${ac_cv_lib_dl_dlopen+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char dlopen (); +int +main () +{ +dlopen (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_dl_dlopen=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_lib_dl_dlopen=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 +echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 +if test $ac_cv_lib_dl_dlopen = yes; then + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" +else + + lt_cv_dlopen="dyld" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + +fi + + ;; + + *) + echo "$as_me:$LINENO: checking for shl_load" >&5 +echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 +if test "${ac_cv_func_shl_load+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +/* Define shl_load to an innocuous variant, in case declares shl_load. + For example, HP-UX 11i declares gettimeofday. */ +#define shl_load innocuous_shl_load + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char shl_load (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef shl_load + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +{ +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char shl_load (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_shl_load) || defined (__stub___shl_load) +choke me +#else +char (*f) () = shl_load; +#endif +#ifdef __cplusplus +} +#endif + +int +main () +{ +return f != shl_load; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_func_shl_load=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_func_shl_load=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 +echo "${ECHO_T}$ac_cv_func_shl_load" >&6 +if test $ac_cv_func_shl_load = yes; then + lt_cv_dlopen="shl_load" +else + echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 +echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 +if test "${ac_cv_lib_dld_shl_load+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldld $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char shl_load (); +int +main () +{ +shl_load (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_dld_shl_load=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_lib_dld_shl_load=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 +echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 +if test $ac_cv_lib_dld_shl_load = yes; then + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" +else + echo "$as_me:$LINENO: checking for dlopen" >&5 +echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 +if test "${ac_cv_func_dlopen+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +/* Define dlopen to an innocuous variant, in case declares dlopen. + For example, HP-UX 11i declares gettimeofday. */ +#define dlopen innocuous_dlopen + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char dlopen (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef dlopen + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +{ +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char dlopen (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_dlopen) || defined (__stub___dlopen) +choke me +#else +char (*f) () = dlopen; +#endif +#ifdef __cplusplus +} +#endif + +int +main () +{ +return f != dlopen; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_func_dlopen=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_func_dlopen=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 +echo "${ECHO_T}$ac_cv_func_dlopen" >&6 +if test $ac_cv_func_dlopen = yes; then + lt_cv_dlopen="dlopen" +else + echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 +echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 +if test "${ac_cv_lib_dl_dlopen+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char dlopen (); +int +main () +{ +dlopen (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_dl_dlopen=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_lib_dl_dlopen=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 +echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 +if test $ac_cv_lib_dl_dlopen = yes; then + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" +else + echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 +echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 +if test "${ac_cv_lib_svld_dlopen+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsvld $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char dlopen (); +int +main () +{ +dlopen (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_svld_dlopen=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_lib_svld_dlopen=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 +echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 +if test $ac_cv_lib_svld_dlopen = yes; then + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" +else + echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 +echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 +if test "${ac_cv_lib_dld_dld_link+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldld $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char dld_link (); +int +main () +{ +dld_link (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_cxx_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_dld_dld_link=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_lib_dld_dld_link=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 +echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 +if test $ac_cv_lib_dld_dld_link = yes; then + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" +fi + + +fi + + +fi + + +fi + + +fi + + +fi + + ;; + esac + + if test "x$lt_cv_dlopen" != xno; then + enable_dlopen=yes + else + enable_dlopen=no + fi + + case $lt_cv_dlopen in + dlopen) + save_CPPFLAGS="$CPPFLAGS" + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" + + save_LDFLAGS="$LDFLAGS" + eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" + + save_LIBS="$LIBS" + LIBS="$lt_cv_dlopen_libs $LIBS" + + echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 +echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 +if test "${lt_cv_dlopen_self+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test "$cross_compiling" = yes; then : + lt_cv_dlopen_self=cross +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext < +#endif + +#include + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif + +#ifdef __cplusplus +extern "C" void exit (int); +#endif + +void fnord() { int i=42;} +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; + + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + /* dlclose (self); */ + } + + exit (status); +} +EOF + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then + (./conftest; exit; ) 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; + x$lt_unknown|x*) lt_cv_dlopen_self=no ;; + esac + else : + # compilation failed + lt_cv_dlopen_self=no + fi +fi +rm -fr conftest* + + +fi +echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 +echo "${ECHO_T}$lt_cv_dlopen_self" >&6 + + if test "x$lt_cv_dlopen_self" = xyes; then + LDFLAGS="$LDFLAGS $link_static_flag" + echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 +echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 +if test "${lt_cv_dlopen_self_static+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test "$cross_compiling" = yes; then : + lt_cv_dlopen_self_static=cross +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext < +#endif + +#include + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif + +#ifdef __cplusplus +extern "C" void exit (int); +#endif + +void fnord() { int i=42;} +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; + + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + /* dlclose (self); */ + } + + exit (status); +} +EOF + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then + (./conftest; exit; ) 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; + x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; + esac + else : + # compilation failed + lt_cv_dlopen_self_static=no + fi +fi +rm -fr conftest* + + +fi +echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 +echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 + fi + + CPPFLAGS="$save_CPPFLAGS" + LDFLAGS="$save_LDFLAGS" + LIBS="$save_LIBS" + ;; + esac + + case $lt_cv_dlopen_self in + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; + *) enable_dlopen_self=unknown ;; + esac + + case $lt_cv_dlopen_self_static in + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; + *) enable_dlopen_self_static=unknown ;; + esac +fi + + +# The else clause should only fire when bootstrapping the +# libtool distribution, otherwise you forgot to ship ltmain.sh +# with your package, and you will get complaints that there are +# no rules to generate ltmain.sh. +if test -f "$ltmain"; then + # See if we are running on zsh, and set the options which allow our commands through + # without removal of \ escapes. + if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST + fi + # Now quote all the things that may contain metacharacters while being + # careful not to overquote the AC_SUBSTed values. We take copies of the + # variables and quote the copies for generation of the libtool script. + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ + SED SHELL STRIP \ + libname_spec library_names_spec soname_spec extract_expsyms_cmds \ + old_striplib striplib file_magic_cmd finish_cmds finish_eval \ + deplibs_check_method reload_flag reload_cmds need_locks \ + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ + lt_cv_sys_global_symbol_to_c_name_address \ + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ + old_postinstall_cmds old_postuninstall_cmds \ + compiler_CXX \ + CC_CXX \ + LD_CXX \ + lt_prog_compiler_wl_CXX \ + lt_prog_compiler_pic_CXX \ + lt_prog_compiler_static_CXX \ + lt_prog_compiler_no_builtin_flag_CXX \ + export_dynamic_flag_spec_CXX \ + thread_safe_flag_spec_CXX \ + whole_archive_flag_spec_CXX \ + enable_shared_with_static_runtimes_CXX \ + old_archive_cmds_CXX \ + old_archive_from_new_cmds_CXX \ + predep_objects_CXX \ + postdep_objects_CXX \ + predeps_CXX \ + postdeps_CXX \ + compiler_lib_search_path_CXX \ + archive_cmds_CXX \ + archive_expsym_cmds_CXX \ + postinstall_cmds_CXX \ + postuninstall_cmds_CXX \ + old_archive_from_expsyms_cmds_CXX \ + allow_undefined_flag_CXX \ + no_undefined_flag_CXX \ + export_symbols_cmds_CXX \ + hardcode_libdir_flag_spec_CXX \ + hardcode_libdir_flag_spec_ld_CXX \ + hardcode_libdir_separator_CXX \ + hardcode_automatic_CXX \ + module_cmds_CXX \ + module_expsym_cmds_CXX \ + lt_cv_prog_compiler_c_o_CXX \ + exclude_expsyms_CXX \ + include_expsyms_CXX; do + + case $var in + old_archive_cmds_CXX | \ + old_archive_from_new_cmds_CXX | \ + archive_cmds_CXX | \ + archive_expsym_cmds_CXX | \ + module_cmds_CXX | \ + module_expsym_cmds_CXX | \ + old_archive_from_expsyms_cmds_CXX | \ + export_symbols_cmds_CXX | \ + extract_expsyms_cmds | reload_cmds | finish_cmds | \ + postinstall_cmds | postuninstall_cmds | \ + old_postinstall_cmds | old_postuninstall_cmds | \ + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) + # Double-quote double-evaled strings. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" + ;; + *) + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" + ;; + esac + done + + case $lt_echo in + *'\$0 --fallback-echo"') + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` + ;; + esac + +cfgfile="$ofile" + + cat <<__EOF__ >> "$cfgfile" +# ### BEGIN LIBTOOL TAG CONFIG: $tagname + +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: + +# Shell to use when invoking shell scripts. +SHELL=$lt_SHELL + +# Whether or not to build shared libraries. +build_libtool_libs=$enable_shared + +# Whether or not to build static libraries. +build_old_libs=$enable_static + +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=$archive_cmds_need_lc_CXX + +# Whether or not to disallow shared libs when runtime libs are static +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX + +# Whether or not to optimize for fast installation. +fast_install=$enable_fast_install + +# The host system. +host_alias=$host_alias +host=$host +host_os=$host_os + +# The build system. +build_alias=$build_alias +build=$build +build_os=$build_os + +# An echo program that does not interpret backslashes. +echo=$lt_echo + +# The archiver. +AR=$lt_AR +AR_FLAGS=$lt_AR_FLAGS + +# A C compiler. +LTCC=$lt_LTCC + +# A language-specific compiler. +CC=$lt_compiler_CXX + +# Is the compiler the GNU C compiler? +with_gcc=$GCC_CXX + +# An ERE matcher. +EGREP=$lt_EGREP + +# The linker used to build libraries. +LD=$lt_LD_CXX + +# Whether we need hard or soft links. +LN_S=$lt_LN_S + +# A BSD-compatible nm program. +NM=$lt_NM + +# A symbol stripping program +STRIP=$lt_STRIP + +# Used to examine libraries when file_magic_cmd begins "file" +MAGIC_CMD=$MAGIC_CMD + +# Used on cygwin: DLL creation program. +DLLTOOL="$DLLTOOL" + +# Used on cygwin: object dumper. +OBJDUMP="$OBJDUMP" + +# Used on cygwin: assembler. +AS="$AS" + +# The name of the directory that contains temporary libtool files. +objdir=$objdir + +# How to create reloadable object files. +reload_flag=$lt_reload_flag +reload_cmds=$lt_reload_cmds + +# How to pass a linker flag through the compiler. +wl=$lt_lt_prog_compiler_wl_CXX + +# Object file suffix (normally "o"). +objext="$ac_objext" + +# Old archive suffix (normally "a"). +libext="$libext" + +# Shared library suffix (normally ".so"). +shrext_cmds='$shrext_cmds' + +# Executable file suffix (normally ""). +exeext="$exeext" + +# Additional compiler flags for building library objects. +pic_flag=$lt_lt_prog_compiler_pic_CXX +pic_mode=$pic_mode + +# What is the maximum length of a command? +max_cmd_len=$lt_cv_sys_max_cmd_len + +# Does compiler simultaneously support -c and -o options? +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX + +# Must we lock files when doing compilation? +need_locks=$lt_need_locks + +# Do we need the lib prefix for modules? +need_lib_prefix=$need_lib_prefix + +# Do we need a version for libraries? +need_version=$need_version + +# Whether dlopen is supported. +dlopen_support=$enable_dlopen + +# Whether dlopen of programs is supported. +dlopen_self=$enable_dlopen_self + +# Whether dlopen of statically linked programs is supported. +dlopen_self_static=$enable_dlopen_self_static + +# Compiler flag to prevent dynamic linking. +link_static_flag=$lt_lt_prog_compiler_static_CXX + +# Compiler flag to turn off builtin functions. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX + +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX + +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX + +# Compiler flag to generate thread-safe objects. +thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX + +# Library versioning type. +version_type=$version_type + +# Format of library name prefix. +libname_spec=$lt_libname_spec + +# List of archive names. First name is the real one, the rest are links. +# The last name is the one that the linker finds with -lNAME. +library_names_spec=$lt_library_names_spec + +# The coded name of the library, if different from the real name. +soname_spec=$lt_soname_spec + +# Commands used to build and install an old-style archive. +RANLIB=$lt_RANLIB +old_archive_cmds=$lt_old_archive_cmds_CXX +old_postinstall_cmds=$lt_old_postinstall_cmds +old_postuninstall_cmds=$lt_old_postuninstall_cmds + +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX + +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX + +# Commands used to build and install a shared archive. +archive_cmds=$lt_archive_cmds_CXX +archive_expsym_cmds=$lt_archive_expsym_cmds_CXX +postinstall_cmds=$lt_postinstall_cmds +postuninstall_cmds=$lt_postuninstall_cmds + +# Commands used to build a loadable module (assumed same as above if empty) +module_cmds=$lt_module_cmds_CXX +module_expsym_cmds=$lt_module_expsym_cmds_CXX + +# Commands to strip libraries. +old_striplib=$lt_old_striplib +striplib=$lt_striplib + +# Dependencies to place before the objects being linked to create a +# shared library. +predep_objects=$lt_predep_objects_CXX + +# Dependencies to place after the objects being linked to create a +# shared library. +postdep_objects=$lt_postdep_objects_CXX + +# Dependencies to place before the objects being linked to create a +# shared library. +predeps=$lt_predeps_CXX + +# Dependencies to place after the objects being linked to create a +# shared library. +postdeps=$lt_postdeps_CXX + +# The library search path used internally by the compiler when linking +# a shared library. +compiler_lib_search_path=$lt_compiler_lib_search_path_CXX + +# Method to check whether dependent libraries are shared objects. +deplibs_check_method=$lt_deplibs_check_method + +# Command to use when deplibs_check_method == file_magic. +file_magic_cmd=$lt_file_magic_cmd + +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag=$lt_allow_undefined_flag_CXX + +# Flag that forces no undefined symbols. +no_undefined_flag=$lt_no_undefined_flag_CXX + +# Commands used to finish a libtool library installation in a directory. +finish_cmds=$lt_finish_cmds + +# Same as above, but a single script fragment to be evaled but not shown. +finish_eval=$lt_finish_eval + +# Take the output of nm and produce a listing of raw symbols and C names. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe + +# Transform the output of nm in a proper C declaration +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl + +# Transform the output of nm in a C name address pair +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address + +# This is the shared library runtime path variable. +runpath_var=$runpath_var + +# This is the shared library path variable. +shlibpath_var=$shlibpath_var + +# Is shlibpath searched before the hard-coded library search path? +shlibpath_overrides_runpath=$shlibpath_overrides_runpath + +# How to hardcode a shared library path into an executable. +hardcode_action=$hardcode_action_CXX + +# Whether we should hardcode library paths into libraries. +hardcode_into_libs=$hardcode_into_libs + +# Flag to hardcode \$libdir into a binary during linking. +# This must work even if \$libdir does not exist. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX + +# If ld is used when linking, flag to hardcode \$libdir into +# a binary during linking. This must work even if \$libdir does +# not exist. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX + +# Whether we need a single -rpath flag with a separated argument. +hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX + +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the +# resulting binary. +hardcode_direct=$hardcode_direct_CXX + +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the +# resulting binary. +hardcode_minus_L=$hardcode_minus_L_CXX + +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into +# the resulting binary. +hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX + +# Set to yes if building a shared library automatically hardcodes DIR into the library +# and all subsequent libraries and executables linked against it. +hardcode_automatic=$hardcode_automatic_CXX + +# Variables whose values should be saved in libtool wrapper scripts and +# restored at relink time. +variables_saved_for_relink="$variables_saved_for_relink" + +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=$link_all_deplibs_CXX + +# Compile-time system search path for libraries +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec + +# Run-time system search path for libraries +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec + +# Fix the shell variable \$srcfile for the compiler. +fix_srcfile_path="$fix_srcfile_path_CXX" + +# Set to yes if exported symbols are required. +always_export_symbols=$always_export_symbols_CXX + +# The commands to list exported symbols. +export_symbols_cmds=$lt_export_symbols_cmds_CXX + +# The commands to extract the exported symbol list from a shared archive. +extract_expsyms_cmds=$lt_extract_expsyms_cmds + +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms=$lt_exclude_expsyms_CXX + +# Symbols that must always be exported. +include_expsyms=$lt_include_expsyms_CXX + +# ### END LIBTOOL TAG CONFIG: $tagname + +__EOF__ + + +else + # If there is no Makefile yet, we rely on a make rule to execute + # `config.status --recheck' to rerun these tests and create the + # libtool script then. + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` + if test -f "$ltmain_in"; then + test -f Makefile && make "$ltmain" + fi +fi + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +CC=$lt_save_CC +LDCXX=$LD +LD=$lt_save_LD +GCC=$lt_save_GCC +with_gnu_ldcxx=$with_gnu_ld +with_gnu_ld=$lt_save_with_gnu_ld +lt_cv_path_LDCXX=$lt_cv_path_LD +lt_cv_path_LD=$lt_save_path_LD +lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld +lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld + + else + tagname="" + fi + ;; + + F77) + if test -n "$F77" && test "X$F77" != "Xno"; then + +ac_ext=f +ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' +ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_f77_compiler_gnu + + +archive_cmds_need_lc_F77=no +allow_undefined_flag_F77= +always_export_symbols_F77=no +archive_expsym_cmds_F77= +export_dynamic_flag_spec_F77= +hardcode_direct_F77=no +hardcode_libdir_flag_spec_F77= +hardcode_libdir_flag_spec_ld_F77= +hardcode_libdir_separator_F77= +hardcode_minus_L_F77=no +hardcode_automatic_F77=no +module_cmds_F77= +module_expsym_cmds_F77= +link_all_deplibs_F77=unknown +old_archive_cmds_F77=$old_archive_cmds +no_undefined_flag_F77= +whole_archive_flag_spec_F77= +enable_shared_with_static_runtimes_F77=no + +# Source file extension for f77 test sources. +ac_ext=f + +# Object file extension for compiled f77 test sources. +objext=o +objext_F77=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code=" subroutine t\n return\n end\n" + +# Code to be used in simple link tests +lt_simple_link_test_code=" program t\n end\n" + +# ltmain only uses $CC for tagged configurations so make sure $CC is set. + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# Allow CC to be a program name with arguments. +compiler=$CC + + +# save warnings/boilerplate of simple test code +ac_outfile=conftest.$ac_objext +printf "$lt_simple_compile_test_code" >conftest.$ac_ext +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err +_lt_compiler_boilerplate=`cat conftest.err` +$rm conftest* + +ac_outfile=conftest.$ac_objext +printf "$lt_simple_link_test_code" >conftest.$ac_ext +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err +_lt_linker_boilerplate=`cat conftest.err` +$rm conftest* + + +# Allow CC to be a program name with arguments. +lt_save_CC="$CC" +CC=${F77-"f77"} +compiler=$CC +compiler_F77=$CC +for cc_temp in $compiler""; do + case $cc_temp in + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` + + +echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 +echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 +echo "$as_me:$LINENO: result: $can_build_shared" >&5 +echo "${ECHO_T}$can_build_shared" >&6 + +echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 +echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 +test "$can_build_shared" = "no" && enable_shared=no + +# On AIX, shared libraries and static libraries use the same namespace, and +# are all built from PIC. +case "$host_os" in +aix3*) + test "$enable_shared" = yes && enable_static=no + if test -n "$RANLIB"; then + archive_cmds="$archive_cmds~\$RANLIB \$lib" + postinstall_cmds='$RANLIB $lib' + fi + ;; +aix4* | aix5*) + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then + test "$enable_shared" = yes && enable_static=no + fi + ;; +esac +echo "$as_me:$LINENO: result: $enable_shared" >&5 +echo "${ECHO_T}$enable_shared" >&6 + +echo "$as_me:$LINENO: checking whether to build static libraries" >&5 +echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 +# Make sure either enable_shared or enable_static is yes. +test "$enable_shared" = yes || enable_static=yes +echo "$as_me:$LINENO: result: $enable_static" >&5 +echo "${ECHO_T}$enable_static" >&6 + +test "$ld_shlibs_F77" = no && can_build_shared=no + +GCC_F77="$G77" +LD_F77="$LD" + +lt_prog_compiler_wl_F77= +lt_prog_compiler_pic_F77= +lt_prog_compiler_static_F77= + +echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 +echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 + + if test "$GCC" = yes; then + lt_prog_compiler_wl_F77='-Wl,' + lt_prog_compiler_static_F77='-static' + + case $host_os in + aix*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static_F77='-Bstatic' + fi + ;; + + amigaos*) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, + # like `-m68040'. + lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' + ;; + + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + + mingw* | pw32* | os2*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_prog_compiler_pic_F77='-DDLL_EXPORT' + ;; + + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + lt_prog_compiler_pic_F77='-fno-common' + ;; + + msdosdjgpp*) + # Just because we use GCC doesn't mean we suddenly get shared libraries + # on systems that don't support them. + lt_prog_compiler_can_build_shared_F77=no + enable_shared=no + ;; + + sysv4*MP*) + if test -d /usr/nec; then + lt_prog_compiler_pic_F77=-Kconform_pic + fi + ;; + + hpux*) + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but + # not for PA HP-UX. + case "$host_cpu" in + hppa*64*|ia64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic_F77='-fPIC' + ;; + esac + ;; + + *) + lt_prog_compiler_pic_F77='-fPIC' + ;; + esac + else + # PORTME Check for flag to pass linker flags through the system compiler. + case $host_os in + aix*) + lt_prog_compiler_wl_F77='-Wl,' + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static_F77='-Bstatic' + else + lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' + fi + ;; + darwin*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + case $cc_basename in + xlc*) + lt_prog_compiler_pic_F77='-qnocommon' + lt_prog_compiler_wl_F77='-Wl,' + ;; + esac + ;; + + mingw* | pw32* | os2*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_prog_compiler_pic_F77='-DDLL_EXPORT' + ;; + + hpux9* | hpux10* | hpux11*) + lt_prog_compiler_wl_F77='-Wl,' + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but + # not for PA HP-UX. + case "$host_cpu" in + hppa*64*|ia64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic_F77='+Z' + ;; + esac + # Is there a better lt_prog_compiler_static that works with the bundled CC? + lt_prog_compiler_static_F77='${wl}-a ${wl}archive' + ;; + + irix5* | irix6* | nonstopux*) + lt_prog_compiler_wl_F77='-Wl,' + # PIC (with -KPIC) is the default. + lt_prog_compiler_static_F77='-non_shared' + ;; + + newsos6) + lt_prog_compiler_pic_F77='-KPIC' + lt_prog_compiler_static_F77='-Bstatic' + ;; + + linux*) + case $cc_basename in + icc* | ecc*) + lt_prog_compiler_wl_F77='-Wl,' + lt_prog_compiler_pic_F77='-KPIC' + lt_prog_compiler_static_F77='-static' + ;; + pgcc* | pgf77* | pgf90*) + # Portland Group compilers (*not* the Pentium gcc compiler, + # which looks to be a dead project) + lt_prog_compiler_wl_F77='-Wl,' + lt_prog_compiler_pic_F77='-fpic' + lt_prog_compiler_static_F77='-static' + ;; + ccc*) + lt_prog_compiler_wl_F77='-Wl,' + # All Alpha code is PIC. + lt_prog_compiler_static_F77='-non_shared' + ;; + esac + ;; + + osf3* | osf4* | osf5*) + lt_prog_compiler_wl_F77='-Wl,' + # All OSF/1 code is PIC. + lt_prog_compiler_static_F77='-non_shared' + ;; + + sco3.2v5*) + lt_prog_compiler_pic_F77='-Kpic' + lt_prog_compiler_static_F77='-dn' + ;; + + solaris*) + lt_prog_compiler_pic_F77='-KPIC' + lt_prog_compiler_static_F77='-Bstatic' + case $cc_basename in + f77* | f90* | f95*) + lt_prog_compiler_wl_F77='-Qoption ld ';; + *) + lt_prog_compiler_wl_F77='-Wl,';; + esac + ;; + + sunos4*) + lt_prog_compiler_wl_F77='-Qoption ld ' + lt_prog_compiler_pic_F77='-PIC' + lt_prog_compiler_static_F77='-Bstatic' + ;; + + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) + lt_prog_compiler_wl_F77='-Wl,' + lt_prog_compiler_pic_F77='-KPIC' + lt_prog_compiler_static_F77='-Bstatic' + ;; + + sysv4*MP*) + if test -d /usr/nec ;then + lt_prog_compiler_pic_F77='-Kconform_pic' + lt_prog_compiler_static_F77='-Bstatic' + fi + ;; + + unicos*) + lt_prog_compiler_wl_F77='-Wl,' + lt_prog_compiler_can_build_shared_F77=no + ;; + + uts4*) + lt_prog_compiler_pic_F77='-pic' + lt_prog_compiler_static_F77='-Bstatic' + ;; + + *) + lt_prog_compiler_can_build_shared_F77=no + ;; + esac + fi + +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 +echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 + +# +# Check to make sure the PIC flag actually works. +# +if test -n "$lt_prog_compiler_pic_F77"; then + +echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 +echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 +if test "${lt_prog_compiler_pic_works_F77+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + lt_prog_compiler_pic_works_F77=no + ac_outfile=conftest.$ac_objext + printf "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="$lt_prog_compiler_pic_F77" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:13732: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "$as_me:13736: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp + $SED '/^$/d' conftest.err >conftest.er2 + if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then + lt_prog_compiler_pic_works_F77=yes + fi + fi + $rm conftest* + +fi +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 +echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 + +if test x"$lt_prog_compiler_pic_works_F77" = xyes; then + case $lt_prog_compiler_pic_F77 in + "" | " "*) ;; + *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; + esac +else + lt_prog_compiler_pic_F77= + lt_prog_compiler_can_build_shared_F77=no +fi + +fi +case "$host_os" in + # For platforms which do not support PIC, -DPIC is meaningless: + *djgpp*) + lt_prog_compiler_pic_F77= + ;; + *) + lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" + ;; +esac + +echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 +echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 +if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + lt_cv_prog_compiler_c_o_F77=no + $rm -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + printf "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:13794: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "$as_me:13798: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp + $SED '/^$/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o_F77=yes + fi + fi + chmod u+w . + $rm conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files + $rm out/* && rmdir out + cd .. + rmdir conftest + $rm conftest* + +fi +echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 +echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 + + +hard_links="nottested" +if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then + # do not overwrite the value of need_locks provided by the user + echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 +echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 + hard_links=yes + $rm conftest* + ln conftest.a conftest.b 2>/dev/null && hard_links=no + touch conftest.a + ln conftest.a conftest.b 2>&5 || hard_links=no + ln conftest.a conftest.b 2>/dev/null && hard_links=no + echo "$as_me:$LINENO: result: $hard_links" >&5 +echo "${ECHO_T}$hard_links" >&6 + if test "$hard_links" = no; then + { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 +echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} + need_locks=warn + fi +else + need_locks=no +fi + +echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 + + runpath_var= + allow_undefined_flag_F77= + enable_shared_with_static_runtimes_F77=no + archive_cmds_F77= + archive_expsym_cmds_F77= + old_archive_From_new_cmds_F77= + old_archive_from_expsyms_cmds_F77= + export_dynamic_flag_spec_F77= + whole_archive_flag_spec_F77= + thread_safe_flag_spec_F77= + hardcode_libdir_flag_spec_F77= + hardcode_libdir_flag_spec_ld_F77= + hardcode_libdir_separator_F77= + hardcode_direct_F77=no + hardcode_minus_L_F77=no + hardcode_shlibpath_var_F77=unsupported + link_all_deplibs_F77=unknown + hardcode_automatic_F77=no + module_cmds_F77= + module_expsym_cmds_F77= + always_export_symbols_F77=no + export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + # include_expsyms should be a list of space-separated symbols to be *always* + # included in the symbol list + include_expsyms_F77= + # exclude_expsyms can be an extended regexp of symbols to exclude + # it will be wrapped by ` (' and `)$', so one must not match beginning or + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', + # as well as any symbol that contains `d'. + exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out + # platforms (ab)use it in PIC code, but their linkers get confused if + # the symbol is explicitly referenced. Since portable code cannot + # rely on this symbol name, it's probably fine to never include it in + # preloaded symbol tables. + extract_expsyms_cmds= + # Just being paranoid about ensuring that cc_basename is set. + for cc_temp in $compiler""; do + case $cc_temp in + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` + + case $host_os in + cygwin* | mingw* | pw32*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + if test "$GCC" != yes; then + with_gnu_ld=no + fi + ;; + openbsd*) + with_gnu_ld=no + ;; + esac + + ld_shlibs_F77=yes + if test "$with_gnu_ld" = yes; then + # If archive_cmds runs LD, not CC, wlarc should be empty + wlarc='${wl}' + + # Set some defaults for GNU ld with shared library support. These + # are reset later if shared libraries are not supported. Putting them + # here allows them to be overridden if necessary. + runpath_var=LD_RUN_PATH + hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' + export_dynamic_flag_spec_F77='${wl}--export-dynamic' + # ancient GNU ld didn't support --whole-archive et. al. + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then + whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + whole_archive_flag_spec_F77= + fi + supports_anon_versioning=no + case `$LD -v 2>/dev/null` in + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... + *\ 2.11.*) ;; # other 2.11 versions + *) supports_anon_versioning=yes ;; + esac + + # See if GNU ld supports shared libraries. + case $host_os in + aix3* | aix4* | aix5*) + # On AIX/PPC, the GNU linker is very broken + if test "$host_cpu" != ia64; then + ld_shlibs_F77=no + cat <&2 + +*** Warning: the GNU linker, at least up to release 2.9.1, is reported +*** to be unable to reliably create shared libraries on AIX. +*** Therefore, libtool is disabling shared libraries support. If you +*** really care for shared libraries, you may want to modify your PATH +*** so that a non-GNU linker is found, and then restart. + +EOF + fi + ;; + + amigaos*) + archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + hardcode_libdir_flag_spec_F77='-L$libdir' + hardcode_minus_L_F77=yes + + # Samuel A. Falvo II reports + # that the semantics of dynamic libraries on AmigaOS, at least up + # to version 4, is to share data among multiple programs linked + # with the same dynamic library. Since this doesn't match the + # behavior of shared libraries on other platforms, we can't use + # them. + ld_shlibs_F77=no + ;; + + beos*) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + allow_undefined_flag_F77=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + else + ld_shlibs_F77=no + fi + ;; + + cygwin* | mingw* | pw32*) + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec_F77='-L$libdir' + allow_undefined_flag_F77=unsupported + always_export_symbols_F77=no + enable_shared_with_static_runtimes_F77=yes + export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' + + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is; otherwise, prepend... + archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' + else + ld_shlibs_F77=no + fi + ;; + + linux*) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + tmp_addflag= + case $cc_basename,$host_cpu in + pgcc*) # Portland Group C compiler + whole_archive_flag_spec_F77= + ;; + pgf77* | pgf90* ) # Portland Group f77 and f90 compilers + whole_archive_flag_spec_F77= + tmp_addflag=' -fpic -Mnomain' ;; + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 + tmp_addflag=' -i_dynamic' ;; + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 + tmp_addflag=' -i_dynamic -nofor_main' ;; + ifc* | ifort*) # Intel Fortran compiler + tmp_addflag=' -nofor_main' ;; + esac + archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + + if test $supports_anon_versioning = yes; then + archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + $echo "local: *; };" >> $output_objdir/$libname.ver~ + $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' + fi + else + ld_shlibs_F77=no + fi + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' + wlarc= + else + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + fi + ;; + + solaris* | sysv5*) + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then + ld_shlibs_F77=no + cat <&2 + +*** Warning: The releases 2.8.* of the GNU linker cannot reliably +*** create shared libraries on Solaris systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.9.1 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +EOF + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs_F77=no + fi + ;; + + sunos4*) + archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' + wlarc= + hardcode_direct_F77=yes + hardcode_shlibpath_var_F77=no + ;; + + *) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs_F77=no + fi + ;; + esac + + if test "$ld_shlibs_F77" = no; then + runpath_var= + hardcode_libdir_flag_spec_F77= + export_dynamic_flag_spec_F77= + whole_archive_flag_spec_F77= + fi + else + # PORTME fill in a description of your system's linker (not GNU ld) + case $host_os in + aix3*) + allow_undefined_flag_F77=unsupported + always_export_symbols_F77=yes + archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' + # Note: this linker hardcodes the directories in LIBPATH if there + # are no directories specified by -L. + hardcode_minus_L_F77=yes + if test "$GCC" = yes && test -z "$link_static_flag"; then + # Neither direct hardcoding nor static linking is supported with a + # broken collect2. + hardcode_direct_F77=unsupported + fi + ;; + + aix4* | aix5*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag="" + else + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to AIX nm, but means don't demangle with GNU nm + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then + export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' + else + export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' + fi + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[23]|aix4.[23].*|aix5*) + for ld_flag in $LDFLAGS; do + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then + aix_use_runtimelinking=yes + break + fi + done + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + archive_cmds_F77='' + hardcode_direct_F77=yes + hardcode_libdir_separator_F77=':' + link_all_deplibs_F77=yes + + if test "$GCC" = yes; then + case $host_os in aix4.[012]|aix4.[012].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && \ + strings "$collect2name" | grep resolve_lib_name >/dev/null + then + # We have reworked collect2 + hardcode_direct_F77=yes + else + # We have old collect2 + hardcode_direct_F77=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + hardcode_minus_L_F77=yes + hardcode_libdir_flag_spec_F77='-L$libdir' + hardcode_libdir_separator_F77= + fi + esac + shared_flag='-shared' + if test "$aix_use_runtimelinking" = yes; then + shared_flag="$shared_flag "'${wl}-G' + fi + else + # not using gcc + if test "$host_cpu" = ia64; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test "$aix_use_runtimelinking" = yes; then + shared_flag='${wl}-G' + else + shared_flag='${wl}-bM:SRE' + fi + fi + fi + + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to export. + always_export_symbols_F77=yes + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + allow_undefined_flag_F77='-berok' + # Determine the default libpath from the value encoded in an empty executable. + cat >conftest.$ac_ext <<_ACEOF + program main + + end +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_f77_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } +}'` +# Check for a 64-bit object if we didn't find anything. +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } +}'`; fi +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi + + hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" + archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else + if test "$host_cpu" = ia64; then + hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' + allow_undefined_flag_F77="-z nodefs" + archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an empty executable. + cat >conftest.$ac_ext <<_ACEOF + program main + + end +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_f77_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } +}'` +# Check for a 64-bit object if we didn't find anything. +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } +}'`; fi +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi + + hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + no_undefined_flag_F77=' ${wl}-bernotok' + allow_undefined_flag_F77=' ${wl}-berok' + # -bexpall does not export symbols beginning with underscore (_) + always_export_symbols_F77=yes + # Exported symbols can be pulled into shared objects from archives + whole_archive_flag_spec_F77=' ' + archive_cmds_need_lc_F77=yes + # This is similar to how AIX traditionally builds it's shared libraries. + archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' + fi + fi + ;; + + amigaos*) + archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + hardcode_libdir_flag_spec_F77='-L$libdir' + hardcode_minus_L_F77=yes + # see comment about different semantics on the GNU ld section + ld_shlibs_F77=no + ;; + + bsdi[45]*) + export_dynamic_flag_spec_F77=-rdynamic + ;; + + cygwin* | mingw* | pw32*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + hardcode_libdir_flag_spec_F77=' ' + allow_undefined_flag_F77=unsupported + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=".dll" + # FIXME: Setting linknames here is a bad hack. + archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' + # The linker will automatically build a .lib file if we build a DLL. + old_archive_From_new_cmds_F77='true' + # FIXME: Should let the user specify the lib program. + old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' + fix_srcfile_path_F77='`cygpath -w "$srcfile"`' + enable_shared_with_static_runtimes_F77=yes + ;; + + darwin* | rhapsody*) + case "$host_os" in + rhapsody* | darwin1.[012]) + allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' + ;; + *) # Darwin 1.3 on + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then + allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' + else + case ${MACOSX_DEPLOYMENT_TARGET} in + 10.[012]) + allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' + ;; + 10.*) + allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' + ;; + esac + fi + ;; + esac + archive_cmds_need_lc_F77=no + hardcode_direct_F77=no + hardcode_automatic_F77=yes + hardcode_shlibpath_var_F77=unsupported + whole_archive_flag_spec_F77='' + link_all_deplibs_F77=yes + if test "$GCC" = yes ; then + output_verbose_link_cmd='echo' + archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' + module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's + archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + else + case $cc_basename in + xlc*) + output_verbose_link_cmd='echo' + archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' + module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's + archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + ;; + *) + ld_shlibs_F77=no + ;; + esac + fi + ;; + + dgux*) + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec_F77='-L$libdir' + hardcode_shlibpath_var_F77=no + ;; + + freebsd1*) + ld_shlibs_F77=no + ;; + + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor + # support. Future versions do this automatically, but an explicit c++rt0.o + # does not break anything, and helps significantly (at the cost of a little + # extra space). + freebsd2.2*) + archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' + hardcode_libdir_flag_spec_F77='-R$libdir' + hardcode_direct_F77=yes + hardcode_shlibpath_var_F77=no + ;; + + # Unfortunately, older versions of FreeBSD 2 do not have this feature. + freebsd2*) + archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct_F77=yes + hardcode_minus_L_F77=yes + hardcode_shlibpath_var_F77=no + ;; + + # FreeBSD 3 and greater uses gcc -shared to do shared libraries. + freebsd* | kfreebsd*-gnu | dragonfly*) + archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' + hardcode_libdir_flag_spec_F77='-R$libdir' + hardcode_direct_F77=yes + hardcode_shlibpath_var_F77=no + ;; + + hpux9*) + if test "$GCC" = yes; then + archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + else + archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + fi + hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' + hardcode_libdir_separator_F77=: + hardcode_direct_F77=yes + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L_F77=yes + export_dynamic_flag_spec_F77='${wl}-E' + ;; + + hpux10* | hpux11*) + if test "$GCC" = yes -a "$with_gnu_ld" = no; then + case "$host_cpu" in + hppa*64*|ia64*) + archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + else + case "$host_cpu" in + hppa*64*|ia64*) + archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' + ;; + *) + archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' + ;; + esac + fi + if test "$with_gnu_ld" = no; then + case "$host_cpu" in + hppa*64*) + hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' + hardcode_libdir_flag_spec_ld_F77='+b $libdir' + hardcode_libdir_separator_F77=: + hardcode_direct_F77=no + hardcode_shlibpath_var_F77=no + ;; + ia64*) + hardcode_libdir_flag_spec_F77='-L$libdir' + hardcode_direct_F77=no + hardcode_shlibpath_var_F77=no + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L_F77=yes + ;; + *) + hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' + hardcode_libdir_separator_F77=: + hardcode_direct_F77=yes + export_dynamic_flag_spec_F77='${wl}-E' + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L_F77=yes + ;; + esac + fi + ;; + + irix5* | irix6* | nonstopux*) + if test "$GCC" = yes; then + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' + fi + hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator_F77=: + link_all_deplibs_F77=yes + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out + else + archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF + fi + hardcode_libdir_flag_spec_F77='-R$libdir' + hardcode_direct_F77=yes + hardcode_shlibpath_var_F77=no + ;; + + newsos6) + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct_F77=yes + hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator_F77=: + hardcode_shlibpath_var_F77=no + ;; + + openbsd*) + hardcode_direct_F77=yes + hardcode_shlibpath_var_F77=no + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' + hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' + export_dynamic_flag_spec_F77='${wl}-E' + else + case $host_os in + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) + archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec_F77='-R$libdir' + ;; + *) + archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' + ;; + esac + fi + ;; + + os2*) + hardcode_libdir_flag_spec_F77='-L$libdir' + hardcode_minus_L_F77=yes + allow_undefined_flag_F77=unsupported + archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' + old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' + ;; + + osf3*) + if test "$GCC" = yes; then + allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + allow_undefined_flag_F77=' -expect_unresolved \*' + archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + fi + hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator_F77=: + ;; + + osf4* | osf5*) # as osf3* with the addition of -msym flag + if test "$GCC" = yes; then + allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' + else + allow_undefined_flag_F77=' -expect_unresolved \*' + archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ + $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' + + # Both c and cxx compiler support -rpath directly + hardcode_libdir_flag_spec_F77='-rpath $libdir' + fi + hardcode_libdir_separator_F77=: + ;; + + sco3.2v5*) + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var_F77=no + export_dynamic_flag_spec_F77='${wl}-Bexport' + runpath_var=LD_RUN_PATH + hardcode_runpath_var=yes + ;; + + solaris*) + no_undefined_flag_F77=' -z text' + if test "$GCC" = yes; then + wlarc='${wl}' + archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' + else + wlarc='' + archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' + archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' + fi + hardcode_libdir_flag_spec_F77='-R$libdir' + hardcode_shlibpath_var_F77=no + case $host_os in + solaris2.[0-5] | solaris2.[0-5].*) ;; + *) + # The compiler driver will combine linker options so we + # cannot just pass the convience library names through + # without $wl, iff we do not link with $LD. + # Luckily, gcc supports the same syntax we need for Sun Studio. + # Supported since Solaris 2.6 (maybe 2.5.1?) + case $wlarc in + '') + whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; + *) + whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; + esac ;; + esac + link_all_deplibs_F77=yes + ;; + + sunos4*) + if test "x$host_vendor" = xsequent; then + # Use $CC to link under sequent, because it throws in some extra .o + # files that make .init and .fini sections work. + archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' + fi + hardcode_libdir_flag_spec_F77='-L$libdir' + hardcode_direct_F77=yes + hardcode_minus_L_F77=yes + hardcode_shlibpath_var_F77=no + ;; + + sysv4) + case $host_vendor in + sni) + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct_F77=yes # is this really true??? + ;; + siemens) + ## LD is ld it makes a PLAMLIB + ## CC just makes a GrossModule. + archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' + reload_cmds_F77='$CC -r -o $output$reload_objs' + hardcode_direct_F77=no + ;; + motorola) + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie + ;; + esac + runpath_var='LD_RUN_PATH' + hardcode_shlibpath_var_F77=no + ;; + + sysv4.3*) + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var_F77=no + export_dynamic_flag_spec_F77='-Bexport' + ;; + + sysv4*MP*) + if test -d /usr/nec; then + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var_F77=no + runpath_var=LD_RUN_PATH + hardcode_runpath_var=yes + ld_shlibs_F77=yes + fi + ;; + + sysv4.2uw2*) + archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct_F77=yes + hardcode_minus_L_F77=no + hardcode_shlibpath_var_F77=no + hardcode_runpath_var=yes + runpath_var=LD_RUN_PATH + ;; + + sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) + no_undefined_flag_F77='${wl}-z ${wl}text' + if test "$GCC" = yes; then + archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + runpath_var='LD_RUN_PATH' + hardcode_shlibpath_var_F77=no + ;; + + sysv5*) + no_undefined_flag_F77=' -z text' + # $CC -shared without GNU ld will not create a library from C++ + # object files and a static libstdc++, better avoid it by now + archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' + archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' + hardcode_libdir_flag_spec_F77= + hardcode_shlibpath_var_F77=no + runpath_var='LD_RUN_PATH' + ;; + + uts4*) + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec_F77='-L$libdir' + hardcode_shlibpath_var_F77=no + ;; + + *) + ld_shlibs_F77=no + ;; + esac + fi + +echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 +echo "${ECHO_T}$ld_shlibs_F77" >&6 +test "$ld_shlibs_F77" = no && can_build_shared=no + +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" +if test "$GCC" = yes; then + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" +fi + +# +# Do we need to explicitly link libc? +# +case "x$archive_cmds_need_lc_F77" in +x|xyes) + # Assume -lc should be added + archive_cmds_need_lc_F77=yes + + if test "$enable_shared" = yes && test "$GCC" = yes; then + case $archive_cmds_F77 in + *'~'*) + # FIXME: we may have to deal with multi-command sequences. + ;; + '$CC '*) + # Test whether the compiler implicitly links with -lc since on some + # systems, -lgcc has to come before -lc. If gcc already passes -lc + # to ld, don't add -lc before -lgcc. + echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 +echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 + $rm conftest* + printf "$lt_simple_compile_test_code" > conftest.$ac_ext + + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } 2>conftest.err; then + soname=conftest + lib=conftest + libobjs=conftest.$ac_objext + deplibs= + wl=$lt_prog_compiler_wl_F77 + compiler_flags=-v + linker_flags=-v + verstring= + output_objdir=. + libname=conftest + lt_save_allow_undefined_flag=$allow_undefined_flag_F77 + allow_undefined_flag_F77= + if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 + (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } + then + archive_cmds_need_lc_F77=no + else + archive_cmds_need_lc_F77=yes + fi + allow_undefined_flag_F77=$lt_save_allow_undefined_flag + else + cat conftest.err 1>&5 + fi + $rm conftest* + echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 +echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 + ;; + esac + fi + ;; +esac + +echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 +echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 +library_names_spec= +libname_spec='lib$name' +soname_spec= +shrext_cmds=".so" +postinstall_cmds= +postuninstall_cmds= +finish_cmds= +finish_eval= +shlibpath_var= +shlibpath_overrides_runpath=unknown +version_type=none +dynamic_linker="$host_os ld.so" +sys_lib_dlsearch_path_spec="/lib /usr/lib" +if test "$GCC" = yes; then + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then + # if the path contains ";" then we assume it to be the separator + # otherwise default to the standard path separator (i.e. ":") - it is + # assumed that no part of a normal pathname contains ";" but that should + # okay in the real world where ";" in dirpaths is itself problematic. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + else + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi +else + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" +fi +need_lib_prefix=unknown +hardcode_into_libs=no + +# when you set need_version to no, make sure it does not cause -set_version +# flags to be left without arguments +need_version=unknown + +case $host_os in +aix3*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' + shlibpath_var=LIBPATH + + # AIX 3 has no versioning support, so we append a major version to the name. + soname_spec='${libname}${release}${shared_ext}$major' + ;; + +aix4* | aix5*) + version_type=linux + need_lib_prefix=no + need_version=no + hardcode_into_libs=yes + if test "$host_cpu" = ia64; then + # AIX 5 supports IA64 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + else + # With GCC up to 2.95.x, collect2 would create an import file + # for dependence libraries. The import file would start with + # the line `#! .'. This would cause the generated library to + # depend on `.', always an invalid library. This was fixed in + # development snapshots of GCC prior to 3.0. + case $host_os in + aix4 | aix4.[01] | aix4.[01].*) + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' + echo ' yes ' + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then + : + else + can_build_shared=no + fi + ;; + esac + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct + # soname into executable. Probably we can add versioning support to + # collect2, so additional links can be useful in future. + if test "$aix_use_runtimelinking" = yes; then + # If using run time linking (on AIX 4.2 or later) use lib.so + # instead of lib.a to let people know that these are not + # typical AIX shared libraries. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + else + # We preserve .a as extension for shared libraries through AIX4.2 + # and later when we are not doing run time linking. + library_names_spec='${libname}${release}.a $libname.a' + soname_spec='${libname}${release}${shared_ext}$major' + fi + shlibpath_var=LIBPATH + fi + ;; + +amigaos*) + library_names_spec='$libname.ixlibrary $libname.a' + # Create ${libname}_ixlibrary.a entries in /sys/libs. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' + ;; + +beos*) + library_names_spec='${libname}${shared_ext}' + dynamic_linker="$host_os ld.so" + shlibpath_var=LIBRARY_PATH + ;; + +bsdi[45]*) + version_type=linux + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" + # the default ld.so.conf also contains /usr/contrib/lib and + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow + # libtool to hard-code these into programs + ;; + +cygwin* | mingw* | pw32*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$host_os in + yes,cygwin* | yes,mingw* | yes,pw32*) + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $rm \$dlpath' + shlibpath_overrides_runpath=yes + + case $host_os in + cygwin*) + # Cygwin DLLs use 'cyg' prefix rather than 'lib' + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" + ;; + mingw*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` + if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then + # It is most probably a Windows format PATH printed by + # mingw gcc, but we are running on Cygwin. Gcc prints its search + # path with ; separators, and with drive letters. We can handle the + # drive letters (cygwin fileutils understands them), so leave them, + # especially as we might pass files found there to a mingw objdump, + # which wouldn't understand a cygwinified path. Ahh. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + else + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + ;; + pw32*) + # pw32 DLLs use 'pw' prefix rather than 'lib' + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + ;; + esac + ;; + + *) + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' + ;; + esac + dynamic_linker='Win32 ld.exe' + # FIXME: first we should search . and the directory the executable is in + shlibpath_var=PATH + ;; + +darwin* | rhapsody*) + dynamic_linker="$host_os dyld" + version_type=darwin + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' + soname_spec='${libname}${release}${major}$shared_ext' + shlibpath_overrides_runpath=yes + shlibpath_var=DYLD_LIBRARY_PATH + shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. + if test "$GCC" = yes; then + sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` + else + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' + fi + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' + ;; + +dgux*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +freebsd1*) + dynamic_linker=no + ;; + +kfreebsd*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='GNU ld.so' + ;; + +freebsd* | dragonfly*) + # DragonFly does not have aout. When/if they implement a new + # versioning mechanism, adjust this. + objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` + version_type=freebsd-$objformat + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + need_version=no + need_lib_prefix=no + ;; + freebsd-*) + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' + need_version=yes + ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in + freebsd2*) + shlibpath_overrides_runpath=yes + ;; + freebsd3.[01]* | freebsdelf3.[01]*) + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + *) # from 3.2 on + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + esac + ;; + +gnu*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + hardcode_into_libs=yes + ;; + +hpux9* | hpux10* | hpux11*) + # Give a soname corresponding to the major version so that dld.sl refuses to + # link against other versions. + version_type=sunos + need_lib_prefix=no + need_version=no + case "$host_cpu" in + ia64*) + shrext_cmds='.so' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.so" + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + if test "X$HPUX_IA64_MODE" = X32; then + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" + else + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" + fi + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + hppa*64*) + shrext_cmds='.sl' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.sl" + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + *) + shrext_cmds='.sl' + dynamic_linker="$host_os dld.sl" + shlibpath_var=SHLIB_PATH + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + ;; + esac + # HP-UX runs *really* slowly unless shared libraries are mode 555. + postinstall_cmds='chmod 555 $lib' + ;; + +irix5* | irix6* | nonstopux*) + case $host_os in + nonstopux*) version_type=nonstopux ;; + *) + if test "$lt_cv_prog_gnu_ld" = yes; then + version_type=linux + else + version_type=irix + fi ;; + esac + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' + case $host_os in + irix5* | nonstopux*) + libsuff= shlibsuff= + ;; + *) + case $LD in # libtool.m4 will add one of these switches to LD + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") + libsuff= shlibsuff= libmagic=32-bit;; + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") + libsuff=32 shlibsuff=N32 libmagic=N32;; + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") + libsuff=64 shlibsuff=64 libmagic=64-bit;; + *) libsuff= shlibsuff= libmagic=never-match;; + esac + ;; + esac + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH + shlibpath_overrides_runpath=no + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" + hardcode_into_libs=yes + ;; + +# No shared lib support for Linux oldld, aout, or coff. +linux*oldld* | linux*aout* | linux*coff*) + dynamic_linker=no + ;; + +# This must be Linux ELF. +linux*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + # This implies no fast_install, which is unacceptable. + # Some rework will be needed to allow for fast_install + # before this can be enabled. + hardcode_into_libs=yes + + # find out which ABI we are using + libsuff= + case "$host_cpu" in + x86_64*|s390x*|powerpc64*) + echo '#line 15159 "configure"' > conftest.$ac_ext + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; then + case `/usr/bin/file conftest.$ac_objext` in + *64-bit*) + libsuff=64 + sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" + ;; + esac + fi + rm -rf conftest* + ;; + esac + + # Append ld.so.conf contents to the search path + if test -f /etc/ld.so.conf; then + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` + sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" + fi + + # We used to test for /lib/ld.so.1 and disable shared libraries on + # powerpc, because MkLinux only supported shared libraries with the + # GNU dynamic linker. Since this was broken with cross compilers, + # most powerpc-linux boxes support dynamic linking these days and + # people can always --disable-shared, the test was removed, and we + # assume the GNU/Linux dynamic linker is in use. + dynamic_linker='GNU/Linux ld.so' + ;; + +knetbsd*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='GNU ld.so' + ;; + +netbsd*) + version_type=sunos + need_lib_prefix=no + need_version=no + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + dynamic_linker='NetBSD (a.out) ld.so' + else + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='NetBSD ld.elf_so' + fi + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + +newsos6) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +nto-qnx*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +openbsd*) + version_type=sunos + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + shlibpath_var=LD_LIBRARY_PATH + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + case $host_os in + openbsd2.[89] | openbsd2.[89].*) + shlibpath_overrides_runpath=no + ;; + *) + shlibpath_overrides_runpath=yes + ;; + esac + else + shlibpath_overrides_runpath=yes + fi + ;; + +os2*) + libname_spec='$name' + shrext_cmds=".dll" + need_lib_prefix=no + library_names_spec='$libname${shared_ext} $libname.a' + dynamic_linker='OS/2 ld.exe' + shlibpath_var=LIBPATH + ;; + +osf3* | osf4* | osf5*) + version_type=osf + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" + ;; + +sco3.2v5*) + version_type=osf + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + ;; + +solaris*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + # ldd complains unless libraries are executable + postinstall_cmds='chmod +x $lib' + ;; + +sunos4*) + version_type=sunos + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + if test "$with_gnu_ld" = yes; then + need_lib_prefix=no + fi + need_version=yes + ;; + +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + case $host_vendor in + sni) + shlibpath_overrides_runpath=no + need_lib_prefix=no + export_dynamic_flag_spec='${wl}-Blargedynsym' + runpath_var=LD_RUN_PATH + ;; + siemens) + need_lib_prefix=no + ;; + motorola) + need_lib_prefix=no + need_version=no + shlibpath_overrides_runpath=no + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' + ;; + esac + ;; + +sysv4*MP*) + if test -d /usr/nec ;then + version_type=linux + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' + soname_spec='$libname${shared_ext}.$major' + shlibpath_var=LD_LIBRARY_PATH + fi + ;; + +uts4*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +*) + dynamic_linker=no + ;; +esac +echo "$as_me:$LINENO: result: $dynamic_linker" >&5 +echo "${ECHO_T}$dynamic_linker" >&6 +test "$dynamic_linker" = no && can_build_shared=no + +echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 +echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 +hardcode_action_F77= +if test -n "$hardcode_libdir_flag_spec_F77" || \ + test -n "$runpath_var_F77" || \ + test "X$hardcode_automatic_F77" = "Xyes" ; then + + # We can hardcode non-existant directories. + if test "$hardcode_direct_F77" != no && + # If the only mechanism to avoid hardcoding is shlibpath_var, we + # have to relink, otherwise we might link with an installed library + # when we should be linking with a yet-to-be-installed one + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && + test "$hardcode_minus_L_F77" != no; then + # Linking always hardcodes the temporary library directory. + hardcode_action_F77=relink + else + # We can link without hardcoding, and we can hardcode nonexisting dirs. + hardcode_action_F77=immediate + fi +else + # We cannot hardcode anything, or else we can only hardcode existing + # directories. + hardcode_action_F77=unsupported +fi +echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 +echo "${ECHO_T}$hardcode_action_F77" >&6 + +if test "$hardcode_action_F77" = relink; then + # Fast installation is not supported + enable_fast_install=no +elif test "$shlibpath_overrides_runpath" = yes || + test "$enable_shared" = no; then + # Fast installation is not necessary + enable_fast_install=needless +fi + +striplib= +old_striplib= +echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 +echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" + test -z "$striplib" && striplib="$STRIP --strip-unneeded" + echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6 +else +# FIXME - insert some real tests, host_os isn't really good enough + case $host_os in + darwin*) + if test -n "$STRIP" ; then + striplib="$STRIP -x" + echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6 + else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + ;; + *) + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 + ;; + esac +fi + + + +# The else clause should only fire when bootstrapping the +# libtool distribution, otherwise you forgot to ship ltmain.sh +# with your package, and you will get complaints that there are +# no rules to generate ltmain.sh. +if test -f "$ltmain"; then + # See if we are running on zsh, and set the options which allow our commands through + # without removal of \ escapes. + if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST + fi + # Now quote all the things that may contain metacharacters while being + # careful not to overquote the AC_SUBSTed values. We take copies of the + # variables and quote the copies for generation of the libtool script. + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ + SED SHELL STRIP \ + libname_spec library_names_spec soname_spec extract_expsyms_cmds \ + old_striplib striplib file_magic_cmd finish_cmds finish_eval \ + deplibs_check_method reload_flag reload_cmds need_locks \ + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ + lt_cv_sys_global_symbol_to_c_name_address \ + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ + old_postinstall_cmds old_postuninstall_cmds \ + compiler_F77 \ + CC_F77 \ + LD_F77 \ + lt_prog_compiler_wl_F77 \ + lt_prog_compiler_pic_F77 \ + lt_prog_compiler_static_F77 \ + lt_prog_compiler_no_builtin_flag_F77 \ + export_dynamic_flag_spec_F77 \ + thread_safe_flag_spec_F77 \ + whole_archive_flag_spec_F77 \ + enable_shared_with_static_runtimes_F77 \ + old_archive_cmds_F77 \ + old_archive_from_new_cmds_F77 \ + predep_objects_F77 \ + postdep_objects_F77 \ + predeps_F77 \ + postdeps_F77 \ + compiler_lib_search_path_F77 \ + archive_cmds_F77 \ + archive_expsym_cmds_F77 \ + postinstall_cmds_F77 \ + postuninstall_cmds_F77 \ + old_archive_from_expsyms_cmds_F77 \ + allow_undefined_flag_F77 \ + no_undefined_flag_F77 \ + export_symbols_cmds_F77 \ + hardcode_libdir_flag_spec_F77 \ + hardcode_libdir_flag_spec_ld_F77 \ + hardcode_libdir_separator_F77 \ + hardcode_automatic_F77 \ + module_cmds_F77 \ + module_expsym_cmds_F77 \ + lt_cv_prog_compiler_c_o_F77 \ + exclude_expsyms_F77 \ + include_expsyms_F77; do + + case $var in + old_archive_cmds_F77 | \ + old_archive_from_new_cmds_F77 | \ + archive_cmds_F77 | \ + archive_expsym_cmds_F77 | \ + module_cmds_F77 | \ + module_expsym_cmds_F77 | \ + old_archive_from_expsyms_cmds_F77 | \ + export_symbols_cmds_F77 | \ + extract_expsyms_cmds | reload_cmds | finish_cmds | \ + postinstall_cmds | postuninstall_cmds | \ + old_postinstall_cmds | old_postuninstall_cmds | \ + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) + # Double-quote double-evaled strings. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" + ;; + *) + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" + ;; + esac + done + + case $lt_echo in + *'\$0 --fallback-echo"') + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` + ;; + esac + +cfgfile="$ofile" + + cat <<__EOF__ >> "$cfgfile" +# ### BEGIN LIBTOOL TAG CONFIG: $tagname + +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: + +# Shell to use when invoking shell scripts. +SHELL=$lt_SHELL + +# Whether or not to build shared libraries. +build_libtool_libs=$enable_shared + +# Whether or not to build static libraries. +build_old_libs=$enable_static + +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=$archive_cmds_need_lc_F77 + +# Whether or not to disallow shared libs when runtime libs are static +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 + +# Whether or not to optimize for fast installation. +fast_install=$enable_fast_install + +# The host system. +host_alias=$host_alias +host=$host +host_os=$host_os + +# The build system. +build_alias=$build_alias +build=$build +build_os=$build_os + +# An echo program that does not interpret backslashes. +echo=$lt_echo + +# The archiver. +AR=$lt_AR +AR_FLAGS=$lt_AR_FLAGS + +# A C compiler. +LTCC=$lt_LTCC + +# A language-specific compiler. +CC=$lt_compiler_F77 + +# Is the compiler the GNU C compiler? +with_gcc=$GCC_F77 + +# An ERE matcher. +EGREP=$lt_EGREP + +# The linker used to build libraries. +LD=$lt_LD_F77 + +# Whether we need hard or soft links. +LN_S=$lt_LN_S + +# A BSD-compatible nm program. +NM=$lt_NM + +# A symbol stripping program +STRIP=$lt_STRIP + +# Used to examine libraries when file_magic_cmd begins "file" +MAGIC_CMD=$MAGIC_CMD + +# Used on cygwin: DLL creation program. +DLLTOOL="$DLLTOOL" + +# Used on cygwin: object dumper. +OBJDUMP="$OBJDUMP" + +# Used on cygwin: assembler. +AS="$AS" + +# The name of the directory that contains temporary libtool files. +objdir=$objdir + +# How to create reloadable object files. +reload_flag=$lt_reload_flag +reload_cmds=$lt_reload_cmds + +# How to pass a linker flag through the compiler. +wl=$lt_lt_prog_compiler_wl_F77 + +# Object file suffix (normally "o"). +objext="$ac_objext" + +# Old archive suffix (normally "a"). +libext="$libext" + +# Shared library suffix (normally ".so"). +shrext_cmds='$shrext_cmds' + +# Executable file suffix (normally ""). +exeext="$exeext" + +# Additional compiler flags for building library objects. +pic_flag=$lt_lt_prog_compiler_pic_F77 +pic_mode=$pic_mode + +# What is the maximum length of a command? +max_cmd_len=$lt_cv_sys_max_cmd_len + +# Does compiler simultaneously support -c and -o options? +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 + +# Must we lock files when doing compilation? +need_locks=$lt_need_locks + +# Do we need the lib prefix for modules? +need_lib_prefix=$need_lib_prefix + +# Do we need a version for libraries? +need_version=$need_version + +# Whether dlopen is supported. +dlopen_support=$enable_dlopen + +# Whether dlopen of programs is supported. +dlopen_self=$enable_dlopen_self + +# Whether dlopen of statically linked programs is supported. +dlopen_self_static=$enable_dlopen_self_static + +# Compiler flag to prevent dynamic linking. +link_static_flag=$lt_lt_prog_compiler_static_F77 + +# Compiler flag to turn off builtin functions. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 + +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 + +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 + +# Compiler flag to generate thread-safe objects. +thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 + +# Library versioning type. +version_type=$version_type + +# Format of library name prefix. +libname_spec=$lt_libname_spec + +# List of archive names. First name is the real one, the rest are links. +# The last name is the one that the linker finds with -lNAME. +library_names_spec=$lt_library_names_spec + +# The coded name of the library, if different from the real name. +soname_spec=$lt_soname_spec + +# Commands used to build and install an old-style archive. +RANLIB=$lt_RANLIB +old_archive_cmds=$lt_old_archive_cmds_F77 +old_postinstall_cmds=$lt_old_postinstall_cmds +old_postuninstall_cmds=$lt_old_postuninstall_cmds + +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 + +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 + +# Commands used to build and install a shared archive. +archive_cmds=$lt_archive_cmds_F77 +archive_expsym_cmds=$lt_archive_expsym_cmds_F77 +postinstall_cmds=$lt_postinstall_cmds +postuninstall_cmds=$lt_postuninstall_cmds + +# Commands used to build a loadable module (assumed same as above if empty) +module_cmds=$lt_module_cmds_F77 +module_expsym_cmds=$lt_module_expsym_cmds_F77 + +# Commands to strip libraries. +old_striplib=$lt_old_striplib +striplib=$lt_striplib + +# Dependencies to place before the objects being linked to create a +# shared library. +predep_objects=$lt_predep_objects_F77 + +# Dependencies to place after the objects being linked to create a +# shared library. +postdep_objects=$lt_postdep_objects_F77 + +# Dependencies to place before the objects being linked to create a +# shared library. +predeps=$lt_predeps_F77 + +# Dependencies to place after the objects being linked to create a +# shared library. +postdeps=$lt_postdeps_F77 + +# The library search path used internally by the compiler when linking +# a shared library. +compiler_lib_search_path=$lt_compiler_lib_search_path_F77 + +# Method to check whether dependent libraries are shared objects. +deplibs_check_method=$lt_deplibs_check_method + +# Command to use when deplibs_check_method == file_magic. +file_magic_cmd=$lt_file_magic_cmd + +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag=$lt_allow_undefined_flag_F77 + +# Flag that forces no undefined symbols. +no_undefined_flag=$lt_no_undefined_flag_F77 + +# Commands used to finish a libtool library installation in a directory. +finish_cmds=$lt_finish_cmds + +# Same as above, but a single script fragment to be evaled but not shown. +finish_eval=$lt_finish_eval + +# Take the output of nm and produce a listing of raw symbols and C names. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe + +# Transform the output of nm in a proper C declaration +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl + +# Transform the output of nm in a C name address pair +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address + +# This is the shared library runtime path variable. +runpath_var=$runpath_var + +# This is the shared library path variable. +shlibpath_var=$shlibpath_var + +# Is shlibpath searched before the hard-coded library search path? +shlibpath_overrides_runpath=$shlibpath_overrides_runpath + +# How to hardcode a shared library path into an executable. +hardcode_action=$hardcode_action_F77 + +# Whether we should hardcode library paths into libraries. +hardcode_into_libs=$hardcode_into_libs + +# Flag to hardcode \$libdir into a binary during linking. +# This must work even if \$libdir does not exist. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 + +# If ld is used when linking, flag to hardcode \$libdir into +# a binary during linking. This must work even if \$libdir does +# not exist. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 + +# Whether we need a single -rpath flag with a separated argument. +hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 + +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the +# resulting binary. +hardcode_direct=$hardcode_direct_F77 + +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the +# resulting binary. +hardcode_minus_L=$hardcode_minus_L_F77 + +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into +# the resulting binary. +hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 + +# Set to yes if building a shared library automatically hardcodes DIR into the library +# and all subsequent libraries and executables linked against it. +hardcode_automatic=$hardcode_automatic_F77 + +# Variables whose values should be saved in libtool wrapper scripts and +# restored at relink time. +variables_saved_for_relink="$variables_saved_for_relink" + +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=$link_all_deplibs_F77 + +# Compile-time system search path for libraries +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec + +# Run-time system search path for libraries +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec + +# Fix the shell variable \$srcfile for the compiler. +fix_srcfile_path="$fix_srcfile_path_F77" + +# Set to yes if exported symbols are required. +always_export_symbols=$always_export_symbols_F77 + +# The commands to list exported symbols. +export_symbols_cmds=$lt_export_symbols_cmds_F77 + +# The commands to extract the exported symbol list from a shared archive. +extract_expsyms_cmds=$lt_extract_expsyms_cmds + +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms=$lt_exclude_expsyms_F77 + +# Symbols that must always be exported. +include_expsyms=$lt_include_expsyms_F77 + +# ### END LIBTOOL TAG CONFIG: $tagname + +__EOF__ + + +else + # If there is no Makefile yet, we rely on a make rule to execute + # `config.status --recheck' to rerun these tests and create the + # libtool script then. + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` + if test -f "$ltmain_in"; then + test -f Makefile && make "$ltmain" + fi +fi + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +CC="$lt_save_CC" + + else + tagname="" + fi + ;; + + GCJ) + if test -n "$GCJ" && test "X$GCJ" != "Xno"; then + + + +# Source file extension for Java test sources. +ac_ext=java + +# Object file extension for compiled Java test sources. +objext=o +objext_GCJ=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code="class foo {}\n" + +# Code to be used in simple link tests +lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' + +# ltmain only uses $CC for tagged configurations so make sure $CC is set. + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# Allow CC to be a program name with arguments. +compiler=$CC + + +# save warnings/boilerplate of simple test code +ac_outfile=conftest.$ac_objext +printf "$lt_simple_compile_test_code" >conftest.$ac_ext +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err +_lt_compiler_boilerplate=`cat conftest.err` +$rm conftest* + +ac_outfile=conftest.$ac_objext +printf "$lt_simple_link_test_code" >conftest.$ac_ext +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err +_lt_linker_boilerplate=`cat conftest.err` +$rm conftest* + + +# Allow CC to be a program name with arguments. +lt_save_CC="$CC" +CC=${GCJ-"gcj"} +compiler=$CC +compiler_GCJ=$CC +for cc_temp in $compiler""; do + case $cc_temp in + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` + + +# GCJ did not exist at the time GCC didn't implicitly link libc in. +archive_cmds_need_lc_GCJ=no + +old_archive_cmds_GCJ=$old_archive_cmds + + +lt_prog_compiler_no_builtin_flag_GCJ= + +if test "$GCC" = yes; then + lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' + + +echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 +echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 +if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + lt_cv_prog_compiler_rtti_exceptions=no + ac_outfile=conftest.$ac_objext + printf "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="-fno-rtti -fno-exceptions" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:15932: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "$as_me:15936: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp + $SED '/^$/d' conftest.err >conftest.er2 + if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then + lt_cv_prog_compiler_rtti_exceptions=yes + fi + fi + $rm conftest* + +fi +echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 +echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 + +if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then + lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" +else + : +fi + +fi + +lt_prog_compiler_wl_GCJ= +lt_prog_compiler_pic_GCJ= +lt_prog_compiler_static_GCJ= + +echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 +echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 + + if test "$GCC" = yes; then + lt_prog_compiler_wl_GCJ='-Wl,' + lt_prog_compiler_static_GCJ='-static' + + case $host_os in + aix*) + # All AIX code is PIC. + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static_GCJ='-Bstatic' + fi + ;; + + amigaos*) + # FIXME: we need at least 68020 code to build shared libraries, but + # adding the `-m68020' flag to GCC prevents building anything better, + # like `-m68040'. + lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' + ;; + + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) + # PIC is the default for these OSes. + ;; + + mingw* | pw32* | os2*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' + ;; + + darwin* | rhapsody*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + lt_prog_compiler_pic_GCJ='-fno-common' + ;; + + msdosdjgpp*) + # Just because we use GCC doesn't mean we suddenly get shared libraries + # on systems that don't support them. + lt_prog_compiler_can_build_shared_GCJ=no + enable_shared=no + ;; + + sysv4*MP*) + if test -d /usr/nec; then + lt_prog_compiler_pic_GCJ=-Kconform_pic + fi + ;; + + hpux*) + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but + # not for PA HP-UX. + case "$host_cpu" in + hppa*64*|ia64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic_GCJ='-fPIC' + ;; + esac + ;; + + *) + lt_prog_compiler_pic_GCJ='-fPIC' + ;; + esac + else + # PORTME Check for flag to pass linker flags through the system compiler. + case $host_os in + aix*) + lt_prog_compiler_wl_GCJ='-Wl,' + if test "$host_cpu" = ia64; then + # AIX 5 now supports IA64 processor + lt_prog_compiler_static_GCJ='-Bstatic' + else + lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' + fi + ;; + darwin*) + # PIC is the default on this platform + # Common symbols not allowed in MH_DYLIB files + case $cc_basename in + xlc*) + lt_prog_compiler_pic_GCJ='-qnocommon' + lt_prog_compiler_wl_GCJ='-Wl,' + ;; + esac + ;; + + mingw* | pw32* | os2*) + # This hack is so that the source file can tell whether it is being + # built for inclusion in a dll (and should export symbols for example). + lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' + ;; + + hpux9* | hpux10* | hpux11*) + lt_prog_compiler_wl_GCJ='-Wl,' + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but + # not for PA HP-UX. + case "$host_cpu" in + hppa*64*|ia64*) + # +Z the default + ;; + *) + lt_prog_compiler_pic_GCJ='+Z' + ;; + esac + # Is there a better lt_prog_compiler_static that works with the bundled CC? + lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' + ;; + + irix5* | irix6* | nonstopux*) + lt_prog_compiler_wl_GCJ='-Wl,' + # PIC (with -KPIC) is the default. + lt_prog_compiler_static_GCJ='-non_shared' + ;; + + newsos6) + lt_prog_compiler_pic_GCJ='-KPIC' + lt_prog_compiler_static_GCJ='-Bstatic' + ;; + + linux*) + case $cc_basename in + icc* | ecc*) + lt_prog_compiler_wl_GCJ='-Wl,' + lt_prog_compiler_pic_GCJ='-KPIC' + lt_prog_compiler_static_GCJ='-static' + ;; + pgcc* | pgf77* | pgf90*) + # Portland Group compilers (*not* the Pentium gcc compiler, + # which looks to be a dead project) + lt_prog_compiler_wl_GCJ='-Wl,' + lt_prog_compiler_pic_GCJ='-fpic' + lt_prog_compiler_static_GCJ='-static' + ;; + ccc*) + lt_prog_compiler_wl_GCJ='-Wl,' + # All Alpha code is PIC. + lt_prog_compiler_static_GCJ='-non_shared' + ;; + esac + ;; + + osf3* | osf4* | osf5*) + lt_prog_compiler_wl_GCJ='-Wl,' + # All OSF/1 code is PIC. + lt_prog_compiler_static_GCJ='-non_shared' + ;; + + sco3.2v5*) + lt_prog_compiler_pic_GCJ='-Kpic' + lt_prog_compiler_static_GCJ='-dn' + ;; + + solaris*) + lt_prog_compiler_pic_GCJ='-KPIC' + lt_prog_compiler_static_GCJ='-Bstatic' + case $cc_basename in + f77* | f90* | f95*) + lt_prog_compiler_wl_GCJ='-Qoption ld ';; + *) + lt_prog_compiler_wl_GCJ='-Wl,';; + esac + ;; + + sunos4*) + lt_prog_compiler_wl_GCJ='-Qoption ld ' + lt_prog_compiler_pic_GCJ='-PIC' + lt_prog_compiler_static_GCJ='-Bstatic' + ;; + + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) + lt_prog_compiler_wl_GCJ='-Wl,' + lt_prog_compiler_pic_GCJ='-KPIC' + lt_prog_compiler_static_GCJ='-Bstatic' + ;; + + sysv4*MP*) + if test -d /usr/nec ;then + lt_prog_compiler_pic_GCJ='-Kconform_pic' + lt_prog_compiler_static_GCJ='-Bstatic' + fi + ;; + + unicos*) + lt_prog_compiler_wl_GCJ='-Wl,' + lt_prog_compiler_can_build_shared_GCJ=no + ;; + + uts4*) + lt_prog_compiler_pic_GCJ='-pic' + lt_prog_compiler_static_GCJ='-Bstatic' + ;; + + *) + lt_prog_compiler_can_build_shared_GCJ=no + ;; + esac + fi + +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 +echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 + +# +# Check to make sure the PIC flag actually works. +# +if test -n "$lt_prog_compiler_pic_GCJ"; then + +echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 +echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 +if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + lt_prog_compiler_pic_works_GCJ=no + ac_outfile=conftest.$ac_objext + printf "$lt_simple_compile_test_code" > conftest.$ac_ext + lt_compiler_flag="$lt_prog_compiler_pic_GCJ" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + # The option is referenced via a variable to avoid confusing sed. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:16194: $lt_compile\"" >&5) + (eval "$lt_compile" 2>conftest.err) + ac_status=$? + cat conftest.err >&5 + echo "$as_me:16198: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s "$ac_outfile"; then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings other than the usual output. + $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp + $SED '/^$/d' conftest.err >conftest.er2 + if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then + lt_prog_compiler_pic_works_GCJ=yes + fi + fi + $rm conftest* + +fi +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 +echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 + +if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then + case $lt_prog_compiler_pic_GCJ in + "" | " "*) ;; + *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; + esac +else + lt_prog_compiler_pic_GCJ= + lt_prog_compiler_can_build_shared_GCJ=no +fi + +fi +case "$host_os" in + # For platforms which do not support PIC, -DPIC is meaningless: + *djgpp*) + lt_prog_compiler_pic_GCJ= + ;; + *) + lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" + ;; +esac + +echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 +echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 +if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + lt_cv_prog_compiler_c_o_GCJ=no + $rm -r conftest 2>/dev/null + mkdir conftest + cd conftest + mkdir out + printf "$lt_simple_compile_test_code" > conftest.$ac_ext + + lt_compiler_flag="-o out/conftest2.$ac_objext" + # Insert the option either (1) after the last *FLAGS variable, or + # (2) before a word containing "conftest.", or (3) at the end. + # Note that $ac_compile itself does not contain backslashes and begins + # with a dollar sign (not a hyphen), so the echo should work correctly. + lt_compile=`echo "$ac_compile" | $SED \ + -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ + -e 's:$: $lt_compiler_flag:'` + (eval echo "\"\$as_me:16256: $lt_compile\"" >&5) + (eval "$lt_compile" 2>out/conftest.err) + ac_status=$? + cat out/conftest.err >&5 + echo "$as_me:16260: \$? = $ac_status" >&5 + if (exit $ac_status) && test -s out/conftest2.$ac_objext + then + # The compiler can only warn and ignore the option if not recognized + # So say no if there are warnings + $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp + $SED '/^$/d' out/conftest.err >out/conftest.er2 + if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then + lt_cv_prog_compiler_c_o_GCJ=yes + fi + fi + chmod u+w . + $rm conftest* + # SGI C++ compiler will create directory out/ii_files/ for + # template instantiation + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files + $rm out/* && rmdir out + cd .. + rmdir conftest + $rm conftest* + +fi +echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 +echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 + + +hard_links="nottested" +if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then + # do not overwrite the value of need_locks provided by the user + echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 +echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 + hard_links=yes + $rm conftest* + ln conftest.a conftest.b 2>/dev/null && hard_links=no + touch conftest.a + ln conftest.a conftest.b 2>&5 || hard_links=no + ln conftest.a conftest.b 2>/dev/null && hard_links=no + echo "$as_me:$LINENO: result: $hard_links" >&5 +echo "${ECHO_T}$hard_links" >&6 + if test "$hard_links" = no; then + { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 +echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} + need_locks=warn + fi +else + need_locks=no +fi + +echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 + + runpath_var= + allow_undefined_flag_GCJ= + enable_shared_with_static_runtimes_GCJ=no + archive_cmds_GCJ= + archive_expsym_cmds_GCJ= + old_archive_From_new_cmds_GCJ= + old_archive_from_expsyms_cmds_GCJ= + export_dynamic_flag_spec_GCJ= + whole_archive_flag_spec_GCJ= + thread_safe_flag_spec_GCJ= + hardcode_libdir_flag_spec_GCJ= + hardcode_libdir_flag_spec_ld_GCJ= + hardcode_libdir_separator_GCJ= + hardcode_direct_GCJ=no + hardcode_minus_L_GCJ=no + hardcode_shlibpath_var_GCJ=unsupported + link_all_deplibs_GCJ=unknown + hardcode_automatic_GCJ=no + module_cmds_GCJ= + module_expsym_cmds_GCJ= + always_export_symbols_GCJ=no + export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' + # include_expsyms should be a list of space-separated symbols to be *always* + # included in the symbol list + include_expsyms_GCJ= + # exclude_expsyms can be an extended regexp of symbols to exclude + # it will be wrapped by ` (' and `)$', so one must not match beginning or + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', + # as well as any symbol that contains `d'. + exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out + # platforms (ab)use it in PIC code, but their linkers get confused if + # the symbol is explicitly referenced. Since portable code cannot + # rely on this symbol name, it's probably fine to never include it in + # preloaded symbol tables. + extract_expsyms_cmds= + # Just being paranoid about ensuring that cc_basename is set. + for cc_temp in $compiler""; do + case $cc_temp in + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` + + case $host_os in + cygwin* | mingw* | pw32*) + # FIXME: the MSVC++ port hasn't been tested in a loooong time + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + if test "$GCC" != yes; then + with_gnu_ld=no + fi + ;; + openbsd*) + with_gnu_ld=no + ;; + esac + + ld_shlibs_GCJ=yes + if test "$with_gnu_ld" = yes; then + # If archive_cmds runs LD, not CC, wlarc should be empty + wlarc='${wl}' + + # Set some defaults for GNU ld with shared library support. These + # are reset later if shared libraries are not supported. Putting them + # here allows them to be overridden if necessary. + runpath_var=LD_RUN_PATH + hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' + export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' + # ancient GNU ld didn't support --whole-archive et. al. + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then + whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' + else + whole_archive_flag_spec_GCJ= + fi + supports_anon_versioning=no + case `$LD -v 2>/dev/null` in + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... + *\ 2.11.*) ;; # other 2.11 versions + *) supports_anon_versioning=yes ;; + esac + + # See if GNU ld supports shared libraries. + case $host_os in + aix3* | aix4* | aix5*) + # On AIX/PPC, the GNU linker is very broken + if test "$host_cpu" != ia64; then + ld_shlibs_GCJ=no + cat <&2 + +*** Warning: the GNU linker, at least up to release 2.9.1, is reported +*** to be unable to reliably create shared libraries on AIX. +*** Therefore, libtool is disabling shared libraries support. If you +*** really care for shared libraries, you may want to modify your PATH +*** so that a non-GNU linker is found, and then restart. + +EOF + fi + ;; + + amigaos*) + archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + hardcode_libdir_flag_spec_GCJ='-L$libdir' + hardcode_minus_L_GCJ=yes + + # Samuel A. Falvo II reports + # that the semantics of dynamic libraries on AmigaOS, at least up + # to version 4, is to share data among multiple programs linked + # with the same dynamic library. Since this doesn't match the + # behavior of shared libraries on other platforms, we can't use + # them. + ld_shlibs_GCJ=no + ;; + + beos*) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + allow_undefined_flag_GCJ=unsupported + # Joseph Beckenbach says some releases of gcc + # support --undefined. This deserves some investigation. FIXME + archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + else + ld_shlibs_GCJ=no + fi + ;; + + cygwin* | mingw* | pw32*) + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, + # as there is no search path for DLLs. + hardcode_libdir_flag_spec_GCJ='-L$libdir' + allow_undefined_flag_GCJ=unsupported + always_export_symbols_GCJ=no + enable_shared_with_static_runtimes_GCJ=yes + export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' + + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' + # If the export-symbols file already is a .def file (1st line + # is EXPORTS), use it as is; otherwise, prepend... + archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then + cp $export_symbols $output_objdir/$soname.def; + else + echo EXPORTS > $output_objdir/$soname.def; + cat $export_symbols >> $output_objdir/$soname.def; + fi~ + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' + else + ld_shlibs_GCJ=no + fi + ;; + + linux*) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + tmp_addflag= + case $cc_basename,$host_cpu in + pgcc*) # Portland Group C compiler + whole_archive_flag_spec_GCJ= + ;; + pgf77* | pgf90* ) # Portland Group f77 and f90 compilers + whole_archive_flag_spec_GCJ= + tmp_addflag=' -fpic -Mnomain' ;; + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 + tmp_addflag=' -i_dynamic' ;; + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 + tmp_addflag=' -i_dynamic -nofor_main' ;; + ifc* | ifort*) # Intel Fortran compiler + tmp_addflag=' -nofor_main' ;; + esac + archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + + if test $supports_anon_versioning = yes; then + archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + $echo "local: *; };" >> $output_objdir/$libname.ver~ + $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' + fi + else + ld_shlibs_GCJ=no + fi + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' + wlarc= + else + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + fi + ;; + + solaris* | sysv5*) + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then + ld_shlibs_GCJ=no + cat <&2 + +*** Warning: The releases 2.8.* of the GNU linker cannot reliably +*** create shared libraries on Solaris systems. Therefore, libtool +*** is disabling shared libraries support. We urge you to upgrade GNU +*** binutils to release 2.9.1 or newer. Another option is to modify +*** your PATH or compiler configuration so that the native linker is +*** used, and then restart. + +EOF + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs_GCJ=no + fi + ;; + + sunos4*) + archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' + wlarc= + hardcode_direct_GCJ=yes + hardcode_shlibpath_var_GCJ=no + ;; + + *) + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' + archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' + else + ld_shlibs_GCJ=no + fi + ;; + esac + + if test "$ld_shlibs_GCJ" = no; then + runpath_var= + hardcode_libdir_flag_spec_GCJ= + export_dynamic_flag_spec_GCJ= + whole_archive_flag_spec_GCJ= + fi + else + # PORTME fill in a description of your system's linker (not GNU ld) + case $host_os in + aix3*) + allow_undefined_flag_GCJ=unsupported + always_export_symbols_GCJ=yes + archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' + # Note: this linker hardcodes the directories in LIBPATH if there + # are no directories specified by -L. + hardcode_minus_L_GCJ=yes + if test "$GCC" = yes && test -z "$link_static_flag"; then + # Neither direct hardcoding nor static linking is supported with a + # broken collect2. + hardcode_direct_GCJ=unsupported + fi + ;; + + aix4* | aix5*) + if test "$host_cpu" = ia64; then + # On IA64, the linker does run time linking by default, so we don't + # have to do anything special. + aix_use_runtimelinking=no + exp_sym_flag='-Bexport' + no_entry_flag="" + else + # If we're using GNU nm, then we don't want the "-C" option. + # -C means demangle to AIX nm, but means don't demangle with GNU nm + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then + export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' + else + export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' + fi + aix_use_runtimelinking=no + + # Test if we are trying to use run time linking or normal + # AIX style linking. If -brtl is somewhere in LDFLAGS, we + # need to do runtime linking. + case $host_os in aix4.[23]|aix4.[23].*|aix5*) + for ld_flag in $LDFLAGS; do + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then + aix_use_runtimelinking=yes + break + fi + done + esac + + exp_sym_flag='-bexport' + no_entry_flag='-bnoentry' + fi + + # When large executables or shared objects are built, AIX ld can + # have problems creating the table of contents. If linking a library + # or program results in "error TOC overflow" add -mminimal-toc to + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. + + archive_cmds_GCJ='' + hardcode_direct_GCJ=yes + hardcode_libdir_separator_GCJ=':' + link_all_deplibs_GCJ=yes + + if test "$GCC" = yes; then + case $host_os in aix4.[012]|aix4.[012].*) + # We only want to do this on AIX 4.2 and lower, the check + # below for broken collect2 doesn't work under 4.3+ + collect2name=`${CC} -print-prog-name=collect2` + if test -f "$collect2name" && \ + strings "$collect2name" | grep resolve_lib_name >/dev/null + then + # We have reworked collect2 + hardcode_direct_GCJ=yes + else + # We have old collect2 + hardcode_direct_GCJ=unsupported + # It fails to find uninstalled libraries when the uninstalled + # path is not listed in the libpath. Setting hardcode_minus_L + # to unsupported forces relinking + hardcode_minus_L_GCJ=yes + hardcode_libdir_flag_spec_GCJ='-L$libdir' + hardcode_libdir_separator_GCJ= + fi + esac + shared_flag='-shared' + if test "$aix_use_runtimelinking" = yes; then + shared_flag="$shared_flag "'${wl}-G' + fi + else + # not using gcc + if test "$host_cpu" = ia64; then + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release + # chokes on -Wl,-G. The following line is correct: + shared_flag='-G' + else + if test "$aix_use_runtimelinking" = yes; then + shared_flag='${wl}-G' + else + shared_flag='${wl}-bM:SRE' + fi + fi + fi + + # It seems that -bexpall does not export symbols beginning with + # underscore (_), so it is better to generate a list of symbols to export. + always_export_symbols_GCJ=yes + if test "$aix_use_runtimelinking" = yes; then + # Warning - without using the other runtime loading flags (-brtl), + # -berok will link without error, but may produce a broken library. + allow_undefined_flag_GCJ='-berok' + # Determine the default libpath from the value encoded in an empty executable. + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } +}'` +# Check for a 64-bit object if we didn't find anything. +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } +}'`; fi +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi + + hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" + archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" + else + if test "$host_cpu" = ia64; then + hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' + allow_undefined_flag_GCJ="-z nodefs" + archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" + else + # Determine the default libpath from the value encoded in an empty executable. + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } +}'` +# Check for a 64-bit object if we didn't find anything. +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } +}'`; fi +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi + + hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" + # Warning - without using the other run time loading flags, + # -berok will link without error, but may produce a broken library. + no_undefined_flag_GCJ=' ${wl}-bernotok' + allow_undefined_flag_GCJ=' ${wl}-berok' + # -bexpall does not export symbols beginning with underscore (_) + always_export_symbols_GCJ=yes + # Exported symbols can be pulled into shared objects from archives + whole_archive_flag_spec_GCJ=' ' + archive_cmds_need_lc_GCJ=yes + # This is similar to how AIX traditionally builds it's shared libraries. + archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' + fi + fi + ;; + + amigaos*) + archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' + hardcode_libdir_flag_spec_GCJ='-L$libdir' + hardcode_minus_L_GCJ=yes + # see comment about different semantics on the GNU ld section + ld_shlibs_GCJ=no + ;; + + bsdi[45]*) + export_dynamic_flag_spec_GCJ=-rdynamic + ;; + + cygwin* | mingw* | pw32*) + # When not using gcc, we currently assume that we are using + # Microsoft Visual C++. + # hardcode_libdir_flag_spec is actually meaningless, as there is + # no search path for DLLs. + hardcode_libdir_flag_spec_GCJ=' ' + allow_undefined_flag_GCJ=unsupported + # Tell ltmain to make .lib files, not .a files. + libext=lib + # Tell ltmain to make .dll files, not .so files. + shrext_cmds=".dll" + # FIXME: Setting linknames here is a bad hack. + archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' + # The linker will automatically build a .lib file if we build a DLL. + old_archive_From_new_cmds_GCJ='true' + # FIXME: Should let the user specify the lib program. + old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' + fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' + enable_shared_with_static_runtimes_GCJ=yes + ;; + + darwin* | rhapsody*) + case "$host_os" in + rhapsody* | darwin1.[012]) + allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' + ;; + *) # Darwin 1.3 on + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then + allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' + else + case ${MACOSX_DEPLOYMENT_TARGET} in + 10.[012]) + allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' + ;; + 10.*) + allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' + ;; + esac + fi + ;; + esac + archive_cmds_need_lc_GCJ=no + hardcode_direct_GCJ=no + hardcode_automatic_GCJ=yes + hardcode_shlibpath_var_GCJ=unsupported + whole_archive_flag_spec_GCJ='' + link_all_deplibs_GCJ=yes + if test "$GCC" = yes ; then + output_verbose_link_cmd='echo' + archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' + module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's + archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + else + case $cc_basename in + xlc*) + output_verbose_link_cmd='echo' + archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' + module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's + archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' + ;; + *) + ld_shlibs_GCJ=no + ;; + esac + fi + ;; + + dgux*) + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec_GCJ='-L$libdir' + hardcode_shlibpath_var_GCJ=no + ;; + + freebsd1*) + ld_shlibs_GCJ=no + ;; + + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor + # support. Future versions do this automatically, but an explicit c++rt0.o + # does not break anything, and helps significantly (at the cost of a little + # extra space). + freebsd2.2*) + archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' + hardcode_libdir_flag_spec_GCJ='-R$libdir' + hardcode_direct_GCJ=yes + hardcode_shlibpath_var_GCJ=no + ;; + + # Unfortunately, older versions of FreeBSD 2 do not have this feature. + freebsd2*) + archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct_GCJ=yes + hardcode_minus_L_GCJ=yes + hardcode_shlibpath_var_GCJ=no + ;; + + # FreeBSD 3 and greater uses gcc -shared to do shared libraries. + freebsd* | kfreebsd*-gnu | dragonfly*) + archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' + hardcode_libdir_flag_spec_GCJ='-R$libdir' + hardcode_direct_GCJ=yes + hardcode_shlibpath_var_GCJ=no + ;; + + hpux9*) + if test "$GCC" = yes; then + archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + else + archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' + fi + hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' + hardcode_libdir_separator_GCJ=: + hardcode_direct_GCJ=yes + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L_GCJ=yes + export_dynamic_flag_spec_GCJ='${wl}-E' + ;; + + hpux10* | hpux11*) + if test "$GCC" = yes -a "$with_gnu_ld" = no; then + case "$host_cpu" in + hppa*64*|ia64*) + archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + ;; + *) + archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' + ;; + esac + else + case "$host_cpu" in + hppa*64*|ia64*) + archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' + ;; + *) + archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' + ;; + esac + fi + if test "$with_gnu_ld" = no; then + case "$host_cpu" in + hppa*64*) + hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' + hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' + hardcode_libdir_separator_GCJ=: + hardcode_direct_GCJ=no + hardcode_shlibpath_var_GCJ=no + ;; + ia64*) + hardcode_libdir_flag_spec_GCJ='-L$libdir' + hardcode_direct_GCJ=no + hardcode_shlibpath_var_GCJ=no + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L_GCJ=yes + ;; + *) + hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' + hardcode_libdir_separator_GCJ=: + hardcode_direct_GCJ=yes + export_dynamic_flag_spec_GCJ='${wl}-E' + + # hardcode_minus_L: Not really in the search PATH, + # but as the default location of the library. + hardcode_minus_L_GCJ=yes + ;; + esac + fi + ;; + + irix5* | irix6* | nonstopux*) + if test "$GCC" = yes; then + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' + fi + hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator_GCJ=: + link_all_deplibs_GCJ=yes + ;; + + netbsd*) + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out + else + archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF + fi + hardcode_libdir_flag_spec_GCJ='-R$libdir' + hardcode_direct_GCJ=yes + hardcode_shlibpath_var_GCJ=no + ;; + + newsos6) + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct_GCJ=yes + hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator_GCJ=: + hardcode_shlibpath_var_GCJ=no + ;; + + openbsd*) + hardcode_direct_GCJ=yes + hardcode_shlibpath_var_GCJ=no + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' + hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' + export_dynamic_flag_spec_GCJ='${wl}-E' + else + case $host_os in + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) + archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec_GCJ='-R$libdir' + ;; + *) + archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' + hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' + ;; + esac + fi + ;; + + os2*) + hardcode_libdir_flag_spec_GCJ='-L$libdir' + hardcode_minus_L_GCJ=yes + allow_undefined_flag_GCJ=unsupported + archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' + old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' + ;; + + osf3*) + if test "$GCC" = yes; then + allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + else + allow_undefined_flag_GCJ=' -expect_unresolved \*' + archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + fi + hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' + hardcode_libdir_separator_GCJ=: + ;; + + osf4* | osf5*) # as osf3* with the addition of -msym flag + if test "$GCC" = yes; then + allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' + archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' + hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' + else + allow_undefined_flag_GCJ=' -expect_unresolved \*' + archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' + archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ + $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' + + # Both c and cxx compiler support -rpath directly + hardcode_libdir_flag_spec_GCJ='-rpath $libdir' + fi + hardcode_libdir_separator_GCJ=: + ;; + + sco3.2v5*) + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var_GCJ=no + export_dynamic_flag_spec_GCJ='${wl}-Bexport' + runpath_var=LD_RUN_PATH + hardcode_runpath_var=yes + ;; + + solaris*) + no_undefined_flag_GCJ=' -z text' + if test "$GCC" = yes; then + wlarc='${wl}' + archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' + else + wlarc='' + archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' + archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' + fi + hardcode_libdir_flag_spec_GCJ='-R$libdir' + hardcode_shlibpath_var_GCJ=no + case $host_os in + solaris2.[0-5] | solaris2.[0-5].*) ;; + *) + # The compiler driver will combine linker options so we + # cannot just pass the convience library names through + # without $wl, iff we do not link with $LD. + # Luckily, gcc supports the same syntax we need for Sun Studio. + # Supported since Solaris 2.6 (maybe 2.5.1?) + case $wlarc in + '') + whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; + *) + whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; + esac ;; + esac + link_all_deplibs_GCJ=yes + ;; + + sunos4*) + if test "x$host_vendor" = xsequent; then + # Use $CC to link under sequent, because it throws in some extra .o + # files that make .init and .fini sections work. + archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' + fi + hardcode_libdir_flag_spec_GCJ='-L$libdir' + hardcode_direct_GCJ=yes + hardcode_minus_L_GCJ=yes + hardcode_shlibpath_var_GCJ=no + ;; + + sysv4) + case $host_vendor in + sni) + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct_GCJ=yes # is this really true??? + ;; + siemens) + ## LD is ld it makes a PLAMLIB + ## CC just makes a GrossModule. + archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' + reload_cmds_GCJ='$CC -r -o $output$reload_objs' + hardcode_direct_GCJ=no + ;; + motorola) + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie + ;; + esac + runpath_var='LD_RUN_PATH' + hardcode_shlibpath_var_GCJ=no + ;; + + sysv4.3*) + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var_GCJ=no + export_dynamic_flag_spec_GCJ='-Bexport' + ;; + + sysv4*MP*) + if test -d /usr/nec; then + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_shlibpath_var_GCJ=no + runpath_var=LD_RUN_PATH + hardcode_runpath_var=yes + ld_shlibs_GCJ=yes + fi + ;; + + sysv4.2uw2*) + archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' + hardcode_direct_GCJ=yes + hardcode_minus_L_GCJ=no + hardcode_shlibpath_var_GCJ=no + hardcode_runpath_var=yes + runpath_var=LD_RUN_PATH + ;; + + sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) + no_undefined_flag_GCJ='${wl}-z ${wl}text' + if test "$GCC" = yes; then + archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + else + archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' + fi + runpath_var='LD_RUN_PATH' + hardcode_shlibpath_var_GCJ=no + ;; + + sysv5*) + no_undefined_flag_GCJ=' -z text' + # $CC -shared without GNU ld will not create a library from C++ + # object files and a static libstdc++, better avoid it by now + archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' + archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' + hardcode_libdir_flag_spec_GCJ= + hardcode_shlibpath_var_GCJ=no + runpath_var='LD_RUN_PATH' + ;; + + uts4*) + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' + hardcode_libdir_flag_spec_GCJ='-L$libdir' + hardcode_shlibpath_var_GCJ=no + ;; + + *) + ld_shlibs_GCJ=no + ;; + esac + fi + +echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 +echo "${ECHO_T}$ld_shlibs_GCJ" >&6 +test "$ld_shlibs_GCJ" = no && can_build_shared=no + +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" +if test "$GCC" = yes; then + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" +fi + +# +# Do we need to explicitly link libc? +# +case "x$archive_cmds_need_lc_GCJ" in +x|xyes) + # Assume -lc should be added + archive_cmds_need_lc_GCJ=yes + + if test "$enable_shared" = yes && test "$GCC" = yes; then + case $archive_cmds_GCJ in + *'~'*) + # FIXME: we may have to deal with multi-command sequences. + ;; + '$CC '*) + # Test whether the compiler implicitly links with -lc since on some + # systems, -lgcc has to come before -lc. If gcc already passes -lc + # to ld, don't add -lc before -lgcc. + echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 +echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 + $rm conftest* + printf "$lt_simple_compile_test_code" > conftest.$ac_ext + + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } 2>conftest.err; then + soname=conftest + lib=conftest + libobjs=conftest.$ac_objext + deplibs= + wl=$lt_prog_compiler_wl_GCJ + compiler_flags=-v + linker_flags=-v + verstring= + output_objdir=. + libname=conftest + lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ + allow_undefined_flag_GCJ= + if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 + (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } + then + archive_cmds_need_lc_GCJ=no + else + archive_cmds_need_lc_GCJ=yes + fi + allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag + else + cat conftest.err 1>&5 + fi + $rm conftest* + echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 +echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 + ;; + esac + fi + ;; +esac + +echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 +echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 +library_names_spec= +libname_spec='lib$name' +soname_spec= +shrext_cmds=".so" +postinstall_cmds= +postuninstall_cmds= +finish_cmds= +finish_eval= +shlibpath_var= +shlibpath_overrides_runpath=unknown +version_type=none +dynamic_linker="$host_os ld.so" +sys_lib_dlsearch_path_spec="/lib /usr/lib" +if test "$GCC" = yes; then + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then + # if the path contains ";" then we assume it to be the separator + # otherwise default to the standard path separator (i.e. ":") - it is + # assumed that no part of a normal pathname contains ";" but that should + # okay in the real world where ";" in dirpaths is itself problematic. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + else + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi +else + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" +fi +need_lib_prefix=unknown +hardcode_into_libs=no + +# when you set need_version to no, make sure it does not cause -set_version +# flags to be left without arguments +need_version=unknown + +case $host_os in +aix3*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' + shlibpath_var=LIBPATH + + # AIX 3 has no versioning support, so we append a major version to the name. + soname_spec='${libname}${release}${shared_ext}$major' + ;; + +aix4* | aix5*) + version_type=linux + need_lib_prefix=no + need_version=no + hardcode_into_libs=yes + if test "$host_cpu" = ia64; then + # AIX 5 supports IA64 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + else + # With GCC up to 2.95.x, collect2 would create an import file + # for dependence libraries. The import file would start with + # the line `#! .'. This would cause the generated library to + # depend on `.', always an invalid library. This was fixed in + # development snapshots of GCC prior to 3.0. + case $host_os in + aix4 | aix4.[01] | aix4.[01].*) + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' + echo ' yes ' + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then + : + else + can_build_shared=no + fi + ;; + esac + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct + # soname into executable. Probably we can add versioning support to + # collect2, so additional links can be useful in future. + if test "$aix_use_runtimelinking" = yes; then + # If using run time linking (on AIX 4.2 or later) use lib.so + # instead of lib.a to let people know that these are not + # typical AIX shared libraries. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + else + # We preserve .a as extension for shared libraries through AIX4.2 + # and later when we are not doing run time linking. + library_names_spec='${libname}${release}.a $libname.a' + soname_spec='${libname}${release}${shared_ext}$major' + fi + shlibpath_var=LIBPATH + fi + ;; + +amigaos*) + library_names_spec='$libname.ixlibrary $libname.a' + # Create ${libname}_ixlibrary.a entries in /sys/libs. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' + ;; + +beos*) + library_names_spec='${libname}${shared_ext}' + dynamic_linker="$host_os ld.so" + shlibpath_var=LIBRARY_PATH + ;; + +bsdi[45]*) + version_type=linux + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" + # the default ld.so.conf also contains /usr/contrib/lib and + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow + # libtool to hard-code these into programs + ;; + +cygwin* | mingw* | pw32*) + version_type=windows + shrext_cmds=".dll" + need_version=no + need_lib_prefix=no + + case $GCC,$host_os in + yes,cygwin* | yes,mingw* | yes,pw32*) + library_names_spec='$libname.dll.a' + # DLL is installed to $(libdir)/../bin by postinstall_cmds + postinstall_cmds='base_file=`basename \${file}`~ + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ + dldir=$destdir/`dirname \$dlpath`~ + test -d \$dldir || mkdir -p \$dldir~ + $install_prog $dir/$dlname \$dldir/$dlname' + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ + dlpath=$dir/\$dldll~ + $rm \$dlpath' + shlibpath_overrides_runpath=yes + + case $host_os in + cygwin*) + # Cygwin DLLs use 'cyg' prefix rather than 'lib' + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" + ;; + mingw*) + # MinGW DLLs use traditional 'lib' prefix + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` + if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then + # It is most probably a Windows format PATH printed by + # mingw gcc, but we are running on Cygwin. Gcc prints its search + # path with ; separators, and with drive letters. We can handle the + # drive letters (cygwin fileutils understands them), so leave them, + # especially as we might pass files found there to a mingw objdump, + # which wouldn't understand a cygwinified path. Ahh. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` + else + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` + fi + ;; + pw32*) + # pw32 DLLs use 'pw' prefix rather than 'lib' + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' + ;; + esac + ;; + + *) + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' + ;; + esac + dynamic_linker='Win32 ld.exe' + # FIXME: first we should search . and the directory the executable is in + shlibpath_var=PATH + ;; + +darwin* | rhapsody*) + dynamic_linker="$host_os dyld" + version_type=darwin + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' + soname_spec='${libname}${release}${major}$shared_ext' + shlibpath_overrides_runpath=yes + shlibpath_var=DYLD_LIBRARY_PATH + shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. + if test "$GCC" = yes; then + sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` + else + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' + fi + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' + ;; + +dgux*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +freebsd1*) + dynamic_linker=no + ;; + +kfreebsd*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='GNU ld.so' + ;; + +freebsd* | dragonfly*) + # DragonFly does not have aout. When/if they implement a new + # versioning mechanism, adjust this. + objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` + version_type=freebsd-$objformat + case $version_type in + freebsd-elf*) + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' + need_version=no + need_lib_prefix=no + ;; + freebsd-*) + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' + need_version=yes + ;; + esac + shlibpath_var=LD_LIBRARY_PATH + case $host_os in + freebsd2*) + shlibpath_overrides_runpath=yes + ;; + freebsd3.[01]* | freebsdelf3.[01]*) + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + *) # from 3.2 on + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + ;; + esac + ;; + +gnu*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + hardcode_into_libs=yes + ;; + +hpux9* | hpux10* | hpux11*) + # Give a soname corresponding to the major version so that dld.sl refuses to + # link against other versions. + version_type=sunos + need_lib_prefix=no + need_version=no + case "$host_cpu" in + ia64*) + shrext_cmds='.so' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.so" + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + if test "X$HPUX_IA64_MODE" = X32; then + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" + else + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" + fi + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + hppa*64*) + shrext_cmds='.sl' + hardcode_into_libs=yes + dynamic_linker="$host_os dld.sl" + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec + ;; + *) + shrext_cmds='.sl' + dynamic_linker="$host_os dld.sl" + shlibpath_var=SHLIB_PATH + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + ;; + esac + # HP-UX runs *really* slowly unless shared libraries are mode 555. + postinstall_cmds='chmod 555 $lib' + ;; + +irix5* | irix6* | nonstopux*) + case $host_os in + nonstopux*) version_type=nonstopux ;; + *) + if test "$lt_cv_prog_gnu_ld" = yes; then + version_type=linux + else + version_type=irix + fi ;; + esac + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' + case $host_os in + irix5* | nonstopux*) + libsuff= shlibsuff= + ;; + *) + case $LD in # libtool.m4 will add one of these switches to LD + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") + libsuff= shlibsuff= libmagic=32-bit;; + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") + libsuff=32 shlibsuff=N32 libmagic=N32;; + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") + libsuff=64 shlibsuff=64 libmagic=64-bit;; + *) libsuff= shlibsuff= libmagic=never-match;; + esac + ;; + esac + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH + shlibpath_overrides_runpath=no + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" + hardcode_into_libs=yes + ;; + +# No shared lib support for Linux oldld, aout, or coff. +linux*oldld* | linux*aout* | linux*coff*) + dynamic_linker=no + ;; + +# This must be Linux ELF. +linux*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + # This implies no fast_install, which is unacceptable. + # Some rework will be needed to allow for fast_install + # before this can be enabled. + hardcode_into_libs=yes + + # find out which ABI we are using + libsuff= + case "$host_cpu" in + x86_64*|s390x*|powerpc64*) + echo '#line 17641 "configure"' > conftest.$ac_ext + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 + (eval $ac_compile) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; then + case `/usr/bin/file conftest.$ac_objext` in + *64-bit*) + libsuff=64 + sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" + ;; + esac + fi + rm -rf conftest* + ;; + esac + + # Append ld.so.conf contents to the search path + if test -f /etc/ld.so.conf; then + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` + sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" + fi + + # We used to test for /lib/ld.so.1 and disable shared libraries on + # powerpc, because MkLinux only supported shared libraries with the + # GNU dynamic linker. Since this was broken with cross compilers, + # most powerpc-linux boxes support dynamic linking these days and + # people can always --disable-shared, the test was removed, and we + # assume the GNU/Linux dynamic linker is in use. + dynamic_linker='GNU/Linux ld.so' + ;; + +knetbsd*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='GNU ld.so' + ;; + +netbsd*) + version_type=sunos + need_lib_prefix=no + need_version=no + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + dynamic_linker='NetBSD (a.out) ld.so' + else + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + dynamic_linker='NetBSD ld.elf_so' + fi + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + +newsos6) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +nto-qnx*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + ;; + +openbsd*) + version_type=sunos + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' + shlibpath_var=LD_LIBRARY_PATH + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then + case $host_os in + openbsd2.[89] | openbsd2.[89].*) + shlibpath_overrides_runpath=no + ;; + *) + shlibpath_overrides_runpath=yes + ;; + esac + else + shlibpath_overrides_runpath=yes + fi + ;; + +os2*) + libname_spec='$name' + shrext_cmds=".dll" + need_lib_prefix=no + library_names_spec='$libname${shared_ext} $libname.a' + dynamic_linker='OS/2 ld.exe' + shlibpath_var=LIBPATH + ;; + +osf3* | osf4* | osf5*) + version_type=osf + need_lib_prefix=no + need_version=no + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" + ;; + +sco3.2v5*) + version_type=osf + soname_spec='${libname}${release}${shared_ext}$major' + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + shlibpath_var=LD_LIBRARY_PATH + ;; + +solaris*) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + # ldd complains unless libraries are executable + postinstall_cmds='chmod +x $lib' + ;; + +sunos4*) + version_type=sunos + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=yes + if test "$with_gnu_ld" = yes; then + need_lib_prefix=no + fi + need_version=yes + ;; + +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + case $host_vendor in + sni) + shlibpath_overrides_runpath=no + need_lib_prefix=no + export_dynamic_flag_spec='${wl}-Blargedynsym' + runpath_var=LD_RUN_PATH + ;; + siemens) + need_lib_prefix=no + ;; + motorola) + need_lib_prefix=no + need_version=no + shlibpath_overrides_runpath=no + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' + ;; + esac + ;; + +sysv4*MP*) + if test -d /usr/nec ;then + version_type=linux + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' + soname_spec='$libname${shared_ext}.$major' + shlibpath_var=LD_LIBRARY_PATH + fi + ;; + +uts4*) + version_type=linux + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' + soname_spec='${libname}${release}${shared_ext}$major' + shlibpath_var=LD_LIBRARY_PATH + ;; + +*) + dynamic_linker=no + ;; +esac +echo "$as_me:$LINENO: result: $dynamic_linker" >&5 +echo "${ECHO_T}$dynamic_linker" >&6 +test "$dynamic_linker" = no && can_build_shared=no + +echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 +echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 +hardcode_action_GCJ= +if test -n "$hardcode_libdir_flag_spec_GCJ" || \ + test -n "$runpath_var_GCJ" || \ + test "X$hardcode_automatic_GCJ" = "Xyes" ; then + + # We can hardcode non-existant directories. + if test "$hardcode_direct_GCJ" != no && + # If the only mechanism to avoid hardcoding is shlibpath_var, we + # have to relink, otherwise we might link with an installed library + # when we should be linking with a yet-to-be-installed one + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && + test "$hardcode_minus_L_GCJ" != no; then + # Linking always hardcodes the temporary library directory. + hardcode_action_GCJ=relink + else + # We can link without hardcoding, and we can hardcode nonexisting dirs. + hardcode_action_GCJ=immediate + fi +else + # We cannot hardcode anything, or else we can only hardcode existing + # directories. + hardcode_action_GCJ=unsupported +fi +echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 +echo "${ECHO_T}$hardcode_action_GCJ" >&6 + +if test "$hardcode_action_GCJ" = relink; then + # Fast installation is not supported + enable_fast_install=no +elif test "$shlibpath_overrides_runpath" = yes || + test "$enable_shared" = no; then + # Fast installation is not necessary + enable_fast_install=needless +fi + +striplib= +old_striplib= +echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 +echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" + test -z "$striplib" && striplib="$STRIP --strip-unneeded" + echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6 +else +# FIXME - insert some real tests, host_os isn't really good enough + case $host_os in + darwin*) + if test -n "$STRIP" ; then + striplib="$STRIP -x" + echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6 + else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + ;; + *) + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 + ;; + esac +fi + +if test "x$enable_dlopen" != xyes; then + enable_dlopen=unknown + enable_dlopen_self=unknown + enable_dlopen_self_static=unknown +else + lt_cv_dlopen=no + lt_cv_dlopen_libs= + + case $host_os in + beos*) + lt_cv_dlopen="load_add_on" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + ;; + + mingw* | pw32*) + lt_cv_dlopen="LoadLibrary" + lt_cv_dlopen_libs= + ;; + + cygwin*) + lt_cv_dlopen="dlopen" + lt_cv_dlopen_libs= + ;; + + darwin*) + # if libdl is installed we need to link against it + echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 +echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 +if test "${ac_cv_lib_dl_dlopen+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char dlopen (); +int +main () +{ +dlopen (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_dl_dlopen=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_lib_dl_dlopen=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 +echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 +if test $ac_cv_lib_dl_dlopen = yes; then + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" +else + + lt_cv_dlopen="dyld" + lt_cv_dlopen_libs= + lt_cv_dlopen_self=yes + +fi + + ;; + + *) + echo "$as_me:$LINENO: checking for shl_load" >&5 +echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 +if test "${ac_cv_func_shl_load+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +/* Define shl_load to an innocuous variant, in case declares shl_load. + For example, HP-UX 11i declares gettimeofday. */ +#define shl_load innocuous_shl_load + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char shl_load (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef shl_load + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +{ +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char shl_load (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_shl_load) || defined (__stub___shl_load) +choke me +#else +char (*f) () = shl_load; +#endif +#ifdef __cplusplus +} +#endif + +int +main () +{ +return f != shl_load; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_func_shl_load=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_func_shl_load=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 +echo "${ECHO_T}$ac_cv_func_shl_load" >&6 +if test $ac_cv_func_shl_load = yes; then + lt_cv_dlopen="shl_load" +else + echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 +echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 +if test "${ac_cv_lib_dld_shl_load+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldld $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char shl_load (); +int +main () +{ +shl_load (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_dld_shl_load=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_lib_dld_shl_load=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 +echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 +if test $ac_cv_lib_dld_shl_load = yes; then + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" +else + echo "$as_me:$LINENO: checking for dlopen" >&5 +echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 +if test "${ac_cv_func_dlopen+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +/* Define dlopen to an innocuous variant, in case declares dlopen. + For example, HP-UX 11i declares gettimeofday. */ +#define dlopen innocuous_dlopen + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char dlopen (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef dlopen + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +{ +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char dlopen (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_dlopen) || defined (__stub___dlopen) +choke me +#else +char (*f) () = dlopen; +#endif +#ifdef __cplusplus +} +#endif + +int +main () +{ +return f != dlopen; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_func_dlopen=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_func_dlopen=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 +echo "${ECHO_T}$ac_cv_func_dlopen" >&6 +if test $ac_cv_func_dlopen = yes; then + lt_cv_dlopen="dlopen" +else + echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 +echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 +if test "${ac_cv_lib_dl_dlopen+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldl $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char dlopen (); +int +main () +{ +dlopen (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_dl_dlopen=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_lib_dl_dlopen=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 +echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 +if test $ac_cv_lib_dl_dlopen = yes; then + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" +else + echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 +echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 +if test "${ac_cv_lib_svld_dlopen+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsvld $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char dlopen (); +int +main () +{ +dlopen (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_svld_dlopen=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_lib_svld_dlopen=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 +echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 +if test $ac_cv_lib_svld_dlopen = yes; then + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" +else + echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 +echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 +if test "${ac_cv_lib_dld_dld_link+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldld $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char dld_link (); +int +main () +{ +dld_link (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_lib_dld_dld_link=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_lib_dld_dld_link=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 +echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 +if test $ac_cv_lib_dld_dld_link = yes; then + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" +fi + + +fi + + +fi + + +fi + + +fi + + +fi + + ;; + esac + + if test "x$lt_cv_dlopen" != xno; then + enable_dlopen=yes + else + enable_dlopen=no + fi + + case $lt_cv_dlopen in + dlopen) + save_CPPFLAGS="$CPPFLAGS" + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" + + save_LDFLAGS="$LDFLAGS" + eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" + + save_LIBS="$LIBS" + LIBS="$lt_cv_dlopen_libs $LIBS" + + echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 +echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 +if test "${lt_cv_dlopen_self+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test "$cross_compiling" = yes; then : + lt_cv_dlopen_self=cross +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext < +#endif + +#include + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif + +#ifdef __cplusplus +extern "C" void exit (int); +#endif + +void fnord() { int i=42;} +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; + + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + /* dlclose (self); */ + } + + exit (status); +} +EOF + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then + (./conftest; exit; ) 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; + x$lt_unknown|x*) lt_cv_dlopen_self=no ;; + esac + else : + # compilation failed + lt_cv_dlopen_self=no + fi +fi +rm -fr conftest* + + +fi +echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 +echo "${ECHO_T}$lt_cv_dlopen_self" >&6 + + if test "x$lt_cv_dlopen_self" = xyes; then + LDFLAGS="$LDFLAGS $link_static_flag" + echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 +echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 +if test "${lt_cv_dlopen_self_static+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test "$cross_compiling" = yes; then : + lt_cv_dlopen_self_static=cross +else + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 + lt_status=$lt_dlunknown + cat > conftest.$ac_ext < +#endif + +#include + +#ifdef RTLD_GLOBAL +# define LT_DLGLOBAL RTLD_GLOBAL +#else +# ifdef DL_GLOBAL +# define LT_DLGLOBAL DL_GLOBAL +# else +# define LT_DLGLOBAL 0 +# endif +#endif + +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we + find out it does not work in some platform. */ +#ifndef LT_DLLAZY_OR_NOW +# ifdef RTLD_LAZY +# define LT_DLLAZY_OR_NOW RTLD_LAZY +# else +# ifdef DL_LAZY +# define LT_DLLAZY_OR_NOW DL_LAZY +# else +# ifdef RTLD_NOW +# define LT_DLLAZY_OR_NOW RTLD_NOW +# else +# ifdef DL_NOW +# define LT_DLLAZY_OR_NOW DL_NOW +# else +# define LT_DLLAZY_OR_NOW 0 +# endif +# endif +# endif +# endif +#endif + +#ifdef __cplusplus +extern "C" void exit (int); +#endif + +void fnord() { int i=42;} +int main () +{ + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); + int status = $lt_dlunknown; + + if (self) + { + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; + /* dlclose (self); */ + } + + exit (status); +} +EOF + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then + (./conftest; exit; ) 2>/dev/null + lt_status=$? + case x$lt_status in + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; + x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; + esac + else : + # compilation failed + lt_cv_dlopen_self_static=no + fi +fi +rm -fr conftest* + + +fi +echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 +echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 + fi + + CPPFLAGS="$save_CPPFLAGS" + LDFLAGS="$save_LDFLAGS" + LIBS="$save_LIBS" + ;; + esac + + case $lt_cv_dlopen_self in + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; + *) enable_dlopen_self=unknown ;; + esac + + case $lt_cv_dlopen_self_static in + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; + *) enable_dlopen_self_static=unknown ;; + esac +fi + + +# The else clause should only fire when bootstrapping the +# libtool distribution, otherwise you forgot to ship ltmain.sh +# with your package, and you will get complaints that there are +# no rules to generate ltmain.sh. +if test -f "$ltmain"; then + # See if we are running on zsh, and set the options which allow our commands through + # without removal of \ escapes. + if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST + fi + # Now quote all the things that may contain metacharacters while being + # careful not to overquote the AC_SUBSTed values. We take copies of the + # variables and quote the copies for generation of the libtool script. + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ + SED SHELL STRIP \ + libname_spec library_names_spec soname_spec extract_expsyms_cmds \ + old_striplib striplib file_magic_cmd finish_cmds finish_eval \ + deplibs_check_method reload_flag reload_cmds need_locks \ + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ + lt_cv_sys_global_symbol_to_c_name_address \ + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ + old_postinstall_cmds old_postuninstall_cmds \ + compiler_GCJ \ + CC_GCJ \ + LD_GCJ \ + lt_prog_compiler_wl_GCJ \ + lt_prog_compiler_pic_GCJ \ + lt_prog_compiler_static_GCJ \ + lt_prog_compiler_no_builtin_flag_GCJ \ + export_dynamic_flag_spec_GCJ \ + thread_safe_flag_spec_GCJ \ + whole_archive_flag_spec_GCJ \ + enable_shared_with_static_runtimes_GCJ \ + old_archive_cmds_GCJ \ + old_archive_from_new_cmds_GCJ \ + predep_objects_GCJ \ + postdep_objects_GCJ \ + predeps_GCJ \ + postdeps_GCJ \ + compiler_lib_search_path_GCJ \ + archive_cmds_GCJ \ + archive_expsym_cmds_GCJ \ + postinstall_cmds_GCJ \ + postuninstall_cmds_GCJ \ + old_archive_from_expsyms_cmds_GCJ \ + allow_undefined_flag_GCJ \ + no_undefined_flag_GCJ \ + export_symbols_cmds_GCJ \ + hardcode_libdir_flag_spec_GCJ \ + hardcode_libdir_flag_spec_ld_GCJ \ + hardcode_libdir_separator_GCJ \ + hardcode_automatic_GCJ \ + module_cmds_GCJ \ + module_expsym_cmds_GCJ \ + lt_cv_prog_compiler_c_o_GCJ \ + exclude_expsyms_GCJ \ + include_expsyms_GCJ; do + + case $var in + old_archive_cmds_GCJ | \ + old_archive_from_new_cmds_GCJ | \ + archive_cmds_GCJ | \ + archive_expsym_cmds_GCJ | \ + module_cmds_GCJ | \ + module_expsym_cmds_GCJ | \ + old_archive_from_expsyms_cmds_GCJ | \ + export_symbols_cmds_GCJ | \ + extract_expsyms_cmds | reload_cmds | finish_cmds | \ + postinstall_cmds | postuninstall_cmds | \ + old_postinstall_cmds | old_postuninstall_cmds | \ + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) + # Double-quote double-evaled strings. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" + ;; + *) + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" + ;; + esac + done + + case $lt_echo in + *'\$0 --fallback-echo"') + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` + ;; + esac + +cfgfile="$ofile" + + cat <<__EOF__ >> "$cfgfile" +# ### BEGIN LIBTOOL TAG CONFIG: $tagname + +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: + +# Shell to use when invoking shell scripts. +SHELL=$lt_SHELL + +# Whether or not to build shared libraries. +build_libtool_libs=$enable_shared + +# Whether or not to build static libraries. +build_old_libs=$enable_static + +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=$archive_cmds_need_lc_GCJ + +# Whether or not to disallow shared libs when runtime libs are static +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ + +# Whether or not to optimize for fast installation. +fast_install=$enable_fast_install + +# The host system. +host_alias=$host_alias +host=$host +host_os=$host_os + +# The build system. +build_alias=$build_alias +build=$build +build_os=$build_os + +# An echo program that does not interpret backslashes. +echo=$lt_echo + +# The archiver. +AR=$lt_AR +AR_FLAGS=$lt_AR_FLAGS + +# A C compiler. +LTCC=$lt_LTCC + +# A language-specific compiler. +CC=$lt_compiler_GCJ + +# Is the compiler the GNU C compiler? +with_gcc=$GCC_GCJ + +# An ERE matcher. +EGREP=$lt_EGREP + +# The linker used to build libraries. +LD=$lt_LD_GCJ + +# Whether we need hard or soft links. +LN_S=$lt_LN_S + +# A BSD-compatible nm program. +NM=$lt_NM + +# A symbol stripping program +STRIP=$lt_STRIP + +# Used to examine libraries when file_magic_cmd begins "file" +MAGIC_CMD=$MAGIC_CMD + +# Used on cygwin: DLL creation program. +DLLTOOL="$DLLTOOL" + +# Used on cygwin: object dumper. +OBJDUMP="$OBJDUMP" + +# Used on cygwin: assembler. +AS="$AS" + +# The name of the directory that contains temporary libtool files. +objdir=$objdir + +# How to create reloadable object files. +reload_flag=$lt_reload_flag +reload_cmds=$lt_reload_cmds + +# How to pass a linker flag through the compiler. +wl=$lt_lt_prog_compiler_wl_GCJ + +# Object file suffix (normally "o"). +objext="$ac_objext" + +# Old archive suffix (normally "a"). +libext="$libext" + +# Shared library suffix (normally ".so"). +shrext_cmds='$shrext_cmds' + +# Executable file suffix (normally ""). +exeext="$exeext" + +# Additional compiler flags for building library objects. +pic_flag=$lt_lt_prog_compiler_pic_GCJ +pic_mode=$pic_mode + +# What is the maximum length of a command? +max_cmd_len=$lt_cv_sys_max_cmd_len + +# Does compiler simultaneously support -c and -o options? +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ + +# Must we lock files when doing compilation? +need_locks=$lt_need_locks + +# Do we need the lib prefix for modules? +need_lib_prefix=$need_lib_prefix + +# Do we need a version for libraries? +need_version=$need_version + +# Whether dlopen is supported. +dlopen_support=$enable_dlopen + +# Whether dlopen of programs is supported. +dlopen_self=$enable_dlopen_self + +# Whether dlopen of statically linked programs is supported. +dlopen_self_static=$enable_dlopen_self_static + +# Compiler flag to prevent dynamic linking. +link_static_flag=$lt_lt_prog_compiler_static_GCJ + +# Compiler flag to turn off builtin functions. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ + +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ + +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ + +# Compiler flag to generate thread-safe objects. +thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ + +# Library versioning type. +version_type=$version_type + +# Format of library name prefix. +libname_spec=$lt_libname_spec + +# List of archive names. First name is the real one, the rest are links. +# The last name is the one that the linker finds with -lNAME. +library_names_spec=$lt_library_names_spec + +# The coded name of the library, if different from the real name. +soname_spec=$lt_soname_spec + +# Commands used to build and install an old-style archive. +RANLIB=$lt_RANLIB +old_archive_cmds=$lt_old_archive_cmds_GCJ +old_postinstall_cmds=$lt_old_postinstall_cmds +old_postuninstall_cmds=$lt_old_postuninstall_cmds + +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ + +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ + +# Commands used to build and install a shared archive. +archive_cmds=$lt_archive_cmds_GCJ +archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ +postinstall_cmds=$lt_postinstall_cmds +postuninstall_cmds=$lt_postuninstall_cmds + +# Commands used to build a loadable module (assumed same as above if empty) +module_cmds=$lt_module_cmds_GCJ +module_expsym_cmds=$lt_module_expsym_cmds_GCJ + +# Commands to strip libraries. +old_striplib=$lt_old_striplib +striplib=$lt_striplib + +# Dependencies to place before the objects being linked to create a +# shared library. +predep_objects=$lt_predep_objects_GCJ + +# Dependencies to place after the objects being linked to create a +# shared library. +postdep_objects=$lt_postdep_objects_GCJ + +# Dependencies to place before the objects being linked to create a +# shared library. +predeps=$lt_predeps_GCJ + +# Dependencies to place after the objects being linked to create a +# shared library. +postdeps=$lt_postdeps_GCJ + +# The library search path used internally by the compiler when linking +# a shared library. +compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ + +# Method to check whether dependent libraries are shared objects. +deplibs_check_method=$lt_deplibs_check_method + +# Command to use when deplibs_check_method == file_magic. +file_magic_cmd=$lt_file_magic_cmd + +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag=$lt_allow_undefined_flag_GCJ + +# Flag that forces no undefined symbols. +no_undefined_flag=$lt_no_undefined_flag_GCJ + +# Commands used to finish a libtool library installation in a directory. +finish_cmds=$lt_finish_cmds + +# Same as above, but a single script fragment to be evaled but not shown. +finish_eval=$lt_finish_eval + +# Take the output of nm and produce a listing of raw symbols and C names. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe + +# Transform the output of nm in a proper C declaration +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl + +# Transform the output of nm in a C name address pair +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address + +# This is the shared library runtime path variable. +runpath_var=$runpath_var + +# This is the shared library path variable. +shlibpath_var=$shlibpath_var + +# Is shlibpath searched before the hard-coded library search path? +shlibpath_overrides_runpath=$shlibpath_overrides_runpath + +# How to hardcode a shared library path into an executable. +hardcode_action=$hardcode_action_GCJ + +# Whether we should hardcode library paths into libraries. +hardcode_into_libs=$hardcode_into_libs + +# Flag to hardcode \$libdir into a binary during linking. +# This must work even if \$libdir does not exist. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ + +# If ld is used when linking, flag to hardcode \$libdir into +# a binary during linking. This must work even if \$libdir does +# not exist. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ + +# Whether we need a single -rpath flag with a separated argument. +hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ + +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the +# resulting binary. +hardcode_direct=$hardcode_direct_GCJ + +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the +# resulting binary. +hardcode_minus_L=$hardcode_minus_L_GCJ + +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into +# the resulting binary. +hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ + +# Set to yes if building a shared library automatically hardcodes DIR into the library +# and all subsequent libraries and executables linked against it. +hardcode_automatic=$hardcode_automatic_GCJ + +# Variables whose values should be saved in libtool wrapper scripts and +# restored at relink time. +variables_saved_for_relink="$variables_saved_for_relink" + +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=$link_all_deplibs_GCJ + +# Compile-time system search path for libraries +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec + +# Run-time system search path for libraries +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec + +# Fix the shell variable \$srcfile for the compiler. +fix_srcfile_path="$fix_srcfile_path_GCJ" + +# Set to yes if exported symbols are required. +always_export_symbols=$always_export_symbols_GCJ + +# The commands to list exported symbols. +export_symbols_cmds=$lt_export_symbols_cmds_GCJ + +# The commands to extract the exported symbol list from a shared archive. +extract_expsyms_cmds=$lt_extract_expsyms_cmds + +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms=$lt_exclude_expsyms_GCJ + +# Symbols that must always be exported. +include_expsyms=$lt_include_expsyms_GCJ + +# ### END LIBTOOL TAG CONFIG: $tagname + +__EOF__ + + +else + # If there is no Makefile yet, we rely on a make rule to execute + # `config.status --recheck' to rerun these tests and create the + # libtool script then. + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` + if test -f "$ltmain_in"; then + test -f Makefile && make "$ltmain" + fi +fi + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +CC="$lt_save_CC" + + else + tagname="" + fi + ;; + + RC) + + + +# Source file extension for RC test sources. +ac_ext=rc + +# Object file extension for compiled RC test sources. +objext=o +objext_RC=$objext + +# Code to be used in simple compile tests +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' + +# Code to be used in simple link tests +lt_simple_link_test_code="$lt_simple_compile_test_code" + +# ltmain only uses $CC for tagged configurations so make sure $CC is set. + +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} + +# Allow CC to be a program name with arguments. +compiler=$CC + + +# save warnings/boilerplate of simple test code +ac_outfile=conftest.$ac_objext +printf "$lt_simple_compile_test_code" >conftest.$ac_ext +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err +_lt_compiler_boilerplate=`cat conftest.err` +$rm conftest* + +ac_outfile=conftest.$ac_objext +printf "$lt_simple_link_test_code" >conftest.$ac_ext +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err +_lt_linker_boilerplate=`cat conftest.err` +$rm conftest* + + +# Allow CC to be a program name with arguments. +lt_save_CC="$CC" +CC=${RC-"windres"} +compiler=$CC +compiler_RC=$CC +for cc_temp in $compiler""; do + case $cc_temp in + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` + +lt_cv_prog_compiler_c_o_RC=yes + +# The else clause should only fire when bootstrapping the +# libtool distribution, otherwise you forgot to ship ltmain.sh +# with your package, and you will get complaints that there are +# no rules to generate ltmain.sh. +if test -f "$ltmain"; then + # See if we are running on zsh, and set the options which allow our commands through + # without removal of \ escapes. + if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST + fi + # Now quote all the things that may contain metacharacters while being + # careful not to overquote the AC_SUBSTed values. We take copies of the + # variables and quote the copies for generation of the libtool script. + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ + SED SHELL STRIP \ + libname_spec library_names_spec soname_spec extract_expsyms_cmds \ + old_striplib striplib file_magic_cmd finish_cmds finish_eval \ + deplibs_check_method reload_flag reload_cmds need_locks \ + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ + lt_cv_sys_global_symbol_to_c_name_address \ + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ + old_postinstall_cmds old_postuninstall_cmds \ + compiler_RC \ + CC_RC \ + LD_RC \ + lt_prog_compiler_wl_RC \ + lt_prog_compiler_pic_RC \ + lt_prog_compiler_static_RC \ + lt_prog_compiler_no_builtin_flag_RC \ + export_dynamic_flag_spec_RC \ + thread_safe_flag_spec_RC \ + whole_archive_flag_spec_RC \ + enable_shared_with_static_runtimes_RC \ + old_archive_cmds_RC \ + old_archive_from_new_cmds_RC \ + predep_objects_RC \ + postdep_objects_RC \ + predeps_RC \ + postdeps_RC \ + compiler_lib_search_path_RC \ + archive_cmds_RC \ + archive_expsym_cmds_RC \ + postinstall_cmds_RC \ + postuninstall_cmds_RC \ + old_archive_from_expsyms_cmds_RC \ + allow_undefined_flag_RC \ + no_undefined_flag_RC \ + export_symbols_cmds_RC \ + hardcode_libdir_flag_spec_RC \ + hardcode_libdir_flag_spec_ld_RC \ + hardcode_libdir_separator_RC \ + hardcode_automatic_RC \ + module_cmds_RC \ + module_expsym_cmds_RC \ + lt_cv_prog_compiler_c_o_RC \ + exclude_expsyms_RC \ + include_expsyms_RC; do + + case $var in + old_archive_cmds_RC | \ + old_archive_from_new_cmds_RC | \ + archive_cmds_RC | \ + archive_expsym_cmds_RC | \ + module_cmds_RC | \ + module_expsym_cmds_RC | \ + old_archive_from_expsyms_cmds_RC | \ + export_symbols_cmds_RC | \ + extract_expsyms_cmds | reload_cmds | finish_cmds | \ + postinstall_cmds | postuninstall_cmds | \ + old_postinstall_cmds | old_postuninstall_cmds | \ + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) + # Double-quote double-evaled strings. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" + ;; + *) + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" + ;; + esac + done + + case $lt_echo in + *'\$0 --fallback-echo"') + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` + ;; + esac + +cfgfile="$ofile" + + cat <<__EOF__ >> "$cfgfile" +# ### BEGIN LIBTOOL TAG CONFIG: $tagname + +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: + +# Shell to use when invoking shell scripts. +SHELL=$lt_SHELL + +# Whether or not to build shared libraries. +build_libtool_libs=$enable_shared + +# Whether or not to build static libraries. +build_old_libs=$enable_static + +# Whether or not to add -lc for building shared libraries. +build_libtool_need_lc=$archive_cmds_need_lc_RC + +# Whether or not to disallow shared libs when runtime libs are static +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC + +# Whether or not to optimize for fast installation. +fast_install=$enable_fast_install + +# The host system. +host_alias=$host_alias +host=$host +host_os=$host_os + +# The build system. +build_alias=$build_alias +build=$build +build_os=$build_os + +# An echo program that does not interpret backslashes. +echo=$lt_echo + +# The archiver. +AR=$lt_AR +AR_FLAGS=$lt_AR_FLAGS + +# A C compiler. +LTCC=$lt_LTCC + +# A language-specific compiler. +CC=$lt_compiler_RC + +# Is the compiler the GNU C compiler? +with_gcc=$GCC_RC + +# An ERE matcher. +EGREP=$lt_EGREP + +# The linker used to build libraries. +LD=$lt_LD_RC + +# Whether we need hard or soft links. +LN_S=$lt_LN_S + +# A BSD-compatible nm program. +NM=$lt_NM + +# A symbol stripping program +STRIP=$lt_STRIP + +# Used to examine libraries when file_magic_cmd begins "file" +MAGIC_CMD=$MAGIC_CMD + +# Used on cygwin: DLL creation program. +DLLTOOL="$DLLTOOL" + +# Used on cygwin: object dumper. +OBJDUMP="$OBJDUMP" + +# Used on cygwin: assembler. +AS="$AS" + +# The name of the directory that contains temporary libtool files. +objdir=$objdir + +# How to create reloadable object files. +reload_flag=$lt_reload_flag +reload_cmds=$lt_reload_cmds + +# How to pass a linker flag through the compiler. +wl=$lt_lt_prog_compiler_wl_RC + +# Object file suffix (normally "o"). +objext="$ac_objext" + +# Old archive suffix (normally "a"). +libext="$libext" + +# Shared library suffix (normally ".so"). +shrext_cmds='$shrext_cmds' + +# Executable file suffix (normally ""). +exeext="$exeext" + +# Additional compiler flags for building library objects. +pic_flag=$lt_lt_prog_compiler_pic_RC +pic_mode=$pic_mode + +# What is the maximum length of a command? +max_cmd_len=$lt_cv_sys_max_cmd_len + +# Does compiler simultaneously support -c and -o options? +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC + +# Must we lock files when doing compilation? +need_locks=$lt_need_locks + +# Do we need the lib prefix for modules? +need_lib_prefix=$need_lib_prefix + +# Do we need a version for libraries? +need_version=$need_version + +# Whether dlopen is supported. +dlopen_support=$enable_dlopen + +# Whether dlopen of programs is supported. +dlopen_self=$enable_dlopen_self + +# Whether dlopen of statically linked programs is supported. +dlopen_self_static=$enable_dlopen_self_static + +# Compiler flag to prevent dynamic linking. +link_static_flag=$lt_lt_prog_compiler_static_RC + +# Compiler flag to turn off builtin functions. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC + +# Compiler flag to allow reflexive dlopens. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC + +# Compiler flag to generate shared objects directly from archives. +whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC + +# Compiler flag to generate thread-safe objects. +thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC + +# Library versioning type. +version_type=$version_type + +# Format of library name prefix. +libname_spec=$lt_libname_spec + +# List of archive names. First name is the real one, the rest are links. +# The last name is the one that the linker finds with -lNAME. +library_names_spec=$lt_library_names_spec + +# The coded name of the library, if different from the real name. +soname_spec=$lt_soname_spec + +# Commands used to build and install an old-style archive. +RANLIB=$lt_RANLIB +old_archive_cmds=$lt_old_archive_cmds_RC +old_postinstall_cmds=$lt_old_postinstall_cmds +old_postuninstall_cmds=$lt_old_postuninstall_cmds + +# Create an old-style archive from a shared archive. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC + +# Create a temporary old-style archive to link instead of a shared archive. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC + +# Commands used to build and install a shared archive. +archive_cmds=$lt_archive_cmds_RC +archive_expsym_cmds=$lt_archive_expsym_cmds_RC +postinstall_cmds=$lt_postinstall_cmds +postuninstall_cmds=$lt_postuninstall_cmds + +# Commands used to build a loadable module (assumed same as above if empty) +module_cmds=$lt_module_cmds_RC +module_expsym_cmds=$lt_module_expsym_cmds_RC + +# Commands to strip libraries. +old_striplib=$lt_old_striplib +striplib=$lt_striplib + +# Dependencies to place before the objects being linked to create a +# shared library. +predep_objects=$lt_predep_objects_RC + +# Dependencies to place after the objects being linked to create a +# shared library. +postdep_objects=$lt_postdep_objects_RC + +# Dependencies to place before the objects being linked to create a +# shared library. +predeps=$lt_predeps_RC + +# Dependencies to place after the objects being linked to create a +# shared library. +postdeps=$lt_postdeps_RC + +# The library search path used internally by the compiler when linking +# a shared library. +compiler_lib_search_path=$lt_compiler_lib_search_path_RC + +# Method to check whether dependent libraries are shared objects. +deplibs_check_method=$lt_deplibs_check_method + +# Command to use when deplibs_check_method == file_magic. +file_magic_cmd=$lt_file_magic_cmd + +# Flag that allows shared libraries with undefined symbols to be built. +allow_undefined_flag=$lt_allow_undefined_flag_RC + +# Flag that forces no undefined symbols. +no_undefined_flag=$lt_no_undefined_flag_RC + +# Commands used to finish a libtool library installation in a directory. +finish_cmds=$lt_finish_cmds + +# Same as above, but a single script fragment to be evaled but not shown. +finish_eval=$lt_finish_eval + +# Take the output of nm and produce a listing of raw symbols and C names. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe + +# Transform the output of nm in a proper C declaration +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl + +# Transform the output of nm in a C name address pair +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address + +# This is the shared library runtime path variable. +runpath_var=$runpath_var + +# This is the shared library path variable. +shlibpath_var=$shlibpath_var + +# Is shlibpath searched before the hard-coded library search path? +shlibpath_overrides_runpath=$shlibpath_overrides_runpath + +# How to hardcode a shared library path into an executable. +hardcode_action=$hardcode_action_RC + +# Whether we should hardcode library paths into libraries. +hardcode_into_libs=$hardcode_into_libs + +# Flag to hardcode \$libdir into a binary during linking. +# This must work even if \$libdir does not exist. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC + +# If ld is used when linking, flag to hardcode \$libdir into +# a binary during linking. This must work even if \$libdir does +# not exist. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC + +# Whether we need a single -rpath flag with a separated argument. +hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC + +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the +# resulting binary. +hardcode_direct=$hardcode_direct_RC + +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the +# resulting binary. +hardcode_minus_L=$hardcode_minus_L_RC + +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into +# the resulting binary. +hardcode_shlibpath_var=$hardcode_shlibpath_var_RC + +# Set to yes if building a shared library automatically hardcodes DIR into the library +# and all subsequent libraries and executables linked against it. +hardcode_automatic=$hardcode_automatic_RC + +# Variables whose values should be saved in libtool wrapper scripts and +# restored at relink time. +variables_saved_for_relink="$variables_saved_for_relink" + +# Whether libtool must link a program against all its dependency libraries. +link_all_deplibs=$link_all_deplibs_RC + +# Compile-time system search path for libraries +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec + +# Run-time system search path for libraries +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec + +# Fix the shell variable \$srcfile for the compiler. +fix_srcfile_path="$fix_srcfile_path_RC" + +# Set to yes if exported symbols are required. +always_export_symbols=$always_export_symbols_RC + +# The commands to list exported symbols. +export_symbols_cmds=$lt_export_symbols_cmds_RC + +# The commands to extract the exported symbol list from a shared archive. +extract_expsyms_cmds=$lt_extract_expsyms_cmds + +# Symbols that should not be listed in the preloaded symbols. +exclude_expsyms=$lt_exclude_expsyms_RC + +# Symbols that must always be exported. +include_expsyms=$lt_include_expsyms_RC + +# ### END LIBTOOL TAG CONFIG: $tagname + +__EOF__ + + +else + # If there is no Makefile yet, we rely on a make rule to execute + # `config.status --recheck' to rerun these tests and create the + # libtool script then. + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` + if test -f "$ltmain_in"; then + test -f Makefile && make "$ltmain" + fi +fi + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +CC="$lt_save_CC" + + ;; + + *) + { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 +echo "$as_me: error: Unsupported tag name: $tagname" >&2;} + { (exit 1); exit 1; }; } + ;; + esac + + # Append the new tag name to the list of available tags. + if test -n "$tagname" ; then + available_tags="$available_tags $tagname" + fi + fi + done + IFS="$lt_save_ifs" + + # Now substitute the updated list of available tags. + if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then + mv "${ofile}T" "$ofile" + chmod +x "$ofile" + else + rm -f "${ofile}T" + { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 +echo "$as_me: error: unable to update list of available tagged configurations." >&2;} + { (exit 1); exit 1; }; } + fi +fi @@ -8062,6 +19639,24 @@ LIBTOOL='$(SHELL) $(top_builddir)/libtool' # Prevent multiple expansion + + + + + + + + + + + + + + + + + + ac_ext=c ac_cpp='$CPP $CPPFLAGS' @@ -8833,7 +20428,9 @@ else : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c - : > sub/conftst$i.h + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with + # Solaris 8's {/usr,}/bin/sh. + touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf @@ -8861,9 +20458,14 @@ else grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings - # (even with -Werror). So we grep stderr for any message - # that says an option was ignored. - if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CC_dependencies_compiler_type=$depmode break fi @@ -8997,14 +20599,13 @@ if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then CC="$am_aux_dir/compile $CC" fi - - echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5 -echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6 -if test "${ac_cv_lib_cposix_strerror+set}" = set; then +echo "$as_me:$LINENO: checking for library containing strerror" >&5 +echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 +if test "${ac_cv_search_strerror+set}" = set; then echo $ECHO_N "(cached) $ECHO_C" >&6 else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lcposix $LIBS" + ac_func_search_save_LIBS=$LIBS +ac_cv_search_strerror=no cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF @@ -9049,24 +20650,80 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then - ac_cv_lib_cposix_strerror=yes + ac_cv_search_strerror="none required" else echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 -ac_cv_lib_cposix_strerror=no fi rm -f conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5 -echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6 -if test $ac_cv_lib_cposix_strerror = yes; then - LIBS="$LIBS -lcposix" -fi +if test "$ac_cv_search_strerror" = no; then + for ac_lib in cposix; do + LIBS="-l$ac_lib $ac_func_search_save_LIBS" + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char strerror (); +int +main () +{ +strerror (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { ac_try='test -z "$ac_c_werror_flag" + || test ! -s conftest.err' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; } && + { ac_try='test -s conftest$ac_exeext' + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 + (eval $ac_try) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); }; }; then + ac_cv_search_strerror="-l$ac_lib" +break +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + done +fi +LIBS=$ac_func_search_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 +echo "${ECHO_T}$ac_cv_search_strerror" >&6 +if test "$ac_cv_search_strerror" != no; then + test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" + +fi ac_ext=cc @@ -9465,7 +21122,9 @@ else : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c - : > sub/conftst$i.h + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with + # Solaris 8's {/usr,}/bin/sh. + touch sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf @@ -9493,9 +21152,14 @@ else grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings - # (even with -Werror). So we grep stderr for any message - # that says an option was ignored. - if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else + # or remarks (even with -Werror). So we grep stderr for any message + # that says an option was ignored or not supported. + # When given -MP, icc 7.0 and 7.1 complain thusly: + # icc: Command line warning: ignoring option '-M'; no argument required + # The diagnosis changed in icc 8.0: + # icc: Command line remark: option '-MP' not supported + if (grep 'ignoring option' conftest.err || + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CXX_dependencies_compiler_type=$depmode break fi @@ -10662,7 +22326,6 @@ ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu - cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */ _ACEOF @@ -17476,6 +29139,13 @@ echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&2;} { (exit 1); exit 1; }; } fi +if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then + { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. +Usually this means the macro was only invoked conditionally." >&5 +echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. +Usually this means the macro was only invoked conditionally." >&2;} + { (exit 1); exit 1; }; } +fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." >&5 @@ -17810,8 +29480,8 @@ _ASBOX } >&5 cat >&5 <<_CSEOF -This file was extended by apt $as_me 0.5.15cnc6, which was -generated by GNU Autoconf 2.58. Invocation command line was +This file was extended by apt $as_me 0.5.15lorg2, which was +generated by GNU Autoconf 2.59. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS @@ -17873,8 +29543,8 @@ _ACEOF cat >>$CONFIG_STATUS <<_ACEOF ac_cs_version="\\ -apt config.status 0.5.15cnc6 -configured by $0, generated by GNU Autoconf 2.58, +apt config.status 0.5.15lorg2 +configured by $0, generated by GNU Autoconf 2.59, with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" Copyright (C) 2003 Free Software Foundation, Inc. @@ -18109,14 +29779,17 @@ s,@AUTOCONF@,$AUTOCONF,;t t s,@AUTOMAKE@,$AUTOMAKE,;t t s,@AUTOHEADER@,$AUTOHEADER,;t t s,@MAKEINFO@,$MAKEINFO,;t t -s,@AMTAR@,$AMTAR,;t t s,@install_sh@,$install_sh,;t t s,@STRIP@,$STRIP,;t t s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t +s,@mkdir_p@,$mkdir_p,;t t s,@AWK@,$AWK,;t t s,@SET_MAKE@,$SET_MAKE,;t t s,@am__leading_dot@,$am__leading_dot,;t t +s,@AMTAR@,$AMTAR,;t t +s,@am__tar@,$am__tar,;t t +s,@am__untar@,$am__untar,;t t s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t s,@MAINT@,$MAINT,;t t @@ -18136,19 +29809,25 @@ s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t s,@CCDEPMODE@,$CCDEPMODE,;t t s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t +s,@EGREP@,$EGREP,;t t s,@LN_S@,$LN_S,;t t s,@ECHO@,$ECHO,;t t +s,@AR@,$AR,;t t +s,@ac_ct_AR@,$ac_ct_AR,;t t s,@RANLIB@,$RANLIB,;t t s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t s,@CPP@,$CPP,;t t -s,@EGREP@,$EGREP,;t t -s,@LIBTOOL@,$LIBTOOL,;t t s,@CXX@,$CXX,;t t s,@CXXFLAGS@,$CXXFLAGS,;t t s,@ac_ct_CXX@,$ac_ct_CXX,;t t s,@CXXDEPMODE@,$CXXDEPMODE,;t t s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t +s,@CXXCPP@,$CXXCPP,;t t +s,@F77@,$F77,;t t +s,@FFLAGS@,$FFLAGS,;t t +s,@ac_ct_F77@,$ac_ct_F77,;t t +s,@LIBTOOL@,$LIBTOOL,;t t s,@SOCKETLIBS@,$SOCKETLIBS,;t t s,@PTHREADLIB@,$PTHREADLIB,;t t s,@RPM_PATH@,$RPM_PATH,;t t @@ -18317,40 +29996,43 @@ case $srcdir in ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_builddir$srcdir ;; esac -case "$ac_dir" in -.) ac_abs_builddir=$ac_builddir;; + +# Do not use `cd foo && pwd` to compute absolute paths, because +# the directories may not exist. +case `pwd` in +.) ac_abs_builddir="$ac_dir";; *) - case $ac_builddir in - .) ac_abs_builddir="$ac_dir";; - [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;; - *) ac_abs_builddir="$ac_dir"/$ac_builddir;; + case "$ac_dir" in + .) ac_abs_builddir=`pwd`;; + [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; + *) ac_abs_builddir=`pwd`/"$ac_dir";; esac;; esac -case "$ac_dir" in +case $ac_abs_builddir in .) ac_abs_top_builddir=${ac_top_builddir}.;; *) case ${ac_top_builddir}. in - .) ac_abs_top_builddir="$ac_dir";; + .) ac_abs_top_builddir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; - *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;; + *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; esac;; esac -case "$ac_dir" in +case $ac_abs_builddir in .) ac_abs_srcdir=$ac_srcdir;; *) case $ac_srcdir in - .) ac_abs_srcdir="$ac_dir";; + .) ac_abs_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; - *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;; + *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; esac;; esac -case "$ac_dir" in +case $ac_abs_builddir in .) ac_abs_top_srcdir=$ac_top_srcdir;; *) case $ac_top_srcdir in - .) ac_abs_top_srcdir="$ac_dir";; + .) ac_abs_top_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; - *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;; + *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; esac;; esac @@ -18747,40 +30429,43 @@ case $srcdir in ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_builddir$srcdir ;; esac -case "$ac_dir" in -.) ac_abs_builddir=$ac_builddir;; + +# Do not use `cd foo && pwd` to compute absolute paths, because +# the directories may not exist. +case `pwd` in +.) ac_abs_builddir="$ac_dir";; *) - case $ac_builddir in - .) ac_abs_builddir="$ac_dir";; - [\\/]* | ?:[\\/]* ) ac_abs_builddir=$ac_builddir;; - *) ac_abs_builddir="$ac_dir"/$ac_builddir;; + case "$ac_dir" in + .) ac_abs_builddir=`pwd`;; + [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; + *) ac_abs_builddir=`pwd`/"$ac_dir";; esac;; esac -case "$ac_dir" in +case $ac_abs_builddir in .) ac_abs_top_builddir=${ac_top_builddir}.;; *) case ${ac_top_builddir}. in - .) ac_abs_top_builddir="$ac_dir";; + .) ac_abs_top_builddir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; - *) ac_abs_top_builddir="$ac_dir"/${ac_top_builddir}.;; + *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; esac;; esac -case "$ac_dir" in +case $ac_abs_builddir in .) ac_abs_srcdir=$ac_srcdir;; *) case $ac_srcdir in - .) ac_abs_srcdir="$ac_dir";; + .) ac_abs_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; - *) ac_abs_srcdir="$ac_dir"/$ac_srcdir;; + *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; esac;; esac -case "$ac_dir" in +case $ac_abs_builddir in .) ac_abs_top_srcdir=$ac_top_srcdir;; *) case $ac_top_srcdir in - .) ac_abs_top_srcdir="$ac_dir";; + .) ac_abs_top_srcdir=$ac_abs_builddir;; [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; - *) ac_abs_top_srcdir="$ac_dir"/$ac_top_srcdir;; + *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; esac;; esac @@ -18813,27 +30498,21 @@ echo X"$mf" | else continue fi - grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue - # Extract the definition of DEP_FILES from the Makefile without - # running `make'. - DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` + # Extract the definition of DEPDIR, am__include, and am__quote + # from the Makefile without running `make'. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue + am__include=`sed -n 's/^am__include = //p' < "$mf"` + test -z "am__include" && continue + am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # When using ansi2knr, U may be empty or an underscore; expand it - U=`sed -n -e '/^U = / s///p' < "$mf"` - test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" - # We invoke sed twice because it is the simplest approach to - # changing $(DEPDIR) to its actual value in the expansion. - for file in `sed -n -e ' - /^DEP_FILES = .*\\\\$/ { - s/^DEP_FILES = // - :loop - s/\\\\$// - p - n - /\\\\$/ b loop - p - } - /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ + U=`sed -n 's/^U = //p' < "$mf"` + # Find all dependency output files, they are included files with + # $(DEPDIR) in their names. We invoke sed twice because it is the + # simplest approach to changing $(DEPDIR) to its actual value in the + # expansion. + for file in `sed -n " + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue diff --git a/apt/configure.in b/apt/configure.in index 3e739dd..00366c5 100644 --- a/apt/configure.in +++ b/apt/configure.in @@ -1,7 +1,7 @@ dnl Process this file with autoconf to produce a configure script. AC_PREREQ(2.54) -AC_INIT([apt],[0.5.15cnc6]) +AC_INIT([apt],[0.5.15lorg2]) dnl Check the archs, we want the target type. AC_CONFIG_AUX_DIR([buildlib]) AC_CANONICAL_HOST diff --git a/apt/contrib/apt-files/README b/apt/contrib/apt-files/README index 6d4c8c9..181a298 100644 --- a/apt/contrib/apt-files/README +++ b/apt/contrib/apt-files/README @@ -40,7 +40,7 @@ After you created the database, you can install the plugin putting these files in the following directories: /etc/apt/apt.conf.d/apt-files.conf - /usr/lib/apt/scripts/apt-files.lua + /usr/share/apt/scripts/apt-files.lua /var/state/apt/Contents.gz Bingo! It should be working. ;-) diff --git a/apt/contrib/apt-groupinstall/README b/apt/contrib/apt-groupinstall/README index 4c9057a..386a76b 100644 --- a/apt/contrib/apt-groupinstall/README +++ b/apt/contrib/apt-groupinstall/README @@ -1,20 +1,64 @@ -Lua script to allow installing and viewing package groups as defined in -comps.xml found in RHL 8.0, 9 and Fedora Core 1. +Lua script to allow installing and viewing package groups, determined by +a backend script to allow it to work on arbitrary group-metadata formats. This script must be plugged into the following APT script slots: - Scripts::AptGet::Command - Scripts::AptCache::Command - Scripts::AptGet::Help::Command - Scripts::AptCache::Help::Command + Scripts::AptGet::Command:: + Scripts::AptCache::Command:: + Scripts::AptGet::Help::Command:: + Scripts::AptCache::Help::Command:: + +The backend script name must be specified with the configuration +item Scripts::Groupinstall::Backend, the path is relative to the generic +scripts directory specified by Dir::Bin::scripts. + +Additional configuration options which may or may not have any meaning to +the backend are: + Scripts::Groupinstall::Recursive (recursively process groups) + Scripts::Groupinstall::Show-Hidden (show normally hidden groups) + Scripts::Groupinstall::All-Packages (install optional packages as well) + Scripts::Groupinstall::DataPath (specify a path to group metadata) Usage: - apt-cache showgroups - show all known groups - apt-cache showgroup - show description and contents of group - apt-get groupinstall - install all packages belonging to a group - apt-get groupremove - remove all packages belonging to a group + apt-cache groupnames - show all known groups + apt-cache showgroup - show description and contents of group(s) + apt-get groupinstall - install all packages belonging to a group(s) + apt-get groupremove - remove all packages belonging to a group(s) -Known to work in RHL 8.0, 9 and Fedora Core 1. Requires python, comps and -rhpl packages to be installed. +About the backend: -Licensed under the GPL, by pmatilai@welho.com / 2003 +The backend is also compatible with Synaptic's task-support (new as of +synaptic-0.53), provided that you set Synaptic::taskHelperProg configuration +item to whatever the path is to your backend script/program. + +The supplied groupinstall-backend-comps.py is known to work in RHL 8.0, 9, +RHEL 3 and Fedora Core 1 and 2. Requires python, comps and +rhpl packages to be installed. + +There's also a backend for SuSe called groupinstall-backend-suse by +Richard Bos which should work on any recent SuSe system with Yast. + +Groupinstall can be made to work on any system where package group +data is available in some parseable format. You'll just need to write your +own backend for it, providing the following three operations + +List all available groups: + --list-tasks +Show contents of given groups in a human-friendly format: + --task-desc [--task-desc ...] +List packages belonging to given groups, one package at a time (this is not +a user visible operation but is used internally by the script to determine +what packages to install/remove in groupinstall and groupremove operations) + --task-packages [--task-packages ...] + +Additionally the backend must be capable of handling the following options +passed in before the actual groupnames, even if unimplemented (some options +might not be relevant to a given system): +-h (show hidden groups) +-a (show/install/remove all packages beloging to group, not just default) +-r (recursively process groups) +-p (pass in an arbitrary data path for the group metadata) +-t (show "terminal friendly" output instead of the way synaptic wants + the output formatted) + +Licensed under the GPL, by pmatilai@welho.com / 2003-2004 diff --git a/apt/contrib/apt-groupinstall/apt-groupinstall.conf b/apt/contrib/apt-groupinstall/apt-groupinstall.conf index 7cd4a5d..7912985 100644 --- a/apt/contrib/apt-groupinstall/apt-groupinstall.conf +++ b/apt/contrib/apt-groupinstall/apt-groupinstall.conf @@ -2,3 +2,16 @@ Scripts::AptGet::Command:: "apt-groupinstall.lua"; Scripts::AptCache::Command:: "apt-groupinstall.lua"; Scripts::AptCache::Help::Command:: "apt-groupinstall.lua"; Scripts::AptGet::Help::Command:: "apt-groupinstall.lua"; + +Scripts::Groupinstall::Recursive "false"; +Scripts::Groupinstall::Show-Hidden "false"; +Scripts::Groupinstall::All-Packages "false"; + +// For RHEL/FC systems +Scripts::Groupinstall::Backend "groupinstall-backend-comps.py"; +Scripts::Groupinstall::DataPath "/usr/share/comps/i386/comps.xml"; +Synaptic::taskHelperProg "/usr/share/apt/scripts/groupinstall-backend-comps.py"; + +// For Suse systems +//Scripts::Groupinstall::Backend "groupinstall-backend-suse"; +//Synaptic::taskHelperProg "/usr/lib/apt/scripts/groupinstall-backend-suse"; diff --git a/apt/contrib/apt-groupinstall/apt-groupinstall.lua b/apt/contrib/apt-groupinstall/apt-groupinstall.lua index 49e2ad0..ae0ad0e 100644 --- a/apt/contrib/apt-groupinstall/apt-groupinstall.lua +++ b/apt/contrib/apt-groupinstall/apt-groupinstall.lua @@ -4,31 +4,48 @@ -- Scripts::AptGet::Command and Scripts::AptCache::Command -- -helper = confget("Dir::Bin::scripts/f").."/apt-groupinstall.py" +helper = confget("Dir::Bin::scripts/f").."/"..confget("Scripts::Groupinstall::Backend") +helperopts = "-t" +if confget("Scripts::Groupinstall::Recursive", "false") == "true" then + helperopts = helperopts.." -r" +end +if confget("Scripts::Groupinstall::Show-Hidden", "false") == "true" then + helperopts = helperopts.." -h" +end +if confget("Scripts::Groupinstall::All-Packages", "false") == "true" then + helperopts = helperopts.." -a" +end +if confexists("Scripts::Groupinstall::DataPath") then + helperopts = helperopts.." -p "..confget("Scripts::Groupinstall::DataPath") +end if script_slot == "Scripts::AptCache::Help::Command" then - print(_(" showgroups - Show available groups")) + print(_(" groupnames - Show available groups")) print(_(" showgroup - Show group contents")) elseif script_slot == "Scripts::AptGet::Help::Command" then print(_(" groupinstall - Install packages in ")) print(_(" groupremove - Remove packages in ")) elseif script_slot == "Scripts::AptCache::Command" then - if command_args[1] == "showgroups" then + if command_args[1] == "groupnames" then command_consume = 1 - os.execute(helper.." showgroups") + os.execute(helper.." "..helperopts.." --list-tasks") elseif command_args[1] == "showgroup" then command_consume=1 - group = command_args[2] - if not group then + numgroups = table.getn(command_args) - 1 + if numgroups < 1 then apterror(_("No groupname given.")) return end - os.execute(helper.." showgroup "..group) + cmd = "" + for i = 1, numgroups do + cmd = cmd.." --task-desc "..command_args[i+1] + end + os.execute(helper.." "..helperopts.." "..cmd) end elseif script_slot == "Scripts::AptGet::Command" then if command_args[1] == "groupinstall" then - oper = markinstall + oper = markinstall command_consume = 1 elseif command_args[1] == "groupremove" then oper = markremove @@ -36,17 +53,27 @@ elseif script_slot == "Scripts::AptGet::Command" then else return end - group = command_args[2] - if not group then - apterror(_("No groupname given.")) - return - end - print(_("Finding packages belonging to group "..group.."...")) - pkgs = io.popen(helper.." grouppkgs "..group) - for name in pkgs:lines() do + + numgroups = table.getn(command_args) - 1 + if numgroups < 1 then + apterror(_("No groupname given.")) + return + end + cmd = "" + group = "" + for i = 1, numgroups do + cmd = cmd.." --task-packages "..command_args[i+1] + group = group.." "..command_args[i+1] + end + + print(_("Finding packages belonging to group(s) "..group.."...")) + pkgs = io.popen(helper.." "..helperopts.." "..cmd) + for name in pkgs:lines() do pkg = pkgfind(name) if pkg then oper(pkg) end end end + +-- vim:ts=4:sw=4 diff --git a/apt/contrib/apt-groupinstall/apt-groupinstall.py b/apt/contrib/apt-groupinstall/apt-groupinstall.py deleted file mode 100644 index f4b6743..0000000 --- a/apt/contrib/apt-groupinstall/apt-groupinstall.py +++ /dev/null @@ -1,63 +0,0 @@ -#!/usr/bin/python - -# apt-groupinstall v0.1 -# groupinstall helper script for apt -# by pmatilai@welho.com - -import rhpl.comps, sys, string - -comps = rhpl.comps.Comps("/usr/share/comps/i386/comps.xml") - - -def usage(): - print "Usage: %s showgroups" % sys.argv[0] - print " %s showgroup " % sys.argv[0] - print " %s grouppkgs " % sys.argv[0] - sys.exit(1) - -def findgroup(grpname): - if comps.groups.has_key(grpname): - return comps.groups[grpname] - for group in comps.groups.values(): - if group.id == grpname: - return group - -def grouppkgs(grpname): - if not findgroup(grpname): - print "No such group: %s" % grpname - return - group = findgroup(grpname) - if group: - for pkg in comps.groups[group.name].packages: - print "%s" % pkg - -def showgroups(): - for group in comps.groups.values(): - print "%s (%s)" % (group.id, group.name) - -def showgroup(grpname): - group = findgroup(grpname) - if not group: - print "No such group: %s" % grpname - return - print "Group: %s" % group.id - print "Description: %s" % group.description - print "Packages: " - for pkg in comps.groups[group.name].packages: - print " %s" % pkg - - -if __name__ == "__main__": - if len(sys.argv) < 2: - usage() - if sys.argv[1] == "showgroups": - showgroups() - elif len(sys.argv) < 3: - usage() - elif sys.argv[1] == "grouppkgs": - grouppkgs(sys.argv[2]) - elif sys.argv[1] == "showgroup": - showgroup(sys.argv[2]) - else: - usage() - diff --git a/apt/contrib/apt-groupinstall/groupinstall-backend-comps.py b/apt/contrib/apt-groupinstall/groupinstall-backend-comps.py new file mode 100644 index 0000000..8f7cfa2 --- /dev/null +++ b/apt/contrib/apt-groupinstall/groupinstall-backend-comps.py @@ -0,0 +1,125 @@ +#!/usr/bin/python + +# apt-groupinstall v0.2 +# groupinstall helper backend for for RHL/RHEL/FC systems +# by pmatilai@welho.com + +import rhpl.comps, sys + +def findgroup(comps, grpname): + if comps.groups.has_key(grpname): + return comps.groups[grpname] + for group in comps.groups.values(): + if group.id == grpname: + return group + +def grouppkgs(comps, grpname, recursive = 0, showall = 0): + group = findgroup(comps, grpname) + pkgs = [] + if group and recursive: + for grp in group.groups: + pkgs += grouppkgs(comps, grp, recursive, showall) + if group and group.packages: + for pkg in group.packages: + type, name = group.packages[pkg] + if not showall and type == "optional": + continue + pkgs.append(pkg) + return pkgs + +def groupnames(comps, showhidden = 0): + if not synaptic: + print "%-40s %s" % ("Group name", "Description") + print "%-40s %s" % ("----------", "-----------") + for group in comps.groups.values(): + if group.packages: + if not showhidden and not group.user_visible: + continue + if synaptic: + print "u %s\t%s" % (group.id, group.name) + else: + print "%-40s %s" % (group.id, group.name) + +def showgroup(comps, grpname, showall = 0): + group = findgroup(comps, grpname) + if not group or not group.packages: + print "No such group: %s" % grpname + return + if not synaptic: + print "Group:\n %s" % group.id + print "Description:\n %s" % group.description + print "Required groups: " + for grp in group.groups: + print " %s" % grp + print "Packages: " + for pkg in grouppkgs(comps, grpname, recursive=0, showall=showall): + print " %s" % pkg + +def usage(): + print "Usage:\n %s [-t] [-p ] [-h] --list-tasks" % sys.argv[0] + print " %s [-t] [-p ] [-a] --task-desc [--task-desc ...]" % sys.argv[0] + print " %s [-t] [-p ] [-a] [-r] --task-packages [--task-packages ...]" % sys.argv[0] + sys.exit(1) + +if __name__ == "__main__": + import getopt + + recursive = 0 + showhidden = 0 + synaptic = 1 + showall = 0 + comps = None + groups = [] + cmd = None + compspath = "/usr/share/comps/i386/comps.xml" + + try: + optlist, args = getopt.getopt(sys.argv[1:], 'arhp:t', + ['task-desc=', 'list-tasks', 'task-packages=']) + except getopt.error: + usage() + + + for opt, arg in optlist: + if opt == '--task-desc': + cmd = "showgroup" + groups.append(arg) + elif opt == '--task-packages': + groups.append(arg) + cmd = "grouppkgs" + elif opt == '--list-tasks': + cmd = "groupnames" + elif opt == '-r': + recursive = 1 + elif opt == '-h': + showhidden = 1 + elif opt == '-a': + showall = 1 + elif opt == '-p': + compspath = arg + elif opt == '-t': + synaptic = 0 + else: + usage() + + if not cmd: usage() + + try: + comps = rhpl.comps.Comps(compspath) + except: + print "Unable to open %s!" % compspath + sys.exit(1) + + if cmd == "groupnames": + groupnames(comps, showhidden) + elif cmd == "grouppkgs": + for grp in groups: + for pkg in grouppkgs(comps, grp, recursive, showall): + print "%s" % pkg + elif cmd == "showgroup": + for grp in groups: + showgroup(comps, grp, showall) + else: + usage() + +# vim:ts=4:sts=4 diff --git a/apt/contrib/apt-groupinstall/groupinstall-backend-suse b/apt/contrib/apt-groupinstall/groupinstall-backend-suse new file mode 100755 index 0000000..9e4c8c5 --- /dev/null +++ b/apt/contrib/apt-groupinstall/groupinstall-backend-suse @@ -0,0 +1,281 @@ +#!/bin/sh +################################################################## +# +# Copyright (C) 2004 R Bos +# +# File: $RCSfile: groupinstall-backend-suse,v $ +# Revision: $Revision: 1.7 $ +# Last change: $Date: 2004/08/18 19:07:42 $ +# +# Send suggestions to: apt4rpm-devel@lists.sourceforge.net +# Homepage: http://apt4rpm.sourceforge.net +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# For a copy of the GNU General Public License, visit +# http://www.gnu.org or write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# +################################################################## + +# This backend is to be used with apt. The latter must be configured +# for the apt options: groupnames, showgroup, groupinstall and groupremove. +PATH=/bin:/usr/bin + +PRGNAME=$(basename $0) + +function get_summary +{ + FILE=$SEL_LOC/$1.sel + if [ -r $FILE ]; then + grep "^=Sum:" $SEL_LOC/$1.sel | cut -d: -f2 | sed 's,^ ,,' + fi +} + +function get_req +{ + FILE=$SEL_LOC/$1.sel + if [ -r $FILE ]; then + awk '{ + if ( $1 == "-Req:" ) prt = "no" + if ( prt == "yes" ) print $1 + if ( $1 == "+Req:" ) prt = "yes" + + }' $FILE + fi +} + +function get_rec +{ + FILE=$SEL_LOC/$1.sel + if [ -r $FILE ]; then + awk '{ + if ( $1 == "-Rec:" ) prt = "no" + if ( prt == "yes" ) print $1 + if ( $1 == "+Rec:" ) prt = "yes" + + }' $FILE + fi +} + +function get_req_and_rec +{ + local GRP + + for GRP in $@; do + FILE=$SEL_LOC/$GRP.sel + if [ -r $FILE ]; then + awk '{ + if ( $1 == "-Req:" || $1 == "-Rec:" ) prt = "no" + if ( prt == "yes" ) print $1 + if ( $1 == "+Req:" || $1 == "+Rec:" ) prt = "yes" + + }' $FILE + fi + done +} + +function get_lang +{ + FILE=$SEL_LOC/$1.sel + if [ -r $FILE ]; then + grep "^+Ins." $FILE | sed s,+Ins.,, | cut -d: -f1 + fi +} + +function get_pkgs +{ + local GRP + + for GRP in $@; do + FILE=$SEL_LOC/$GRP.sel + if [ -r $FILE ]; then + awk '{ + if ( $1 == "-Ins:" ) prt = "no" + if ( prt == "yes" ) print $1 + if ( $1 == "+Ins:" ) prt = "yes" + + }' $FILE + fi + done +} + +function groupnames +{ + # Install location. Selections that have been installed + # are copied to this location. + local INSTALL_LOC=/var/adm/YaST/SelDB + + if [[ "$OPT_SHOWHIDDEN" == "yes" ]]; then + GRPS=$(ls $SEL_LOC/*sel) + else + GRPS=$(grep -l "=Vis: *true" $(grep -l "=Cat: *addon" $SEL_LOC/*sel)) + fi + + GRPS=$(echo "$GRPS" | sed 's,^.*/,,;s,\.sel$,,') + + if [[ "$OPT_TERM_MODE" == "yes" ]]; then + printf "%-18s %s\n" "Group name" "Description" + printf "%-18s %s\n" "-----------" "------------" + fi + + for GRP in $GRPS; do + SUMMARY=$(get_summary $GRP) + if [[ "$OPT_TERM_MODE" == "yes" ]]; then + printf "%-18s %s\n" "$GRP" "$SUMMARY" + else + # IMODE = installation mode + # i = installed, u = uninstalled + if [[ -s $INSTALL_LOC/$GRP.sel ]]; then + IMODE="i" + else + IMODE="u" + fi + + printf "%s %s\t%s\n" "$IMODE" "$GRP" "$SUMMARY" + fi + done +} + +function showgroup +{ + typeset -i NUM + GRPS=$@ + + local GRP + typeset -i NUM + + NUM=1 + for GRP in $GRPS; do + [ $NUM -gt 1 ] && echo + echo "Group: $GRP" + echo "Summary: $(get_summary $GRP)" + LANGS="$(get_lang $GRP)" + if [[ -n "$LANGS" ]]; then + echo "Available languages:" + echo " " $LANGS + fi + REQ=$(get_req $GRP) + if [[ -n "$REQ" ]]; then + echo "Required groups:" + echo "$REQ" | sed 's/^/ /' + fi + REC=$(get_rec $GRP) + if [[ -n "$REC" ]]; then + echo "Recommendend groups:" + echo "$REC" | sed 's/^/ /' + fi + echo "Packages:" + get_pkgs $GRP | sed 's/^/ /' + + NUM=$((NUM + 1)) + done +} + +function involved_groups +{ + ALL_GRPS="$@" + REQUIRED_GRPS="$(get_req_and_rec $ALL_GRPS)" + + ALL_GRPS="$ALL_GRPS $REQUIRED_GRPS" + + # Use a recursive method to find all involved groups. + # NUM is used to prevent a runaway loop. Normally the most + # extensive dependencies are resolved in 5 iterations. + typeset -i NUM=1 + while [[ -n "$REQUIRED_GRPS" && $NUM -lt 7 ]]; do + + unset LOOP_REQS + for GRP in $REQUIRED_GRPS; do + if [[ -z "$LOOP_REQS" ]]; then + LOOP_REQS="$(get_req_and_rec $GRP)" + else + LOOP_REQS="$LOOP_REQS $(get_req_and_rec $GRP)" + fi + done + + ALL_GRPS="$ALL_GRPS $LOOP_REQS" + REQUIRED_GRPS="$LOOP_REQS" + + NUM=$(($NUM + 1)) + done + + echo $ALL_GRPS | tr " " "\n" | sort -u +} + +OPT_TERM_MODE=no + +while [[ $# -gt 0 ]]; do + + case $1 in + -h) + OPT_SHOWHIDDEN=yes + ;; + --list-tasks) + cmd=groupnames + ;; + --task-desc) + cmd=showgroup + OPT_GRPS="$OPT_GRPS $2" + shift + ;; + --task-packages) + cmd=grouppkgs + OPT_GRPS="$OPT_GRPS $2" + shift + ;; + -t) + OPT_TERM_MODE=yes + ;; + -r|-a|-p) + echo "Not supported argument: $1" >&2 + ;; + *) + echo "Incorrect argument: $1" >&2 + exit 1 + ;; + esac + + shift +done + +# Find the first populated selection directory +# Some more information about the *.sel files directory can be found in +# the suse package: yast2-packagemanager. +# The file is src/inst/InstSrcManager.cc +for DIR in $(ls -d /var/adm/YaST/InstSrcManager/IS_CACHE_0x000000??); do + if ls -l $DIR/DATA/descr/*.sel >/dev/null 2>&1; then + SEL_LOC=$DIR/DATA/descr + break + fi +done + +if [[ -z "$SEL_LOC" ]]; then + echo "$PRGNAME: no selection files found" >&2 + exit 2 +fi + +case $cmd in + + groupnames) + groupnames + ;; + + showgroup) + showgroup $OPT_GRPS + ;; + + grouppkgs) + get_pkgs $(involved_groups $OPT_GRPS) + ;; +esac + + diff --git a/apt/contrib/apt-wrapper/apt b/apt/contrib/apt-wrapper/apt index edb2182..4241971 100644 --- a/apt/contrib/apt-wrapper/apt +++ b/apt/contrib/apt-wrapper/apt @@ -1,397 +1,405 @@ -#!/bin/sh -################################################################## -# -# Copyright (C) 2003 R Bos -# -# File: $RCSfile: apt,v $ -# Revision: $Revision: 1.13 $ -# Last change: $Date: 2004/02/20 19:30:15 $ -# -# Send suggestions to: apt4rpm-devel@lists.sourceforge.net -# Homepage: http://apt4rpm.sourceforge.net -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License -# as published by the Free Software Foundation; either version 2 -# of the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# For a copy of the GNU General Public License, visit -# http://www.gnu.org or write to the Free Software Foundation, Inc., -# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -# -################################################################## - -# It should be possible to show the user which application apt (this tool) -# is dispatching. It can't be done via a command line option as the -# options are passed on to the dispatched application. Therefor an environment -# variable is used. Export APT_VERBOSE in your environment and set it to -# anything, e.g. APT_VERBOSE=1, APT_VERBOSE=true, etc. Apt will than show -# the application that is being dispatched. -[ -z "$APT_VERBOSE" ] && APT_VERBOSE=no - -function usage -{ - ( echo "$SHORTHELP" - echo "Use man $PRGNAME for extended help." - ) >&2 -} - -ARGV="$@" - -PRGNAME=$(basename $0) - -readonly SHORTHELP="Usage: $PRGNAME [options] [apt-rpm options] [packages]" - -while [ $# -gt 0 ]; do - case $1 in - shell|dump) - APTCMD=apt-config - break - ;; - - update|upgrade|install|remove|dist-upgrade|\ - build-dep|clean|autoclean|check|source|moo|script|reinstall) - APTCMD=apt-get - break - ;; - - add|ident) - APTCMD=apt-cdrom - break - ;; - - add|gencaches|showsrc|showpkg|stats|dump|dumpavail|\ - unmet|search|depends|whatdepends|dotty|show|pkgnames|policy|\ - rdepends|xvcg) - APTCMD="apt-cache" - break - ;; - - query) - APTCMD=query - break - ;; - - querytags) - APTCMD=querytags - break - ;; - - list-extras) - APTCMD=list-extras - break - ;; - - -h|--h|--he|--hel|--help) - APTCMD=usage - ;; - - -v|--v|--ve|--ver|--vers|--versi|--version) - APTCMD=version - - # Workaround. apt-config and apt-cache execute the command - # instead of showing the version information only. - DISPLAY_VERSION=yes - ;; - esac - - shift -done - -set -- $ARGV - -if [ -z "$APTCMD" ]; then - - if [ $# -ne 0 ]; then - echo "$PRGNAME: error: no or unrecognized action provided" >&2 - fi - usage - exit 100 -fi - -case $APTCMD in - -apt-get) - - # Command line argument parsing, the allowed arguments (for apt-get) are - # alphabetically listed, keep it this way please. - APTOPT="arch-only,assume-yes,build,compile,config-file:" - APTOPT="$APTOPT,default-release,diff-only,download-only,dry-run,fix-broken" - APTOPT="$APTOPT,fix-missing,force-yes,help,ignore-hold,ignore-missing" - APTOPT="$APTOPT,just-print,list-cleanup,no-act,no-download,no-list-cleanup" - APTOPT="$APTOPT,no-remove,no-upgrade,only-source,option:,print-uris,purge" - APTOPT="$APTOPT,quiet,recon,reinstall,remove,show-upgraded,simulate,tar-only" - APTOPT="$APTOPT,target-release,trivial-only,version,yes" - - # Additional options, provided by this tool - ADDOPT="force-rpm,hold:,sourceslist:,show-rpm-command,test" - - # Note that we use `"$@"' to let each command-line parameter expand to a - # separate word. The quotes around `$@' are essential! - # We need TEMP as the `eval set --' would nuke the return value of getopt. - TEMP=$(getopt --options=bc:dDfhmo:qstuvy --long $ADDOPT,$APTOPT -n $PRGNAME -- "$@") - if [ $? -ne 0 ]; then - echo "Terminating..." >&2 - exit 100 - fi - - # Note the quotes around `$TEMP': they are essential! - eval set -- "$TEMP" - - while true - do - case $1 in - --arch-only) ARG="$ARG $1";; - --assume-yes) ARG="$ARG $1";; - --build|-b) ARG="$ARG $1";; - --checksig) RPM_CHECKSIG=yes;; - --compile) ARG="$ARG $1";; - --config-file|-c) ARG="$ARG $1 $2"; shift;; - -D) ARG="$ARG $1";; - --default-release) ARG="$ARG $1";; - --diff-only) ARG="$ARG $1";; - --download-only|-d) ARG="$ARG $1";; - --dry-run) ARG="$ARG $1";; - --fix-broken|-f) APT_FIXBROKEN=yes;; - --fix-missing|-m) ARG="$ARG $1";; - --force-rpm) RPM_FORCE=yes;; - --force-yes) ARG="$ARG $1";; - --help|-h) ARG="$ARG $1";; - --hold) ARG="$ARG -o rpm::hold::=$2"; shift;; - --ignore-hold) ARG="$ARG $1";; - --ignore-missing) ARG="$ARG $1";; - --just-print) ARG="$ARG $1";; - --list-cleanup) ARG="$ARG $1";; - --no-act) ARG="$ARG $1";; - --no-checksig) RPM_CHECKSIG=no;; - --no-download) ARG="$ARG $1";; - --no-list-cleanup) ARG="$ARG $1";; - --no-remove) ARG="$ARG $1";; - --no-run-post) ARG="-o Scripts::Exec::Post=no $ARG";; - --only-source) ARG="$ARG $1";; - --option|-o) ARG="$ARG $1 $2"; shift;; - --print-uris) ARG="$ARG $1";; - --purge) ARG="$ARG $1";; - --quiet|-q) ARG="$ARG $1";; - --recon) ARG="$ARG $1";; - --reinstall) ARG="$ARG $1";; - --remove) ARG="$ARG $1";; - --run-post) ARG="-o Scripts::Exec::Post=true $ARG";; - --show-rpm-command) RPM_SHOW_CMD=yes;; - --show-upgraded) ARG="$ARG $1";; - --simulate|-s) ARG="$ARG $1";; - --sourceslist) RPM_SRC_LIST=$2; shift;; - --tar-only) ARG="$ARG $1";; - --target-release|-t) ARG="$ARG $1";; - --test) RPM_TEST=yes ;; - --trivial-only) ARG="$ARG $1";; - --version|-v) ARG="$ARG $1";; - --yes|-y) ARG="$ARG $1";; - --) shift; ARG="$ARG $@"; break;; - *) echo "unknow argument \"$1\""; exit 100;; - esac - shift - done - - [ -n "$RPM_CHECKSIG" ] && ARG="-o rpm::checksig=$RPM_CHECKSIG $ARG" - [ -n "$RPM_FORCE" ] && ARG="-o rpm::Install-Options::=--force $ARG" - [ -n "$RPM_TEST" ] && ARG="-o rpm::options::=--test $ARG" - - if [ -n "$RPM_SHOW_CMD" ]; then - - RPM_CMD=/usr/lib/apt/show_rpm_cmd - if [ ! -x $RPM_CMD ]; then - - if [ ! -f $RPM_CMD ]; then - - if [ $(id -u) -eq 0 ]; then - - # It's dirty to do this, using hardcoded - # path and creating an executable on - # the fly... - echo "echo rpm \$@" > $RPM_CMD - chmod +x $RPM_CMD - else - echo "$PRGNAME: error: you need to be root" >&2 - exit 100 - fi - else - ( echo -n "$PRGNAME: error: the file $RPM_CMD " - echo "must be executable for the option:" - echo "--show-rpm-cmd" - ) >&2 - - exit 100 - fi - fi - - # It might be possible to use -o Debug::pkgRPMPM=true, but - # a trial with that, did not show the rpm -Uvh command while - # performing a dist-upgrade involving the removal and installation - # of packages. - ARG="-o RPM::PM=external -o Dir::Bin::rpm=$RPM_CMD $ARG" - fi - - if [ -n "$RPM_SRC_LIST" ]; then - - eval $(apt-config shell ROOT Dir DIR Dir::Etc) - if [ -f $ROOT$DIR$RPM_SRC_LIST ]; then - ARG="-o dir::etc::sourcelist=$RPM_SRC_LIST $ARG" - else - echo "error: the provided sourceslist file does not exist" >&2 - exit 100 - fi - fi - - if [ "$APT_FIXBROKEN" == "yes" ]; then - echo "warning: the argument --fix-broken (-f) is not needed normally." - echo "If you want to use this apt argument, use apt-get directly." - exit 100 - fi - - if [ "$APT_VERBOSE" != "no" ]; then - ( echo "$PRGNAME dispatching: apt-get $ARG" | tr -s " " - echo - ) >&2 - fi - - apt-get $ARG - ;; - -apt-config) - - if [ "$APT_VERBOSE" != "no" ]; then - ( echo "$PRGNAME dispatching: apt-config $ARGV" | tr -s " " - echo - ) >&2 - fi - # Workaround. apt-config executes the action instead of showing - # the version information only. - # e.g. apt-config --version dump, in this example "dump" is the - # command/action. - if [ "$DISPLAY_VERSION" == "yes" ]; then - apt-config --version - else - apt-config $ARGV - fi - ;; - -apt-cache) - - if [ "$APT_VERBOSE" != "no" ]; then - ( echo "$PRGNAME dispatching: apt-cache $ARGV" | tr -s " " - echo - ) >&2 - fi - - # Workaround. apt-cache executes the action instead of showing - # the version information only. - # e.g. apt-cache --version show, in this example "show" is the - # command/action. - if [ "$DISPLAY_VERSION" == "yes" ]; then - apt-cache --version - else - apt-cache $ARGV - fi - ;; - -apt-cdrom) - - if [ "$APT_VERBOSE" != "no" ]; then - ( echo "$PRGNAME dispatching: apt-cdrom $ARGV" | tr -s " " - echo - ) >&2 - fi - apt-cdrom $ARGV - ;; - -list-extras) - # Like yum's list extras functionality. As discussed on: - # http://lwn.net/Articles/60650/ - apt-cache list-extras - ;; - -query) - while [ $# -gt 0 ]; do - case $1 in - -a|--all) - RPM_ARG_ALL=yes - ;; - -q|query) - # -q is supported for rpm users that - # have the habit to execute rpm -q... - ;; - -*) - # The user provided e.g. -i or -l as rpm query argument - RPM_OPT="yes" - break - ;; - *) - if [ -z "$QRYSTR" ]; then - QRYSTR=$1 - else - QRYSTR="$QRYSTR|$1" - fi - ;; - esac - - shift - done - - if [ "$RPM_OPT" == "yes" ]; then - - if [ "$APT_VERBOSE" != "no" ]; then - ( echo "$PRGNAME dispatching: rpm -q $(echo $ARGV | - sed s/query//)" | tr -s " " - echo - ) >&2 - fi - rpm -q $(echo $ARGV | sed s/query//) - else - - if [ "$RPM_ARG_ALL" == "yes" ]; then - - if [ "$APT_VERBOSE" != "no" ]; then - ( echo "$PRGNAME dispatching: rpm -qa | - grep -E ${QRYSTR:-^}" | tr -s " " - echo - ) >&2 - fi - rpm -qa | grep -Ei -- ${QRYSTR:-^} | sort - else - if [ "$APT_VERBOSE" != "no" ]; then - ( echo -n "$PRGNAME dispatching: rpm -q" - echo "$(echo $ARGV | sed s/query//)" | tr -s " " - echo - ) >&2 - fi - rpm -q $(echo $ARGV | sed s/query//) - fi - fi - ;; - -querytags) - - if [ "$APT_VERBOSE" != "no" ]; then - ( echo "$PRGNAME dispatching: rpm --querytags" - echo - ) >&2 - fi - rpm --querytags - ;; -usage) - usage - ;; -version) - echo "The version of this wrapper around the apt tools is: 0.21" - echo - echo "The version of the apt tools is:" - apt-cdrom -v - ;; -esac - +#!/bin/sh +################################################################## +# +# Copyright (C) 2003 R Bos +# +# File: $RCSfile: apt,v $ +# Revision: $Revision: 1.20 $ +# Last change: $Date: 2004/06/24 19:48:38 $ +# +# Send suggestions to: apt4rpm-devel@lists.sourceforge.net +# Homepage: http://apt4rpm.sourceforge.net +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# For a copy of the GNU General Public License, visit +# http://www.gnu.org or write to the Free Software Foundation, Inc., +# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# +################################################################## + +# It should be possible to show the user which application apt (this tool) +# is dispatching. It can't be done via a command line option as the +# options are passed on to the dispatched application. Therefor an environment +# variable is used. Export APT_VERBOSE in your environment and set it to +# anything, e.g. APT_VERBOSE=1, APT_VERBOSE=true, etc. Apt will than show +# the application that is being dispatched. +[ -z "$APT_VERBOSE" ] && APT_VERBOSE=no + +function usage +{ + ( echo "$SHORTHELP" + echo "Use man $PRGNAME for extended help." + ) >&2 +} + +ARGV="$@" + +PRGNAME=$(basename $0) + +readonly SHORTHELP="Usage: $PRGNAME [options] [apt-rpm options] [packages]" + +while [ $# -gt 0 ]; do + case $1 in + shell|dump) + APTCMD=apt-config + break + ;; + + update|upgrade|install|remove|dist-upgrade|\ + build-dep|clean|autoclean|check|source|moo|script|reinstall|\ + groupinstall|groupremove) + APTCMD=apt-get + break + ;; + + add|ident) + APTCMD=apt-cdrom + break + ;; + + add|gencaches|showsrc|showpkg|stats|dump|dumpavail|\ + unmet|search|depends|whatdepends|dotty|show|pkgnames|policy|\ + rdepends|xvcg|showgroup|groupnames) + APTCMD="apt-cache" + break + ;; + + query) + APTCMD=query + break + ;; + + querytags) + APTCMD=querytags + break + ;; + + list-extras) + APTCMD=list-extras + break + ;; + + list-nodeps) + APTCMD=list-nodeps + break + ;; + + -h|--h|--he|--hel|--help) + APTCMD=usage + ;; + + -v|--v|--ve|--ver|--vers|--versi|--version) + APTCMD=version + + # Workaround. apt-config and apt-cache execute the command + # instead of showing the version information only. + DISPLAY_VERSION=yes + ;; + esac + + shift +done + +set -- $ARGV + +if [ -z "$APTCMD" ]; then + + if [ $# -ne 0 ]; then + echo "$PRGNAME: error: no or unrecognized action provided" >&2 + fi + usage + exit 100 +fi + +case $APTCMD in + +apt-get) + + # Command line argument parsing, the allowed arguments (for apt-get) are + # alphabetically listed, keep it this way please. + APTOPT="arch-only,assume-yes,build,compile,config-file:" + APTOPT="$APTOPT,default-release,diff-only,download-only,dry-run,fix-broken" + APTOPT="$APTOPT,fix-missing,force-yes,help,ignore-hold,ignore-missing" + APTOPT="$APTOPT,just-print,list-cleanup,no-act,no-download,no-list-cleanup" + APTOPT="$APTOPT,no-remove,no-upgrade,only-source,option:,print-uris,purge" + APTOPT="$APTOPT,quiet,recon,reinstall,remove,show-upgraded,simulate,tar-only" + APTOPT="$APTOPT,target-release,trivial-only,version,yes" + + # Additional options, provided by this tool + ADDOPT="checksig,force-rpm,hold:,sourceslist:,no-checksig,no-postscript,postscript" + ADDOPT="$ADDOPT,show-rpm-command,test" + + # Note that we use `"$@"' to let each command-line parameter expand to a + # separate word. The quotes around `$@' are essential! + # We need TEMP as the `eval set --' would nuke the return value of getopt. + TEMP=$(getopt --options=bc:dDfhmo:qstuvy --long $ADDOPT,$APTOPT -n $PRGNAME -- "$@") + if [ $? -ne 0 ]; then + echo "Terminating..." >&2 + exit 100 + fi + + # Note the quotes around `$TEMP': they are essential! + eval set -- "$TEMP" + + while true + do + case $1 in + --arch-only) ARG="$ARG $1";; + --assume-yes) ARG="$ARG $1";; + --build|-b) ARG="$ARG $1";; + --checksig) ARG="-o RPM::GPG-Check=true $ARG";; + --compile) ARG="$ARG $1";; + --config-file|-c) ARG="$ARG $1 $2"; shift;; + -D) ARG="$ARG $1";; + --default-release) ARG="$ARG $1";; + --diff-only) ARG="$ARG $1";; + --download-only|-d) ARG="$ARG $1";; + --dry-run) ARG="$ARG $1";; + --fix-broken|-f) APT_FIXBROKEN=yes;; + --fix-missing|-m) ARG="$ARG $1";; + --force-rpm) ARG="-o rpm::Install-Options::=--force $ARG";; + --force-yes) ARG="$ARG $1";; + --help|-h) ARG="$ARG $1";; + --hold) ARG="$ARG -o rpm::hold::=$2"; shift;; + --ignore-hold) ARG="$ARG $1";; + --ignore-missing) ARG="$ARG $1";; + --just-print) ARG="$ARG $1";; + --list-cleanup) ARG="$ARG $1";; + --no-act) ARG="$ARG $1";; + --no-checksig) ARG="-o RPM::GPG-Check=no $ARG";; + --no-download) ARG="$ARG $1";; + --no-list-cleanup) ARG="$ARG $1";; + --no-remove) ARG="$ARG $1";; + --no-postscript) ARG="-o Scripts::Options::RunPostScript=false $ARG";; + --only-source) ARG="$ARG $1";; + --option|-o) ARG="$ARG $1 $2"; shift;; + --postscript) ARG="-o Scripts::Options::RunPostScript=true $ARG";; + --print-uris) ARG="$ARG $1";; + --purge) ARG="$ARG $1";; + --quiet|-q) ARG="$ARG $1";; + --recon) ARG="$ARG $1";; + --reinstall) ARG="$ARG $1";; + --remove) ARG="$ARG $1";; + --show-rpm-command) RPM_SHOW_CMD=yes;; + --show-upgraded) ARG="$ARG $1";; + --simulate|-s) ARG="$ARG $1";; + --sourceslist) RPM_SRC_LIST=$2; shift;; + --tar-only) ARG="$ARG $1";; + --target-release|-t) ARG="$ARG $1";; + --test) ARG="-o rpm::options::=--test $ARG";; + --trivial-only) ARG="$ARG $1";; + --version|-v) ARG="$ARG $1";; + --yes|-y) ARG="$ARG $1";; + --) shift; ARG="$ARG $@"; break;; + *) echo "unknow argument \"$1\""; exit 100;; + esac + shift + done + + if [ -n "$RPM_SHOW_CMD" ]; then + + RPM_CMD=/usr/lib/apt/show_rpm_cmd + if [ ! -x $RPM_CMD ]; then + + if [ ! -f $RPM_CMD ]; then + + if [ $(id -u) -eq 0 ]; then + + # It's dirty to do this, using hardcoded + # path and creating an executable on + # the fly... + echo "echo rpm \$@" > $RPM_CMD + chmod +x $RPM_CMD + else + echo "$PRGNAME: error: you need to be root" >&2 + exit 100 + fi + else + ( echo -n "$PRGNAME: error: the file $RPM_CMD " + echo "must be executable for the option:" + echo "--show-rpm-cmd" + ) >&2 + + exit 100 + fi + fi + + # It might be possible to use -o Debug::pkgRPMPM=true, but + # a trial with that, did not show the rpm -Uvh command while + # performing a dist-upgrade involving the removal and installation + # of packages. + ARG="-o RPM::PM=external -o Dir::Bin::rpm=$RPM_CMD $ARG" + ARG="$ARG -o Scripts::Options::ShowRpmCmd=true" + fi + + if [ -n "$RPM_SRC_LIST" ]; then + + eval $(apt-config shell ROOT Dir DIR Dir::Etc) + if [ -f $ROOT$DIR$RPM_SRC_LIST ]; then + ARG="-o dir::etc::sourcelist=$RPM_SRC_LIST $ARG" + else + echo "error: the provided sourceslist file does not exist" >&2 + exit 100 + fi + fi + + if [ "$APT_FIXBROKEN" == "yes" ]; then + echo "warning: the argument --fix-broken (-f) is not needed normally." + echo "If you want to use this apt argument, use apt-get directly." + exit 100 + fi + + if [ "$APT_VERBOSE" != "no" ]; then + ( echo "$PRGNAME dispatching: apt-get $ARG" | tr -s " " + echo + ) >&2 + fi + + apt-get $ARG + ;; + +apt-config) + + if [ "$APT_VERBOSE" != "no" ]; then + ( echo "$PRGNAME dispatching: apt-config $ARGV" | tr -s " " + echo + ) >&2 + fi + # Workaround. apt-config executes the action instead of showing + # the version information only. + # e.g. apt-config --version dump, in this example "dump" is the + # command/action. + if [ "$DISPLAY_VERSION" == "yes" ]; then + apt-config --version + else + apt-config $ARGV + fi + ;; + +apt-cache) + + if [ "$APT_VERBOSE" != "no" ]; then + ( echo "$PRGNAME dispatching: apt-cache $ARGV" | tr -s " " + echo + ) >&2 + fi + + # Workaround. apt-cache executes the action instead of showing + # the version information only. + # e.g. apt-cache --version show, in this example "show" is the + # command/action. + if [ "$DISPLAY_VERSION" == "yes" ]; then + apt-cache --version + else + apt-cache $ARGV + fi + ;; + +apt-cdrom) + + if [ "$APT_VERBOSE" != "no" ]; then + ( echo "$PRGNAME dispatching: apt-cdrom $ARGV" | tr -s " " + echo + ) >&2 + fi + apt-cdrom $ARGV + ;; + +list-extras) + # Like yum's list extras functionality. As discussed on: + # http://lwn.net/Articles/60650/ + apt-cache list-extras + ;; + +list-nodeps) + apt-cache list-nodeps + ;; + +query) + while [ $# -gt 0 ]; do + case $1 in + -a|--all) + RPM_ARG_ALL=yes + ;; + -q|query) + # -q is supported for rpm users that + # have the habit to execute rpm -q... + ;; + -*) + # The user provided e.g. -i or -l as rpm query argument + RPM_OPT="yes" + break + ;; + *) + if [ -z "$QRYSTR" ]; then + QRYSTR=$1 + else + QRYSTR="$QRYSTR|$1" + fi + ;; + esac + + shift + done + + if [ "$RPM_OPT" == "yes" ]; then + + if [ "$APT_VERBOSE" != "no" ]; then + ( echo "$PRGNAME dispatching: rpm -q $(echo $ARGV | + sed s/query//)" | tr -s " " + echo + ) >&2 + fi + rpm -q $(echo $ARGV | sed s/query//) + else + + if [ "$RPM_ARG_ALL" == "yes" ]; then + + if [ "$APT_VERBOSE" != "no" ]; then + ( echo "$PRGNAME dispatching: rpm -qa | + grep -E ${QRYSTR:-^}" | tr -s " " + echo + ) >&2 + fi + rpm -qa | grep -Ei -- ${QRYSTR:-^} | sort + else + if [ "$APT_VERBOSE" != "no" ]; then + ( echo -n "$PRGNAME dispatching: rpm -q" + echo "$(echo $ARGV | sed s/query//)" | tr -s " " + echo + ) >&2 + fi + rpm -q $(echo $ARGV | sed s/query//) + fi + fi + ;; + +querytags) + + if [ "$APT_VERBOSE" != "no" ]; then + ( echo "$PRGNAME dispatching: rpm --querytags" + echo + ) >&2 + fi + rpm --querytags + ;; +usage) + usage + ;; +version) + echo "The version of this wrapper around the apt tools is: 0.22" + echo + echo "The version of the apt tools is:" + apt-cdrom -v + ;; +esac + diff --git a/apt/contrib/apt-wrapper/apt.1 b/apt/contrib/apt-wrapper/apt.1 index 3fa9f08..c1b38a2 100644 --- a/apt/contrib/apt-wrapper/apt.1 +++ b/apt/contrib/apt-wrapper/apt.1 @@ -1,140 +1,190 @@ -.\"Generated by db2man.xsl. Don't modify this, modify the source. -.de Sh \" Subsection -.br -.if t .Sp -.ne 5 -.PP -\fB\\$1\fR -.PP -.. -.de Sp \" Vertical space (when we can't use .PP) -.if t .sp .5v -.if n .sp -.. -.de Ip \" List item -.br -.ie \\n(.$>=3 .ne \\$3 -.el .ne 3 -.IP "\\$1" \\$2 -.. -.TH "APT" 1 "20 February 2004" "Linux" "" -.SH NAME -apt \- Advanced Package Tool -.SH "SYNOPSIS" -.ad l -.hy 0 -.HP 4 -\fBapt\fR [\fB\fIoptions\fR\fR] [\fB\fIapt\-rpm\ options\fR\fR] [\fB\fIaction\fR\fR] [\fB\fIpackages\fR\fR] -.ad -.hy - -.SH "DESCRIPTION" - -.PP -Apt provides a single command line user interface for the following commands: \fB\fBapt\-get\fR\fR(8), \fB\fBapt\-cache\fR\fR(8), \fB\fBapt\-config\fR\fR(8), \fB\fBapt\-cdrom\fR\fR(8) and the \fBrpm\fR query possibilities\&. Besides the single interface it provides some additional options that are specific to apt in combination with rpm\&. - -.PP -Unless the \fB\-h\fR, \fB\-\-help\fR, \fB\-v\fR, or \fB\-\-version\fR option is given one of the commands mentioned in the ACTIONS section must be present\&. - -.PP -Detailed information about each apt command and its options can be found in the man pages that belong to the dispatched apt applications\&. - -.SH "ACTIONS" - -.PP -A full list of actions that are supported by \fBapt\fR: add, autoclean, build\-dep, check, clean, depends, dist\-upgrade, dotty, dump, dumpavail, gencaches, ident, install, list\-extras, moo, pkgnames, policy, query, querytags, rdepends\&. remove, script, search, show, showpkg, showsrc, source, stats, unmet, update, upgrade, whatdepends, xvcg\&. - -.TP -list\-extras -shows packages not found in any online repositories\&. These are packages downloaded or build and installed locally\&. It's useful to review that list and decide if all those packages are still needed\&. Specifically if the system is used to build packages distributed to other systems\&. It's very important to be aware of all installed non\-standard packages to avoid dependencies that cannot be satisfied from the standard repository\&. - -.PP -The functionality of the remaining actions are provided by other apt tools\&. The actions listed by their respective command: - -.TP -\fBapt\-get\fR -autoclean, build\-dep, check, clean, dist\-upgrade, install, moo, remove, script, source, update, upgrade\&. - -.TP -\fBapt\-cache\fR -add, depends, dotty, dump, dumpavail, gencaches, pkgnames, policy, rdepends\&. search, show, showpkg, showsrc, stats, unmet, whatdepends, xvcg\&. - -.TP -\fBapt\-config\fR -shell, dump\&. - -.TP -\fBapt\-cdrom\fR -add, ident\&. - -.SH "OPTIONS" - -.TP -\fB\-\-hold\fR -puts a package on hold\&. A package on hold won't be upgraded unless overruled with the install action\&. Repeat this option if multiple packages must be kept from upgrading\&. This option uses regular expressions to find the package to be put on hold\&. E\&.g\&. in case the package "at" must be hold, it must be specified as \-\-hold ^at$, if not done like this a package like attr will be put on hold as well\&. In any case it is better to put packages on hold with the rpm::hold variable in the file \fIapt\&.conf\fR! - -.TP -\fB\-\-show\-rpm\-command\fR -Shows the exact rpm command to be performed, during install, upgrade or dist\-upgrade actions\&. The action itself will not be performed\&. - -.TP -\fB\-\-sourceslist\fR -Select the sourceslist file to be used (default is \fI/etc/apt/sources\&.list\fR)\&. - -.TP -\fB\-h\fR, \fB\-\-help\fR -Show a short usage summary\&. - -.TP -\fB\-v\fR, \fB\-\-version\fR -Show the program version\&. - -.TP -\fB\-c\fR, \fB\-\-config\-file\fR -Configuration File; Specify a configuration file to use\&. The program will read the default configuration file and then this configuration file\&. See \fB\fIapt\&.conf\fR\fR(5) for syntax information\&. - -.TP -\fB\-o\fR, \fB\-\-option\fR -Set a Configuration Option; This will set an arbitary configuration option\&. The syntax is \fB\-o Foo::Bar=bar\fR\&. - -.SH "RPM OPTIONS" - -.PP -Options handed over to \fBrpm\fR, see rpm man page for their functionality\&. - -.TP -\fB\-\-test\fR -\fBRpm\fR option \-\-test\&. - -.TP -\fB\-\-force\-rpm\fR -\fBRpm\fR option \-\-force\&. - -.SH "ENVIRONMENT" - -.TP -\fBAPT_VERBOSE\fR -\fBapt\fR will show which application is being dispatched\&. - -.SH "CAVEATS" - -.PP -There are 2 apt actions, add and dump, that are used by several apt commands\&. The action add is used by \fBapt\-cdrom\fR and \fBapt\-cache\fR\&. \fBapt\fR uses add from \fBapt\-cdrom\&.\fR The action dump is used by \fBapt\-config\fR and \fBapt\-cache\fR\&. \fBapt\fR uses dump from \fBapt\-config\fR\&. - -.SH "SEE ALSO" - -.PP -\fB\fBapt\-get\fR\fR(8), \fB\fBapt\-cache\fR\fR(8), \fB\fBapt\-config\fR\fR(8), \fB\fBapt\-cdrom\fR\fR(8) - -.SH "DIAGNOSTICS" - -.PP -\fBapt\fR returns zero on normal operation, decimal 100 on error\&. - -.SH "BUGS" - -.PP -Report bugs to - -.SH AUTHOR -Richard Bos. +.\"Generated by db2man.xsl. Don't modify this, modify the source. +.de Sh \" Subsection +.br +.if t .Sp +.ne 5 +.PP +\fB\\$1\fR +.PP +.. +.de Sp \" Vertical space (when we can't use .PP) +.if t .sp .5v +.if n .sp +.. +.de Ip \" List item +.br +.ie \\n(.$>=3 .ne \\$3 +.el .ne 3 +.IP "\\$1" \\$2 +.. +.TH "APT" 1 "21 June 2004" "Linux" "" +.SH NAME +apt \- Advanced Package Tool +.SH "SYNOPSIS" +.ad l +.hy 0 +.HP 4 +\fBapt\fR [\fB\fIoptions\fR\fR] [\fB\fIapt\-rpm\ options\fR\fR] [\fB\fIaction\fR\fR] [\fB\fIpackages\fR\fR] +.ad +.hy + +.SH "DESCRIPTION" + +.PP +Apt provides a single command line user interface for the following commands: \fB\fBapt\-get\fR\fR(8), \fB\fBapt\-cache\fR\fR(8), \fB\fBapt\-config\fR\fR(8), \fB\fBapt\-cdrom\fR\fR(8) and the \fBrpm\fR query possibilities\&. Besides the single interface it provides some additional options that are specific to apt in combination with rpm\&. + +.PP +Unless the \fB\-h\fR, \fB\-\-help\fR, \fB\-v\fR, or \fB\-\-version\fR option is given one of the commands mentioned in the ACTIONS section must be present\&. + +.PP +Detailed information about each apt command and its options can be found in the man pages that belong to the dispatched apt applications\&. + +.SH "ACTIONS" + +.PP +Actions supported by \fBapt\fR: add, autoclean, build\-dep, check, clean, depends, dist\-upgrade, dotty, dump, dumpavail, gencaches, groupinstall, groupremove, ident, install, list\-extras, list\-nodeps, moo, pkgnames, policy, query, querytags, rdepends\&. reinstall\&. remove, script, search, show, showgroup, showgroups, showpkg, showsrc, source, stats, unmet, update, upgrade, whatdepends, xvcg\&. + +.TP +groupinstall +Install a group (or groups) of packages\&. Most often those groups are defined by the distributor\&. Configuration item: Scripts::Groupinstall::Backend + +.TP +groupremove +Remove a group (or groups) of packages\&. Most often those groups are defined by the distributor\&. Configuration item: Scripts::Groupinstall::Backend + +.TP +list\-nodeps +list all installed packages that are not required by any other installed package\&. + +.TP +list\-extras +shows packages not found in any online repositories\&. These are packages downloaded or build and installed locally\&. It's useful to review that list and decide if all those packages are still needed\&. Specifically if the system is used to build packages distributed to other systems\&. It's very important to be aware of all installed non\-standard packages to avoid dependencies that cannot be satisfied from the standard repository\&. + +.TP +list\-nodeps +list all installed packages that are not required by any other installed package\&. + +.TP +reinstall +installs a package again, even if the package is already installed\&. + +.TP +showgroup +Provide information about group (or groups)\&. Most often those groups are defined by the distributor\&. Configuration item: Scripts::Groupinstall::Backend + +.TP +showgroups +Show available groups\&. Most often those groups are defined by the distributor\&. Configuration item: Scripts::Groupinstall::Backend + +.PP +The functionality of the remaining actions are provided by other apt tools\&. The actions listed by their respective command: + +.TP +\fBapt\-get\fR +autoclean, build\-dep, check, clean, dist\-upgrade, install, moo, remove, reinstall\&. script, source, update, upgrade\&. + +.TP +\fBapt\-cache\fR +add, depends, dotty, dump, dumpavail, gencaches, pkgnames, policy, rdepends\&. search, show, showpkg, showsrc, stats, unmet, whatdepends, xvcg\&. + +.TP +\fBapt\-config\fR +shell, dump\&. + +.TP +\fBapt\-cdrom\fR +add, ident\&. + +.SH "OPTIONS" + +.TP +\fB\-\-checksig\fR +checks the integrity and origin of the candidate packages to be installed\&. If the check fails for 1 or more packages non of the candidate packages will be installed! In case the signature check fails use the \-\-hold argument to keep back the offending package(s) or use the \-\-no\-checksig argument to skip the package integrity check\&. More about package checking can be found in the rpm manual\&. Configuration item: RPM::GPG\-Check\&. + +.TP +\fB\-\-hold\fR +puts a package on hold\&. A package on hold won't be upgraded unless overruled with the install action\&. Repeat this option if multiple packages must be kept from upgrading\&. This option uses regular expressions to find the package to be put on hold\&. E\&.g\&. in case the package "at" must be hold, it must be specified as \-\-hold ^at$, if not done like this a package like attr will be put on hold as well\&. In any case it is better to put packages on hold with the rpm::hold variable in the file \fIapt\&.conf\fR! + +.TP +\fB\-\-no\-checksig\fR +Do not check the integrity of the packages to be installed\&. It can be used if the integrity check fails for 1 or more packages, but the packages have been obtained from a save origin\&. Configuration item: RPM::GPG\-Check\&. + +.TP +\fB\-\-no\-postscript\fR +Do not run a postscript after packages have been upgraded, degraded, removed or installed\&. Configuration item: Scripts::Options::RunPostScript\&. + +.TP +\fB\-\-postscript\fR +Run a postscript after packages have been upgraded, degraded, removed or installed\&. The script to use is specified with configuration item: Scripts::PM::Post::\&. With this option it is possible to run for example ldconfig or a distribution specific configuration script\&. Configuration item: Scripts::Options::RunPostScript\&. + +.TP +\fB\-\-show\-rpm\-command\fR +Shows the exact rpm command to be performed, during install, upgrade or dist\-upgrade actions\&. The action itself will not be performed\&. + +.TP +\fB\-\-sourceslist\fR +Select the sourceslist file to be used (default is \fI/etc/apt/sources\&.list\fR)\&. + +.TP +\fB\-h\fR, \fB\-\-help\fR +Show a short usage summary\&. + +.TP +\fB\-v\fR, \fB\-\-version\fR +Show the program version\&. + +.TP +\fB\-c\fR, \fB\-\-config\-file\fR +Configuration File; Specify a configuration file to use\&. The program will read the default configuration file and then this configuration file\&. See \fB\fIapt\&.conf\fR\fR(5) for syntax information\&. + +.TP +\fB\-o\fR, \fB\-\-option\fR +Set a Configuration Option; This will set an arbitary configuration option\&. The syntax is \fB\-o Foo::Bar=bar\fR\&. + +.SH "RPM OPTIONS" + +.PP +Options handed over to \fBrpm\fR, see rpm man page for their functionality\&. + +.TP +\fB\-\-test\fR +\fBRpm\fR option \-\-test\&. + +.TP +\fB\-\-force\-rpm\fR +\fBRpm\fR option \-\-force\&. + +.SH "FILES" + +.TP +\fI/usr/share/apt/scripts\fR +APT lua scripts\&. Configuration item: Dir::Bin::scripts\&. + +.SH "ENVIRONMENT" + +.TP +\fBAPT_VERBOSE\fR +If APT_VERBOSE is defined \fBapt\fR will show which application is being dispatched\&. + +.SH "CAVEATS" + +.PP +There are 2 apt actions, add and dump, that are used by several apt commands\&. The action add is used by \fBapt\-cdrom\fR and \fBapt\-cache\fR\&. \fBapt\fR uses add from \fBapt\-cdrom\&.\fR The action dump is used by \fBapt\-config\fR and \fBapt\-cache\fR\&. \fBapt\fR uses dump from \fBapt\-config\fR\&. + +.SH "SEE ALSO" + +.PP +\fB\fBapt\-get\fR\fR(8), \fB\fBapt\-cache\fR\fR(8), \fB\fBapt\-config\fR\fR(8), \fB\fBapt\-cdrom\fR\fR(8), \fB\fBrpm\fR\fR(1) + +.SH "DIAGNOSTICS" + +.PP +\fBapt\fR returns zero on normal operation, decimal 100 on error\&. + +.SH "BUGS" + +.PP +Report bugs to + +.SH AUTHORS +Debian apt development team, Conectiva apt\-rpm development team. diff --git a/apt/contrib/apt-wrapper/apt.1.xml b/apt/contrib/apt-wrapper/apt.1.xml index 6cb9423..46381a5 100644 --- a/apt/contrib/apt-wrapper/apt.1.xml +++ b/apt/contrib/apt-wrapper/apt.1.xml @@ -3,20 +3,27 @@ "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [ -%aptent; + + rpm + 1 + " +> +%aptent; ]> - Richard - Bos + Debian apt development team + + + Conectiva apt-rpm development team &apt-product; - 20 February 2004 + 24 June 2004 2004 Richard Bos @@ -64,7 +71,7 @@ Actions - A full list of actions that are supported by apt: + Actions supported by apt: add, autoclean, build-dep, @@ -76,9 +83,13 @@ dump, dumpavail, gencaches, + groupinstall, + groupnames, + groupremove, ident, install, list-extras, + list-nodeps, moo, pkgnames, policy, @@ -90,6 +101,7 @@ script, search, show, + showgroup, showpkg, showsrc, source, @@ -101,6 +113,23 @@ xvcg. + groupinstall + Install a group (or groups) of packages. Most often + those groups are defined by the distributor. + Configuration item: Scripts::Groupinstall::Backend + + + groupremove + Remove a group (or groups) of packages. Most often + those groups are defined by the distributor. + Configuration item: Scripts::Groupinstall::Backend + + + list-nodeps + list all installed packages that are not required by any other + installed package. + + list-extras shows packages not found in any online repositories. These are packages downloaded or build and installed locally. It's useful @@ -110,6 +139,28 @@ packages to avoid dependencies that cannot be satisfied from the standard repository. + + list-nodeps + list all installed packages that are not required by any other + installed package. + + + reinstall + installs a package again, even if the package is already + installed. + + + showgroup + Provide information about group (or groups). Most often + those groups are defined by the distributor. + Configuration item: Scripts::Groupinstall::Backend + + + groupnames + Show available groups. Most often those groups are defined + by the distributor. Configuration item: + Scripts::Groupinstall::Backend + The functionality of the remaining actions are provided by other @@ -177,6 +228,18 @@ Options + + checks the integrity and origin of the candidate packages to + be installed. If the check fails for 1 or more packages non of the candidate + packages will be installed! In case the signature check fails use the --hold + argument to keep back the offending package(s) or use the --no-checksig argument + to skip the package integrity check. More about package checking can be + found in the rpm manual. + Configuration item: RPM::GPG-Check. + + + + puts a package on hold. A package on hold won't be upgraded unless overruled with the install action. Repeat this option @@ -191,6 +254,34 @@ + + Do not check the integrity of the packages to be installed. + It can be used if the integrity check fails for 1 or more packages, but + the packages have been obtained from a save origin. + Configuration item: RPM::GPG-Check. + + + + + + Do not run a postscript after packages have been upgraded, + degraded, removed or installed. + Configuration item: Scripts::Options::RunPostScript. + + + + + + Run a postscript after packages have been upgraded, degraded, removed or + installed. The script to use is specified with configuration item: + Scripts::PM::Post::. With this option it is possible to run + for example ldconfig or a distribution specific configuration + script. + Configuration item: Scripts::Options::RunPostScript. + + + + Shows the exact rpm command to be performed, during install, upgrade or @@ -232,11 +323,21 @@ + Files + + /usr/share/apt/scripts + APT lua scripts. + Configuration item: Dir::Bin::scripts. + + + + + Environment - apt will show which application is being - dispatched. + If APT_VERBOSE is defined apt + will show which application is being dispatched. @@ -254,7 +355,7 @@ See Also - &apt-get;, &apt-cache;, &apt-config;, &apt-cdrom; + &apt-get;, &apt-cache;, &apt-config;, &apt-cdrom;, &rpm; Diagnostics @@ -264,7 +365,7 @@ Bugs Report bugs to - apt4rpm-devel@lists.sourceforge.net + apt-rpm@distro2.conectiva.com.br diff --git a/apt/contrib/gpg-check/README b/apt/contrib/gpg-check/README new file mode 100644 index 0000000..c861634 --- /dev/null +++ b/apt/contrib/gpg-check/README @@ -0,0 +1,27 @@ +This script checks packages for known good GPG signatures. Optionally +it can also automatically import GPG keys. +Note that rpm-4.1 or later is required for this functionality. + +For the checker functionality to work you must have the following +configuration items set: + +Scripts::PM::Pre:: "gpg-check.lua"; +RPM::GPG-Check "true"; + +As a workaround for certain commercial rpm's which break when signed afterwards +you can specify packages not to be checked by adding them to +RPM::GPG::Skip-Check:: list. + +A completely optional addon is the ability to automatically import GPG keys +to rpmdb when running apt. +To enable this you need the following configuration items set: + +Scripts::Init:: "gpg-import.lua"; +RPM::GPG-Import "true"; + +The importer looks for files in /etc/apt/gpg/ directory and for the keys +to be automatically be named gpg-pubkey-xxx-yyy, where xxx-yyy is the name +the key gets when it's imported into the rpmdb. + +By pmatilai@welho.com +Licensed under the GPL diff --git a/apt/contrib/gpg-check/gpg-check.conf b/apt/contrib/gpg-check/gpg-check.conf new file mode 100644 index 0000000..e4f68a9 --- /dev/null +++ b/apt/contrib/gpg-check/gpg-check.conf @@ -0,0 +1,6 @@ +Scripts::PM::Pre:: "gpg-check.lua"; + +// Enable to check for GPG signatures +RPM::GPG-Check "true"; +// Don't check signatures on j2re and j2sdk +// RPM::GPG::Skip-Check {"j2re"; "j2sdk";}; diff --git a/apt/contrib/gpg-check/gpg-check.lua b/apt/contrib/gpg-check/gpg-check.lua new file mode 100644 index 0000000..73d089a --- /dev/null +++ b/apt/contrib/gpg-check/gpg-check.lua @@ -0,0 +1,90 @@ +if confget("RPM::GPG-Check/b", "true") == "false" then + return +end + +if table.getn(files_install) < 1 then + return +end + +hash = '###########################################' +hashestotal = string.len(hash) +interactive = confget("RPM::Interactive/b", "true") +quiet = tonumber(confget("quiet", 0)) + +function printhash(amount, total) + percent = amount/total*100 + if interactive == "true" then + nrhash = hashestotal - hashestotal / total * amount + line = string.format("%-44s[%3d%%]", string.sub(hash, nrhash), percent) + io.stdout.write(io.stdout, line) + io.stdout.flush(io.stdout) + for i = 1, string.len(line) do + io.stdout.write(io.stdout, '\b') + end + else + io.stdout.write(io.stdout, string.format("%%%% %f\n", percent)) + end +end + +function showerrors(i, msg) + apterror(msg) +end + +good = 1 +unknown = 0 +illegal = 0 +unsigned = 0 +errors = {} + +skiplist = confgetlist("RPM::GPG::Skip-Check", "") + +io.stdout.write(io.stdout, string.format("%-28s", _("Checking GPG signatures..."))) +if interactive == "false" then + io.stdout.write(io.stdout, '\n') +end +for i, file in ipairs(files_install) do + skipthis = false + for j, skip in ipairs(skiplist) do + start = string.find(pkgname(pkgs_install[i]), skip) + if start then + skipthis = true + aptwarning(_("Skipped GPG check on "..pkgname(pkgs_install[i]))) + break + end + end + if quiet == 0 then + printhash(i, table.getn(files_install)) + end + if skipthis == false then + inp = io.popen("LANG=C /bin/rpm --checksig "..file.." 2>&1") + + for line in inp.lines(inp) do + if string.find(line, "gpg") then + break + elseif string.find(line, "GPG") then + table.insert(errors, _("Unknown signature "..line)) + unknown = unknown + 1 + good = nil + elseif string.find(line, "rpmReadSignature") then + table.insert(errors, _("Illegal signature "..line)) + illegal = illegal + 1 + good = nil + else + table.insert(errors, _("Unsigned "..line)) + unsigned = unsigned + 1 + good = nil + end + end + io.close(inp) + end +end +if interactive == "true" then + io.stdout.write(io.stdout, '\n') +end + +if not good then + table.foreach(errors, showerrors) + apterror(_("Error(s) while checking package signatures:\n"..unsigned.." unsigned package(s)\n"..unknown.." package(s) with unknown signatures\n"..illegal.." package(s) with illegal/corrupted signatures")) +end + +-- vim::sts=4:sw=4 diff --git a/apt/contrib/gpg-check/gpg-import.conf b/apt/contrib/gpg-check/gpg-import.conf new file mode 100644 index 0000000..3a29bfd --- /dev/null +++ b/apt/contrib/gpg-check/gpg-import.conf @@ -0,0 +1,4 @@ +Scripts::Init:: "gpg-import.lua"; + +// Enable to automatically import GPG keys in /etc/apt/gpg directory +RPM::GPG-Import "true"; diff --git a/apt/contrib/gpg-check/gpg-import.lua b/apt/contrib/gpg-check/gpg-import.lua new file mode 100644 index 0000000..6a70ac5 --- /dev/null +++ b/apt/contrib/gpg-check/gpg-import.lua @@ -0,0 +1,38 @@ + +-- don't bother if no write access to rpmdb +if not posix.access("/var/lib/rpm", "w") then + return +end + +if confget("RPM::GPG-Import", "true") == "false" then + return +end + + +keypath = confget("Dir::Etc/f").."gpg/" +keys = posix.dir(keypath) + +if not keys then + return +end + +first = 1 +for i, key in ipairs(keys) do + if string.sub(key, 1, 10) == "gpg-pubkey" then + ret = os.execute("LANG=C rpm -q `basename "..key.."` > /dev/null 2>&1") + if ret > 0 then + if first then + print(_("You don't seem to have one or more of the needed GPG keys in your RPM database.")) + print(_("Importing them now...")) + first = nil + end + ret = os.execute("LANG=C rpm --import "..keypath..key.." > /dev/null 2>&1") + if ret > 0 then + print(_("Error importing GPG keys")) + return + end + end + end +end + +-- vim:ts=4 diff --git a/apt/contrib/log/README b/apt/contrib/log/README new file mode 100644 index 0000000..25d6e4a --- /dev/null +++ b/apt/contrib/log/README @@ -0,0 +1,11 @@ +This script will log the changes being introduced by +the transaction which is going to be run, and is based +on an idea of Panu Matilainen. + +This script must be plugged in the slots: + + Scripts::PM::Pre + Scripts::PM::Post + +Then, when some transaction is run, it will dump information +about it in /var/log/apt.log, or in the configured file. diff --git a/apt/contrib/log/log.conf b/apt/contrib/log/log.conf new file mode 100644 index 0000000..3df98f0 --- /dev/null +++ b/apt/contrib/log/log.conf @@ -0,0 +1,8 @@ + +APT::Log::Enable "true"; + +Dir::Log "/var/log"; +Dir::Log::transaction "apt.log"; + +Scripts::PM::Pre:: "log.lua"; +Scripts::PM::Post:: "log.lua"; diff --git a/apt/contrib/log/log.lua b/apt/contrib/log/log.lua new file mode 100644 index 0000000..ab7bef3 --- /dev/null +++ b/apt/contrib/log/log.lua @@ -0,0 +1,80 @@ +-- This script will log the changes being introduced by +-- the transaction which is going to be run, and is based +-- on an idea of Panu Matilainen. It must be plugged +-- in the slots Scripts::PM::Pre/Post. +-- +-- Author: Gustavo Niemeyer + +if confget("APT::Log::Enable/b", "false") == "false" then + return +end + +confset("Dir::Log", "/var/log", true) +confset("Dir::Log::transaction", "apt.log", true) +filename = confget("Dir::Log::transaction/f", "/var/log/apt.log") + +if script_slot == "Scripts::PM::Pre" then + file = io.open(filename, "a+") + if not file then + print("error: can't open log file at "..filename) + return + end + local removing = {} + local installing = {} + local reinstalling = {} + local downgrading = {} + local upgrading = {} + for i, pkg in ipairs(pkglist()) do + if statkeep(pkg) then + -- Do nothing + elseif statreinstall(pkg) then + table.insert(reinstalling, + string.format("ReInstalling %s %s\n", + pkgname(pkg), + verstr(pkgvercur(pkg)))) + elseif statremove(pkg) then + table.insert(removing, + string.format("Removing %s %s\n", + pkgname(pkg), + verstr(pkgvercur(pkg)))) + elseif statnewinstall(pkg) then + table.insert(installing, + string.format("Installing %s %s\n", + pkgname(pkg), + verstr(pkgverinst(pkg)))) + elseif statdowngrade(pkg) then + table.insert(downgrading, + string.format("Downgrading %s %s to %s\n", + pkgname(pkg), + verstr(pkgvercur(pkg)), + verstr(pkgverinst(pkg)))) + elseif statupgrade(pkg) then + table.insert(upgrading, + string.format("Upgrading %s %s to %s\n", + pkgname(pkg), + verstr(pkgvercur(pkg)), + verstr(pkgverinst(pkg)))) + end + end + file:write("Transaction starting at ", os.date(), "\n") + local function write(index, str) + file:write(str) + end + table.foreach(removing, write) + table.foreach(installing, write) + table.foreach(reinstalling, write) + table.foreach(downgrading, write) + table.foreach(upgrading, write) + file:close() +elseif script_slot == "Scripts::PM::Post" then + if transaction_success then + word = "succeeded" + else + word = "failed" + end + file = io.open(filename, "a+") + file:write("Transaction ", word, " at ", os.date(), "\n") + file:close() +end + +-- vim:ts=4:sw=4:et diff --git a/apt/doc/Makefile.in b/apt/doc/Makefile.in index cf7d1e2..75f2b30 100644 --- a/apt/doc/Makefile.in +++ b/apt/doc/Makefile.in @@ -1,8 +1,8 @@ -# Makefile.in generated by automake 1.7.9 from Makefile.am. +# Makefile.in generated by automake 1.9.5 from Makefile.am. # @configure_input@ -# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 -# Free Software Foundation, Inc. +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -13,7 +13,6 @@ # PARTICULAR PURPOSE. @SET_MAKE@ - srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ @@ -21,7 +20,6 @@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = .. - am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 @@ -35,12 +33,40 @@ POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : +build_triplet = @build@ host_triplet = @host@ +subdir = doc +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/buildlib/tools.m4 \ + $(top_srcdir)/m4/codeset.m4 $(top_srcdir)/m4/gettext.m4 \ + $(top_srcdir)/m4/glibc21.m4 $(top_srcdir)/m4/iconv.m4 \ + $(top_srcdir)/m4/intdiv0.m4 $(top_srcdir)/m4/inttypes-pri.m4 \ + $(top_srcdir)/m4/inttypes.m4 $(top_srcdir)/m4/inttypes_h.m4 \ + $(top_srcdir)/m4/lcmessage.m4 $(top_srcdir)/m4/lib-ld.m4 \ + $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ + $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/stdint_h.m4 \ + $(top_srcdir)/m4/uintmax_t.m4 $(top_srcdir)/m4/ulonglong.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(SHELL) $(top_srcdir)/buildlib/mkinstalldirs +CONFIG_HEADER = $(top_builddir)/include/config.h +CONFIG_CLEAN_FILES = +SOURCES = +DIST_SOURCES = +man5dir = $(mandir)/man5 +am__installdirs = "$(DESTDIR)$(man5dir)" "$(DESTDIR)$(man8dir)" +man8dir = $(mandir)/man8 +NROFF = nroff +MANS = $(man_MANS) +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ +AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ @@ -59,6 +85,7 @@ COMPILE_STATIC_TRUE = @COMPILE_STATIC_TRUE@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ +CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ @@ -72,6 +99,8 @@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ +F77 = @F77@ +FFLAGS = @FFLAGS@ GENCAT = @GENCAT@ GLIBC21 = @GLIBC21@ GLIBC_VER = @GLIBC_VER@ @@ -134,8 +163,10 @@ VERSION = @VERSION@ WITH_LUA_FALSE = @WITH_LUA_FALSE@ WITH_LUA_TRUE = @WITH_LUA_TRUE@ XGETTEXT = @XGETTEXT@ +ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ ac_ct_RANLIB = @ac_ct_RANLIB@ ac_ct_STRIP = @ac_ct_STRIP@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ @@ -145,6 +176,8 @@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ @@ -165,6 +198,7 @@ libdir = @libdir@ libexecdir = @libexecdir@ localstatedir = @localstatedir@ mandir = @mandir@ +mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ prefix = @prefix@ program_transform_name = @program_transform_name@ @@ -172,7 +206,6 @@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ - STATIC_MANPAGES = \ apt.8 @@ -186,7 +219,6 @@ SGML_MANPAGES = \ vendors.list.5 \ apt_preferences.5 - EXTRA_DIST = \ $(STATIC_MANPAGES) \ $(patsubst %,%.sgml, \ @@ -231,28 +263,40 @@ EXTRA_DIST = \ pt_BR/apt_preferences.pt_BR.5.sgml \ pt_BR/makefile - CLEANFILES = manpage.links manpage.refs - @COMPILE_MANPAGES_TRUE@man_MANS = $(STATIC_MANPAGES) $(SGML_MANPAGES) -subdir = doc -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -mkinstalldirs = $(SHELL) $(top_srcdir)/buildlib/mkinstalldirs -CONFIG_HEADER = $(top_builddir)/include/config.h -CONFIG_CLEAN_FILES = -DIST_SOURCES = - -NROFF = nroff -MANS = $(man_MANS) -DIST_COMMON = $(srcdir)/Makefile.in Makefile.am all: all-am .SUFFIXES: -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign doc/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign doc/Makefile -Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in $(top_builddir)/config.status - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe) +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh mostlyclean-libtool: -rm -f *.lo @@ -263,11 +307,9 @@ clean-libtool: distclean-libtool: -rm -f libtool uninstall-info-am: - -man5dir = $(mandir)/man5 install-man5: $(man5_MANS) $(man_MANS) @$(NORMAL_INSTALL) - $(mkinstalldirs) $(DESTDIR)$(man5dir) + test -z "$(man5dir)" || $(mkdir_p) "$(DESTDIR)$(man5dir)" @list='$(man5_MANS) $(dist_man5_MANS) $(nodist_man5_MANS)'; \ l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ for i in $$l2; do \ @@ -286,8 +328,8 @@ install-man5: $(man5_MANS) $(man_MANS) inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ inst=`echo $$inst | sed -e 's/^.*\///'`; \ inst=`echo $$inst | sed '$(transform)'`.$$ext; \ - echo " $(INSTALL_DATA) $$file $(DESTDIR)$(man5dir)/$$inst"; \ - $(INSTALL_DATA) $$file $(DESTDIR)$(man5dir)/$$inst; \ + echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man5dir)/$$inst'"; \ + $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man5dir)/$$inst"; \ done uninstall-man5: @$(NORMAL_UNINSTALL) @@ -307,14 +349,12 @@ uninstall-man5: inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ inst=`echo $$inst | sed -e 's/^.*\///'`; \ inst=`echo $$inst | sed '$(transform)'`.$$ext; \ - echo " rm -f $(DESTDIR)$(man5dir)/$$inst"; \ - rm -f $(DESTDIR)$(man5dir)/$$inst; \ + echo " rm -f '$(DESTDIR)$(man5dir)/$$inst'"; \ + rm -f "$(DESTDIR)$(man5dir)/$$inst"; \ done - -man8dir = $(mandir)/man8 install-man8: $(man8_MANS) $(man_MANS) @$(NORMAL_INSTALL) - $(mkinstalldirs) $(DESTDIR)$(man8dir) + test -z "$(man8dir)" || $(mkdir_p) "$(DESTDIR)$(man8dir)" @list='$(man8_MANS) $(dist_man8_MANS) $(nodist_man8_MANS)'; \ l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \ for i in $$l2; do \ @@ -333,8 +373,8 @@ install-man8: $(man8_MANS) $(man_MANS) inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ inst=`echo $$inst | sed -e 's/^.*\///'`; \ inst=`echo $$inst | sed '$(transform)'`.$$ext; \ - echo " $(INSTALL_DATA) $$file $(DESTDIR)$(man8dir)/$$inst"; \ - $(INSTALL_DATA) $$file $(DESTDIR)$(man8dir)/$$inst; \ + echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man8dir)/$$inst'"; \ + $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man8dir)/$$inst"; \ done uninstall-man8: @$(NORMAL_UNINSTALL) @@ -354,8 +394,8 @@ uninstall-man8: inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ inst=`echo $$inst | sed -e 's/^.*\///'`; \ inst=`echo $$inst | sed '$(transform)'`.$$ext; \ - echo " rm -f $(DESTDIR)$(man8dir)/$$inst"; \ - rm -f $(DESTDIR)$(man8dir)/$$inst; \ + echo " rm -f '$(DESTDIR)$(man8dir)/$$inst'"; \ + rm -f "$(DESTDIR)$(man8dir)/$$inst"; \ done tags: TAGS TAGS: @@ -363,13 +403,9 @@ TAGS: ctags: CTAGS CTAGS: -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) - -top_distdir = .. -distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) distdir: $(DISTFILES) - $(mkinstalldirs) $(distdir)/es $(distdir)/examples $(distdir)/fr $(distdir)/pt_BR + $(mkdir_p) $(distdir)/es $(distdir)/examples $(distdir)/fr $(distdir)/pt_BR @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ @@ -381,7 +417,7 @@ distdir: $(DISTFILES) dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ - $(mkinstalldirs) "$(distdir)$$dir"; \ + $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ @@ -399,9 +435,10 @@ distdir: $(DISTFILES) check-am: all-am check: check-am all-am: Makefile $(MANS) all-local - installdirs: - $(mkinstalldirs) $(DESTDIR)$(man5dir) $(DESTDIR)$(man8dir) + for dir in "$(DESTDIR)$(man5dir)" "$(DESTDIR)$(man8dir)"; do \ + test -z "$$dir" || $(mkdir_p) "$$dir"; \ + done install: install-am install-exec: install-exec-am install-data: install-data-am @@ -422,7 +459,7 @@ clean-generic: -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) distclean-generic: - -rm -f $(CONFIG_CLEAN_FILES) + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @@ -439,6 +476,8 @@ dvi: dvi-am dvi-am: +html: html-am + info: info-am info-am: @@ -475,8 +514,8 @@ uninstall-man: uninstall-man5 uninstall-man8 .PHONY: all all-am all-local check check-am clean clean-generic \ clean-libtool clean-local distclean distclean-generic \ - distclean-libtool distdir dvi dvi-am info info-am install \ - install-am install-data install-data-am install-exec \ + distclean-libtool distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-exec \ install-exec-am install-info install-info-am install-man \ install-man5 install-man8 install-strip installcheck \ installcheck-am installdirs maintainer-clean \ diff --git a/apt/doc/apt-cache.8.sgml b/apt/doc/apt-cache.8.sgml index 643944a..43c17ef 100644 --- a/apt/doc/apt-cache.8.sgml +++ b/apt/doc/apt-cache.8.sgml @@ -53,6 +53,7 @@ cache. Unless the showpkg @@ -83,7 +85,7 @@ package in question. Thus, forward dependencies must be satisfied for a package, but reverse dependencies need not be. For instance, apt-cache showpkg libreadline2 would produce - output similar to the following: + output similar to the following: Package: libreadline2 @@ -105,7 +107,7 @@ Reverse Provides: libreadline2 is installed, libc5 and ncurses3.0 (and ldso) must also be installed; libreadlineg2 and libreadline2-altdev do not have to be installed. For the specific meaning of the remainder of the output it - is best to consult the apt source code. + is best to consult the apt source code. stats @@ -116,14 +118,14 @@ Reverse Provides: + + + + + + + + + showsrc @@ -177,24 +180,28 @@ Reverse Provides: dump dumpavail unmet show @@ -202,6 +209,7 @@ Reverse Provides: dpkg --print-availi; it displays the package records for the named packages. + search @@ -213,20 +221,23 @@ Reverse Provides: then output identical to + Separate arguments can be used to specify multiple search patterns that are and'ed together. + depends whatdepends pkgnames @@ -236,6 +247,7 @@ Reverse Provides: for use in a shell tab complete function and the output is generated extremely quickly. This command is best used with the dotty @@ -248,15 +260,15 @@ Reverse Provides: trace out all dependent packages; this can produce a very large graph. To limit the output to only the packages listed on the command line, set the APT::Cache::GivenOnly option. - - + The resulting nodes will have several shapes; normal packages are boxes, pure provides are triangles, mixed provides are diamonds, missing packages are hexagons. Orange boxes mean recursion was stopped [leaf packages], blue lines are pre-depends, green lines are conflicts. - - + Caution, dotty cannot graph larger sets of packages. + + policy @@ -264,8 +276,10 @@ Reverse Provides: preferences file. With no arguments it will print out the priorities of each source. Otherwise it prints out detailed information about the priority selection of the named package. + + Options</> @@ -277,6 +291,7 @@ Reverse Provides: Select the file to store the package cache. The package cache is the primary cache used by all operations. Configuration Item: <literal/Dir::Cache::pkgcache/. + </Para></ListItem> </VarListEntry> <VarListEntry><term><option/-s/</><term><option/--src-cache/</> @@ -286,6 +301,7 @@ Reverse Provides: information from remote sources. When building the package cache the source cache is used to advoid reparsing all of the package files. Configuration Item: <literal/Dir::Cache::srcpkgcache/. + </Para></ListItem> </VarListEntry> <VarListEntry><term><option/-q/</><term><option/--quiet/</> @@ -294,6 +310,7 @@ Reverse Provides: More q's will produce more quietness up to a maximum of 2. You can also use <option/-q=#/ to set the quietness level, overriding the configuration file. Configuration Item: <literal/quiet/. + </Para></ListItem> </VarListEntry> <VarListEntry><term><option/-i/</><term><option/--important/</> @@ -301,12 +318,14 @@ Reverse Provides: Print only important dependencies; for use with unmet. Causes only Depends and Pre-Depends relations to be printed. Configuration Item: <literal/APT::Cache::Important/. + </Para></ListItem> </VarListEntry> <VarListEntry><term><option/-f/</><term><option/--full/</> <ListItem><Para> Print full package records when searching. Configuration Item: <literal/APT::Cache::ShowFull/. + </Para></ListItem> </VarListEntry> <VarListEntry><term><option/-a/</><term><option/--all-versions/</> @@ -317,6 +336,7 @@ Reverse Provides: will displayed (the one which would be selected for installation). This option is only applicable to the <literal/show/ command. Configuration Item: <literal/APT::Cache::AllVersions/. + </Para></ListItem> </VarListEntry> <VarListEntry><term><option/-g/</><term><option/--generate/</> @@ -324,12 +344,14 @@ Reverse Provides: Perform automatic package cache regeneration, rather than use the cache as it is. This is the default; to turn it off, use <option/--no-generate/. Configuration Item: <literal/APT::Cache::Generate/. + </Para></ListItem> </VarListEntry> <VarListEntry><term><option/--names-only/</><term><option/-n/</> <ListItem><Para> Only search on the package names, not the long descriptions. Configuration Item: <literal/APT::Cache::NamesOnly/. + </Para></ListItem> </VarListEntry> <VarListEntry><term><option/--all-names/</> @@ -337,6 +359,7 @@ Reverse Provides: Make <literal/pkgnames/ print all names, including virtual packages and missing dependencies. Configuration Item: <literal/APT::Cache::AllNames/. + </Para></ListItem> </VarListEntry> <VarListEntry><term><option/--recurse/</> @@ -344,6 +367,7 @@ Reverse Provides: Make <literal/depends/ recursive so that all packages mentioned are printed once. Configuration Item: <literal/APT::Cache::RecurseDepends/. + </Para></ListItem> </VarListEntry> &apt-commonoptions; @@ -357,6 +381,7 @@ Reverse Provides: <ListItem><Para> Locations to fetch packages from. Configuration Item: <literal/Dir::Etc::SourceList/. + </Para></ListItem> </VarListEntry> <VarListEntry><term><filename>&statedir;/lists/</></term> @@ -364,12 +389,14 @@ Reverse Provides: Storage area for state information for each package resource specified in &sources-list; Configuration Item: <literal/Dir::State::Lists/. + </Para></ListItem> </VarListEntry> <VarListEntry><term><filename>&statedir;/lists/partial/</></term> <ListItem><Para> Storage area for state information in transit. Configuration Item: <literal/Dir::State::Lists/ (implicit partial). + </Para></ListItem> </VarListEntry> </variablelist> </RefSect1> @@ -377,11 +404,13 @@ Reverse Provides: <RefSect1><Title>See Also</> <para> &apt-conf;, &sources-list;, &apt-get; + </para> </RefSect1> <RefSect1><Title>Diagnostics</> <para> <command/apt-cache/ returns zero on normal operation, decimal 100 on error. + </para> </RefSect1> &manbugs; diff --git a/apt/doc/apt-cdrom.8.sgml b/apt/doc/apt-cdrom.8.sgml index 468146c..2805b04 100644 --- a/apt/doc/apt-cdrom.8.sgml +++ b/apt/doc/apt-cdrom.8.sgml @@ -41,12 +41,11 @@ sources. <command/apt-cdrom/ takes care of determining the structure of the disc as well as correcting for several possible mis-burns and verifying the index files. - <para> + </para><para> It is necessary to use <command/apt-cdrom/ to add CDs to the APT system, it cannot be done by hand. Furthermore each disk in a multi-cd set must be inserted and scanned separately to account for possible mis-burns. - - <para> + </para><para> Unless the <option/-h/, or <option/--help/ option is given one of the commands below must be present. @@ -58,19 +57,21 @@ scan it and copy the index files. If the disc does not have a proper <filename>.disk/</> directory you will be prompted for a descriptive title. - - <para> + </Para><Para> APT uses a CDROM ID to track which disc is currently in the drive and maintains a database of these IDs in <filename>&statedir;/cdroms.list</> + </Para></ListItem> </VarListEntry> <VarListEntry><Term>ident</Term> <ListItem><Para> A debugging tool to report the identity of the current disc as well as the stored file name + </Para></ListItem> </VarListEntry> </VariableList> + </para> </RefSect1> <RefSect1><Title>Options</> @@ -82,6 +83,7 @@ Mount point; specify the location to mount the cdrom. This mount point must be listed in <filename>/etc/fstab</> and properly configured. Configuration Item: <literal/Acquire::cdrom::mount/. + </Para></ListItem> </VarListEntry> <VarListEntry><term><option/-r/</><term><option/--rename/</> @@ -90,6 +92,7 @@ given label. This option will cause <command/apt-cdrom/ to prompt for a new label. Configuration Item: <literal/APT::CDROM::Rename/. + </Para></ListItem> </VarListEntry> <VarListEntry><term><option/-m/</><term><option/--no-mount/</> @@ -97,6 +100,7 @@ No mounting; prevent <command/apt-cdrom/ from mounting and unmounting the mount point. Configuration Item: <literal/APT::CDROM::NoMount/. + </Para></ListItem> </VarListEntry> <VarListEntry><term><option/-f/</><term><option/--fast/</> @@ -106,6 +110,7 @@ <command/apt-cdrom/ has been run on this disc before and did not detect any errors. Configuration Item: <literal/APT::CDROM::Fast/. + </Para></ListItem> </VarListEntry> <VarListEntry><term><option/-a/</><term><option/--thorough/</> @@ -113,6 +118,7 @@ Thorough Package Scan; This option may be needed with some old Debian 1.1/1.2 discs that have Package files in strange places. It takes much longer to scan the CD but will pick them all up. + </Para></ListItem> </VarListEntry> <VarListEntry><term><option/-n/</> @@ -123,6 +129,7 @@ No Changes; Do not change the &sources-list; file and do not write index files. Everything is still checked however. Configuration Item: <literal/APT::CDROM::NoAct/. + </Para></ListItem> </VarListEntry> &apt-commonoptions; @@ -133,11 +140,13 @@ <RefSect1><Title>See Also</> <para> &apt-conf;, &apt-get;, &sources-list; + </para> </RefSect1> <RefSect1><Title>Diagnostics</> <para> <command/apt-cdrom/ returns zero on normal operation, decimal 100 on error. + </para> </RefSect1> &manbugs; diff --git a/apt/doc/apt-config.8.sgml b/apt/doc/apt-config.8.sgml index 9ed16b1..5fed0cb 100644 --- a/apt/doc/apt-config.8.sgml +++ b/apt/doc/apt-config.8.sgml @@ -40,7 +40,7 @@ the APT suite to provide consistent configurability. It accesses the main configuration file <filename>/etc/apt/apt.conf</> in a manner that is easy to use by scripted applications. - <para> + </para><para> Unless the <option/-h/, or <option/--help/ option is given one of the commands below must be present. </para> @@ -64,16 +64,17 @@ eval $RES <para> This will set the shell environment variable $OPTS to the value of MyApp::Options with a default of <option/-f/. - - <para> + </para><para> The configuration item may be postfixed with a /[fdbi]. f returns file names, d returns directories, b returns true or false and i returns an integer. Each of the returns is normalized and verified internally. + </Para></ListItem> </VarListEntry> <VarListEntry><Term>dump</Term> <ListItem><Para> Just show the contents of the configuration space. + </Para></ListItem> </VarListEntry> </VariableList> @@ -92,11 +93,13 @@ eval $RES <RefSect1><Title>See Also</> <para> &apt-conf; + </para> </RefSect1> <RefSect1><Title>Diagnostics</> <para> <command/apt-config/ returns zero on normal operation, decimal 100 on error. + </para> </RefSect1> &manbugs; diff --git a/apt/doc/apt-get.8.sgml b/apt/doc/apt-get.8.sgml index 793b8bb..39ee49c 100644 --- a/apt/doc/apt-get.8.sgml +++ b/apt/doc/apt-get.8.sgml @@ -48,7 +48,7 @@ considered the user's "back-end" to other tools using the APT library. Several "front-end" interfaces exist, such as dselect(8), aptitude, synaptic, gnome-apt and wajig. - <para> + </para><para> Unless the <option/-h/, or <option/--help/ option is given, one of the commands below must be present. @@ -64,6 +64,7 @@ performed before an <literal/upgrade/ or <literal/dist-upgrade/. Please be aware that the overall progress meter will be incorrect as the size of the package files cannot be known in advance. + </Para></ListItem> </VarListEntry> <VarListEntry><Term>upgrade</Term> @@ -78,6 +79,7 @@ will be left at their current version. An <literal/update/ must be performed first so that <command/apt-get/ knows that new versions of packages are available. + </Para></ListItem> </VarListEntry> <VarListEntry><Term>dselect-upgrade</Term> @@ -89,6 +91,7 @@ field of available packages, and performs the actions necessary to realize that state (for instance, the removal of old and the installation of new packages). + </Para></ListItem> </VarListEntry> <VarListEntry><Term>dist-upgrade</Term> @@ -102,6 +105,7 @@ from which to retrieve desired package files. See also &apt-preferences; for a mechanism for overriding the general settings for individual packages. + </Para></ListItem> </VarListEntry> <VarListEntry><Term>install</Term> @@ -117,21 +121,21 @@ installed. Similarly a plus sign can be used to designate a package to install. These latter features may be used to override decisions made by apt-get's conflict resolution system. - <para> + </para><para> A specific version of a package can be selected for installation by following the package name with an equals and the version of the package to select. This will cause that version to be located and selected for install. Alternatively a specific distribution can be selected by following the package name with a slash and the version of the distribution or the Archive name (stable, testing, unstable). - <para> + </para><para> Both of the version selection mechanisms can downgrade packages and must be used with care. - <para> + </para><para> Finally, the &apt-preferences; mechanism allows you to create an alternative installation policy for individual packages. - <para> + </para><para> If no package matches the given expression and the expression contains one of '.', '?' or '*' then it is assumed to be a POSIX regular expression, and it is applied @@ -139,6 +143,7 @@ removed). Note that matching is done by substring so 'lo.*' matches 'how-lo' and 'lowest'. If this is undesired, anchor the regular expression with a '^' or '$' character, or create a more specific regular expression. + </Para></ListItem> </VarListEntry> <VarListEntry><Term>remove</Term> @@ -147,6 +152,7 @@ removed instead of installed. If a plus sign is appended to the package name (with no intervening space), the identified package will be installed instead of removed. + </Para></ListItem> </VarListEntry> <VarListEntry><Term>source</Term> @@ -161,29 +167,31 @@ install. If the --compile options is specified then the package will be compiled to a binary .deb using dpkg-buildpackage, if --download-only is specified then the source package will not be unpacked. - <para> + </para><para> A specific source version can be retrieved by postfixing the source name with an equals and then the version to fetch, similar to the mechanism used for the package files. This enables exact matching of the source package name and version, implicitly enabling the <literal/APT::Get::Only-Source/ option. - - <para> + </para><para> Note that source packages are not tracked like binary packages, they exist only in the current directory and are similar to downloading source tar balls. + </Para></ListItem> </VarListEntry> <VarListEntry><Term>build-dep</Term> <ListItem><Para> <literal/build-dep/ causes apt-get to install/remove packages in an attempt to satisfy the build dependencies for a source package. + </Para></ListItem> </VarListEntry> <VarListEntry><Term>check</Term> <ListItem><Para> <literal/check/ is a diagnostic tool; it updates the package cache and checks for broken dependencies. + </Para></ListItem> </VarListEntry> <VarListEntry><Term>clean</Term> @@ -195,6 +203,7 @@ &dselect; method, <literal/clean/ is run automatically. Those who do not use dselect will likely want to run <literal/apt-get clean/ from time to time to free up disk space. + </Para></ListItem> </VarListEntry> <VarListEntry><Term>autoclean</Term> @@ -206,8 +215,10 @@ it growing out of control. The configuration option <literal/APT::Clean-Installed/ will prevent installed packages from being erased if it is set to off. + </Para></ListItem> </VarListEntry> </VariableList> + </para> </RefSect1> <RefSect1><Title>Options</> @@ -218,6 +229,7 @@ <ListItem><Para> Download only; package files are only retrieved, not unpacked or installed. Configuration Item: <literal/APT::Get::Download-Only/. + </Para></ListItem> </VarListEntry> <VarListEntry><term><option/-f/</><term><option/--fix-broken/</> @@ -233,6 +245,7 @@ the offending packages). Use of this option together with <option/-m/ may produce an error in some situations. Configuration Item: <literal/APT::Get::Fix-Broken/. + </Para></ListItem> </VarListEntry> <VarListEntry><term><option/-m/</><term><option/--ignore-missing/</> @@ -246,6 +259,7 @@ command line) and it could not be downloaded then it will be silently held back. Configuration Item: <literal/APT::Get::Fix-Missing/. + </Para></ListItem> </VarListEntry> <VarListEntry><term><option/--no-download/</> @@ -254,6 +268,7 @@ <option/--ignore-missing/ to force APT to use only the .debs it has already downloaded. Configuration Item: <literal/APT::Get::Download/. + </Para></ListItem> </VarListEntry> <VarListEntry><term><option/-q/</><term><option/--quiet/</> @@ -265,6 +280,7 @@ without a no-action modifier such as -d, --print-uris or -s as APT may decided to do something you did not expect. Configuration Item: <literal/quiet/. + </Para></ListItem> </VarListEntry> <VarListEntry><term><option/-s/</> @@ -277,12 +293,13 @@ No action; perform a simulation of events that would occur but do not actually change the system. Configuration Item: <literal/APT::Get::Simulate/. - <para> + </para><para> Simulate prints out a series of lines each one representing a dpkg operation, Configure (Conf), Remove (Remv), Unpack (Inst). Square brackets indicate broken packages with and empty set of square brackets meaning breaks that are of no consequence (rare). + </Para></ListItem> </VarListEntry> <VarListEntry><term><option/-y/</><term><option/--yes/</> @@ -293,6 +310,7 @@ package or removing an essential package occurs then <literal/apt-get/ will abort. Configuration Item: <literal/APT::Get::Assume-Yes/. + </Para></ListItem> </VarListEntry> <VarListEntry><term><option/-u/</><term><option/--show-upgraded/</> @@ -300,12 +318,14 @@ Show upgraded packages; Print out a list of all packages that are to be upgraded. Configuration Item: <literal/APT::Get::Show-Upgraded/. + </Para></ListItem> </VarListEntry> <VarListEntry><term><option/-V/</><term><option/--verbose-versions/</> <ListItem><Para> Show full versions for upgraded and installed packages. Configuration Item: <literal/APT::Get::Show-Versions/. + </Para></ListItem> </VarListEntry> <VarListEntry><term><option/-b/</><term><option/--compile/</> @@ -313,6 +333,7 @@ <ListItem><Para> Compile source packages after downloading them. Configuration Item: <literal/APT::Get::Compile/. + </Para></ListItem> </VarListEntry> <VarListEntry><term><option/--ignore-hold/</> @@ -321,6 +342,7 @@ placed on a package. This may be useful in conjunction with <literal/dist-upgrade/ to override a large number of undesired holds. Configuration Item: <literal/APT::Ignore-Hold/. + </Para></ListItem> </VarListEntry> <VarListEntry><term><option/--no-upgrade/</> @@ -329,6 +351,7 @@ <literal/no-upgrade/ will prevent packages listed from being upgraded if they are already installed. Configuration Item: <literal/APT::Get::Upgrade/. + </Para></ListItem> </VarListEntry> <VarListEntry><term><option/--force-yes/</> @@ -338,6 +361,7 @@ should not be used except in very special situations. Using <literal/force-yes/ can potentially destroy your system! Configuration Item: <literal/APT::Get::force-yes/. + </Para></ListItem> </VarListEntry> <VarListEntry><term><option/--print-uris/</> @@ -350,6 +374,7 @@ <literal/update/ command the MD5 and size are not included, and it is up to the user to decompress any compressed files. Configuration Item: <literal/APT::Get::Print-URIs/. + </Para></ListItem> </VarListEntry> <VarListEntry><term><option/--purge/</> @@ -358,12 +383,14 @@ An asterisk ("*") will be displayed next to packages which are scheduled to be purged. Configuration Item: <literal/APT::Get::Purge/. + </Para></ListItem> </VarListEntry> <VarListEntry><term><option/--reinstall/</> <ListItem><Para> Re-Install packages that are already installed and at the newest version. Configuration Item: <literal/APT::Get::ReInstall/. + </Para></ListItem> </VarListEntry> <VarListEntry><term><option/--list-cleanup/</> @@ -374,6 +401,7 @@ The only reason to turn it off is if you frequently change your source list. Configuration Item: <literal/APT::Get::List-Cleanup/. + </Para></ListItem> </VarListEntry> <VarListEntry><term><option/-t/</> @@ -388,6 +416,7 @@ <option>-t '2.1*'</> or <option>-t unstable</>. Configuration Item: <literal/APT::Default-Release/; see also the &apt-preferences; manual page. + </Para></ListItem> </VarListEntry> <VarListEntry><term><option/--trivial-only/</> @@ -396,6 +425,7 @@ related to <option/--assume-yes/, where <option/--assume-yes/ will answer yes to any prompt, <option/--trivial-only/ will answer no. Configuration Item: <literal/APT::Get::Trivial-Only/. + </Para></ListItem> </VarListEntry> <VarListEntry><term><option/--no-remove/</> @@ -403,6 +433,7 @@ If any packages are to be removed apt-get immediately aborts without prompting. Configuration Item: <literal/APT::Get::Remove/ + </Para></ListItem> </VarListEntry> <VarListEntry><term><option/--only-source/</> @@ -414,6 +445,7 @@ arguments, rather than accepting binary package names and looking up the corresponding source package. Configuration Item: <literal/APT::Get::Only-Source/ + </Para></ListItem> </VarListEntry> <VarListEntry><term><option/--diff-only/</><term><option/--tar-only/</> @@ -421,12 +453,14 @@ Download only the diff or tar file of a source archive. Configuration Item: <literal/APT::Get::Diff-Only/ and <literal/APT::Get::Tar-Only/ + </Para></ListItem> </VarListEntry> <VarListEntry><term><option/--arch-only/</> <ListItem><Para> Only process architecture-dependent build-dependencies. Configuration Item: <literal/APT::Get::Arch-Only/ + </Para></ListItem> </VarListEntry> &apt-commonoptions; @@ -440,18 +474,21 @@ <ListItem><Para> Locations to fetch packages from. Configuration Item: <literal/Dir::Etc::SourceList/. + </Para></ListItem> </VarListEntry> <VarListEntry><term><filename>/etc/apt/apt.conf</></term> <ListItem><Para> APT configuration file. Configuration Item: <literal/Dir::Etc::Main/. + </Para></ListItem> </VarListEntry> <VarListEntry><term><filename>/etc/apt/apt.conf.d/</></term> <ListItem><Para> APT configuration file fragments Configuration Item: <literal/Dir::Etc::Parts/. + </Para></ListItem> </VarListEntry> <VarListEntry><term><filename>/etc/apt/preferences</></term> @@ -462,18 +499,21 @@ from a separate source or from a different version of a distribution. Configuration Item: <literal/Dir::Etc::Preferences/. + </Para></ListItem> </VarListEntry> <VarListEntry><term><filename>&cachedir;/archives/</></term> <ListItem><Para> Storage area for retrieved package files. Configuration Item: <literal/Dir::Cache::Archives/. + </Para></ListItem> </VarListEntry> <VarListEntry><term><filename>&cachedir;/archives/partial/</></term> <ListItem><Para> Storage area for package files in transit. Configuration Item: <literal/Dir::Cache::Archives/ (implicit partial). + </Para></ListItem> </VarListEntry> <VarListEntry><term><filename>&statedir;/lists/</></term> @@ -481,12 +521,14 @@ Storage area for state information for each package resource specified in &sources-list; Configuration Item: <literal/Dir::State::Lists/. + </Para></ListItem> </VarListEntry> <VarListEntry><term><filename>&statedir;/lists/partial/</></term> <ListItem><Para> Storage area for state information in transit. Configuration Item: <literal/Dir::State::Lists/ (implicit partial). + </Para></ListItem> </VarListEntry> </variablelist> </RefSect1> @@ -496,11 +538,13 @@ &apt-cache;, &apt-cdrom;, &dpkg;, &dselect;, &sources-list;, &apt-conf;, &apt-config;, The APT User's guide in &docdir;, &apt-preferences;, the APT Howto. + </para> </RefSect1> <RefSect1><Title>Diagnostics</> <para> <command/apt-get/ returns zero on normal operation, decimal 100 on error. + </para> </RefSect1> &manbugs; diff --git a/apt/doc/apt.conf.5.sgml b/apt/doc/apt.conf.5.sgml index 2f04c89..a25b1cd 100644 --- a/apt/doc/apt.conf.5.sgml +++ b/apt/doc/apt.conf.5.sgml @@ -31,13 +31,13 @@ <literal/Dir::Etc::main/ then finally apply the command line options to override the configuration directives, possibly loading even more config files. - <para> + </para><para> The configuration file is organized in a tree with options organized into functional groups. Option specification is given with a double colon notation, for instance <literal/APT::Get::Assume-Yes/ is an option within the APT tool group, for the Get tool. Options do not inherit from their parent groups. - <para> + </para><para> Syntacticly the configuration language is modeled after what the ISC tools such as bind and dhcp use. Lines starting with <literal>//</literal> are treated as comments (ignored). Each line is of the form @@ -58,21 +58,22 @@ APT { <informalexample><programlisting> DPkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-preconfigure --apt";}; </programlisting></informalexample> - <para> + </para><para> In general the sample configuration file in <filename>&docdir;examples/apt.conf</> &configureindex; is a good guide for how it should look. - <para> + </para><para> Two specials are allowed, <literal/#include/ and <literal/#clear/. <literal/#include/ will include the given file, unless the filename ends in a slash, then the whole directory is included. <literal/#clear/ is used to erase a list of names. - <para> + </para><para> All of the APT tools take a -o option which allows an arbitrary configuration directive to be specified on the command line. The syntax is a full option name (<literal/APT::Get::Assume-Yes/ for instance) followed by an equals sign then the new value of the option. Lists can be appended too by adding a trailing :: to the list name. + </para> </RefSect1> <RefSect1><Title>The APT Group</> @@ -86,12 +87,14 @@ DPkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-preconfigure --apt";}; System Architecture; sets the architecture to use when fetching files and parsing package lists. The internal default is the architecture apt was compiled for. + </Para></ListItem> </VarListEntry> <VarListEntry><Term>Ignore-Hold</Term> <ListItem><Para> Ignore Held packages; This global option causes the problem resolver to ignore held packages in its decision making. + </Para></ListItem> </VarListEntry> <VarListEntry><Term>Clean-Installed</Term> @@ -100,6 +103,7 @@ DPkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-preconfigure --apt";}; which can no longer be downloaded from the cache. If turned off then packages that are locally installed are also excluded from cleaning - but note that APT provides no direct means to reinstall them. + </Para></ListItem> </VarListEntry> <VarListEntry><Term>Immediate-Configure</Term> @@ -109,6 +113,7 @@ DPkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-preconfigure --apt";}; so may be necessary on some extremely slow single user systems but is very dangerous and may cause package install scripts to fail or worse. Use at your own risk. + </Para></ListItem> </VarListEntry> <VarListEntry><Term>Force-LoopBreak</Term> @@ -119,37 +124,44 @@ DPkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-preconfigure --apt";}; packages. SUCH A LOOP SHOULD NEVER EXIST AND IS A GRAVE BUG. This option will work if the essential packages are not tar, gzip, libc, dpkg, bash or anything that those packages depend on. + </Para></ListItem> </VarListEntry> <VarListEntry><Term>Cache-Limit</Term> <ListItem><Para> APT uses a fixed size memory mapped cache file to store the 'available' information. This sets the size of that cache. + </Para></ListItem> </VarListEntry> <VarListEntry><Term>Build-Essential</Term> <ListItem><Para> Defines which package(s) are considered essential build dependencies. + </Para></ListItem> </VarListEntry> <VarListEntry><Term>Get</Term> <ListItem><Para> The Get subsection controls the &apt-get; tool, please see its documentation for more information about the options here. + </Para></ListItem> </VarListEntry> <VarListEntry><Term>Cache</Term> <ListItem><Para> The Cache subsection controls the &apt-cache; tool, please see its documentation for more information about the options here. + </Para></ListItem> </VarListEntry> <VarListEntry><Term>CDROM</Term> <ListItem><Para> The CDROM subsection controls the &apt-cdrom; tool, please see its documentation for more information about the options here. + </Para></ListItem> </VarListEntry> </VariableList> + </para> </RefSect1> <RefSect1><Title>The Acquire Group</> @@ -165,18 +177,21 @@ DPkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-preconfigure --apt";}; connections. <literal/host/ means that one connection per target host will be opened, <literal/access/ means that one connection per URI type will be opened. + </Para></ListItem> </VarListEntry> <VarListEntry><Term>Retries</Term> <ListItem><Para> Number of retries to perform. If this is non-zero APT will retry failed files the given number of times. + </Para></ListItem> </VarListEntry> <VarListEntry><Term>Source-Symlinks</Term> <ListItem><Para> Use symlinks for source archives. If set to true then source archives will be symlinked when possible instead of copying. True is the default + </Para></ListItem> </VarListEntry> <VarListEntry><Term>http</Term> @@ -187,7 +202,7 @@ DPkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-preconfigure --apt";}; <literal/http::Proxy::<host>/ with the special keyword <literal/DIRECT/ meaning to use no proxies. The <envar/http_proxy/ environment variable will override all settings. - <para> + </Para><Para> Three settings are provided for cache control with HTTP/1.1 compliant proxy caches. <literal/No-Cache/ tells the proxy to not use its cached response under any circumstances, <literal/Max-Age/ is sent only for @@ -197,10 +212,10 @@ DPkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-preconfigure --apt";}; store this request, it is only set for archive files. This may be useful to prevent polluting a proxy cache with very large .deb files. Note: Squid 2.0.2 does not support any of these options. - <para> + </Para><Para> The option <literal/timeout/ sets the timeout timer used by the method, this applies to all things including connection timeout and data timeout. - <para> + </Para><Para> One setting is provided to control the pipeline depth in cases where the remote server is not RFC conforming or buggy (such as Squid 2.0.2) <literal/Acquire::http::Pipeline-Depth/ can be a value from 0 to 5 @@ -208,6 +223,7 @@ DPkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-preconfigure --apt";}; zero MUST be specified if the remote host does not properly linger on TCP connections - otherwise data corruption will occur. Hosts which require this are in violation of RFC 2068. + </Para></ListItem> </VarListEntry> <VarListEntry><Term>ftp</Term> @@ -223,27 +239,28 @@ DPkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-preconfigure --apt";}; <literal/$(PROXY_USER)/, <literal/$(PROXY_PASS)/, <literal/$(SITE_USER)/, <literal/$(SITE_PASS)/, <literal/$(SITE)/, and <literal/$(SITE_PORT)/. Each is taken from it's respective URI component. - <para> + </Para><Para> The option <literal/timeout/ sets the timeout timer used by the method, this applies to all things including connection timeout and data timeout. - <para> + </Para><Para> Several settings are provided to control passive mode. Generally it is safe to leave passive mode on, it works in nearly every environment. However some situations require that passive mode be disabled and port mode ftp used instead. This can be done globally, for connections that go through a proxy or for a specific host (See the sample config file for examples) - <para> + </Para><Para> It is possible to proxy FTP over HTTP by setting the <envar/ftp_proxy/ environment variable to a http url - see the discussion of the http method above for syntax. You cannot set this in the configuration file and it is not recommended to use FTP over HTTP due to its low efficiency. - <para> + </Para><Para> The setting <literal/ForceExtended/ controls the use of RFC2428 <literal/EPSV/ and <literal/EPRT/ commands. The defaut is false, which means these commands are only used if the control connection is IPv6. Setting this to true forces their use even on IPv4 connections. Note that most FTP servers do not support RFC2428. + </Para></ListItem> </VarListEntry> <VarListEntry><Term>cdrom</Term> @@ -256,8 +273,10 @@ DPkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-preconfigure --apt";}; is to put <literallayout>"/cdrom/"::Mount "foo";</literallayout> within the cdrom block. It is important to have the trailing slash. Unmount commands can be specified using UMount. + </Para></ListItem> </VarListEntry> </VariableList> + </para> </RefSect1> <RefSect1><Title>Directories</> @@ -268,7 +287,7 @@ DPkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-preconfigure --apt";}; <literal/preferences/ is the name of the APT preferences file. <literal/Dir::State/ contains the default directory to prefix on all sub items if they do not start with <filename>/</> or <filename>./</>. - <para> + </para><para> <literal/Dir::Cache/ contains locations pertaining to local cache information, such as the two package caches <literal/srcpkgcache/ and <literal/pkgcache/ as well as the location to place downloaded archives, @@ -277,22 +296,23 @@ DPkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-preconfigure --apt";}; save disk space. It is probably prefered to turn off the pkgcache rather than the srcpkgcache. Like <literal/Dir::State/ the default directory is contained in <literal/Dir::Cache/ - <para> + </para><para> <literal/Dir::Etc/ contains the location of configuration files, <literal/sourcelist/ gives the location of the sourcelist and <literal/main/ is the default configuration file (setting has no effect, unless it is done from the config file specified by <envar/APT_CONFIG/). - <para> + </para><para> The <literal/Dir::Parts/ setting reads in all the config fragments in lexical order from the directory specified. After this is done then the main config file is loaded. - <para> + </para><para> Binary programs are pointed to by <literal/Dir::Bin/. <literal/Dir::Bin::Methods/ specifies the location of the method handlers and <literal/gzip/, <literal/dpkg/, <literal/apt-get/, <literal/dpkg-source/, <literal/dpkg-buildpackage/ and <literal/apt-cache/ specify the location of the respective programs. + </para> </RefSect1> <RefSect1><Title>APT in DSelect</> @@ -309,26 +329,31 @@ DPkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-preconfigure --apt";}; auto removes only those packages which are no longer downloadable (replaced with a new version for instance). pre-auto performs this action before downloading new packages. + </Para></ListItem> </VarListEntry> <VarListEntry><Term>Options</Term> <ListItem><Para> The contents of this variable is passed to &apt-get; as command line options when it is run for the install phase. + </Para></ListItem> </VarListEntry> <VarListEntry><Term>UpdateOptions</Term> <ListItem><Para> The contents of this variable is passed to &apt-get; as command line options when it is run for the update phase. + </Para></ListItem> </VarListEntry> <VarListEntry><Term>PromptAfterUpdate</Term> <ListItem><Para> If true the [U]pdate operation in &dselect; will always prompt to continue. The default is to prompt only on error. + </Para></ListItem> </VarListEntry> </VariableList> + </para> </RefSect1> <RefSect1><Title>How APT calls dpkg</> @@ -342,6 +367,7 @@ DPkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-preconfigure --apt";}; This is a list of options to pass to dpkg. The options must be specified using the list notation and each list item is passed as a single argument to &dpkg;. + </Para></ListItem> </VarListEntry> <VarListEntry><Term>Pre-Invoke</Term><Term>Post-Invoke</Term> @@ -350,6 +376,7 @@ DPkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-preconfigure --apt";}; Like <literal/Options/ this must be specified in list notation. The commands are invoked in order using <filename>/bin/sh</>, should any fail APT will abort. + </Para></ListItem> </VarListEntry> <VarListEntry><Term>Pre-Install-Pkgs</Term> @@ -359,26 +386,30 @@ DPkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-preconfigure --apt";}; are invoked in order using <filename>/bin/sh</>, should any fail APT will abort. APT will pass to the commands on standard input the filenames of all .deb files it is going to install, one per line. - <para> + </para><para> Version 2 of this protocol dumps more information, including the protocol version, the APT configuration space and the packages, files and versions being changed. Version 2 is enabled by setting <literal/DPkg::Tools::Options::cmd::Version/ to 2. <literal/cmd/ is a command given to <literal/Pre-Install-Pkgs/. + </Para></ListItem> </VarListEntry> <VarListEntry><Term>Run-Directory</Term> <ListItem><Para> APT chdirs to this directory before invoking dpkg, the default is <filename>/</>. + </Para></ListItem> </VarListEntry> <VarListEntry><Term>Build-Options</Term> <ListItem><Para> These options are passed to &dpkg-buildpackage; when compiling packages, the default is to disable signing and produce all binaries. + </Para></ListItem> </VarListEntry> </VariableList> + </para> </RefSect1> <RefSect1><Title>Debug Options</> @@ -390,6 +421,7 @@ DPkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-preconfigure --apt";}; operations as non-root and <literal/Debug::pkgDPkgPM/ will print out the command line for each dpkg invokation. <literal/Debug::IdentCdrom/ will disable the inclusion of statfs data in CDROM IDs. + </para> </RefSect1> <RefSect1><Title>Examples</> @@ -397,16 +429,19 @@ DPkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-preconfigure --apt";}; &configureindex; contains a sample configuration file showing the default values for all possible options. + </para> </RefSect1> <RefSect1><Title>Files</> <para> <filename>/etc/apt/apt.conf</> + </para> </RefSect1> <RefSect1><Title>See Also</> <para> &apt-cache;, &apt-config;<!-- ? reading apt.conf -->, &apt-preferences;. + </para> </RefSect1> &manbugs; diff --git a/apt/doc/apt.ent b/apt/doc/apt.ent index 4a5c8d3..647c1e5 100644 --- a/apt/doc/apt.ent +++ b/apt/doc/apt.ent @@ -113,11 +113,13 @@ <VarListEntry><term><option/-h/</><term><option/--help/</> <ListItem><Para> Show a short usage summary. + </Para></ListItem> </VarListEntry> <VarListEntry><term><option/-v/</><term><option/--version/</> <ListItem><Para> Show the program version. + </Para></ListItem> </VarListEntry> <VarListEntry><term><option/-c/</><term><option/--config-file/</> @@ -125,12 +127,14 @@ Configuration File; Specify a configuration file to use. The program will read the default configuration file and then this configuration file. See &apt-conf; for syntax information. + </Para></ListItem> </VarListEntry> <VarListEntry><term><option/-o/</><term><option/--option/</> <ListItem><Para> - Set a Configuration Option; This will set an arbitary configuration + Set a Configuration Option; This will set an arbitrary configuration option. The syntax is <option>-o Foo::Bar=bar</>. + </Para></ListItem> </VarListEntry> "> diff --git a/apt/doc/apt_preferences.5.sgml b/apt/doc/apt_preferences.5.sgml index 8175865..bd7a998 100644 --- a/apt/doc/apt_preferences.5.sgml +++ b/apt/doc/apt_preferences.5.sgml @@ -248,6 +248,7 @@ or the installed version is more recent</simpara></listitem> <listitem><simpara>causes a version to be installed unless there is a version available belonging to some other distribution or the installed version is more recent</simpara></listitem> +</varlistentry> <varlistentry> <term>0 < P <=100</term> <listitem><simpara>causes a version to be installed @@ -502,6 +503,7 @@ again. <programlisting> apt-get install <replaceable>package</replaceable>/testing </programlisting> +</para> </RefSect2> <RefSect2> diff --git a/apt/doc/sources.list.5.sgml b/apt/doc/sources.list.5.sgml index d693fb2..a544ca6 100644 --- a/apt/doc/sources.list.5.sgml +++ b/apt/doc/sources.list.5.sgml @@ -53,7 +53,7 @@ The format for a <filename/sources.list/ entry using the <literal/deb/ and <literal/deb-src/ types are: <literallayout>deb uri distribution [component1] [component2] [...]</literallayout> - <para> + </para><para> The URI for the <literal/deb/ type must specify the base of the Debian distribution, from which APT will find the information it needs. <literal/distribution/ can specify an exact path, in which case the @@ -61,15 +61,14 @@ slash (/). This is useful for when only a particular sub-section of the archive denoted by the URI is of interest. If <literal/distribution/ does not specify an exact path, at least one <literal/component/ must be present. - </> - <para> + </para><para> <literal/distribution/ may also contain a variable, <literal/$(ARCH)/, which expands to the Debian architecture (i386, m68k, powerpc, ...) used on the system. This permits architecture-independent <filename/sources.list/ files to be used. In general this is only of interest when specifying an exact path, <literal/APT/ will automatically - generate a URI with the current architecture otherwise.</> - <para> + generate a URI with the current architecture otherwise. + </para><para> Since only one distribution can be specified per line it may be necessary to have multiple lines for the same URI, if a subset of all available distributions or components at that location is desired. @@ -80,19 +79,19 @@ and then re-establish a connection to that same host. This feature is useful for accessing busy FTP sites with limits on the number of simultaneous anonymous users. APT also parallelizes connections to - different hosts to more effectively deal with sites with low bandwidth.</> - <para> + different hosts to more effectively deal with sites with low bandwidth. + </para><para> It is important to list sources in order of preference, with the most preferred source listed first. Typically this will result in sorting by speed from fastest to slowest (CD-ROM followed by hosts on a local - network, followed by distant Internet hosts, for example).</> - <para> + network, followed by distant Internet hosts, for example). + </para><para> Some examples: <literallayout> deb http://http.us.debian.org/debian stable main contrib non-free deb http://http.us.debian.org/debian dists/stable-updates/ </literallayout> - </> + </para> </RefSect1> <RefSect1><title>URI specification diff --git a/apt/doc/vendors.list.5.sgml b/apt/doc/vendors.list.5.sgml index 5b3d6a8..1931913 100644 --- a/apt/doc/vendors.list.5.sgml +++ b/apt/doc/vendors.list.5.sgml @@ -32,20 +32,20 @@ vendor identification string (see below) enclosed in square braces to the sources.list line for all sites that mirror the repository provided by that vendor. - + The format of this file is similar to the one used by apt.conf. It consists of an arbitrary number of blocks of vendors, where each block starts with a string telling the + Some vendors may have multiple blocks that define different security policies for their distributions. Debian for instance uses a different signing methodology for stable and unstable releases. - + + - + The simple-key type</> @@ -75,6 +75,7 @@ simple-key "joe" The <option/--fingerprint/ option for <CiteRefEntry><RefEntryTitle><command/gpg/</RefEntryTitle><ManVolNum/1/</CiteRefEntry> will show the fingerprint for the selected keys(s). + </Para></ListItem> </VarListEntry> <VarListEntry><Term>Name</Term> @@ -82,19 +83,23 @@ simple-key "joe" A string containing a description of the owner of the key or vendor. You may put the vendor name and it's email. The string must be quoted with ". + </Para></ListItem> </VarListEntry> </VariableList> + </para> </RefSect1> <RefSect1><Title>Files</> <para> <filename>/etc/apt/vendors.list</> + </para> </RefSect1> <RefSect1><Title>See Also</> <para> &sources-list; + </para> </RefSect1> &manbugs; diff --git a/apt/lua/Makefile.in b/apt/lua/Makefile.in index 8002300..f989ff5 100644 --- a/apt/lua/Makefile.in +++ b/apt/lua/Makefile.in @@ -1,8 +1,8 @@ -# Makefile.in generated by automake 1.7.9 from Makefile.am. +# Makefile.in generated by automake 1.9.5 from Makefile.am. # @configure_input@ -# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 -# Free Software Foundation, Inc. +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -14,6 +14,9 @@ @SET_MAKE@ + +SOURCES = $(liblua_la_SOURCES) $(lua_lua_SOURCES) $(luac_luac_SOURCES) + srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ @@ -21,7 +24,6 @@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = .. - am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 @@ -35,12 +37,78 @@ POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : +build_triplet = @build@ host_triplet = @host@ +@WITH_LUA_TRUE@noinst_PROGRAMS = lua/lua$(EXEEXT) luac/luac$(EXEEXT) +subdir = lua +DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/buildlib/tools.m4 \ + $(top_srcdir)/m4/codeset.m4 $(top_srcdir)/m4/gettext.m4 \ + $(top_srcdir)/m4/glibc21.m4 $(top_srcdir)/m4/iconv.m4 \ + $(top_srcdir)/m4/intdiv0.m4 $(top_srcdir)/m4/inttypes-pri.m4 \ + $(top_srcdir)/m4/inttypes.m4 $(top_srcdir)/m4/inttypes_h.m4 \ + $(top_srcdir)/m4/lcmessage.m4 $(top_srcdir)/m4/lib-ld.m4 \ + $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ + $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/stdint_h.m4 \ + $(top_srcdir)/m4/uintmax_t.m4 $(top_srcdir)/m4/ulonglong.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(SHELL) $(top_srcdir)/buildlib/mkinstalldirs +CONFIG_HEADER = $(top_builddir)/include/config.h +CONFIG_CLEAN_FILES = +LTLIBRARIES = $(noinst_LTLIBRARIES) +liblua_la_DEPENDENCIES = +am__dirstamp = $(am__leading_dot)dirstamp +am_liblua_la_OBJECTS = local/liblua_la-linit.lo \ + local/liblua_la-lposix.lo local/liblua_la-lrexlib.lo \ + lib/liblua_la-lauxlib.lo lib/liblua_la-lbaselib.lo \ + lib/liblua_la-ldblib.lo lib/liblua_la-liolib.lo \ + lib/liblua_la-lmathlib.lo lib/liblua_la-loadlib.lo \ + lib/liblua_la-lstrlib.lo lib/liblua_la-ltablib.lo \ + liblua_la-lapi.lo liblua_la-lcode.lo liblua_la-ldebug.lo \ + liblua_la-ldo.lo liblua_la-ldump.lo liblua_la-lfunc.lo \ + liblua_la-lgc.lo liblua_la-llex.lo liblua_la-lmem.lo \ + liblua_la-lobject.lo liblua_la-lopcodes.lo \ + liblua_la-lparser.lo liblua_la-lstate.lo liblua_la-lstring.lo \ + liblua_la-ltable.lo liblua_la-ltests.lo liblua_la-ltm.lo \ + liblua_la-lundump.lo liblua_la-lvm.lo liblua_la-lzio.lo +liblua_la_OBJECTS = $(am_liblua_la_OBJECTS) +@WITH_LUA_TRUE@am_liblua_la_rpath = +PROGRAMS = $(noinst_PROGRAMS) +am_lua_lua_OBJECTS = lua/lua_lua-lua.$(OBJEXT) +lua_lua_OBJECTS = $(am_lua_lua_OBJECTS) +lua_lua_LDADD = $(LDADD) +lua_lua_DEPENDENCIES = liblua.la +am_luac_luac_OBJECTS = luac/luac_luac-luac.$(OBJEXT) \ + luac/luac_luac-print.$(OBJEXT) luac_luac-lopcodes.$(OBJEXT) +luac_luac_OBJECTS = $(am_luac_luac_OBJECTS) +luac_luac_LDADD = $(LDADD) +luac_luac_DEPENDENCIES = liblua.la +DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/include +depcomp = $(SHELL) $(top_srcdir)/buildlib/depcomp +am__depfiles_maybe = depfiles +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ + $(AM_LDFLAGS) $(LDFLAGS) -o $@ +SOURCES = $(liblua_la_SOURCES) $(lua_lua_SOURCES) $(luac_luac_SOURCES) +DIST_SOURCES = $(liblua_la_SOURCES) $(lua_lua_SOURCES) \ + $(luac_luac_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ +AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ @@ -59,6 +127,7 @@ COMPILE_STATIC_TRUE = @COMPILE_STATIC_TRUE@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ +CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ @@ -72,6 +141,8 @@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ +F77 = @F77@ +FFLAGS = @FFLAGS@ GENCAT = @GENCAT@ GLIBC21 = @GLIBC21@ GLIBC_VER = @GLIBC_VER@ @@ -134,8 +205,10 @@ VERSION = @VERSION@ WITH_LUA_FALSE = @WITH_LUA_FALSE@ WITH_LUA_TRUE = @WITH_LUA_TRUE@ XGETTEXT = @XGETTEXT@ +ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ ac_ct_RANLIB = @ac_ct_RANLIB@ ac_ct_STRIP = @ac_ct_STRIP@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ @@ -145,6 +218,8 @@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ @@ -165,6 +240,7 @@ libdir = @libdir@ libexecdir = @libexecdir@ localstatedir = @localstatedir@ mandir = @mandir@ +mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ prefix = @prefix@ program_transform_name = @program_transform_name@ @@ -172,10 +248,7 @@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ - @WITH_LUA_TRUE@noinst_LTLIBRARIES = liblua.la -@WITH_LUA_TRUE@noinst_PROGRAMS = lua/lua luac/luac - EXTRA_DIST = \ COPYRIGHT \ HISTORY \ @@ -183,16 +256,13 @@ EXTRA_DIST = \ local/userconfig.c \ local/linit.lua - LDADD = liblua.la INCLUDES = -I$(srcdir)/include -I$(srcdir)/local - lua_lua_SOURCES = lua/lua.c lua_lua_CFLAGS = -DLUA_USERCONFIG='"$(srcdir)/local/userconfig.c"' #lua_lua_LDADD = $(LDADD) -lreadline -lhistory -lncurses luac_luac_SOURCES = luac/luac.c luac/print.c lopcodes.c luac_luac_CFLAGS = -DLUA_OPNAMES - liblua_la_CFLAGS = -DUSE_DLOPEN -DWITH_POSIX liblua_la_LIBADD = -lm -ldl liblua_la_SOURCES = \ @@ -254,119 +324,53 @@ liblua_la_SOURCES = \ lzio.c \ lzio.h -subdir = lua -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -mkinstalldirs = $(SHELL) $(top_srcdir)/buildlib/mkinstalldirs -CONFIG_HEADER = $(top_builddir)/include/config.h -CONFIG_CLEAN_FILES = -LTLIBRARIES = $(noinst_LTLIBRARIES) - -liblua_la_LDFLAGS = -liblua_la_DEPENDENCIES = -am__dirstamp = $(am__leading_dot)dirstamp -am_liblua_la_OBJECTS = local/liblua_la-linit.lo \ - local/liblua_la-lposix.lo local/liblua_la-lrexlib.lo \ - lib/liblua_la-lauxlib.lo lib/liblua_la-lbaselib.lo \ - lib/liblua_la-ldblib.lo lib/liblua_la-liolib.lo \ - lib/liblua_la-lmathlib.lo lib/liblua_la-loadlib.lo \ - lib/liblua_la-lstrlib.lo lib/liblua_la-ltablib.lo \ - liblua_la-lapi.lo liblua_la-lcode.lo liblua_la-ldebug.lo \ - liblua_la-ldo.lo liblua_la-ldump.lo liblua_la-lfunc.lo \ - liblua_la-lgc.lo liblua_la-llex.lo liblua_la-lmem.lo \ - liblua_la-lobject.lo liblua_la-lopcodes.lo liblua_la-lparser.lo \ - liblua_la-lstate.lo liblua_la-lstring.lo liblua_la-ltable.lo \ - liblua_la-ltests.lo liblua_la-ltm.lo liblua_la-lundump.lo \ - liblua_la-lvm.lo liblua_la-lzio.lo -liblua_la_OBJECTS = $(am_liblua_la_OBJECTS) -@WITH_LUA_TRUE@noinst_PROGRAMS = lua/lua$(EXEEXT) luac/luac$(EXEEXT) -@WITH_LUA_FALSE@noinst_PROGRAMS = -PROGRAMS = $(noinst_PROGRAMS) - -am_lua_lua_OBJECTS = lua/lua_lua-lua.$(OBJEXT) -lua_lua_OBJECTS = $(am_lua_lua_OBJECTS) -lua_lua_LDADD = $(LDADD) -lua_lua_DEPENDENCIES = liblua.la -lua_lua_LDFLAGS = -am_luac_luac_OBJECTS = luac/luac_luac-luac.$(OBJEXT) \ - luac/luac_luac-print.$(OBJEXT) luac_luac-lopcodes.$(OBJEXT) -luac_luac_OBJECTS = $(am_luac_luac_OBJECTS) -luac_luac_LDADD = $(LDADD) -luac_luac_DEPENDENCIES = liblua.la -luac_luac_LDFLAGS = - -DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/include -depcomp = $(SHELL) $(top_srcdir)/buildlib/depcomp -am__depfiles_maybe = depfiles -@AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/liblua_la-lapi.Plo \ -@AMDEP_TRUE@ ./$(DEPDIR)/liblua_la-lcode.Plo \ -@AMDEP_TRUE@ ./$(DEPDIR)/liblua_la-ldebug.Plo \ -@AMDEP_TRUE@ ./$(DEPDIR)/liblua_la-ldo.Plo \ -@AMDEP_TRUE@ ./$(DEPDIR)/liblua_la-ldump.Plo \ -@AMDEP_TRUE@ ./$(DEPDIR)/liblua_la-lfunc.Plo \ -@AMDEP_TRUE@ ./$(DEPDIR)/liblua_la-lgc.Plo \ -@AMDEP_TRUE@ ./$(DEPDIR)/liblua_la-llex.Plo \ -@AMDEP_TRUE@ ./$(DEPDIR)/liblua_la-lmem.Plo \ -@AMDEP_TRUE@ ./$(DEPDIR)/liblua_la-lobject.Plo \ -@AMDEP_TRUE@ ./$(DEPDIR)/liblua_la-lopcodes.Plo \ -@AMDEP_TRUE@ ./$(DEPDIR)/liblua_la-lparser.Plo \ -@AMDEP_TRUE@ ./$(DEPDIR)/liblua_la-lstate.Plo \ -@AMDEP_TRUE@ ./$(DEPDIR)/liblua_la-lstring.Plo \ -@AMDEP_TRUE@ ./$(DEPDIR)/liblua_la-ltable.Plo \ -@AMDEP_TRUE@ ./$(DEPDIR)/liblua_la-ltests.Plo \ -@AMDEP_TRUE@ ./$(DEPDIR)/liblua_la-ltm.Plo \ -@AMDEP_TRUE@ ./$(DEPDIR)/liblua_la-lundump.Plo \ -@AMDEP_TRUE@ ./$(DEPDIR)/liblua_la-lvm.Plo \ -@AMDEP_TRUE@ ./$(DEPDIR)/liblua_la-lzio.Plo \ -@AMDEP_TRUE@ ./$(DEPDIR)/luac_luac-lopcodes.Po \ -@AMDEP_TRUE@ lib/$(DEPDIR)/liblua_la-lauxlib.Plo \ -@AMDEP_TRUE@ lib/$(DEPDIR)/liblua_la-lbaselib.Plo \ -@AMDEP_TRUE@ lib/$(DEPDIR)/liblua_la-ldblib.Plo \ -@AMDEP_TRUE@ lib/$(DEPDIR)/liblua_la-liolib.Plo \ -@AMDEP_TRUE@ lib/$(DEPDIR)/liblua_la-lmathlib.Plo \ -@AMDEP_TRUE@ lib/$(DEPDIR)/liblua_la-loadlib.Plo \ -@AMDEP_TRUE@ lib/$(DEPDIR)/liblua_la-lstrlib.Plo \ -@AMDEP_TRUE@ lib/$(DEPDIR)/liblua_la-ltablib.Plo \ -@AMDEP_TRUE@ local/$(DEPDIR)/liblua_la-linit.Plo \ -@AMDEP_TRUE@ local/$(DEPDIR)/liblua_la-lposix.Plo \ -@AMDEP_TRUE@ local/$(DEPDIR)/liblua_la-lrexlib.Plo \ -@AMDEP_TRUE@ lua/$(DEPDIR)/lua_lua-lua.Po \ -@AMDEP_TRUE@ luac/$(DEPDIR)/luac_luac-luac.Po \ -@AMDEP_TRUE@ luac/$(DEPDIR)/luac_luac-print.Po -COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ - $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) \ - $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -CCLD = $(CC) -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ - $(AM_LDFLAGS) $(LDFLAGS) -o $@ -DIST_SOURCES = $(liblua_la_SOURCES) $(lua_lua_SOURCES) \ - $(luac_luac_SOURCES) -DIST_COMMON = README $(srcdir)/Makefile.in Makefile.am -SOURCES = $(liblua_la_SOURCES) $(lua_lua_SOURCES) $(luac_luac_SOURCES) - all: all-am .SUFFIXES: .SUFFIXES: .c .lo .o .obj -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign lua/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign lua/Makefile -Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in $(top_builddir)/config.status - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe) +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh clean-noinstLTLIBRARIES: -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \ dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ - test "$$dir" = "$$p" && dir=.; \ + test "$$dir" != "$$p" || dir=.; \ echo "rm -f \"$${dir}/so_locations\""; \ rm -f "$${dir}/so_locations"; \ done local/$(am__dirstamp): - @$(mkinstalldirs) local + @$(mkdir_p) local @: > local/$(am__dirstamp) local/$(DEPDIR)/$(am__dirstamp): - @$(mkinstalldirs) local/$(DEPDIR) + @$(mkdir_p) local/$(DEPDIR) @: > local/$(DEPDIR)/$(am__dirstamp) local/liblua_la-linit.lo: local/$(am__dirstamp) \ local/$(DEPDIR)/$(am__dirstamp) @@ -375,10 +379,10 @@ local/liblua_la-lposix.lo: local/$(am__dirstamp) \ local/liblua_la-lrexlib.lo: local/$(am__dirstamp) \ local/$(DEPDIR)/$(am__dirstamp) lib/$(am__dirstamp): - @$(mkinstalldirs) lib + @$(mkdir_p) lib @: > lib/$(am__dirstamp) lib/$(DEPDIR)/$(am__dirstamp): - @$(mkinstalldirs) lib/$(DEPDIR) + @$(mkdir_p) lib/$(DEPDIR) @: > lib/$(DEPDIR)/$(am__dirstamp) lib/liblua_la-lauxlib.lo: lib/$(am__dirstamp) \ lib/$(DEPDIR)/$(am__dirstamp) @@ -397,7 +401,7 @@ lib/liblua_la-lstrlib.lo: lib/$(am__dirstamp) \ lib/liblua_la-ltablib.lo: lib/$(am__dirstamp) \ lib/$(DEPDIR)/$(am__dirstamp) liblua.la: $(liblua_la_OBJECTS) $(liblua_la_DEPENDENCIES) - $(LINK) $(liblua_la_LDFLAGS) $(liblua_la_OBJECTS) $(liblua_la_LIBADD) $(LIBS) + $(LINK) $(am_liblua_la_rpath) $(liblua_la_LDFLAGS) $(liblua_la_OBJECTS) $(liblua_la_LIBADD) $(LIBS) clean-noinstPROGRAMS: @list='$(noinst_PROGRAMS)'; for p in $$list; do \ @@ -406,10 +410,10 @@ clean-noinstPROGRAMS: rm -f $$p $$f ; \ done lua/$(am__dirstamp): - @$(mkinstalldirs) lua + @$(mkdir_p) lua @: > lua/$(am__dirstamp) lua/$(DEPDIR)/$(am__dirstamp): - @$(mkinstalldirs) lua/$(DEPDIR) + @$(mkdir_p) lua/$(DEPDIR) @: > lua/$(DEPDIR)/$(am__dirstamp) lua/lua_lua-lua.$(OBJEXT): lua/$(am__dirstamp) \ lua/$(DEPDIR)/$(am__dirstamp) @@ -417,10 +421,10 @@ lua/lua$(EXEEXT): $(lua_lua_OBJECTS) $(lua_lua_DEPENDENCIES) lua/$(am__dirstamp) @rm -f lua/lua$(EXEEXT) $(LINK) $(lua_lua_LDFLAGS) $(lua_lua_OBJECTS) $(lua_lua_LDADD) $(LIBS) luac/$(am__dirstamp): - @$(mkinstalldirs) luac + @$(mkdir_p) luac @: > luac/$(am__dirstamp) luac/$(DEPDIR)/$(am__dirstamp): - @$(mkinstalldirs) luac/$(DEPDIR) + @$(mkdir_p) luac/$(DEPDIR) @: > luac/$(DEPDIR)/$(am__dirstamp) luac/luac_luac-luac.$(OBJEXT): luac/$(am__dirstamp) \ luac/$(DEPDIR)/$(am__dirstamp) @@ -431,7 +435,7 @@ luac/luac$(EXEEXT): $(luac_luac_OBJECTS) $(luac_luac_DEPENDENCIES) luac/$(am__di $(LINK) $(luac_luac_LDFLAGS) $(luac_luac_OBJECTS) $(luac_luac_LDADD) $(LIBS) mostlyclean-compile: - -rm -f *.$(OBJEXT) core *.core + -rm -f *.$(OBJEXT) -rm -f lib/liblua_la-lauxlib.$(OBJEXT) -rm -f lib/liblua_la-lauxlib.lo -rm -f lib/liblua_la-lbaselib.$(OBJEXT) @@ -498,1193 +502,302 @@ distclean-compile: @AMDEP_TRUE@@am__include@ @am__quote@luac/$(DEPDIR)/luac_luac-print.Po@am__quote@ .c.o: -@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \ -@am__fastdepCC_TRUE@ -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi +@am__fastdepCC_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`; \ +@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$$depbase.Tpo" -c -o $@ $<; \ +@am__fastdepCC_TRUE@ then mv -f "$$depbase.Tpo" "$$depbase.Po"; else rm -f "$$depbase.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(COMPILE) -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$< +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c -o $@ $< .c.obj: -@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \ -@am__fastdepCC_TRUE@ -c -o $@ `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi`; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi +@am__fastdepCC_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`; \ +@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$$depbase.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ +@am__fastdepCC_TRUE@ then mv -f "$$depbase.Tpo" "$$depbase.Po"; else rm -f "$$depbase.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(COMPILE) -c -o $@ `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi` +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .c.lo: -@am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \ -@am__fastdepCC_TRUE@ -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; \ -@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi +@am__fastdepCC_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`; \ +@am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$$depbase.Tpo" -c -o $@ $<; \ +@am__fastdepCC_TRUE@ then mv -f "$$depbase.Tpo" "$$depbase.Plo"; else rm -f "$$depbase.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/$*.Plo' tmpdepfile='$(DEPDIR)/$*.TPlo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$< - -local/liblua_la-linit.o: local/linit.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT local/liblua_la-linit.o -MD -MP -MF "local/$(DEPDIR)/liblua_la-linit.Tpo" \ -@am__fastdepCC_TRUE@ -c -o local/liblua_la-linit.o `test -f 'local/linit.c' || echo '$(srcdir)/'`local/linit.c; \ -@am__fastdepCC_TRUE@ then mv -f "local/$(DEPDIR)/liblua_la-linit.Tpo" "local/$(DEPDIR)/liblua_la-linit.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "local/$(DEPDIR)/liblua_la-linit.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='local/linit.c' object='local/liblua_la-linit.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='local/$(DEPDIR)/liblua_la-linit.Po' tmpdepfile='local/$(DEPDIR)/liblua_la-linit.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o local/liblua_la-linit.o `test -f 'local/linit.c' || echo '$(srcdir)/'`local/linit.c - -local/liblua_la-linit.obj: local/linit.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT local/liblua_la-linit.obj -MD -MP -MF "local/$(DEPDIR)/liblua_la-linit.Tpo" \ -@am__fastdepCC_TRUE@ -c -o local/liblua_la-linit.obj `if test -f 'local/linit.c'; then $(CYGPATH_W) 'local/linit.c'; else $(CYGPATH_W) '$(srcdir)/local/linit.c'; fi`; \ -@am__fastdepCC_TRUE@ then mv -f "local/$(DEPDIR)/liblua_la-linit.Tpo" "local/$(DEPDIR)/liblua_la-linit.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "local/$(DEPDIR)/liblua_la-linit.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='local/linit.c' object='local/liblua_la-linit.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='local/$(DEPDIR)/liblua_la-linit.Po' tmpdepfile='local/$(DEPDIR)/liblua_la-linit.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o local/liblua_la-linit.obj `if test -f 'local/linit.c'; then $(CYGPATH_W) 'local/linit.c'; else $(CYGPATH_W) '$(srcdir)/local/linit.c'; fi` +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< local/liblua_la-linit.lo: local/linit.c -@am__fastdepCC_TRUE@ if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT local/liblua_la-linit.lo -MD -MP -MF "local/$(DEPDIR)/liblua_la-linit.Tpo" \ -@am__fastdepCC_TRUE@ -c -o local/liblua_la-linit.lo `test -f 'local/linit.c' || echo '$(srcdir)/'`local/linit.c; \ -@am__fastdepCC_TRUE@ then mv -f "local/$(DEPDIR)/liblua_la-linit.Tpo" "local/$(DEPDIR)/liblua_la-linit.Plo"; \ -@am__fastdepCC_TRUE@ else rm -f "local/$(DEPDIR)/liblua_la-linit.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi +@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT local/liblua_la-linit.lo -MD -MP -MF "local/$(DEPDIR)/liblua_la-linit.Tpo" -c -o local/liblua_la-linit.lo `test -f 'local/linit.c' || echo '$(srcdir)/'`local/linit.c; \ +@am__fastdepCC_TRUE@ then mv -f "local/$(DEPDIR)/liblua_la-linit.Tpo" "local/$(DEPDIR)/liblua_la-linit.Plo"; else rm -f "local/$(DEPDIR)/liblua_la-linit.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='local/linit.c' object='local/liblua_la-linit.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='local/$(DEPDIR)/liblua_la-linit.Plo' tmpdepfile='local/$(DEPDIR)/liblua_la-linit.TPlo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o local/liblua_la-linit.lo `test -f 'local/linit.c' || echo '$(srcdir)/'`local/linit.c - -local/liblua_la-lposix.o: local/lposix.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT local/liblua_la-lposix.o -MD -MP -MF "local/$(DEPDIR)/liblua_la-lposix.Tpo" \ -@am__fastdepCC_TRUE@ -c -o local/liblua_la-lposix.o `test -f 'local/lposix.c' || echo '$(srcdir)/'`local/lposix.c; \ -@am__fastdepCC_TRUE@ then mv -f "local/$(DEPDIR)/liblua_la-lposix.Tpo" "local/$(DEPDIR)/liblua_la-lposix.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "local/$(DEPDIR)/liblua_la-lposix.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='local/lposix.c' object='local/liblua_la-lposix.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='local/$(DEPDIR)/liblua_la-lposix.Po' tmpdepfile='local/$(DEPDIR)/liblua_la-lposix.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o local/liblua_la-lposix.o `test -f 'local/lposix.c' || echo '$(srcdir)/'`local/lposix.c - -local/liblua_la-lposix.obj: local/lposix.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT local/liblua_la-lposix.obj -MD -MP -MF "local/$(DEPDIR)/liblua_la-lposix.Tpo" \ -@am__fastdepCC_TRUE@ -c -o local/liblua_la-lposix.obj `if test -f 'local/lposix.c'; then $(CYGPATH_W) 'local/lposix.c'; else $(CYGPATH_W) '$(srcdir)/local/lposix.c'; fi`; \ -@am__fastdepCC_TRUE@ then mv -f "local/$(DEPDIR)/liblua_la-lposix.Tpo" "local/$(DEPDIR)/liblua_la-lposix.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "local/$(DEPDIR)/liblua_la-lposix.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='local/lposix.c' object='local/liblua_la-lposix.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='local/$(DEPDIR)/liblua_la-lposix.Po' tmpdepfile='local/$(DEPDIR)/liblua_la-lposix.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o local/liblua_la-lposix.obj `if test -f 'local/lposix.c'; then $(CYGPATH_W) 'local/lposix.c'; else $(CYGPATH_W) '$(srcdir)/local/lposix.c'; fi` +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o local/liblua_la-linit.lo `test -f 'local/linit.c' || echo '$(srcdir)/'`local/linit.c local/liblua_la-lposix.lo: local/lposix.c -@am__fastdepCC_TRUE@ if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT local/liblua_la-lposix.lo -MD -MP -MF "local/$(DEPDIR)/liblua_la-lposix.Tpo" \ -@am__fastdepCC_TRUE@ -c -o local/liblua_la-lposix.lo `test -f 'local/lposix.c' || echo '$(srcdir)/'`local/lposix.c; \ -@am__fastdepCC_TRUE@ then mv -f "local/$(DEPDIR)/liblua_la-lposix.Tpo" "local/$(DEPDIR)/liblua_la-lposix.Plo"; \ -@am__fastdepCC_TRUE@ else rm -f "local/$(DEPDIR)/liblua_la-lposix.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi +@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT local/liblua_la-lposix.lo -MD -MP -MF "local/$(DEPDIR)/liblua_la-lposix.Tpo" -c -o local/liblua_la-lposix.lo `test -f 'local/lposix.c' || echo '$(srcdir)/'`local/lposix.c; \ +@am__fastdepCC_TRUE@ then mv -f "local/$(DEPDIR)/liblua_la-lposix.Tpo" "local/$(DEPDIR)/liblua_la-lposix.Plo"; else rm -f "local/$(DEPDIR)/liblua_la-lposix.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='local/lposix.c' object='local/liblua_la-lposix.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='local/$(DEPDIR)/liblua_la-lposix.Plo' tmpdepfile='local/$(DEPDIR)/liblua_la-lposix.TPlo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o local/liblua_la-lposix.lo `test -f 'local/lposix.c' || echo '$(srcdir)/'`local/lposix.c - -local/liblua_la-lrexlib.o: local/lrexlib.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT local/liblua_la-lrexlib.o -MD -MP -MF "local/$(DEPDIR)/liblua_la-lrexlib.Tpo" \ -@am__fastdepCC_TRUE@ -c -o local/liblua_la-lrexlib.o `test -f 'local/lrexlib.c' || echo '$(srcdir)/'`local/lrexlib.c; \ -@am__fastdepCC_TRUE@ then mv -f "local/$(DEPDIR)/liblua_la-lrexlib.Tpo" "local/$(DEPDIR)/liblua_la-lrexlib.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "local/$(DEPDIR)/liblua_la-lrexlib.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='local/lrexlib.c' object='local/liblua_la-lrexlib.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='local/$(DEPDIR)/liblua_la-lrexlib.Po' tmpdepfile='local/$(DEPDIR)/liblua_la-lrexlib.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o local/liblua_la-lrexlib.o `test -f 'local/lrexlib.c' || echo '$(srcdir)/'`local/lrexlib.c - -local/liblua_la-lrexlib.obj: local/lrexlib.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT local/liblua_la-lrexlib.obj -MD -MP -MF "local/$(DEPDIR)/liblua_la-lrexlib.Tpo" \ -@am__fastdepCC_TRUE@ -c -o local/liblua_la-lrexlib.obj `if test -f 'local/lrexlib.c'; then $(CYGPATH_W) 'local/lrexlib.c'; else $(CYGPATH_W) '$(srcdir)/local/lrexlib.c'; fi`; \ -@am__fastdepCC_TRUE@ then mv -f "local/$(DEPDIR)/liblua_la-lrexlib.Tpo" "local/$(DEPDIR)/liblua_la-lrexlib.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "local/$(DEPDIR)/liblua_la-lrexlib.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='local/lrexlib.c' object='local/liblua_la-lrexlib.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='local/$(DEPDIR)/liblua_la-lrexlib.Po' tmpdepfile='local/$(DEPDIR)/liblua_la-lrexlib.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o local/liblua_la-lrexlib.obj `if test -f 'local/lrexlib.c'; then $(CYGPATH_W) 'local/lrexlib.c'; else $(CYGPATH_W) '$(srcdir)/local/lrexlib.c'; fi` +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o local/liblua_la-lposix.lo `test -f 'local/lposix.c' || echo '$(srcdir)/'`local/lposix.c local/liblua_la-lrexlib.lo: local/lrexlib.c -@am__fastdepCC_TRUE@ if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT local/liblua_la-lrexlib.lo -MD -MP -MF "local/$(DEPDIR)/liblua_la-lrexlib.Tpo" \ -@am__fastdepCC_TRUE@ -c -o local/liblua_la-lrexlib.lo `test -f 'local/lrexlib.c' || echo '$(srcdir)/'`local/lrexlib.c; \ -@am__fastdepCC_TRUE@ then mv -f "local/$(DEPDIR)/liblua_la-lrexlib.Tpo" "local/$(DEPDIR)/liblua_la-lrexlib.Plo"; \ -@am__fastdepCC_TRUE@ else rm -f "local/$(DEPDIR)/liblua_la-lrexlib.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi +@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT local/liblua_la-lrexlib.lo -MD -MP -MF "local/$(DEPDIR)/liblua_la-lrexlib.Tpo" -c -o local/liblua_la-lrexlib.lo `test -f 'local/lrexlib.c' || echo '$(srcdir)/'`local/lrexlib.c; \ +@am__fastdepCC_TRUE@ then mv -f "local/$(DEPDIR)/liblua_la-lrexlib.Tpo" "local/$(DEPDIR)/liblua_la-lrexlib.Plo"; else rm -f "local/$(DEPDIR)/liblua_la-lrexlib.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='local/lrexlib.c' object='local/liblua_la-lrexlib.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='local/$(DEPDIR)/liblua_la-lrexlib.Plo' tmpdepfile='local/$(DEPDIR)/liblua_la-lrexlib.TPlo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o local/liblua_la-lrexlib.lo `test -f 'local/lrexlib.c' || echo '$(srcdir)/'`local/lrexlib.c - -lib/liblua_la-lauxlib.o: lib/lauxlib.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT lib/liblua_la-lauxlib.o -MD -MP -MF "lib/$(DEPDIR)/liblua_la-lauxlib.Tpo" \ -@am__fastdepCC_TRUE@ -c -o lib/liblua_la-lauxlib.o `test -f 'lib/lauxlib.c' || echo '$(srcdir)/'`lib/lauxlib.c; \ -@am__fastdepCC_TRUE@ then mv -f "lib/$(DEPDIR)/liblua_la-lauxlib.Tpo" "lib/$(DEPDIR)/liblua_la-lauxlib.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "lib/$(DEPDIR)/liblua_la-lauxlib.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/lauxlib.c' object='lib/liblua_la-lauxlib.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='lib/$(DEPDIR)/liblua_la-lauxlib.Po' tmpdepfile='lib/$(DEPDIR)/liblua_la-lauxlib.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o lib/liblua_la-lauxlib.o `test -f 'lib/lauxlib.c' || echo '$(srcdir)/'`lib/lauxlib.c - -lib/liblua_la-lauxlib.obj: lib/lauxlib.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT lib/liblua_la-lauxlib.obj -MD -MP -MF "lib/$(DEPDIR)/liblua_la-lauxlib.Tpo" \ -@am__fastdepCC_TRUE@ -c -o lib/liblua_la-lauxlib.obj `if test -f 'lib/lauxlib.c'; then $(CYGPATH_W) 'lib/lauxlib.c'; else $(CYGPATH_W) '$(srcdir)/lib/lauxlib.c'; fi`; \ -@am__fastdepCC_TRUE@ then mv -f "lib/$(DEPDIR)/liblua_la-lauxlib.Tpo" "lib/$(DEPDIR)/liblua_la-lauxlib.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "lib/$(DEPDIR)/liblua_la-lauxlib.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/lauxlib.c' object='lib/liblua_la-lauxlib.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='lib/$(DEPDIR)/liblua_la-lauxlib.Po' tmpdepfile='lib/$(DEPDIR)/liblua_la-lauxlib.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o lib/liblua_la-lauxlib.obj `if test -f 'lib/lauxlib.c'; then $(CYGPATH_W) 'lib/lauxlib.c'; else $(CYGPATH_W) '$(srcdir)/lib/lauxlib.c'; fi` +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o local/liblua_la-lrexlib.lo `test -f 'local/lrexlib.c' || echo '$(srcdir)/'`local/lrexlib.c lib/liblua_la-lauxlib.lo: lib/lauxlib.c -@am__fastdepCC_TRUE@ if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT lib/liblua_la-lauxlib.lo -MD -MP -MF "lib/$(DEPDIR)/liblua_la-lauxlib.Tpo" \ -@am__fastdepCC_TRUE@ -c -o lib/liblua_la-lauxlib.lo `test -f 'lib/lauxlib.c' || echo '$(srcdir)/'`lib/lauxlib.c; \ -@am__fastdepCC_TRUE@ then mv -f "lib/$(DEPDIR)/liblua_la-lauxlib.Tpo" "lib/$(DEPDIR)/liblua_la-lauxlib.Plo"; \ -@am__fastdepCC_TRUE@ else rm -f "lib/$(DEPDIR)/liblua_la-lauxlib.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi +@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT lib/liblua_la-lauxlib.lo -MD -MP -MF "lib/$(DEPDIR)/liblua_la-lauxlib.Tpo" -c -o lib/liblua_la-lauxlib.lo `test -f 'lib/lauxlib.c' || echo '$(srcdir)/'`lib/lauxlib.c; \ +@am__fastdepCC_TRUE@ then mv -f "lib/$(DEPDIR)/liblua_la-lauxlib.Tpo" "lib/$(DEPDIR)/liblua_la-lauxlib.Plo"; else rm -f "lib/$(DEPDIR)/liblua_la-lauxlib.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/lauxlib.c' object='lib/liblua_la-lauxlib.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='lib/$(DEPDIR)/liblua_la-lauxlib.Plo' tmpdepfile='lib/$(DEPDIR)/liblua_la-lauxlib.TPlo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o lib/liblua_la-lauxlib.lo `test -f 'lib/lauxlib.c' || echo '$(srcdir)/'`lib/lauxlib.c - -lib/liblua_la-lbaselib.o: lib/lbaselib.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT lib/liblua_la-lbaselib.o -MD -MP -MF "lib/$(DEPDIR)/liblua_la-lbaselib.Tpo" \ -@am__fastdepCC_TRUE@ -c -o lib/liblua_la-lbaselib.o `test -f 'lib/lbaselib.c' || echo '$(srcdir)/'`lib/lbaselib.c; \ -@am__fastdepCC_TRUE@ then mv -f "lib/$(DEPDIR)/liblua_la-lbaselib.Tpo" "lib/$(DEPDIR)/liblua_la-lbaselib.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "lib/$(DEPDIR)/liblua_la-lbaselib.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/lbaselib.c' object='lib/liblua_la-lbaselib.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='lib/$(DEPDIR)/liblua_la-lbaselib.Po' tmpdepfile='lib/$(DEPDIR)/liblua_la-lbaselib.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o lib/liblua_la-lbaselib.o `test -f 'lib/lbaselib.c' || echo '$(srcdir)/'`lib/lbaselib.c - -lib/liblua_la-lbaselib.obj: lib/lbaselib.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT lib/liblua_la-lbaselib.obj -MD -MP -MF "lib/$(DEPDIR)/liblua_la-lbaselib.Tpo" \ -@am__fastdepCC_TRUE@ -c -o lib/liblua_la-lbaselib.obj `if test -f 'lib/lbaselib.c'; then $(CYGPATH_W) 'lib/lbaselib.c'; else $(CYGPATH_W) '$(srcdir)/lib/lbaselib.c'; fi`; \ -@am__fastdepCC_TRUE@ then mv -f "lib/$(DEPDIR)/liblua_la-lbaselib.Tpo" "lib/$(DEPDIR)/liblua_la-lbaselib.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "lib/$(DEPDIR)/liblua_la-lbaselib.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/lbaselib.c' object='lib/liblua_la-lbaselib.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='lib/$(DEPDIR)/liblua_la-lbaselib.Po' tmpdepfile='lib/$(DEPDIR)/liblua_la-lbaselib.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o lib/liblua_la-lbaselib.obj `if test -f 'lib/lbaselib.c'; then $(CYGPATH_W) 'lib/lbaselib.c'; else $(CYGPATH_W) '$(srcdir)/lib/lbaselib.c'; fi` +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o lib/liblua_la-lauxlib.lo `test -f 'lib/lauxlib.c' || echo '$(srcdir)/'`lib/lauxlib.c lib/liblua_la-lbaselib.lo: lib/lbaselib.c -@am__fastdepCC_TRUE@ if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT lib/liblua_la-lbaselib.lo -MD -MP -MF "lib/$(DEPDIR)/liblua_la-lbaselib.Tpo" \ -@am__fastdepCC_TRUE@ -c -o lib/liblua_la-lbaselib.lo `test -f 'lib/lbaselib.c' || echo '$(srcdir)/'`lib/lbaselib.c; \ -@am__fastdepCC_TRUE@ then mv -f "lib/$(DEPDIR)/liblua_la-lbaselib.Tpo" "lib/$(DEPDIR)/liblua_la-lbaselib.Plo"; \ -@am__fastdepCC_TRUE@ else rm -f "lib/$(DEPDIR)/liblua_la-lbaselib.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi +@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT lib/liblua_la-lbaselib.lo -MD -MP -MF "lib/$(DEPDIR)/liblua_la-lbaselib.Tpo" -c -o lib/liblua_la-lbaselib.lo `test -f 'lib/lbaselib.c' || echo '$(srcdir)/'`lib/lbaselib.c; \ +@am__fastdepCC_TRUE@ then mv -f "lib/$(DEPDIR)/liblua_la-lbaselib.Tpo" "lib/$(DEPDIR)/liblua_la-lbaselib.Plo"; else rm -f "lib/$(DEPDIR)/liblua_la-lbaselib.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/lbaselib.c' object='lib/liblua_la-lbaselib.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='lib/$(DEPDIR)/liblua_la-lbaselib.Plo' tmpdepfile='lib/$(DEPDIR)/liblua_la-lbaselib.TPlo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o lib/liblua_la-lbaselib.lo `test -f 'lib/lbaselib.c' || echo '$(srcdir)/'`lib/lbaselib.c - -lib/liblua_la-ldblib.o: lib/ldblib.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT lib/liblua_la-ldblib.o -MD -MP -MF "lib/$(DEPDIR)/liblua_la-ldblib.Tpo" \ -@am__fastdepCC_TRUE@ -c -o lib/liblua_la-ldblib.o `test -f 'lib/ldblib.c' || echo '$(srcdir)/'`lib/ldblib.c; \ -@am__fastdepCC_TRUE@ then mv -f "lib/$(DEPDIR)/liblua_la-ldblib.Tpo" "lib/$(DEPDIR)/liblua_la-ldblib.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "lib/$(DEPDIR)/liblua_la-ldblib.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/ldblib.c' object='lib/liblua_la-ldblib.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='lib/$(DEPDIR)/liblua_la-ldblib.Po' tmpdepfile='lib/$(DEPDIR)/liblua_la-ldblib.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o lib/liblua_la-ldblib.o `test -f 'lib/ldblib.c' || echo '$(srcdir)/'`lib/ldblib.c - -lib/liblua_la-ldblib.obj: lib/ldblib.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT lib/liblua_la-ldblib.obj -MD -MP -MF "lib/$(DEPDIR)/liblua_la-ldblib.Tpo" \ -@am__fastdepCC_TRUE@ -c -o lib/liblua_la-ldblib.obj `if test -f 'lib/ldblib.c'; then $(CYGPATH_W) 'lib/ldblib.c'; else $(CYGPATH_W) '$(srcdir)/lib/ldblib.c'; fi`; \ -@am__fastdepCC_TRUE@ then mv -f "lib/$(DEPDIR)/liblua_la-ldblib.Tpo" "lib/$(DEPDIR)/liblua_la-ldblib.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "lib/$(DEPDIR)/liblua_la-ldblib.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/ldblib.c' object='lib/liblua_la-ldblib.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='lib/$(DEPDIR)/liblua_la-ldblib.Po' tmpdepfile='lib/$(DEPDIR)/liblua_la-ldblib.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o lib/liblua_la-ldblib.obj `if test -f 'lib/ldblib.c'; then $(CYGPATH_W) 'lib/ldblib.c'; else $(CYGPATH_W) '$(srcdir)/lib/ldblib.c'; fi` +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o lib/liblua_la-lbaselib.lo `test -f 'lib/lbaselib.c' || echo '$(srcdir)/'`lib/lbaselib.c lib/liblua_la-ldblib.lo: lib/ldblib.c -@am__fastdepCC_TRUE@ if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT lib/liblua_la-ldblib.lo -MD -MP -MF "lib/$(DEPDIR)/liblua_la-ldblib.Tpo" \ -@am__fastdepCC_TRUE@ -c -o lib/liblua_la-ldblib.lo `test -f 'lib/ldblib.c' || echo '$(srcdir)/'`lib/ldblib.c; \ -@am__fastdepCC_TRUE@ then mv -f "lib/$(DEPDIR)/liblua_la-ldblib.Tpo" "lib/$(DEPDIR)/liblua_la-ldblib.Plo"; \ -@am__fastdepCC_TRUE@ else rm -f "lib/$(DEPDIR)/liblua_la-ldblib.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi +@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT lib/liblua_la-ldblib.lo -MD -MP -MF "lib/$(DEPDIR)/liblua_la-ldblib.Tpo" -c -o lib/liblua_la-ldblib.lo `test -f 'lib/ldblib.c' || echo '$(srcdir)/'`lib/ldblib.c; \ +@am__fastdepCC_TRUE@ then mv -f "lib/$(DEPDIR)/liblua_la-ldblib.Tpo" "lib/$(DEPDIR)/liblua_la-ldblib.Plo"; else rm -f "lib/$(DEPDIR)/liblua_la-ldblib.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/ldblib.c' object='lib/liblua_la-ldblib.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='lib/$(DEPDIR)/liblua_la-ldblib.Plo' tmpdepfile='lib/$(DEPDIR)/liblua_la-ldblib.TPlo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o lib/liblua_la-ldblib.lo `test -f 'lib/ldblib.c' || echo '$(srcdir)/'`lib/ldblib.c - -lib/liblua_la-liolib.o: lib/liolib.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT lib/liblua_la-liolib.o -MD -MP -MF "lib/$(DEPDIR)/liblua_la-liolib.Tpo" \ -@am__fastdepCC_TRUE@ -c -o lib/liblua_la-liolib.o `test -f 'lib/liolib.c' || echo '$(srcdir)/'`lib/liolib.c; \ -@am__fastdepCC_TRUE@ then mv -f "lib/$(DEPDIR)/liblua_la-liolib.Tpo" "lib/$(DEPDIR)/liblua_la-liolib.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "lib/$(DEPDIR)/liblua_la-liolib.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/liolib.c' object='lib/liblua_la-liolib.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='lib/$(DEPDIR)/liblua_la-liolib.Po' tmpdepfile='lib/$(DEPDIR)/liblua_la-liolib.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o lib/liblua_la-liolib.o `test -f 'lib/liolib.c' || echo '$(srcdir)/'`lib/liolib.c - -lib/liblua_la-liolib.obj: lib/liolib.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT lib/liblua_la-liolib.obj -MD -MP -MF "lib/$(DEPDIR)/liblua_la-liolib.Tpo" \ -@am__fastdepCC_TRUE@ -c -o lib/liblua_la-liolib.obj `if test -f 'lib/liolib.c'; then $(CYGPATH_W) 'lib/liolib.c'; else $(CYGPATH_W) '$(srcdir)/lib/liolib.c'; fi`; \ -@am__fastdepCC_TRUE@ then mv -f "lib/$(DEPDIR)/liblua_la-liolib.Tpo" "lib/$(DEPDIR)/liblua_la-liolib.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "lib/$(DEPDIR)/liblua_la-liolib.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/liolib.c' object='lib/liblua_la-liolib.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='lib/$(DEPDIR)/liblua_la-liolib.Po' tmpdepfile='lib/$(DEPDIR)/liblua_la-liolib.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o lib/liblua_la-liolib.obj `if test -f 'lib/liolib.c'; then $(CYGPATH_W) 'lib/liolib.c'; else $(CYGPATH_W) '$(srcdir)/lib/liolib.c'; fi` +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o lib/liblua_la-ldblib.lo `test -f 'lib/ldblib.c' || echo '$(srcdir)/'`lib/ldblib.c lib/liblua_la-liolib.lo: lib/liolib.c -@am__fastdepCC_TRUE@ if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT lib/liblua_la-liolib.lo -MD -MP -MF "lib/$(DEPDIR)/liblua_la-liolib.Tpo" \ -@am__fastdepCC_TRUE@ -c -o lib/liblua_la-liolib.lo `test -f 'lib/liolib.c' || echo '$(srcdir)/'`lib/liolib.c; \ -@am__fastdepCC_TRUE@ then mv -f "lib/$(DEPDIR)/liblua_la-liolib.Tpo" "lib/$(DEPDIR)/liblua_la-liolib.Plo"; \ -@am__fastdepCC_TRUE@ else rm -f "lib/$(DEPDIR)/liblua_la-liolib.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi +@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT lib/liblua_la-liolib.lo -MD -MP -MF "lib/$(DEPDIR)/liblua_la-liolib.Tpo" -c -o lib/liblua_la-liolib.lo `test -f 'lib/liolib.c' || echo '$(srcdir)/'`lib/liolib.c; \ +@am__fastdepCC_TRUE@ then mv -f "lib/$(DEPDIR)/liblua_la-liolib.Tpo" "lib/$(DEPDIR)/liblua_la-liolib.Plo"; else rm -f "lib/$(DEPDIR)/liblua_la-liolib.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/liolib.c' object='lib/liblua_la-liolib.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='lib/$(DEPDIR)/liblua_la-liolib.Plo' tmpdepfile='lib/$(DEPDIR)/liblua_la-liolib.TPlo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o lib/liblua_la-liolib.lo `test -f 'lib/liolib.c' || echo '$(srcdir)/'`lib/liolib.c - -lib/liblua_la-lmathlib.o: lib/lmathlib.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT lib/liblua_la-lmathlib.o -MD -MP -MF "lib/$(DEPDIR)/liblua_la-lmathlib.Tpo" \ -@am__fastdepCC_TRUE@ -c -o lib/liblua_la-lmathlib.o `test -f 'lib/lmathlib.c' || echo '$(srcdir)/'`lib/lmathlib.c; \ -@am__fastdepCC_TRUE@ then mv -f "lib/$(DEPDIR)/liblua_la-lmathlib.Tpo" "lib/$(DEPDIR)/liblua_la-lmathlib.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "lib/$(DEPDIR)/liblua_la-lmathlib.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/lmathlib.c' object='lib/liblua_la-lmathlib.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='lib/$(DEPDIR)/liblua_la-lmathlib.Po' tmpdepfile='lib/$(DEPDIR)/liblua_la-lmathlib.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o lib/liblua_la-lmathlib.o `test -f 'lib/lmathlib.c' || echo '$(srcdir)/'`lib/lmathlib.c - -lib/liblua_la-lmathlib.obj: lib/lmathlib.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT lib/liblua_la-lmathlib.obj -MD -MP -MF "lib/$(DEPDIR)/liblua_la-lmathlib.Tpo" \ -@am__fastdepCC_TRUE@ -c -o lib/liblua_la-lmathlib.obj `if test -f 'lib/lmathlib.c'; then $(CYGPATH_W) 'lib/lmathlib.c'; else $(CYGPATH_W) '$(srcdir)/lib/lmathlib.c'; fi`; \ -@am__fastdepCC_TRUE@ then mv -f "lib/$(DEPDIR)/liblua_la-lmathlib.Tpo" "lib/$(DEPDIR)/liblua_la-lmathlib.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "lib/$(DEPDIR)/liblua_la-lmathlib.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/lmathlib.c' object='lib/liblua_la-lmathlib.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='lib/$(DEPDIR)/liblua_la-lmathlib.Po' tmpdepfile='lib/$(DEPDIR)/liblua_la-lmathlib.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o lib/liblua_la-lmathlib.obj `if test -f 'lib/lmathlib.c'; then $(CYGPATH_W) 'lib/lmathlib.c'; else $(CYGPATH_W) '$(srcdir)/lib/lmathlib.c'; fi` +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o lib/liblua_la-liolib.lo `test -f 'lib/liolib.c' || echo '$(srcdir)/'`lib/liolib.c lib/liblua_la-lmathlib.lo: lib/lmathlib.c -@am__fastdepCC_TRUE@ if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT lib/liblua_la-lmathlib.lo -MD -MP -MF "lib/$(DEPDIR)/liblua_la-lmathlib.Tpo" \ -@am__fastdepCC_TRUE@ -c -o lib/liblua_la-lmathlib.lo `test -f 'lib/lmathlib.c' || echo '$(srcdir)/'`lib/lmathlib.c; \ -@am__fastdepCC_TRUE@ then mv -f "lib/$(DEPDIR)/liblua_la-lmathlib.Tpo" "lib/$(DEPDIR)/liblua_la-lmathlib.Plo"; \ -@am__fastdepCC_TRUE@ else rm -f "lib/$(DEPDIR)/liblua_la-lmathlib.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi +@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT lib/liblua_la-lmathlib.lo -MD -MP -MF "lib/$(DEPDIR)/liblua_la-lmathlib.Tpo" -c -o lib/liblua_la-lmathlib.lo `test -f 'lib/lmathlib.c' || echo '$(srcdir)/'`lib/lmathlib.c; \ +@am__fastdepCC_TRUE@ then mv -f "lib/$(DEPDIR)/liblua_la-lmathlib.Tpo" "lib/$(DEPDIR)/liblua_la-lmathlib.Plo"; else rm -f "lib/$(DEPDIR)/liblua_la-lmathlib.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/lmathlib.c' object='lib/liblua_la-lmathlib.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='lib/$(DEPDIR)/liblua_la-lmathlib.Plo' tmpdepfile='lib/$(DEPDIR)/liblua_la-lmathlib.TPlo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o lib/liblua_la-lmathlib.lo `test -f 'lib/lmathlib.c' || echo '$(srcdir)/'`lib/lmathlib.c - -lib/liblua_la-loadlib.o: lib/loadlib.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT lib/liblua_la-loadlib.o -MD -MP -MF "lib/$(DEPDIR)/liblua_la-loadlib.Tpo" \ -@am__fastdepCC_TRUE@ -c -o lib/liblua_la-loadlib.o `test -f 'lib/loadlib.c' || echo '$(srcdir)/'`lib/loadlib.c; \ -@am__fastdepCC_TRUE@ then mv -f "lib/$(DEPDIR)/liblua_la-loadlib.Tpo" "lib/$(DEPDIR)/liblua_la-loadlib.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "lib/$(DEPDIR)/liblua_la-loadlib.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/loadlib.c' object='lib/liblua_la-loadlib.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='lib/$(DEPDIR)/liblua_la-loadlib.Po' tmpdepfile='lib/$(DEPDIR)/liblua_la-loadlib.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o lib/liblua_la-loadlib.o `test -f 'lib/loadlib.c' || echo '$(srcdir)/'`lib/loadlib.c - -lib/liblua_la-loadlib.obj: lib/loadlib.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT lib/liblua_la-loadlib.obj -MD -MP -MF "lib/$(DEPDIR)/liblua_la-loadlib.Tpo" \ -@am__fastdepCC_TRUE@ -c -o lib/liblua_la-loadlib.obj `if test -f 'lib/loadlib.c'; then $(CYGPATH_W) 'lib/loadlib.c'; else $(CYGPATH_W) '$(srcdir)/lib/loadlib.c'; fi`; \ -@am__fastdepCC_TRUE@ then mv -f "lib/$(DEPDIR)/liblua_la-loadlib.Tpo" "lib/$(DEPDIR)/liblua_la-loadlib.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "lib/$(DEPDIR)/liblua_la-loadlib.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/loadlib.c' object='lib/liblua_la-loadlib.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='lib/$(DEPDIR)/liblua_la-loadlib.Po' tmpdepfile='lib/$(DEPDIR)/liblua_la-loadlib.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o lib/liblua_la-loadlib.obj `if test -f 'lib/loadlib.c'; then $(CYGPATH_W) 'lib/loadlib.c'; else $(CYGPATH_W) '$(srcdir)/lib/loadlib.c'; fi` +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o lib/liblua_la-lmathlib.lo `test -f 'lib/lmathlib.c' || echo '$(srcdir)/'`lib/lmathlib.c lib/liblua_la-loadlib.lo: lib/loadlib.c -@am__fastdepCC_TRUE@ if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT lib/liblua_la-loadlib.lo -MD -MP -MF "lib/$(DEPDIR)/liblua_la-loadlib.Tpo" \ -@am__fastdepCC_TRUE@ -c -o lib/liblua_la-loadlib.lo `test -f 'lib/loadlib.c' || echo '$(srcdir)/'`lib/loadlib.c; \ -@am__fastdepCC_TRUE@ then mv -f "lib/$(DEPDIR)/liblua_la-loadlib.Tpo" "lib/$(DEPDIR)/liblua_la-loadlib.Plo"; \ -@am__fastdepCC_TRUE@ else rm -f "lib/$(DEPDIR)/liblua_la-loadlib.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi +@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT lib/liblua_la-loadlib.lo -MD -MP -MF "lib/$(DEPDIR)/liblua_la-loadlib.Tpo" -c -o lib/liblua_la-loadlib.lo `test -f 'lib/loadlib.c' || echo '$(srcdir)/'`lib/loadlib.c; \ +@am__fastdepCC_TRUE@ then mv -f "lib/$(DEPDIR)/liblua_la-loadlib.Tpo" "lib/$(DEPDIR)/liblua_la-loadlib.Plo"; else rm -f "lib/$(DEPDIR)/liblua_la-loadlib.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/loadlib.c' object='lib/liblua_la-loadlib.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='lib/$(DEPDIR)/liblua_la-loadlib.Plo' tmpdepfile='lib/$(DEPDIR)/liblua_la-loadlib.TPlo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o lib/liblua_la-loadlib.lo `test -f 'lib/loadlib.c' || echo '$(srcdir)/'`lib/loadlib.c - -lib/liblua_la-lstrlib.o: lib/lstrlib.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT lib/liblua_la-lstrlib.o -MD -MP -MF "lib/$(DEPDIR)/liblua_la-lstrlib.Tpo" \ -@am__fastdepCC_TRUE@ -c -o lib/liblua_la-lstrlib.o `test -f 'lib/lstrlib.c' || echo '$(srcdir)/'`lib/lstrlib.c; \ -@am__fastdepCC_TRUE@ then mv -f "lib/$(DEPDIR)/liblua_la-lstrlib.Tpo" "lib/$(DEPDIR)/liblua_la-lstrlib.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "lib/$(DEPDIR)/liblua_la-lstrlib.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/lstrlib.c' object='lib/liblua_la-lstrlib.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='lib/$(DEPDIR)/liblua_la-lstrlib.Po' tmpdepfile='lib/$(DEPDIR)/liblua_la-lstrlib.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o lib/liblua_la-lstrlib.o `test -f 'lib/lstrlib.c' || echo '$(srcdir)/'`lib/lstrlib.c - -lib/liblua_la-lstrlib.obj: lib/lstrlib.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT lib/liblua_la-lstrlib.obj -MD -MP -MF "lib/$(DEPDIR)/liblua_la-lstrlib.Tpo" \ -@am__fastdepCC_TRUE@ -c -o lib/liblua_la-lstrlib.obj `if test -f 'lib/lstrlib.c'; then $(CYGPATH_W) 'lib/lstrlib.c'; else $(CYGPATH_W) '$(srcdir)/lib/lstrlib.c'; fi`; \ -@am__fastdepCC_TRUE@ then mv -f "lib/$(DEPDIR)/liblua_la-lstrlib.Tpo" "lib/$(DEPDIR)/liblua_la-lstrlib.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "lib/$(DEPDIR)/liblua_la-lstrlib.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/lstrlib.c' object='lib/liblua_la-lstrlib.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='lib/$(DEPDIR)/liblua_la-lstrlib.Po' tmpdepfile='lib/$(DEPDIR)/liblua_la-lstrlib.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o lib/liblua_la-lstrlib.obj `if test -f 'lib/lstrlib.c'; then $(CYGPATH_W) 'lib/lstrlib.c'; else $(CYGPATH_W) '$(srcdir)/lib/lstrlib.c'; fi` +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o lib/liblua_la-loadlib.lo `test -f 'lib/loadlib.c' || echo '$(srcdir)/'`lib/loadlib.c lib/liblua_la-lstrlib.lo: lib/lstrlib.c -@am__fastdepCC_TRUE@ if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT lib/liblua_la-lstrlib.lo -MD -MP -MF "lib/$(DEPDIR)/liblua_la-lstrlib.Tpo" \ -@am__fastdepCC_TRUE@ -c -o lib/liblua_la-lstrlib.lo `test -f 'lib/lstrlib.c' || echo '$(srcdir)/'`lib/lstrlib.c; \ -@am__fastdepCC_TRUE@ then mv -f "lib/$(DEPDIR)/liblua_la-lstrlib.Tpo" "lib/$(DEPDIR)/liblua_la-lstrlib.Plo"; \ -@am__fastdepCC_TRUE@ else rm -f "lib/$(DEPDIR)/liblua_la-lstrlib.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi +@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT lib/liblua_la-lstrlib.lo -MD -MP -MF "lib/$(DEPDIR)/liblua_la-lstrlib.Tpo" -c -o lib/liblua_la-lstrlib.lo `test -f 'lib/lstrlib.c' || echo '$(srcdir)/'`lib/lstrlib.c; \ +@am__fastdepCC_TRUE@ then mv -f "lib/$(DEPDIR)/liblua_la-lstrlib.Tpo" "lib/$(DEPDIR)/liblua_la-lstrlib.Plo"; else rm -f "lib/$(DEPDIR)/liblua_la-lstrlib.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/lstrlib.c' object='lib/liblua_la-lstrlib.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='lib/$(DEPDIR)/liblua_la-lstrlib.Plo' tmpdepfile='lib/$(DEPDIR)/liblua_la-lstrlib.TPlo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o lib/liblua_la-lstrlib.lo `test -f 'lib/lstrlib.c' || echo '$(srcdir)/'`lib/lstrlib.c - -lib/liblua_la-ltablib.o: lib/ltablib.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT lib/liblua_la-ltablib.o -MD -MP -MF "lib/$(DEPDIR)/liblua_la-ltablib.Tpo" \ -@am__fastdepCC_TRUE@ -c -o lib/liblua_la-ltablib.o `test -f 'lib/ltablib.c' || echo '$(srcdir)/'`lib/ltablib.c; \ -@am__fastdepCC_TRUE@ then mv -f "lib/$(DEPDIR)/liblua_la-ltablib.Tpo" "lib/$(DEPDIR)/liblua_la-ltablib.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "lib/$(DEPDIR)/liblua_la-ltablib.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/ltablib.c' object='lib/liblua_la-ltablib.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='lib/$(DEPDIR)/liblua_la-ltablib.Po' tmpdepfile='lib/$(DEPDIR)/liblua_la-ltablib.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o lib/liblua_la-ltablib.o `test -f 'lib/ltablib.c' || echo '$(srcdir)/'`lib/ltablib.c - -lib/liblua_la-ltablib.obj: lib/ltablib.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT lib/liblua_la-ltablib.obj -MD -MP -MF "lib/$(DEPDIR)/liblua_la-ltablib.Tpo" \ -@am__fastdepCC_TRUE@ -c -o lib/liblua_la-ltablib.obj `if test -f 'lib/ltablib.c'; then $(CYGPATH_W) 'lib/ltablib.c'; else $(CYGPATH_W) '$(srcdir)/lib/ltablib.c'; fi`; \ -@am__fastdepCC_TRUE@ then mv -f "lib/$(DEPDIR)/liblua_la-ltablib.Tpo" "lib/$(DEPDIR)/liblua_la-ltablib.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "lib/$(DEPDIR)/liblua_la-ltablib.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/ltablib.c' object='lib/liblua_la-ltablib.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='lib/$(DEPDIR)/liblua_la-ltablib.Po' tmpdepfile='lib/$(DEPDIR)/liblua_la-ltablib.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o lib/liblua_la-ltablib.obj `if test -f 'lib/ltablib.c'; then $(CYGPATH_W) 'lib/ltablib.c'; else $(CYGPATH_W) '$(srcdir)/lib/ltablib.c'; fi` +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o lib/liblua_la-lstrlib.lo `test -f 'lib/lstrlib.c' || echo '$(srcdir)/'`lib/lstrlib.c lib/liblua_la-ltablib.lo: lib/ltablib.c -@am__fastdepCC_TRUE@ if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT lib/liblua_la-ltablib.lo -MD -MP -MF "lib/$(DEPDIR)/liblua_la-ltablib.Tpo" \ -@am__fastdepCC_TRUE@ -c -o lib/liblua_la-ltablib.lo `test -f 'lib/ltablib.c' || echo '$(srcdir)/'`lib/ltablib.c; \ -@am__fastdepCC_TRUE@ then mv -f "lib/$(DEPDIR)/liblua_la-ltablib.Tpo" "lib/$(DEPDIR)/liblua_la-ltablib.Plo"; \ -@am__fastdepCC_TRUE@ else rm -f "lib/$(DEPDIR)/liblua_la-ltablib.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi +@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT lib/liblua_la-ltablib.lo -MD -MP -MF "lib/$(DEPDIR)/liblua_la-ltablib.Tpo" -c -o lib/liblua_la-ltablib.lo `test -f 'lib/ltablib.c' || echo '$(srcdir)/'`lib/ltablib.c; \ +@am__fastdepCC_TRUE@ then mv -f "lib/$(DEPDIR)/liblua_la-ltablib.Tpo" "lib/$(DEPDIR)/liblua_la-ltablib.Plo"; else rm -f "lib/$(DEPDIR)/liblua_la-ltablib.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lib/ltablib.c' object='lib/liblua_la-ltablib.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='lib/$(DEPDIR)/liblua_la-ltablib.Plo' tmpdepfile='lib/$(DEPDIR)/liblua_la-ltablib.TPlo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o lib/liblua_la-ltablib.lo `test -f 'lib/ltablib.c' || echo '$(srcdir)/'`lib/ltablib.c - -liblua_la-lapi.o: lapi.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-lapi.o -MD -MP -MF "$(DEPDIR)/liblua_la-lapi.Tpo" \ -@am__fastdepCC_TRUE@ -c -o liblua_la-lapi.o `test -f 'lapi.c' || echo '$(srcdir)/'`lapi.c; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-lapi.Tpo" "$(DEPDIR)/liblua_la-lapi.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/liblua_la-lapi.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lapi.c' object='liblua_la-lapi.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/liblua_la-lapi.Po' tmpdepfile='$(DEPDIR)/liblua_la-lapi.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-lapi.o `test -f 'lapi.c' || echo '$(srcdir)/'`lapi.c - -liblua_la-lapi.obj: lapi.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-lapi.obj -MD -MP -MF "$(DEPDIR)/liblua_la-lapi.Tpo" \ -@am__fastdepCC_TRUE@ -c -o liblua_la-lapi.obj `if test -f 'lapi.c'; then $(CYGPATH_W) 'lapi.c'; else $(CYGPATH_W) '$(srcdir)/lapi.c'; fi`; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-lapi.Tpo" "$(DEPDIR)/liblua_la-lapi.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/liblua_la-lapi.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lapi.c' object='liblua_la-lapi.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/liblua_la-lapi.Po' tmpdepfile='$(DEPDIR)/liblua_la-lapi.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-lapi.obj `if test -f 'lapi.c'; then $(CYGPATH_W) 'lapi.c'; else $(CYGPATH_W) '$(srcdir)/lapi.c'; fi` +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o lib/liblua_la-ltablib.lo `test -f 'lib/ltablib.c' || echo '$(srcdir)/'`lib/ltablib.c liblua_la-lapi.lo: lapi.c -@am__fastdepCC_TRUE@ if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-lapi.lo -MD -MP -MF "$(DEPDIR)/liblua_la-lapi.Tpo" \ -@am__fastdepCC_TRUE@ -c -o liblua_la-lapi.lo `test -f 'lapi.c' || echo '$(srcdir)/'`lapi.c; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-lapi.Tpo" "$(DEPDIR)/liblua_la-lapi.Plo"; \ -@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/liblua_la-lapi.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi +@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-lapi.lo -MD -MP -MF "$(DEPDIR)/liblua_la-lapi.Tpo" -c -o liblua_la-lapi.lo `test -f 'lapi.c' || echo '$(srcdir)/'`lapi.c; \ +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-lapi.Tpo" "$(DEPDIR)/liblua_la-lapi.Plo"; else rm -f "$(DEPDIR)/liblua_la-lapi.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lapi.c' object='liblua_la-lapi.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/liblua_la-lapi.Plo' tmpdepfile='$(DEPDIR)/liblua_la-lapi.TPlo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-lapi.lo `test -f 'lapi.c' || echo '$(srcdir)/'`lapi.c - -liblua_la-lcode.o: lcode.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-lcode.o -MD -MP -MF "$(DEPDIR)/liblua_la-lcode.Tpo" \ -@am__fastdepCC_TRUE@ -c -o liblua_la-lcode.o `test -f 'lcode.c' || echo '$(srcdir)/'`lcode.c; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-lcode.Tpo" "$(DEPDIR)/liblua_la-lcode.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/liblua_la-lcode.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lcode.c' object='liblua_la-lcode.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/liblua_la-lcode.Po' tmpdepfile='$(DEPDIR)/liblua_la-lcode.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-lcode.o `test -f 'lcode.c' || echo '$(srcdir)/'`lcode.c - -liblua_la-lcode.obj: lcode.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-lcode.obj -MD -MP -MF "$(DEPDIR)/liblua_la-lcode.Tpo" \ -@am__fastdepCC_TRUE@ -c -o liblua_la-lcode.obj `if test -f 'lcode.c'; then $(CYGPATH_W) 'lcode.c'; else $(CYGPATH_W) '$(srcdir)/lcode.c'; fi`; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-lcode.Tpo" "$(DEPDIR)/liblua_la-lcode.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/liblua_la-lcode.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lcode.c' object='liblua_la-lcode.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/liblua_la-lcode.Po' tmpdepfile='$(DEPDIR)/liblua_la-lcode.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-lcode.obj `if test -f 'lcode.c'; then $(CYGPATH_W) 'lcode.c'; else $(CYGPATH_W) '$(srcdir)/lcode.c'; fi` +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-lapi.lo `test -f 'lapi.c' || echo '$(srcdir)/'`lapi.c liblua_la-lcode.lo: lcode.c -@am__fastdepCC_TRUE@ if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-lcode.lo -MD -MP -MF "$(DEPDIR)/liblua_la-lcode.Tpo" \ -@am__fastdepCC_TRUE@ -c -o liblua_la-lcode.lo `test -f 'lcode.c' || echo '$(srcdir)/'`lcode.c; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-lcode.Tpo" "$(DEPDIR)/liblua_la-lcode.Plo"; \ -@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/liblua_la-lcode.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi +@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-lcode.lo -MD -MP -MF "$(DEPDIR)/liblua_la-lcode.Tpo" -c -o liblua_la-lcode.lo `test -f 'lcode.c' || echo '$(srcdir)/'`lcode.c; \ +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-lcode.Tpo" "$(DEPDIR)/liblua_la-lcode.Plo"; else rm -f "$(DEPDIR)/liblua_la-lcode.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lcode.c' object='liblua_la-lcode.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/liblua_la-lcode.Plo' tmpdepfile='$(DEPDIR)/liblua_la-lcode.TPlo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-lcode.lo `test -f 'lcode.c' || echo '$(srcdir)/'`lcode.c - -liblua_la-ldebug.o: ldebug.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-ldebug.o -MD -MP -MF "$(DEPDIR)/liblua_la-ldebug.Tpo" \ -@am__fastdepCC_TRUE@ -c -o liblua_la-ldebug.o `test -f 'ldebug.c' || echo '$(srcdir)/'`ldebug.c; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-ldebug.Tpo" "$(DEPDIR)/liblua_la-ldebug.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/liblua_la-ldebug.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ldebug.c' object='liblua_la-ldebug.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/liblua_la-ldebug.Po' tmpdepfile='$(DEPDIR)/liblua_la-ldebug.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-ldebug.o `test -f 'ldebug.c' || echo '$(srcdir)/'`ldebug.c - -liblua_la-ldebug.obj: ldebug.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-ldebug.obj -MD -MP -MF "$(DEPDIR)/liblua_la-ldebug.Tpo" \ -@am__fastdepCC_TRUE@ -c -o liblua_la-ldebug.obj `if test -f 'ldebug.c'; then $(CYGPATH_W) 'ldebug.c'; else $(CYGPATH_W) '$(srcdir)/ldebug.c'; fi`; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-ldebug.Tpo" "$(DEPDIR)/liblua_la-ldebug.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/liblua_la-ldebug.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ldebug.c' object='liblua_la-ldebug.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/liblua_la-ldebug.Po' tmpdepfile='$(DEPDIR)/liblua_la-ldebug.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-ldebug.obj `if test -f 'ldebug.c'; then $(CYGPATH_W) 'ldebug.c'; else $(CYGPATH_W) '$(srcdir)/ldebug.c'; fi` +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-lcode.lo `test -f 'lcode.c' || echo '$(srcdir)/'`lcode.c liblua_la-ldebug.lo: ldebug.c -@am__fastdepCC_TRUE@ if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-ldebug.lo -MD -MP -MF "$(DEPDIR)/liblua_la-ldebug.Tpo" \ -@am__fastdepCC_TRUE@ -c -o liblua_la-ldebug.lo `test -f 'ldebug.c' || echo '$(srcdir)/'`ldebug.c; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-ldebug.Tpo" "$(DEPDIR)/liblua_la-ldebug.Plo"; \ -@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/liblua_la-ldebug.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi +@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-ldebug.lo -MD -MP -MF "$(DEPDIR)/liblua_la-ldebug.Tpo" -c -o liblua_la-ldebug.lo `test -f 'ldebug.c' || echo '$(srcdir)/'`ldebug.c; \ +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-ldebug.Tpo" "$(DEPDIR)/liblua_la-ldebug.Plo"; else rm -f "$(DEPDIR)/liblua_la-ldebug.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ldebug.c' object='liblua_la-ldebug.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/liblua_la-ldebug.Plo' tmpdepfile='$(DEPDIR)/liblua_la-ldebug.TPlo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-ldebug.lo `test -f 'ldebug.c' || echo '$(srcdir)/'`ldebug.c - -liblua_la-ldo.o: ldo.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-ldo.o -MD -MP -MF "$(DEPDIR)/liblua_la-ldo.Tpo" \ -@am__fastdepCC_TRUE@ -c -o liblua_la-ldo.o `test -f 'ldo.c' || echo '$(srcdir)/'`ldo.c; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-ldo.Tpo" "$(DEPDIR)/liblua_la-ldo.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/liblua_la-ldo.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ldo.c' object='liblua_la-ldo.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/liblua_la-ldo.Po' tmpdepfile='$(DEPDIR)/liblua_la-ldo.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-ldo.o `test -f 'ldo.c' || echo '$(srcdir)/'`ldo.c - -liblua_la-ldo.obj: ldo.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-ldo.obj -MD -MP -MF "$(DEPDIR)/liblua_la-ldo.Tpo" \ -@am__fastdepCC_TRUE@ -c -o liblua_la-ldo.obj `if test -f 'ldo.c'; then $(CYGPATH_W) 'ldo.c'; else $(CYGPATH_W) '$(srcdir)/ldo.c'; fi`; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-ldo.Tpo" "$(DEPDIR)/liblua_la-ldo.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/liblua_la-ldo.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ldo.c' object='liblua_la-ldo.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/liblua_la-ldo.Po' tmpdepfile='$(DEPDIR)/liblua_la-ldo.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-ldo.obj `if test -f 'ldo.c'; then $(CYGPATH_W) 'ldo.c'; else $(CYGPATH_W) '$(srcdir)/ldo.c'; fi` +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-ldebug.lo `test -f 'ldebug.c' || echo '$(srcdir)/'`ldebug.c liblua_la-ldo.lo: ldo.c -@am__fastdepCC_TRUE@ if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-ldo.lo -MD -MP -MF "$(DEPDIR)/liblua_la-ldo.Tpo" \ -@am__fastdepCC_TRUE@ -c -o liblua_la-ldo.lo `test -f 'ldo.c' || echo '$(srcdir)/'`ldo.c; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-ldo.Tpo" "$(DEPDIR)/liblua_la-ldo.Plo"; \ -@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/liblua_la-ldo.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi +@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-ldo.lo -MD -MP -MF "$(DEPDIR)/liblua_la-ldo.Tpo" -c -o liblua_la-ldo.lo `test -f 'ldo.c' || echo '$(srcdir)/'`ldo.c; \ +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-ldo.Tpo" "$(DEPDIR)/liblua_la-ldo.Plo"; else rm -f "$(DEPDIR)/liblua_la-ldo.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ldo.c' object='liblua_la-ldo.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/liblua_la-ldo.Plo' tmpdepfile='$(DEPDIR)/liblua_la-ldo.TPlo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-ldo.lo `test -f 'ldo.c' || echo '$(srcdir)/'`ldo.c - -liblua_la-ldump.o: ldump.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-ldump.o -MD -MP -MF "$(DEPDIR)/liblua_la-ldump.Tpo" \ -@am__fastdepCC_TRUE@ -c -o liblua_la-ldump.o `test -f 'ldump.c' || echo '$(srcdir)/'`ldump.c; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-ldump.Tpo" "$(DEPDIR)/liblua_la-ldump.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/liblua_la-ldump.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ldump.c' object='liblua_la-ldump.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/liblua_la-ldump.Po' tmpdepfile='$(DEPDIR)/liblua_la-ldump.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-ldump.o `test -f 'ldump.c' || echo '$(srcdir)/'`ldump.c - -liblua_la-ldump.obj: ldump.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-ldump.obj -MD -MP -MF "$(DEPDIR)/liblua_la-ldump.Tpo" \ -@am__fastdepCC_TRUE@ -c -o liblua_la-ldump.obj `if test -f 'ldump.c'; then $(CYGPATH_W) 'ldump.c'; else $(CYGPATH_W) '$(srcdir)/ldump.c'; fi`; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-ldump.Tpo" "$(DEPDIR)/liblua_la-ldump.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/liblua_la-ldump.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ldump.c' object='liblua_la-ldump.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/liblua_la-ldump.Po' tmpdepfile='$(DEPDIR)/liblua_la-ldump.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-ldump.obj `if test -f 'ldump.c'; then $(CYGPATH_W) 'ldump.c'; else $(CYGPATH_W) '$(srcdir)/ldump.c'; fi` +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-ldo.lo `test -f 'ldo.c' || echo '$(srcdir)/'`ldo.c liblua_la-ldump.lo: ldump.c -@am__fastdepCC_TRUE@ if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-ldump.lo -MD -MP -MF "$(DEPDIR)/liblua_la-ldump.Tpo" \ -@am__fastdepCC_TRUE@ -c -o liblua_la-ldump.lo `test -f 'ldump.c' || echo '$(srcdir)/'`ldump.c; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-ldump.Tpo" "$(DEPDIR)/liblua_la-ldump.Plo"; \ -@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/liblua_la-ldump.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi +@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-ldump.lo -MD -MP -MF "$(DEPDIR)/liblua_la-ldump.Tpo" -c -o liblua_la-ldump.lo `test -f 'ldump.c' || echo '$(srcdir)/'`ldump.c; \ +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-ldump.Tpo" "$(DEPDIR)/liblua_la-ldump.Plo"; else rm -f "$(DEPDIR)/liblua_la-ldump.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ldump.c' object='liblua_la-ldump.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/liblua_la-ldump.Plo' tmpdepfile='$(DEPDIR)/liblua_la-ldump.TPlo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-ldump.lo `test -f 'ldump.c' || echo '$(srcdir)/'`ldump.c - -liblua_la-lfunc.o: lfunc.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-lfunc.o -MD -MP -MF "$(DEPDIR)/liblua_la-lfunc.Tpo" \ -@am__fastdepCC_TRUE@ -c -o liblua_la-lfunc.o `test -f 'lfunc.c' || echo '$(srcdir)/'`lfunc.c; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-lfunc.Tpo" "$(DEPDIR)/liblua_la-lfunc.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/liblua_la-lfunc.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lfunc.c' object='liblua_la-lfunc.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/liblua_la-lfunc.Po' tmpdepfile='$(DEPDIR)/liblua_la-lfunc.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-lfunc.o `test -f 'lfunc.c' || echo '$(srcdir)/'`lfunc.c - -liblua_la-lfunc.obj: lfunc.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-lfunc.obj -MD -MP -MF "$(DEPDIR)/liblua_la-lfunc.Tpo" \ -@am__fastdepCC_TRUE@ -c -o liblua_la-lfunc.obj `if test -f 'lfunc.c'; then $(CYGPATH_W) 'lfunc.c'; else $(CYGPATH_W) '$(srcdir)/lfunc.c'; fi`; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-lfunc.Tpo" "$(DEPDIR)/liblua_la-lfunc.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/liblua_la-lfunc.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lfunc.c' object='liblua_la-lfunc.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/liblua_la-lfunc.Po' tmpdepfile='$(DEPDIR)/liblua_la-lfunc.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-lfunc.obj `if test -f 'lfunc.c'; then $(CYGPATH_W) 'lfunc.c'; else $(CYGPATH_W) '$(srcdir)/lfunc.c'; fi` +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-ldump.lo `test -f 'ldump.c' || echo '$(srcdir)/'`ldump.c liblua_la-lfunc.lo: lfunc.c -@am__fastdepCC_TRUE@ if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-lfunc.lo -MD -MP -MF "$(DEPDIR)/liblua_la-lfunc.Tpo" \ -@am__fastdepCC_TRUE@ -c -o liblua_la-lfunc.lo `test -f 'lfunc.c' || echo '$(srcdir)/'`lfunc.c; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-lfunc.Tpo" "$(DEPDIR)/liblua_la-lfunc.Plo"; \ -@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/liblua_la-lfunc.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi +@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-lfunc.lo -MD -MP -MF "$(DEPDIR)/liblua_la-lfunc.Tpo" -c -o liblua_la-lfunc.lo `test -f 'lfunc.c' || echo '$(srcdir)/'`lfunc.c; \ +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-lfunc.Tpo" "$(DEPDIR)/liblua_la-lfunc.Plo"; else rm -f "$(DEPDIR)/liblua_la-lfunc.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lfunc.c' object='liblua_la-lfunc.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/liblua_la-lfunc.Plo' tmpdepfile='$(DEPDIR)/liblua_la-lfunc.TPlo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-lfunc.lo `test -f 'lfunc.c' || echo '$(srcdir)/'`lfunc.c - -liblua_la-lgc.o: lgc.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-lgc.o -MD -MP -MF "$(DEPDIR)/liblua_la-lgc.Tpo" \ -@am__fastdepCC_TRUE@ -c -o liblua_la-lgc.o `test -f 'lgc.c' || echo '$(srcdir)/'`lgc.c; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-lgc.Tpo" "$(DEPDIR)/liblua_la-lgc.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/liblua_la-lgc.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lgc.c' object='liblua_la-lgc.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/liblua_la-lgc.Po' tmpdepfile='$(DEPDIR)/liblua_la-lgc.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-lgc.o `test -f 'lgc.c' || echo '$(srcdir)/'`lgc.c - -liblua_la-lgc.obj: lgc.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-lgc.obj -MD -MP -MF "$(DEPDIR)/liblua_la-lgc.Tpo" \ -@am__fastdepCC_TRUE@ -c -o liblua_la-lgc.obj `if test -f 'lgc.c'; then $(CYGPATH_W) 'lgc.c'; else $(CYGPATH_W) '$(srcdir)/lgc.c'; fi`; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-lgc.Tpo" "$(DEPDIR)/liblua_la-lgc.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/liblua_la-lgc.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lgc.c' object='liblua_la-lgc.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/liblua_la-lgc.Po' tmpdepfile='$(DEPDIR)/liblua_la-lgc.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-lgc.obj `if test -f 'lgc.c'; then $(CYGPATH_W) 'lgc.c'; else $(CYGPATH_W) '$(srcdir)/lgc.c'; fi` +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-lfunc.lo `test -f 'lfunc.c' || echo '$(srcdir)/'`lfunc.c liblua_la-lgc.lo: lgc.c -@am__fastdepCC_TRUE@ if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-lgc.lo -MD -MP -MF "$(DEPDIR)/liblua_la-lgc.Tpo" \ -@am__fastdepCC_TRUE@ -c -o liblua_la-lgc.lo `test -f 'lgc.c' || echo '$(srcdir)/'`lgc.c; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-lgc.Tpo" "$(DEPDIR)/liblua_la-lgc.Plo"; \ -@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/liblua_la-lgc.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi +@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-lgc.lo -MD -MP -MF "$(DEPDIR)/liblua_la-lgc.Tpo" -c -o liblua_la-lgc.lo `test -f 'lgc.c' || echo '$(srcdir)/'`lgc.c; \ +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-lgc.Tpo" "$(DEPDIR)/liblua_la-lgc.Plo"; else rm -f "$(DEPDIR)/liblua_la-lgc.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lgc.c' object='liblua_la-lgc.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/liblua_la-lgc.Plo' tmpdepfile='$(DEPDIR)/liblua_la-lgc.TPlo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-lgc.lo `test -f 'lgc.c' || echo '$(srcdir)/'`lgc.c - -liblua_la-llex.o: llex.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-llex.o -MD -MP -MF "$(DEPDIR)/liblua_la-llex.Tpo" \ -@am__fastdepCC_TRUE@ -c -o liblua_la-llex.o `test -f 'llex.c' || echo '$(srcdir)/'`llex.c; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-llex.Tpo" "$(DEPDIR)/liblua_la-llex.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/liblua_la-llex.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='llex.c' object='liblua_la-llex.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/liblua_la-llex.Po' tmpdepfile='$(DEPDIR)/liblua_la-llex.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-llex.o `test -f 'llex.c' || echo '$(srcdir)/'`llex.c - -liblua_la-llex.obj: llex.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-llex.obj -MD -MP -MF "$(DEPDIR)/liblua_la-llex.Tpo" \ -@am__fastdepCC_TRUE@ -c -o liblua_la-llex.obj `if test -f 'llex.c'; then $(CYGPATH_W) 'llex.c'; else $(CYGPATH_W) '$(srcdir)/llex.c'; fi`; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-llex.Tpo" "$(DEPDIR)/liblua_la-llex.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/liblua_la-llex.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='llex.c' object='liblua_la-llex.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/liblua_la-llex.Po' tmpdepfile='$(DEPDIR)/liblua_la-llex.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-llex.obj `if test -f 'llex.c'; then $(CYGPATH_W) 'llex.c'; else $(CYGPATH_W) '$(srcdir)/llex.c'; fi` +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-lgc.lo `test -f 'lgc.c' || echo '$(srcdir)/'`lgc.c liblua_la-llex.lo: llex.c -@am__fastdepCC_TRUE@ if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-llex.lo -MD -MP -MF "$(DEPDIR)/liblua_la-llex.Tpo" \ -@am__fastdepCC_TRUE@ -c -o liblua_la-llex.lo `test -f 'llex.c' || echo '$(srcdir)/'`llex.c; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-llex.Tpo" "$(DEPDIR)/liblua_la-llex.Plo"; \ -@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/liblua_la-llex.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi +@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-llex.lo -MD -MP -MF "$(DEPDIR)/liblua_la-llex.Tpo" -c -o liblua_la-llex.lo `test -f 'llex.c' || echo '$(srcdir)/'`llex.c; \ +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-llex.Tpo" "$(DEPDIR)/liblua_la-llex.Plo"; else rm -f "$(DEPDIR)/liblua_la-llex.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='llex.c' object='liblua_la-llex.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/liblua_la-llex.Plo' tmpdepfile='$(DEPDIR)/liblua_la-llex.TPlo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-llex.lo `test -f 'llex.c' || echo '$(srcdir)/'`llex.c - -liblua_la-lmem.o: lmem.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-lmem.o -MD -MP -MF "$(DEPDIR)/liblua_la-lmem.Tpo" \ -@am__fastdepCC_TRUE@ -c -o liblua_la-lmem.o `test -f 'lmem.c' || echo '$(srcdir)/'`lmem.c; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-lmem.Tpo" "$(DEPDIR)/liblua_la-lmem.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/liblua_la-lmem.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lmem.c' object='liblua_la-lmem.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/liblua_la-lmem.Po' tmpdepfile='$(DEPDIR)/liblua_la-lmem.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-lmem.o `test -f 'lmem.c' || echo '$(srcdir)/'`lmem.c - -liblua_la-lmem.obj: lmem.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-lmem.obj -MD -MP -MF "$(DEPDIR)/liblua_la-lmem.Tpo" \ -@am__fastdepCC_TRUE@ -c -o liblua_la-lmem.obj `if test -f 'lmem.c'; then $(CYGPATH_W) 'lmem.c'; else $(CYGPATH_W) '$(srcdir)/lmem.c'; fi`; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-lmem.Tpo" "$(DEPDIR)/liblua_la-lmem.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/liblua_la-lmem.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lmem.c' object='liblua_la-lmem.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/liblua_la-lmem.Po' tmpdepfile='$(DEPDIR)/liblua_la-lmem.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-lmem.obj `if test -f 'lmem.c'; then $(CYGPATH_W) 'lmem.c'; else $(CYGPATH_W) '$(srcdir)/lmem.c'; fi` +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-llex.lo `test -f 'llex.c' || echo '$(srcdir)/'`llex.c liblua_la-lmem.lo: lmem.c -@am__fastdepCC_TRUE@ if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-lmem.lo -MD -MP -MF "$(DEPDIR)/liblua_la-lmem.Tpo" \ -@am__fastdepCC_TRUE@ -c -o liblua_la-lmem.lo `test -f 'lmem.c' || echo '$(srcdir)/'`lmem.c; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-lmem.Tpo" "$(DEPDIR)/liblua_la-lmem.Plo"; \ -@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/liblua_la-lmem.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi +@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-lmem.lo -MD -MP -MF "$(DEPDIR)/liblua_la-lmem.Tpo" -c -o liblua_la-lmem.lo `test -f 'lmem.c' || echo '$(srcdir)/'`lmem.c; \ +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-lmem.Tpo" "$(DEPDIR)/liblua_la-lmem.Plo"; else rm -f "$(DEPDIR)/liblua_la-lmem.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lmem.c' object='liblua_la-lmem.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/liblua_la-lmem.Plo' tmpdepfile='$(DEPDIR)/liblua_la-lmem.TPlo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-lmem.lo `test -f 'lmem.c' || echo '$(srcdir)/'`lmem.c - -liblua_la-lobject.o: lobject.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-lobject.o -MD -MP -MF "$(DEPDIR)/liblua_la-lobject.Tpo" \ -@am__fastdepCC_TRUE@ -c -o liblua_la-lobject.o `test -f 'lobject.c' || echo '$(srcdir)/'`lobject.c; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-lobject.Tpo" "$(DEPDIR)/liblua_la-lobject.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/liblua_la-lobject.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lobject.c' object='liblua_la-lobject.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/liblua_la-lobject.Po' tmpdepfile='$(DEPDIR)/liblua_la-lobject.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-lobject.o `test -f 'lobject.c' || echo '$(srcdir)/'`lobject.c - -liblua_la-lobject.obj: lobject.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-lobject.obj -MD -MP -MF "$(DEPDIR)/liblua_la-lobject.Tpo" \ -@am__fastdepCC_TRUE@ -c -o liblua_la-lobject.obj `if test -f 'lobject.c'; then $(CYGPATH_W) 'lobject.c'; else $(CYGPATH_W) '$(srcdir)/lobject.c'; fi`; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-lobject.Tpo" "$(DEPDIR)/liblua_la-lobject.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/liblua_la-lobject.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lobject.c' object='liblua_la-lobject.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/liblua_la-lobject.Po' tmpdepfile='$(DEPDIR)/liblua_la-lobject.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-lobject.obj `if test -f 'lobject.c'; then $(CYGPATH_W) 'lobject.c'; else $(CYGPATH_W) '$(srcdir)/lobject.c'; fi` +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-lmem.lo `test -f 'lmem.c' || echo '$(srcdir)/'`lmem.c liblua_la-lobject.lo: lobject.c -@am__fastdepCC_TRUE@ if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-lobject.lo -MD -MP -MF "$(DEPDIR)/liblua_la-lobject.Tpo" \ -@am__fastdepCC_TRUE@ -c -o liblua_la-lobject.lo `test -f 'lobject.c' || echo '$(srcdir)/'`lobject.c; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-lobject.Tpo" "$(DEPDIR)/liblua_la-lobject.Plo"; \ -@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/liblua_la-lobject.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi +@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-lobject.lo -MD -MP -MF "$(DEPDIR)/liblua_la-lobject.Tpo" -c -o liblua_la-lobject.lo `test -f 'lobject.c' || echo '$(srcdir)/'`lobject.c; \ +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-lobject.Tpo" "$(DEPDIR)/liblua_la-lobject.Plo"; else rm -f "$(DEPDIR)/liblua_la-lobject.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lobject.c' object='liblua_la-lobject.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/liblua_la-lobject.Plo' tmpdepfile='$(DEPDIR)/liblua_la-lobject.TPlo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-lobject.lo `test -f 'lobject.c' || echo '$(srcdir)/'`lobject.c - -liblua_la-lopcodes.o: lopcodes.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-lopcodes.o -MD -MP -MF "$(DEPDIR)/liblua_la-lopcodes.Tpo" \ -@am__fastdepCC_TRUE@ -c -o liblua_la-lopcodes.o `test -f 'lopcodes.c' || echo '$(srcdir)/'`lopcodes.c; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-lopcodes.Tpo" "$(DEPDIR)/liblua_la-lopcodes.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/liblua_la-lopcodes.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lopcodes.c' object='liblua_la-lopcodes.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/liblua_la-lopcodes.Po' tmpdepfile='$(DEPDIR)/liblua_la-lopcodes.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-lopcodes.o `test -f 'lopcodes.c' || echo '$(srcdir)/'`lopcodes.c - -liblua_la-lopcodes.obj: lopcodes.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-lopcodes.obj -MD -MP -MF "$(DEPDIR)/liblua_la-lopcodes.Tpo" \ -@am__fastdepCC_TRUE@ -c -o liblua_la-lopcodes.obj `if test -f 'lopcodes.c'; then $(CYGPATH_W) 'lopcodes.c'; else $(CYGPATH_W) '$(srcdir)/lopcodes.c'; fi`; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-lopcodes.Tpo" "$(DEPDIR)/liblua_la-lopcodes.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/liblua_la-lopcodes.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lopcodes.c' object='liblua_la-lopcodes.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/liblua_la-lopcodes.Po' tmpdepfile='$(DEPDIR)/liblua_la-lopcodes.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-lopcodes.obj `if test -f 'lopcodes.c'; then $(CYGPATH_W) 'lopcodes.c'; else $(CYGPATH_W) '$(srcdir)/lopcodes.c'; fi` +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-lobject.lo `test -f 'lobject.c' || echo '$(srcdir)/'`lobject.c liblua_la-lopcodes.lo: lopcodes.c -@am__fastdepCC_TRUE@ if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-lopcodes.lo -MD -MP -MF "$(DEPDIR)/liblua_la-lopcodes.Tpo" \ -@am__fastdepCC_TRUE@ -c -o liblua_la-lopcodes.lo `test -f 'lopcodes.c' || echo '$(srcdir)/'`lopcodes.c; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-lopcodes.Tpo" "$(DEPDIR)/liblua_la-lopcodes.Plo"; \ -@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/liblua_la-lopcodes.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi +@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-lopcodes.lo -MD -MP -MF "$(DEPDIR)/liblua_la-lopcodes.Tpo" -c -o liblua_la-lopcodes.lo `test -f 'lopcodes.c' || echo '$(srcdir)/'`lopcodes.c; \ +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-lopcodes.Tpo" "$(DEPDIR)/liblua_la-lopcodes.Plo"; else rm -f "$(DEPDIR)/liblua_la-lopcodes.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lopcodes.c' object='liblua_la-lopcodes.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/liblua_la-lopcodes.Plo' tmpdepfile='$(DEPDIR)/liblua_la-lopcodes.TPlo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-lopcodes.lo `test -f 'lopcodes.c' || echo '$(srcdir)/'`lopcodes.c - -liblua_la-lparser.o: lparser.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-lparser.o -MD -MP -MF "$(DEPDIR)/liblua_la-lparser.Tpo" \ -@am__fastdepCC_TRUE@ -c -o liblua_la-lparser.o `test -f 'lparser.c' || echo '$(srcdir)/'`lparser.c; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-lparser.Tpo" "$(DEPDIR)/liblua_la-lparser.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/liblua_la-lparser.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lparser.c' object='liblua_la-lparser.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/liblua_la-lparser.Po' tmpdepfile='$(DEPDIR)/liblua_la-lparser.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-lparser.o `test -f 'lparser.c' || echo '$(srcdir)/'`lparser.c - -liblua_la-lparser.obj: lparser.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-lparser.obj -MD -MP -MF "$(DEPDIR)/liblua_la-lparser.Tpo" \ -@am__fastdepCC_TRUE@ -c -o liblua_la-lparser.obj `if test -f 'lparser.c'; then $(CYGPATH_W) 'lparser.c'; else $(CYGPATH_W) '$(srcdir)/lparser.c'; fi`; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-lparser.Tpo" "$(DEPDIR)/liblua_la-lparser.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/liblua_la-lparser.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lparser.c' object='liblua_la-lparser.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/liblua_la-lparser.Po' tmpdepfile='$(DEPDIR)/liblua_la-lparser.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-lparser.obj `if test -f 'lparser.c'; then $(CYGPATH_W) 'lparser.c'; else $(CYGPATH_W) '$(srcdir)/lparser.c'; fi` +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-lopcodes.lo `test -f 'lopcodes.c' || echo '$(srcdir)/'`lopcodes.c liblua_la-lparser.lo: lparser.c -@am__fastdepCC_TRUE@ if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-lparser.lo -MD -MP -MF "$(DEPDIR)/liblua_la-lparser.Tpo" \ -@am__fastdepCC_TRUE@ -c -o liblua_la-lparser.lo `test -f 'lparser.c' || echo '$(srcdir)/'`lparser.c; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-lparser.Tpo" "$(DEPDIR)/liblua_la-lparser.Plo"; \ -@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/liblua_la-lparser.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi +@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-lparser.lo -MD -MP -MF "$(DEPDIR)/liblua_la-lparser.Tpo" -c -o liblua_la-lparser.lo `test -f 'lparser.c' || echo '$(srcdir)/'`lparser.c; \ +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-lparser.Tpo" "$(DEPDIR)/liblua_la-lparser.Plo"; else rm -f "$(DEPDIR)/liblua_la-lparser.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lparser.c' object='liblua_la-lparser.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/liblua_la-lparser.Plo' tmpdepfile='$(DEPDIR)/liblua_la-lparser.TPlo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-lparser.lo `test -f 'lparser.c' || echo '$(srcdir)/'`lparser.c - -liblua_la-lstate.o: lstate.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-lstate.o -MD -MP -MF "$(DEPDIR)/liblua_la-lstate.Tpo" \ -@am__fastdepCC_TRUE@ -c -o liblua_la-lstate.o `test -f 'lstate.c' || echo '$(srcdir)/'`lstate.c; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-lstate.Tpo" "$(DEPDIR)/liblua_la-lstate.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/liblua_la-lstate.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lstate.c' object='liblua_la-lstate.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/liblua_la-lstate.Po' tmpdepfile='$(DEPDIR)/liblua_la-lstate.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-lstate.o `test -f 'lstate.c' || echo '$(srcdir)/'`lstate.c - -liblua_la-lstate.obj: lstate.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-lstate.obj -MD -MP -MF "$(DEPDIR)/liblua_la-lstate.Tpo" \ -@am__fastdepCC_TRUE@ -c -o liblua_la-lstate.obj `if test -f 'lstate.c'; then $(CYGPATH_W) 'lstate.c'; else $(CYGPATH_W) '$(srcdir)/lstate.c'; fi`; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-lstate.Tpo" "$(DEPDIR)/liblua_la-lstate.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/liblua_la-lstate.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lstate.c' object='liblua_la-lstate.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/liblua_la-lstate.Po' tmpdepfile='$(DEPDIR)/liblua_la-lstate.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-lstate.obj `if test -f 'lstate.c'; then $(CYGPATH_W) 'lstate.c'; else $(CYGPATH_W) '$(srcdir)/lstate.c'; fi` +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-lparser.lo `test -f 'lparser.c' || echo '$(srcdir)/'`lparser.c liblua_la-lstate.lo: lstate.c -@am__fastdepCC_TRUE@ if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-lstate.lo -MD -MP -MF "$(DEPDIR)/liblua_la-lstate.Tpo" \ -@am__fastdepCC_TRUE@ -c -o liblua_la-lstate.lo `test -f 'lstate.c' || echo '$(srcdir)/'`lstate.c; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-lstate.Tpo" "$(DEPDIR)/liblua_la-lstate.Plo"; \ -@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/liblua_la-lstate.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi +@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-lstate.lo -MD -MP -MF "$(DEPDIR)/liblua_la-lstate.Tpo" -c -o liblua_la-lstate.lo `test -f 'lstate.c' || echo '$(srcdir)/'`lstate.c; \ +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-lstate.Tpo" "$(DEPDIR)/liblua_la-lstate.Plo"; else rm -f "$(DEPDIR)/liblua_la-lstate.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lstate.c' object='liblua_la-lstate.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/liblua_la-lstate.Plo' tmpdepfile='$(DEPDIR)/liblua_la-lstate.TPlo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-lstate.lo `test -f 'lstate.c' || echo '$(srcdir)/'`lstate.c - -liblua_la-lstring.o: lstring.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-lstring.o -MD -MP -MF "$(DEPDIR)/liblua_la-lstring.Tpo" \ -@am__fastdepCC_TRUE@ -c -o liblua_la-lstring.o `test -f 'lstring.c' || echo '$(srcdir)/'`lstring.c; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-lstring.Tpo" "$(DEPDIR)/liblua_la-lstring.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/liblua_la-lstring.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lstring.c' object='liblua_la-lstring.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/liblua_la-lstring.Po' tmpdepfile='$(DEPDIR)/liblua_la-lstring.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-lstring.o `test -f 'lstring.c' || echo '$(srcdir)/'`lstring.c - -liblua_la-lstring.obj: lstring.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-lstring.obj -MD -MP -MF "$(DEPDIR)/liblua_la-lstring.Tpo" \ -@am__fastdepCC_TRUE@ -c -o liblua_la-lstring.obj `if test -f 'lstring.c'; then $(CYGPATH_W) 'lstring.c'; else $(CYGPATH_W) '$(srcdir)/lstring.c'; fi`; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-lstring.Tpo" "$(DEPDIR)/liblua_la-lstring.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/liblua_la-lstring.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lstring.c' object='liblua_la-lstring.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/liblua_la-lstring.Po' tmpdepfile='$(DEPDIR)/liblua_la-lstring.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-lstring.obj `if test -f 'lstring.c'; then $(CYGPATH_W) 'lstring.c'; else $(CYGPATH_W) '$(srcdir)/lstring.c'; fi` +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-lstate.lo `test -f 'lstate.c' || echo '$(srcdir)/'`lstate.c liblua_la-lstring.lo: lstring.c -@am__fastdepCC_TRUE@ if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-lstring.lo -MD -MP -MF "$(DEPDIR)/liblua_la-lstring.Tpo" \ -@am__fastdepCC_TRUE@ -c -o liblua_la-lstring.lo `test -f 'lstring.c' || echo '$(srcdir)/'`lstring.c; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-lstring.Tpo" "$(DEPDIR)/liblua_la-lstring.Plo"; \ -@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/liblua_la-lstring.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi +@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-lstring.lo -MD -MP -MF "$(DEPDIR)/liblua_la-lstring.Tpo" -c -o liblua_la-lstring.lo `test -f 'lstring.c' || echo '$(srcdir)/'`lstring.c; \ +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-lstring.Tpo" "$(DEPDIR)/liblua_la-lstring.Plo"; else rm -f "$(DEPDIR)/liblua_la-lstring.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lstring.c' object='liblua_la-lstring.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/liblua_la-lstring.Plo' tmpdepfile='$(DEPDIR)/liblua_la-lstring.TPlo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-lstring.lo `test -f 'lstring.c' || echo '$(srcdir)/'`lstring.c - -liblua_la-ltable.o: ltable.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-ltable.o -MD -MP -MF "$(DEPDIR)/liblua_la-ltable.Tpo" \ -@am__fastdepCC_TRUE@ -c -o liblua_la-ltable.o `test -f 'ltable.c' || echo '$(srcdir)/'`ltable.c; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-ltable.Tpo" "$(DEPDIR)/liblua_la-ltable.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/liblua_la-ltable.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ltable.c' object='liblua_la-ltable.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/liblua_la-ltable.Po' tmpdepfile='$(DEPDIR)/liblua_la-ltable.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-ltable.o `test -f 'ltable.c' || echo '$(srcdir)/'`ltable.c - -liblua_la-ltable.obj: ltable.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-ltable.obj -MD -MP -MF "$(DEPDIR)/liblua_la-ltable.Tpo" \ -@am__fastdepCC_TRUE@ -c -o liblua_la-ltable.obj `if test -f 'ltable.c'; then $(CYGPATH_W) 'ltable.c'; else $(CYGPATH_W) '$(srcdir)/ltable.c'; fi`; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-ltable.Tpo" "$(DEPDIR)/liblua_la-ltable.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/liblua_la-ltable.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ltable.c' object='liblua_la-ltable.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/liblua_la-ltable.Po' tmpdepfile='$(DEPDIR)/liblua_la-ltable.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-ltable.obj `if test -f 'ltable.c'; then $(CYGPATH_W) 'ltable.c'; else $(CYGPATH_W) '$(srcdir)/ltable.c'; fi` +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-lstring.lo `test -f 'lstring.c' || echo '$(srcdir)/'`lstring.c liblua_la-ltable.lo: ltable.c -@am__fastdepCC_TRUE@ if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-ltable.lo -MD -MP -MF "$(DEPDIR)/liblua_la-ltable.Tpo" \ -@am__fastdepCC_TRUE@ -c -o liblua_la-ltable.lo `test -f 'ltable.c' || echo '$(srcdir)/'`ltable.c; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-ltable.Tpo" "$(DEPDIR)/liblua_la-ltable.Plo"; \ -@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/liblua_la-ltable.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi +@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-ltable.lo -MD -MP -MF "$(DEPDIR)/liblua_la-ltable.Tpo" -c -o liblua_la-ltable.lo `test -f 'ltable.c' || echo '$(srcdir)/'`ltable.c; \ +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-ltable.Tpo" "$(DEPDIR)/liblua_la-ltable.Plo"; else rm -f "$(DEPDIR)/liblua_la-ltable.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ltable.c' object='liblua_la-ltable.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/liblua_la-ltable.Plo' tmpdepfile='$(DEPDIR)/liblua_la-ltable.TPlo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-ltable.lo `test -f 'ltable.c' || echo '$(srcdir)/'`ltable.c - -liblua_la-ltests.o: ltests.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-ltests.o -MD -MP -MF "$(DEPDIR)/liblua_la-ltests.Tpo" \ -@am__fastdepCC_TRUE@ -c -o liblua_la-ltests.o `test -f 'ltests.c' || echo '$(srcdir)/'`ltests.c; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-ltests.Tpo" "$(DEPDIR)/liblua_la-ltests.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/liblua_la-ltests.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ltests.c' object='liblua_la-ltests.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/liblua_la-ltests.Po' tmpdepfile='$(DEPDIR)/liblua_la-ltests.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-ltests.o `test -f 'ltests.c' || echo '$(srcdir)/'`ltests.c - -liblua_la-ltests.obj: ltests.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-ltests.obj -MD -MP -MF "$(DEPDIR)/liblua_la-ltests.Tpo" \ -@am__fastdepCC_TRUE@ -c -o liblua_la-ltests.obj `if test -f 'ltests.c'; then $(CYGPATH_W) 'ltests.c'; else $(CYGPATH_W) '$(srcdir)/ltests.c'; fi`; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-ltests.Tpo" "$(DEPDIR)/liblua_la-ltests.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/liblua_la-ltests.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ltests.c' object='liblua_la-ltests.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/liblua_la-ltests.Po' tmpdepfile='$(DEPDIR)/liblua_la-ltests.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-ltests.obj `if test -f 'ltests.c'; then $(CYGPATH_W) 'ltests.c'; else $(CYGPATH_W) '$(srcdir)/ltests.c'; fi` +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-ltable.lo `test -f 'ltable.c' || echo '$(srcdir)/'`ltable.c liblua_la-ltests.lo: ltests.c -@am__fastdepCC_TRUE@ if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-ltests.lo -MD -MP -MF "$(DEPDIR)/liblua_la-ltests.Tpo" \ -@am__fastdepCC_TRUE@ -c -o liblua_la-ltests.lo `test -f 'ltests.c' || echo '$(srcdir)/'`ltests.c; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-ltests.Tpo" "$(DEPDIR)/liblua_la-ltests.Plo"; \ -@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/liblua_la-ltests.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi +@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-ltests.lo -MD -MP -MF "$(DEPDIR)/liblua_la-ltests.Tpo" -c -o liblua_la-ltests.lo `test -f 'ltests.c' || echo '$(srcdir)/'`ltests.c; \ +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-ltests.Tpo" "$(DEPDIR)/liblua_la-ltests.Plo"; else rm -f "$(DEPDIR)/liblua_la-ltests.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ltests.c' object='liblua_la-ltests.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/liblua_la-ltests.Plo' tmpdepfile='$(DEPDIR)/liblua_la-ltests.TPlo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-ltests.lo `test -f 'ltests.c' || echo '$(srcdir)/'`ltests.c - -liblua_la-ltm.o: ltm.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-ltm.o -MD -MP -MF "$(DEPDIR)/liblua_la-ltm.Tpo" \ -@am__fastdepCC_TRUE@ -c -o liblua_la-ltm.o `test -f 'ltm.c' || echo '$(srcdir)/'`ltm.c; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-ltm.Tpo" "$(DEPDIR)/liblua_la-ltm.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/liblua_la-ltm.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ltm.c' object='liblua_la-ltm.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/liblua_la-ltm.Po' tmpdepfile='$(DEPDIR)/liblua_la-ltm.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-ltm.o `test -f 'ltm.c' || echo '$(srcdir)/'`ltm.c - -liblua_la-ltm.obj: ltm.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-ltm.obj -MD -MP -MF "$(DEPDIR)/liblua_la-ltm.Tpo" \ -@am__fastdepCC_TRUE@ -c -o liblua_la-ltm.obj `if test -f 'ltm.c'; then $(CYGPATH_W) 'ltm.c'; else $(CYGPATH_W) '$(srcdir)/ltm.c'; fi`; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-ltm.Tpo" "$(DEPDIR)/liblua_la-ltm.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/liblua_la-ltm.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ltm.c' object='liblua_la-ltm.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/liblua_la-ltm.Po' tmpdepfile='$(DEPDIR)/liblua_la-ltm.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-ltm.obj `if test -f 'ltm.c'; then $(CYGPATH_W) 'ltm.c'; else $(CYGPATH_W) '$(srcdir)/ltm.c'; fi` +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-ltests.lo `test -f 'ltests.c' || echo '$(srcdir)/'`ltests.c liblua_la-ltm.lo: ltm.c -@am__fastdepCC_TRUE@ if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-ltm.lo -MD -MP -MF "$(DEPDIR)/liblua_la-ltm.Tpo" \ -@am__fastdepCC_TRUE@ -c -o liblua_la-ltm.lo `test -f 'ltm.c' || echo '$(srcdir)/'`ltm.c; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-ltm.Tpo" "$(DEPDIR)/liblua_la-ltm.Plo"; \ -@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/liblua_la-ltm.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi +@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-ltm.lo -MD -MP -MF "$(DEPDIR)/liblua_la-ltm.Tpo" -c -o liblua_la-ltm.lo `test -f 'ltm.c' || echo '$(srcdir)/'`ltm.c; \ +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-ltm.Tpo" "$(DEPDIR)/liblua_la-ltm.Plo"; else rm -f "$(DEPDIR)/liblua_la-ltm.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='ltm.c' object='liblua_la-ltm.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/liblua_la-ltm.Plo' tmpdepfile='$(DEPDIR)/liblua_la-ltm.TPlo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-ltm.lo `test -f 'ltm.c' || echo '$(srcdir)/'`ltm.c - -liblua_la-lundump.o: lundump.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-lundump.o -MD -MP -MF "$(DEPDIR)/liblua_la-lundump.Tpo" \ -@am__fastdepCC_TRUE@ -c -o liblua_la-lundump.o `test -f 'lundump.c' || echo '$(srcdir)/'`lundump.c; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-lundump.Tpo" "$(DEPDIR)/liblua_la-lundump.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/liblua_la-lundump.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lundump.c' object='liblua_la-lundump.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/liblua_la-lundump.Po' tmpdepfile='$(DEPDIR)/liblua_la-lundump.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-lundump.o `test -f 'lundump.c' || echo '$(srcdir)/'`lundump.c - -liblua_la-lundump.obj: lundump.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-lundump.obj -MD -MP -MF "$(DEPDIR)/liblua_la-lundump.Tpo" \ -@am__fastdepCC_TRUE@ -c -o liblua_la-lundump.obj `if test -f 'lundump.c'; then $(CYGPATH_W) 'lundump.c'; else $(CYGPATH_W) '$(srcdir)/lundump.c'; fi`; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-lundump.Tpo" "$(DEPDIR)/liblua_la-lundump.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/liblua_la-lundump.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lundump.c' object='liblua_la-lundump.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/liblua_la-lundump.Po' tmpdepfile='$(DEPDIR)/liblua_la-lundump.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-lundump.obj `if test -f 'lundump.c'; then $(CYGPATH_W) 'lundump.c'; else $(CYGPATH_W) '$(srcdir)/lundump.c'; fi` +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-ltm.lo `test -f 'ltm.c' || echo '$(srcdir)/'`ltm.c liblua_la-lundump.lo: lundump.c -@am__fastdepCC_TRUE@ if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-lundump.lo -MD -MP -MF "$(DEPDIR)/liblua_la-lundump.Tpo" \ -@am__fastdepCC_TRUE@ -c -o liblua_la-lundump.lo `test -f 'lundump.c' || echo '$(srcdir)/'`lundump.c; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-lundump.Tpo" "$(DEPDIR)/liblua_la-lundump.Plo"; \ -@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/liblua_la-lundump.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi +@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-lundump.lo -MD -MP -MF "$(DEPDIR)/liblua_la-lundump.Tpo" -c -o liblua_la-lundump.lo `test -f 'lundump.c' || echo '$(srcdir)/'`lundump.c; \ +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-lundump.Tpo" "$(DEPDIR)/liblua_la-lundump.Plo"; else rm -f "$(DEPDIR)/liblua_la-lundump.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lundump.c' object='liblua_la-lundump.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/liblua_la-lundump.Plo' tmpdepfile='$(DEPDIR)/liblua_la-lundump.TPlo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-lundump.lo `test -f 'lundump.c' || echo '$(srcdir)/'`lundump.c - -liblua_la-lvm.o: lvm.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-lvm.o -MD -MP -MF "$(DEPDIR)/liblua_la-lvm.Tpo" \ -@am__fastdepCC_TRUE@ -c -o liblua_la-lvm.o `test -f 'lvm.c' || echo '$(srcdir)/'`lvm.c; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-lvm.Tpo" "$(DEPDIR)/liblua_la-lvm.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/liblua_la-lvm.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lvm.c' object='liblua_la-lvm.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/liblua_la-lvm.Po' tmpdepfile='$(DEPDIR)/liblua_la-lvm.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-lvm.o `test -f 'lvm.c' || echo '$(srcdir)/'`lvm.c - -liblua_la-lvm.obj: lvm.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-lvm.obj -MD -MP -MF "$(DEPDIR)/liblua_la-lvm.Tpo" \ -@am__fastdepCC_TRUE@ -c -o liblua_la-lvm.obj `if test -f 'lvm.c'; then $(CYGPATH_W) 'lvm.c'; else $(CYGPATH_W) '$(srcdir)/lvm.c'; fi`; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-lvm.Tpo" "$(DEPDIR)/liblua_la-lvm.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/liblua_la-lvm.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lvm.c' object='liblua_la-lvm.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/liblua_la-lvm.Po' tmpdepfile='$(DEPDIR)/liblua_la-lvm.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-lvm.obj `if test -f 'lvm.c'; then $(CYGPATH_W) 'lvm.c'; else $(CYGPATH_W) '$(srcdir)/lvm.c'; fi` +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-lundump.lo `test -f 'lundump.c' || echo '$(srcdir)/'`lundump.c liblua_la-lvm.lo: lvm.c -@am__fastdepCC_TRUE@ if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-lvm.lo -MD -MP -MF "$(DEPDIR)/liblua_la-lvm.Tpo" \ -@am__fastdepCC_TRUE@ -c -o liblua_la-lvm.lo `test -f 'lvm.c' || echo '$(srcdir)/'`lvm.c; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-lvm.Tpo" "$(DEPDIR)/liblua_la-lvm.Plo"; \ -@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/liblua_la-lvm.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi +@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-lvm.lo -MD -MP -MF "$(DEPDIR)/liblua_la-lvm.Tpo" -c -o liblua_la-lvm.lo `test -f 'lvm.c' || echo '$(srcdir)/'`lvm.c; \ +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-lvm.Tpo" "$(DEPDIR)/liblua_la-lvm.Plo"; else rm -f "$(DEPDIR)/liblua_la-lvm.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lvm.c' object='liblua_la-lvm.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/liblua_la-lvm.Plo' tmpdepfile='$(DEPDIR)/liblua_la-lvm.TPlo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-lvm.lo `test -f 'lvm.c' || echo '$(srcdir)/'`lvm.c - -liblua_la-lzio.o: lzio.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-lzio.o -MD -MP -MF "$(DEPDIR)/liblua_la-lzio.Tpo" \ -@am__fastdepCC_TRUE@ -c -o liblua_la-lzio.o `test -f 'lzio.c' || echo '$(srcdir)/'`lzio.c; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-lzio.Tpo" "$(DEPDIR)/liblua_la-lzio.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/liblua_la-lzio.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lzio.c' object='liblua_la-lzio.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/liblua_la-lzio.Po' tmpdepfile='$(DEPDIR)/liblua_la-lzio.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-lzio.o `test -f 'lzio.c' || echo '$(srcdir)/'`lzio.c - -liblua_la-lzio.obj: lzio.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-lzio.obj -MD -MP -MF "$(DEPDIR)/liblua_la-lzio.Tpo" \ -@am__fastdepCC_TRUE@ -c -o liblua_la-lzio.obj `if test -f 'lzio.c'; then $(CYGPATH_W) 'lzio.c'; else $(CYGPATH_W) '$(srcdir)/lzio.c'; fi`; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-lzio.Tpo" "$(DEPDIR)/liblua_la-lzio.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/liblua_la-lzio.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lzio.c' object='liblua_la-lzio.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/liblua_la-lzio.Po' tmpdepfile='$(DEPDIR)/liblua_la-lzio.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-lzio.obj `if test -f 'lzio.c'; then $(CYGPATH_W) 'lzio.c'; else $(CYGPATH_W) '$(srcdir)/lzio.c'; fi` +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-lvm.lo `test -f 'lvm.c' || echo '$(srcdir)/'`lvm.c liblua_la-lzio.lo: lzio.c -@am__fastdepCC_TRUE@ if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-lzio.lo -MD -MP -MF "$(DEPDIR)/liblua_la-lzio.Tpo" \ -@am__fastdepCC_TRUE@ -c -o liblua_la-lzio.lo `test -f 'lzio.c' || echo '$(srcdir)/'`lzio.c; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-lzio.Tpo" "$(DEPDIR)/liblua_la-lzio.Plo"; \ -@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/liblua_la-lzio.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi +@am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -MT liblua_la-lzio.lo -MD -MP -MF "$(DEPDIR)/liblua_la-lzio.Tpo" -c -o liblua_la-lzio.lo `test -f 'lzio.c' || echo '$(srcdir)/'`lzio.c; \ +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/liblua_la-lzio.Tpo" "$(DEPDIR)/liblua_la-lzio.Plo"; else rm -f "$(DEPDIR)/liblua_la-lzio.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lzio.c' object='liblua_la-lzio.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/liblua_la-lzio.Plo' tmpdepfile='$(DEPDIR)/liblua_la-lzio.TPlo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-lzio.lo `test -f 'lzio.c' || echo '$(srcdir)/'`lzio.c +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(liblua_la_CFLAGS) $(CFLAGS) -c -o liblua_la-lzio.lo `test -f 'lzio.c' || echo '$(srcdir)/'`lzio.c lua/lua_lua-lua.o: lua/lua.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lua_lua_CFLAGS) $(CFLAGS) -MT lua/lua_lua-lua.o -MD -MP -MF "lua/$(DEPDIR)/lua_lua-lua.Tpo" \ -@am__fastdepCC_TRUE@ -c -o lua/lua_lua-lua.o `test -f 'lua/lua.c' || echo '$(srcdir)/'`lua/lua.c; \ -@am__fastdepCC_TRUE@ then mv -f "lua/$(DEPDIR)/lua_lua-lua.Tpo" "lua/$(DEPDIR)/lua_lua-lua.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "lua/$(DEPDIR)/lua_lua-lua.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi +@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lua_lua_CFLAGS) $(CFLAGS) -MT lua/lua_lua-lua.o -MD -MP -MF "lua/$(DEPDIR)/lua_lua-lua.Tpo" -c -o lua/lua_lua-lua.o `test -f 'lua/lua.c' || echo '$(srcdir)/'`lua/lua.c; \ +@am__fastdepCC_TRUE@ then mv -f "lua/$(DEPDIR)/lua_lua-lua.Tpo" "lua/$(DEPDIR)/lua_lua-lua.Po"; else rm -f "lua/$(DEPDIR)/lua_lua-lua.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lua/lua.c' object='lua/lua_lua-lua.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='lua/$(DEPDIR)/lua_lua-lua.Po' tmpdepfile='lua/$(DEPDIR)/lua_lua-lua.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lua_lua_CFLAGS) $(CFLAGS) -c -o lua/lua_lua-lua.o `test -f 'lua/lua.c' || echo '$(srcdir)/'`lua/lua.c lua/lua_lua-lua.obj: lua/lua.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lua_lua_CFLAGS) $(CFLAGS) -MT lua/lua_lua-lua.obj -MD -MP -MF "lua/$(DEPDIR)/lua_lua-lua.Tpo" \ -@am__fastdepCC_TRUE@ -c -o lua/lua_lua-lua.obj `if test -f 'lua/lua.c'; then $(CYGPATH_W) 'lua/lua.c'; else $(CYGPATH_W) '$(srcdir)/lua/lua.c'; fi`; \ -@am__fastdepCC_TRUE@ then mv -f "lua/$(DEPDIR)/lua_lua-lua.Tpo" "lua/$(DEPDIR)/lua_lua-lua.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "lua/$(DEPDIR)/lua_lua-lua.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi +@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lua_lua_CFLAGS) $(CFLAGS) -MT lua/lua_lua-lua.obj -MD -MP -MF "lua/$(DEPDIR)/lua_lua-lua.Tpo" -c -o lua/lua_lua-lua.obj `if test -f 'lua/lua.c'; then $(CYGPATH_W) 'lua/lua.c'; else $(CYGPATH_W) '$(srcdir)/lua/lua.c'; fi`; \ +@am__fastdepCC_TRUE@ then mv -f "lua/$(DEPDIR)/lua_lua-lua.Tpo" "lua/$(DEPDIR)/lua_lua-lua.Po"; else rm -f "lua/$(DEPDIR)/lua_lua-lua.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lua/lua.c' object='lua/lua_lua-lua.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='lua/$(DEPDIR)/lua_lua-lua.Po' tmpdepfile='lua/$(DEPDIR)/lua_lua-lua.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lua_lua_CFLAGS) $(CFLAGS) -c -o lua/lua_lua-lua.obj `if test -f 'lua/lua.c'; then $(CYGPATH_W) 'lua/lua.c'; else $(CYGPATH_W) '$(srcdir)/lua/lua.c'; fi` -lua/lua_lua-lua.lo: lua/lua.c -@am__fastdepCC_TRUE@ if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lua_lua_CFLAGS) $(CFLAGS) -MT lua/lua_lua-lua.lo -MD -MP -MF "lua/$(DEPDIR)/lua_lua-lua.Tpo" \ -@am__fastdepCC_TRUE@ -c -o lua/lua_lua-lua.lo `test -f 'lua/lua.c' || echo '$(srcdir)/'`lua/lua.c; \ -@am__fastdepCC_TRUE@ then mv -f "lua/$(DEPDIR)/lua_lua-lua.Tpo" "lua/$(DEPDIR)/lua_lua-lua.Plo"; \ -@am__fastdepCC_TRUE@ else rm -f "lua/$(DEPDIR)/lua_lua-lua.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lua/lua.c' object='lua/lua_lua-lua.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='lua/$(DEPDIR)/lua_lua-lua.Plo' tmpdepfile='lua/$(DEPDIR)/lua_lua-lua.TPlo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(lua_lua_CFLAGS) $(CFLAGS) -c -o lua/lua_lua-lua.lo `test -f 'lua/lua.c' || echo '$(srcdir)/'`lua/lua.c - luac/luac_luac-luac.o: luac/luac.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(luac_luac_CFLAGS) $(CFLAGS) -MT luac/luac_luac-luac.o -MD -MP -MF "luac/$(DEPDIR)/luac_luac-luac.Tpo" \ -@am__fastdepCC_TRUE@ -c -o luac/luac_luac-luac.o `test -f 'luac/luac.c' || echo '$(srcdir)/'`luac/luac.c; \ -@am__fastdepCC_TRUE@ then mv -f "luac/$(DEPDIR)/luac_luac-luac.Tpo" "luac/$(DEPDIR)/luac_luac-luac.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "luac/$(DEPDIR)/luac_luac-luac.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi +@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(luac_luac_CFLAGS) $(CFLAGS) -MT luac/luac_luac-luac.o -MD -MP -MF "luac/$(DEPDIR)/luac_luac-luac.Tpo" -c -o luac/luac_luac-luac.o `test -f 'luac/luac.c' || echo '$(srcdir)/'`luac/luac.c; \ +@am__fastdepCC_TRUE@ then mv -f "luac/$(DEPDIR)/luac_luac-luac.Tpo" "luac/$(DEPDIR)/luac_luac-luac.Po"; else rm -f "luac/$(DEPDIR)/luac_luac-luac.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='luac/luac.c' object='luac/luac_luac-luac.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='luac/$(DEPDIR)/luac_luac-luac.Po' tmpdepfile='luac/$(DEPDIR)/luac_luac-luac.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(luac_luac_CFLAGS) $(CFLAGS) -c -o luac/luac_luac-luac.o `test -f 'luac/luac.c' || echo '$(srcdir)/'`luac/luac.c luac/luac_luac-luac.obj: luac/luac.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(luac_luac_CFLAGS) $(CFLAGS) -MT luac/luac_luac-luac.obj -MD -MP -MF "luac/$(DEPDIR)/luac_luac-luac.Tpo" \ -@am__fastdepCC_TRUE@ -c -o luac/luac_luac-luac.obj `if test -f 'luac/luac.c'; then $(CYGPATH_W) 'luac/luac.c'; else $(CYGPATH_W) '$(srcdir)/luac/luac.c'; fi`; \ -@am__fastdepCC_TRUE@ then mv -f "luac/$(DEPDIR)/luac_luac-luac.Tpo" "luac/$(DEPDIR)/luac_luac-luac.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "luac/$(DEPDIR)/luac_luac-luac.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi +@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(luac_luac_CFLAGS) $(CFLAGS) -MT luac/luac_luac-luac.obj -MD -MP -MF "luac/$(DEPDIR)/luac_luac-luac.Tpo" -c -o luac/luac_luac-luac.obj `if test -f 'luac/luac.c'; then $(CYGPATH_W) 'luac/luac.c'; else $(CYGPATH_W) '$(srcdir)/luac/luac.c'; fi`; \ +@am__fastdepCC_TRUE@ then mv -f "luac/$(DEPDIR)/luac_luac-luac.Tpo" "luac/$(DEPDIR)/luac_luac-luac.Po"; else rm -f "luac/$(DEPDIR)/luac_luac-luac.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='luac/luac.c' object='luac/luac_luac-luac.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='luac/$(DEPDIR)/luac_luac-luac.Po' tmpdepfile='luac/$(DEPDIR)/luac_luac-luac.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(luac_luac_CFLAGS) $(CFLAGS) -c -o luac/luac_luac-luac.obj `if test -f 'luac/luac.c'; then $(CYGPATH_W) 'luac/luac.c'; else $(CYGPATH_W) '$(srcdir)/luac/luac.c'; fi` -luac/luac_luac-luac.lo: luac/luac.c -@am__fastdepCC_TRUE@ if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(luac_luac_CFLAGS) $(CFLAGS) -MT luac/luac_luac-luac.lo -MD -MP -MF "luac/$(DEPDIR)/luac_luac-luac.Tpo" \ -@am__fastdepCC_TRUE@ -c -o luac/luac_luac-luac.lo `test -f 'luac/luac.c' || echo '$(srcdir)/'`luac/luac.c; \ -@am__fastdepCC_TRUE@ then mv -f "luac/$(DEPDIR)/luac_luac-luac.Tpo" "luac/$(DEPDIR)/luac_luac-luac.Plo"; \ -@am__fastdepCC_TRUE@ else rm -f "luac/$(DEPDIR)/luac_luac-luac.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='luac/luac.c' object='luac/luac_luac-luac.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='luac/$(DEPDIR)/luac_luac-luac.Plo' tmpdepfile='luac/$(DEPDIR)/luac_luac-luac.TPlo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(luac_luac_CFLAGS) $(CFLAGS) -c -o luac/luac_luac-luac.lo `test -f 'luac/luac.c' || echo '$(srcdir)/'`luac/luac.c - luac/luac_luac-print.o: luac/print.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(luac_luac_CFLAGS) $(CFLAGS) -MT luac/luac_luac-print.o -MD -MP -MF "luac/$(DEPDIR)/luac_luac-print.Tpo" \ -@am__fastdepCC_TRUE@ -c -o luac/luac_luac-print.o `test -f 'luac/print.c' || echo '$(srcdir)/'`luac/print.c; \ -@am__fastdepCC_TRUE@ then mv -f "luac/$(DEPDIR)/luac_luac-print.Tpo" "luac/$(DEPDIR)/luac_luac-print.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "luac/$(DEPDIR)/luac_luac-print.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi +@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(luac_luac_CFLAGS) $(CFLAGS) -MT luac/luac_luac-print.o -MD -MP -MF "luac/$(DEPDIR)/luac_luac-print.Tpo" -c -o luac/luac_luac-print.o `test -f 'luac/print.c' || echo '$(srcdir)/'`luac/print.c; \ +@am__fastdepCC_TRUE@ then mv -f "luac/$(DEPDIR)/luac_luac-print.Tpo" "luac/$(DEPDIR)/luac_luac-print.Po"; else rm -f "luac/$(DEPDIR)/luac_luac-print.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='luac/print.c' object='luac/luac_luac-print.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='luac/$(DEPDIR)/luac_luac-print.Po' tmpdepfile='luac/$(DEPDIR)/luac_luac-print.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(luac_luac_CFLAGS) $(CFLAGS) -c -o luac/luac_luac-print.o `test -f 'luac/print.c' || echo '$(srcdir)/'`luac/print.c luac/luac_luac-print.obj: luac/print.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(luac_luac_CFLAGS) $(CFLAGS) -MT luac/luac_luac-print.obj -MD -MP -MF "luac/$(DEPDIR)/luac_luac-print.Tpo" \ -@am__fastdepCC_TRUE@ -c -o luac/luac_luac-print.obj `if test -f 'luac/print.c'; then $(CYGPATH_W) 'luac/print.c'; else $(CYGPATH_W) '$(srcdir)/luac/print.c'; fi`; \ -@am__fastdepCC_TRUE@ then mv -f "luac/$(DEPDIR)/luac_luac-print.Tpo" "luac/$(DEPDIR)/luac_luac-print.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "luac/$(DEPDIR)/luac_luac-print.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi +@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(luac_luac_CFLAGS) $(CFLAGS) -MT luac/luac_luac-print.obj -MD -MP -MF "luac/$(DEPDIR)/luac_luac-print.Tpo" -c -o luac/luac_luac-print.obj `if test -f 'luac/print.c'; then $(CYGPATH_W) 'luac/print.c'; else $(CYGPATH_W) '$(srcdir)/luac/print.c'; fi`; \ +@am__fastdepCC_TRUE@ then mv -f "luac/$(DEPDIR)/luac_luac-print.Tpo" "luac/$(DEPDIR)/luac_luac-print.Po"; else rm -f "luac/$(DEPDIR)/luac_luac-print.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='luac/print.c' object='luac/luac_luac-print.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='luac/$(DEPDIR)/luac_luac-print.Po' tmpdepfile='luac/$(DEPDIR)/luac_luac-print.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(luac_luac_CFLAGS) $(CFLAGS) -c -o luac/luac_luac-print.obj `if test -f 'luac/print.c'; then $(CYGPATH_W) 'luac/print.c'; else $(CYGPATH_W) '$(srcdir)/luac/print.c'; fi` -luac/luac_luac-print.lo: luac/print.c -@am__fastdepCC_TRUE@ if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(luac_luac_CFLAGS) $(CFLAGS) -MT luac/luac_luac-print.lo -MD -MP -MF "luac/$(DEPDIR)/luac_luac-print.Tpo" \ -@am__fastdepCC_TRUE@ -c -o luac/luac_luac-print.lo `test -f 'luac/print.c' || echo '$(srcdir)/'`luac/print.c; \ -@am__fastdepCC_TRUE@ then mv -f "luac/$(DEPDIR)/luac_luac-print.Tpo" "luac/$(DEPDIR)/luac_luac-print.Plo"; \ -@am__fastdepCC_TRUE@ else rm -f "luac/$(DEPDIR)/luac_luac-print.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='luac/print.c' object='luac/luac_luac-print.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='luac/$(DEPDIR)/luac_luac-print.Plo' tmpdepfile='luac/$(DEPDIR)/luac_luac-print.TPlo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(luac_luac_CFLAGS) $(CFLAGS) -c -o luac/luac_luac-print.lo `test -f 'luac/print.c' || echo '$(srcdir)/'`luac/print.c - luac_luac-lopcodes.o: lopcodes.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(luac_luac_CFLAGS) $(CFLAGS) -MT luac_luac-lopcodes.o -MD -MP -MF "$(DEPDIR)/luac_luac-lopcodes.Tpo" \ -@am__fastdepCC_TRUE@ -c -o luac_luac-lopcodes.o `test -f 'lopcodes.c' || echo '$(srcdir)/'`lopcodes.c; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/luac_luac-lopcodes.Tpo" "$(DEPDIR)/luac_luac-lopcodes.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/luac_luac-lopcodes.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi +@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(luac_luac_CFLAGS) $(CFLAGS) -MT luac_luac-lopcodes.o -MD -MP -MF "$(DEPDIR)/luac_luac-lopcodes.Tpo" -c -o luac_luac-lopcodes.o `test -f 'lopcodes.c' || echo '$(srcdir)/'`lopcodes.c; \ +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/luac_luac-lopcodes.Tpo" "$(DEPDIR)/luac_luac-lopcodes.Po"; else rm -f "$(DEPDIR)/luac_luac-lopcodes.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lopcodes.c' object='luac_luac-lopcodes.o' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/luac_luac-lopcodes.Po' tmpdepfile='$(DEPDIR)/luac_luac-lopcodes.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(luac_luac_CFLAGS) $(CFLAGS) -c -o luac_luac-lopcodes.o `test -f 'lopcodes.c' || echo '$(srcdir)/'`lopcodes.c luac_luac-lopcodes.obj: lopcodes.c -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(luac_luac_CFLAGS) $(CFLAGS) -MT luac_luac-lopcodes.obj -MD -MP -MF "$(DEPDIR)/luac_luac-lopcodes.Tpo" \ -@am__fastdepCC_TRUE@ -c -o luac_luac-lopcodes.obj `if test -f 'lopcodes.c'; then $(CYGPATH_W) 'lopcodes.c'; else $(CYGPATH_W) '$(srcdir)/lopcodes.c'; fi`; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/luac_luac-lopcodes.Tpo" "$(DEPDIR)/luac_luac-lopcodes.Po"; \ -@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/luac_luac-lopcodes.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi +@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(luac_luac_CFLAGS) $(CFLAGS) -MT luac_luac-lopcodes.obj -MD -MP -MF "$(DEPDIR)/luac_luac-lopcodes.Tpo" -c -o luac_luac-lopcodes.obj `if test -f 'lopcodes.c'; then $(CYGPATH_W) 'lopcodes.c'; else $(CYGPATH_W) '$(srcdir)/lopcodes.c'; fi`; \ +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/luac_luac-lopcodes.Tpo" "$(DEPDIR)/luac_luac-lopcodes.Po"; else rm -f "$(DEPDIR)/luac_luac-lopcodes.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lopcodes.c' object='luac_luac-lopcodes.obj' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/luac_luac-lopcodes.Po' tmpdepfile='$(DEPDIR)/luac_luac-lopcodes.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(luac_luac_CFLAGS) $(CFLAGS) -c -o luac_luac-lopcodes.obj `if test -f 'lopcodes.c'; then $(CYGPATH_W) 'lopcodes.c'; else $(CYGPATH_W) '$(srcdir)/lopcodes.c'; fi` -luac_luac-lopcodes.lo: lopcodes.c -@am__fastdepCC_TRUE@ if $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(luac_luac_CFLAGS) $(CFLAGS) -MT luac_luac-lopcodes.lo -MD -MP -MF "$(DEPDIR)/luac_luac-lopcodes.Tpo" \ -@am__fastdepCC_TRUE@ -c -o luac_luac-lopcodes.lo `test -f 'lopcodes.c' || echo '$(srcdir)/'`lopcodes.c; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/luac_luac-lopcodes.Tpo" "$(DEPDIR)/luac_luac-lopcodes.Plo"; \ -@am__fastdepCC_TRUE@ else rm -f "$(DEPDIR)/luac_luac-lopcodes.Tpo"; exit 1; \ -@am__fastdepCC_TRUE@ fi -@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='lopcodes.c' object='luac_luac-lopcodes.lo' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ depfile='$(DEPDIR)/luac_luac-lopcodes.Plo' tmpdepfile='$(DEPDIR)/luac_luac-lopcodes.TPlo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(luac_luac_CFLAGS) $(CFLAGS) -c -o luac_luac-lopcodes.lo `test -f 'lopcodes.c' || echo '$(srcdir)/'`lopcodes.c - mostlyclean-libtool: -rm -f *.lo @@ -1697,14 +810,6 @@ distclean-libtool: -rm -f libtool uninstall-info-am: -ETAGS = etags -ETAGSFLAGS = - -CTAGS = ctags -CTAGSFLAGS = - -tags: TAGS - ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ @@ -1713,6 +818,7 @@ ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique +tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) @@ -1724,10 +830,11 @@ TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ - test -z "$(ETAGS_ARGS)$$tags$$unique" \ - || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$tags $$unique - + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) @@ -1750,13 +857,9 @@ GTAGS: distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) - -top_distdir = .. -distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) distdir: $(DISTFILES) - $(mkinstalldirs) $(distdir)/local + $(mkdir_p) $(distdir)/local @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ list='$(DISTFILES)'; for file in $$list; do \ @@ -1768,7 +871,7 @@ distdir: $(DISTFILES) dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ - $(mkinstalldirs) "$(distdir)$$dir"; \ + $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ @@ -1786,7 +889,6 @@ distdir: $(DISTFILES) check-am: all-am check: check-am all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) - installdirs: install: install-am install-exec: install-exec-am @@ -1807,15 +909,15 @@ mostlyclean-generic: clean-generic: distclean-generic: - -rm -f $(CONFIG_CLEAN_FILES) - -rm -f luac/$(DEPDIR)/$(am__dirstamp) + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -rm -f lib/$(DEPDIR)/$(am__dirstamp) + -rm -f lib/$(am__dirstamp) -rm -f local/$(DEPDIR)/$(am__dirstamp) -rm -f local/$(am__dirstamp) - -rm -f lib/$(am__dirstamp) - -rm -f lib/$(DEPDIR)/$(am__dirstamp) - -rm -f luac/$(am__dirstamp) - -rm -f lua/$(am__dirstamp) -rm -f lua/$(DEPDIR)/$(am__dirstamp) + -rm -f lua/$(am__dirstamp) + -rm -f luac/$(DEPDIR)/$(am__dirstamp) + -rm -f luac/$(am__dirstamp) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @@ -1835,6 +937,8 @@ dvi: dvi-am dvi-am: +html: html-am + info: info-am info-am: @@ -1872,14 +976,14 @@ uninstall-am: uninstall-info-am .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool clean-noinstLTLIBRARIES clean-noinstPROGRAMS \ ctags distclean distclean-compile distclean-generic \ - distclean-libtool distclean-tags distdir dvi dvi-am info \ - info-am install install-am install-data install-data-am \ - install-exec install-exec-am install-info install-info-am \ - install-man install-strip installcheck installcheck-am \ - installdirs maintainer-clean maintainer-clean-generic \ - mostlyclean mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool pdf pdf-am ps ps-am tags uninstall \ - uninstall-am uninstall-info-am + distclean-libtool distclean-tags distdir dvi dvi-am html \ + html-am info info-am install install-am install-data \ + install-data-am install-exec install-exec-am install-info \ + install-info-am install-man install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-info-am local/linit.lch: local/linit.lua diff --git a/apt/m4/Makefile.in b/apt/m4/Makefile.in index 84813ac..abf1669 100644 --- a/apt/m4/Makefile.in +++ b/apt/m4/Makefile.in @@ -1,8 +1,8 @@ -# Makefile.in generated by automake 1.7.9 from Makefile.am. +# Makefile.in generated by automake 1.9.5 from Makefile.am. # @configure_input@ -# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 -# Free Software Foundation, Inc. +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -13,7 +13,6 @@ # PARTICULAR PURPOSE. @SET_MAKE@ - srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ @@ -21,7 +20,6 @@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = .. - am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 @@ -35,12 +33,35 @@ POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : +build_triplet = @build@ host_triplet = @host@ +subdir = m4 +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ChangeLog +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/buildlib/tools.m4 \ + $(top_srcdir)/m4/codeset.m4 $(top_srcdir)/m4/gettext.m4 \ + $(top_srcdir)/m4/glibc21.m4 $(top_srcdir)/m4/iconv.m4 \ + $(top_srcdir)/m4/intdiv0.m4 $(top_srcdir)/m4/inttypes-pri.m4 \ + $(top_srcdir)/m4/inttypes.m4 $(top_srcdir)/m4/inttypes_h.m4 \ + $(top_srcdir)/m4/lcmessage.m4 $(top_srcdir)/m4/lib-ld.m4 \ + $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ + $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/stdint_h.m4 \ + $(top_srcdir)/m4/uintmax_t.m4 $(top_srcdir)/m4/ulonglong.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(SHELL) $(top_srcdir)/buildlib/mkinstalldirs +CONFIG_HEADER = $(top_builddir)/include/config.h +CONFIG_CLEAN_FILES = +SOURCES = +DIST_SOURCES = +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ +AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ @@ -59,6 +80,7 @@ COMPILE_STATIC_TRUE = @COMPILE_STATIC_TRUE@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ +CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ @@ -72,6 +94,8 @@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ +F77 = @F77@ +FFLAGS = @FFLAGS@ GENCAT = @GENCAT@ GLIBC21 = @GLIBC21@ GLIBC_VER = @GLIBC_VER@ @@ -134,8 +158,10 @@ VERSION = @VERSION@ WITH_LUA_FALSE = @WITH_LUA_FALSE@ WITH_LUA_TRUE = @WITH_LUA_TRUE@ XGETTEXT = @XGETTEXT@ +ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ ac_ct_RANLIB = @ac_ct_RANLIB@ ac_ct_STRIP = @ac_ct_STRIP@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ @@ -145,6 +171,8 @@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ @@ -165,6 +193,7 @@ libdir = @libdir@ libexecdir = @libexecdir@ localstatedir = @localstatedir@ mandir = @mandir@ +mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ prefix = @prefix@ program_transform_name = @program_transform_name@ @@ -173,21 +202,38 @@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ EXTRA_DIST = codeset.m4 gettext.m4 glibc21.m4 iconv.m4 intdiv0.m4 inttypes.m4 inttypes_h.m4 inttypes-pri.m4 isc-posix.m4 lcmessage.m4 lib-ld.m4 lib-link.m4 lib-prefix.m4 progtest.m4 stdint_h.m4 uintmax_t.m4 ulonglong.m4 -subdir = m4 -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -mkinstalldirs = $(SHELL) $(top_srcdir)/buildlib/mkinstalldirs -CONFIG_HEADER = $(top_builddir)/include/config.h -CONFIG_CLEAN_FILES = -DIST_SOURCES = -DIST_COMMON = $(srcdir)/Makefile.in ChangeLog Makefile.am all: all-am .SUFFIXES: -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign m4/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign m4/Makefile -Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in $(top_builddir)/config.status - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe) +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh mostlyclean-libtool: -rm -f *.lo @@ -204,10 +250,6 @@ TAGS: ctags: CTAGS CTAGS: -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) - -top_distdir = .. -distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ @@ -221,7 +263,7 @@ distdir: $(DISTFILES) dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ - $(mkinstalldirs) "$(distdir)$$dir"; \ + $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ @@ -239,7 +281,6 @@ distdir: $(DISTFILES) check-am: all-am check: check-am all-am: Makefile - installdirs: install: install-am install-exec: install-exec-am @@ -260,7 +301,7 @@ mostlyclean-generic: clean-generic: distclean-generic: - -rm -f $(CONFIG_CLEAN_FILES) + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @@ -277,6 +318,8 @@ dvi: dvi-am dvi-am: +html: html-am + info: info-am info-am: @@ -311,10 +354,10 @@ uninstall-am: uninstall-info-am .PHONY: all all-am check check-am clean clean-generic clean-libtool \ distclean distclean-generic distclean-libtool distdir dvi \ - dvi-am info info-am install install-am install-data \ - install-data-am install-exec install-exec-am install-info \ - install-info-am install-man install-strip installcheck \ - installcheck-am installdirs maintainer-clean \ + dvi-am html html-am info info-am install install-am \ + install-data install-data-am install-exec install-exec-am \ + install-info install-info-am install-man install-strip \ + installcheck installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic \ mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \ uninstall-info-am diff --git a/apt/methods/Makefile.in b/apt/methods/Makefile.in index 9b6d8a7..291846f 100644 --- a/apt/methods/Makefile.in +++ b/apt/methods/Makefile.in @@ -1,8 +1,8 @@ -# Makefile.in generated by automake 1.7.9 from Makefile.am. +# Makefile.in generated by automake 1.9.5 from Makefile.am. # @configure_input@ -# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 -# Free Software Foundation, Inc. +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -14,6 +14,8 @@ @SET_MAKE@ +SOURCES = $(bzip2_SOURCES) $(cdrom_SOURCES) $(copy_SOURCES) $(file_SOURCES) $(ftp_SOURCES) $(gpg_SOURCES) $(gzip_SOURCES) $(http_SOURCES) $(rsh_SOURCES) $(ssh_SOURCES) + srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ @@ -21,7 +23,6 @@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = .. - am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 @@ -35,12 +36,108 @@ POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : +build_triplet = @build@ host_triplet = @host@ +methods_PROGRAMS = cdrom$(EXEEXT) copy$(EXEEXT) file$(EXEEXT) \ + ftp$(EXEEXT) gpg$(EXEEXT) gzip$(EXEEXT) bzip2$(EXEEXT) \ + http$(EXEEXT) rsh$(EXEEXT) ssh$(EXEEXT) +subdir = methods +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/buildlib/tools.m4 \ + $(top_srcdir)/m4/codeset.m4 $(top_srcdir)/m4/gettext.m4 \ + $(top_srcdir)/m4/glibc21.m4 $(top_srcdir)/m4/iconv.m4 \ + $(top_srcdir)/m4/intdiv0.m4 $(top_srcdir)/m4/inttypes-pri.m4 \ + $(top_srcdir)/m4/inttypes.m4 $(top_srcdir)/m4/inttypes_h.m4 \ + $(top_srcdir)/m4/lcmessage.m4 $(top_srcdir)/m4/lib-ld.m4 \ + $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ + $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/stdint_h.m4 \ + $(top_srcdir)/m4/uintmax_t.m4 $(top_srcdir)/m4/ulonglong.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(SHELL) $(top_srcdir)/buildlib/mkinstalldirs +CONFIG_HEADER = $(top_builddir)/include/config.h +CONFIG_CLEAN_FILES = +am__installdirs = "$(DESTDIR)$(methodsdir)" +methodsPROGRAMS_INSTALL = $(INSTALL_PROGRAM) +PROGRAMS = $(methods_PROGRAMS) +am__objects_1 = gzip.$(OBJEXT) +am_bzip2_OBJECTS = $(am__objects_1) +bzip2_OBJECTS = $(am_bzip2_OBJECTS) +bzip2_LDADD = $(LDADD) +bzip2_DEPENDENCIES = ../apt-pkg/libapt-pkg.la +am_cdrom_OBJECTS = cdrom.$(OBJEXT) +cdrom_OBJECTS = $(am_cdrom_OBJECTS) +cdrom_LDADD = $(LDADD) +cdrom_DEPENDENCIES = ../apt-pkg/libapt-pkg.la +am_copy_OBJECTS = copy.$(OBJEXT) +copy_OBJECTS = $(am_copy_OBJECTS) +copy_LDADD = $(LDADD) +copy_DEPENDENCIES = ../apt-pkg/libapt-pkg.la +am_file_OBJECTS = file.$(OBJEXT) +file_OBJECTS = $(am_file_OBJECTS) +file_LDADD = $(LDADD) +file_DEPENDENCIES = ../apt-pkg/libapt-pkg.la +am_ftp_OBJECTS = ftp.$(OBJEXT) rfc2553emu.$(OBJEXT) connect.$(OBJEXT) +ftp_OBJECTS = $(am_ftp_OBJECTS) +am__DEPENDENCIES_1 = ../apt-pkg/libapt-pkg.la +ftp_DEPENDENCIES = $(am__DEPENDENCIES_1) +am_gpg_OBJECTS = gpg.$(OBJEXT) +gpg_OBJECTS = $(am_gpg_OBJECTS) +gpg_LDADD = $(LDADD) +gpg_DEPENDENCIES = ../apt-pkg/libapt-pkg.la +am_gzip_OBJECTS = gzip.$(OBJEXT) +gzip_OBJECTS = $(am_gzip_OBJECTS) +gzip_LDADD = $(LDADD) +gzip_DEPENDENCIES = ../apt-pkg/libapt-pkg.la +am_http_OBJECTS = http.$(OBJEXT) rfc2553emu.$(OBJEXT) \ + connect.$(OBJEXT) +http_OBJECTS = $(am_http_OBJECTS) +http_DEPENDENCIES = $(am__DEPENDENCIES_1) +am_rsh_OBJECTS = rsh.$(OBJEXT) +rsh_OBJECTS = $(am_rsh_OBJECTS) +rsh_LDADD = $(LDADD) +rsh_DEPENDENCIES = ../apt-pkg/libapt-pkg.la +am__objects_2 = rsh.$(OBJEXT) +am_ssh_OBJECTS = $(am__objects_2) +ssh_OBJECTS = $(am_ssh_OBJECTS) +ssh_LDADD = $(LDADD) +ssh_DEPENDENCIES = ../apt-pkg/libapt-pkg.la +DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/include +depcomp = $(SHELL) $(top_srcdir)/buildlib/depcomp +am__depfiles_maybe = depfiles +CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) +LTCXXCOMPILE = $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CXXFLAGS) $(CXXFLAGS) +CXXLD = $(CXX) +CXXLINK = $(LIBTOOL) --tag=CXX --mode=link $(CXXLD) $(AM_CXXFLAGS) \ + $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ + $(AM_LDFLAGS) $(LDFLAGS) -o $@ +SOURCES = $(bzip2_SOURCES) $(cdrom_SOURCES) $(copy_SOURCES) \ + $(file_SOURCES) $(ftp_SOURCES) $(gpg_SOURCES) $(gzip_SOURCES) \ + $(http_SOURCES) $(rsh_SOURCES) $(ssh_SOURCES) +DIST_SOURCES = $(bzip2_SOURCES) $(cdrom_SOURCES) $(copy_SOURCES) \ + $(file_SOURCES) $(ftp_SOURCES) $(gpg_SOURCES) $(gzip_SOURCES) \ + $(http_SOURCES) $(rsh_SOURCES) $(ssh_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ +AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ @@ -59,6 +156,7 @@ COMPILE_STATIC_TRUE = @COMPILE_STATIC_TRUE@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ +CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ @@ -72,6 +170,8 @@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ +F77 = @F77@ +FFLAGS = @FFLAGS@ GENCAT = @GENCAT@ GLIBC21 = @GLIBC21@ GLIBC_VER = @GLIBC_VER@ @@ -134,8 +234,10 @@ VERSION = @VERSION@ WITH_LUA_FALSE = @WITH_LUA_FALSE@ WITH_LUA_TRUE = @WITH_LUA_TRUE@ XGETTEXT = @XGETTEXT@ +ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ ac_ct_RANLIB = @ac_ct_RANLIB@ ac_ct_STRIP = @ac_ct_STRIP@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ @@ -145,6 +247,8 @@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ @@ -165,6 +269,7 @@ libdir = @libdir@ libexecdir = @libexecdir@ localstatedir = @localstatedir@ mandir = @mandir@ +mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ prefix = @prefix@ program_transform_name = @program_transform_name@ @@ -172,12 +277,8 @@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ - methodsdir = ${libdir}/apt/methods -methods_PROGRAMS = cdrom copy file ftp gpg gzip bzip2 http rsh ssh - LDADD = ../apt-pkg/libapt-pkg.la - cdrom_SOURCES = cdrom.cc copy_SOURCES = copy.cc file_SOURCES = file.cc @@ -186,7 +287,6 @@ gzip_SOURCES = gzip.cc bzip2_SOURCES = $(gzip_SOURCES) rsh_SOURCES = rsh.cc rsh.h ssh_SOURCES = $(rsh_SOURCES) - http_SOURCES = \ http.cc \ http.h \ @@ -196,7 +296,6 @@ http_SOURCES = \ connect.h http_LDADD = $(LDADD) @SOCKETLIBS@ - ftp_SOURCES = \ ftp.cc \ ftp.h \ @@ -206,117 +305,50 @@ ftp_SOURCES = \ connect.h ftp_LDADD = $(LDADD) @SOCKETLIBS@ -subdir = methods -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -mkinstalldirs = $(SHELL) $(top_srcdir)/buildlib/mkinstalldirs -CONFIG_HEADER = $(top_builddir)/include/config.h -CONFIG_CLEAN_FILES = -methods_PROGRAMS = cdrom$(EXEEXT) copy$(EXEEXT) file$(EXEEXT) \ - ftp$(EXEEXT) gpg$(EXEEXT) gzip$(EXEEXT) bzip2$(EXEEXT) \ - http$(EXEEXT) rsh$(EXEEXT) ssh$(EXEEXT) -PROGRAMS = $(methods_PROGRAMS) - -am__objects_1 = gzip.$(OBJEXT) -am_bzip2_OBJECTS = $(am__objects_1) -bzip2_OBJECTS = $(am_bzip2_OBJECTS) -bzip2_LDADD = $(LDADD) -bzip2_DEPENDENCIES = ../apt-pkg/libapt-pkg.la -bzip2_LDFLAGS = -am_cdrom_OBJECTS = cdrom.$(OBJEXT) -cdrom_OBJECTS = $(am_cdrom_OBJECTS) -cdrom_LDADD = $(LDADD) -cdrom_DEPENDENCIES = ../apt-pkg/libapt-pkg.la -cdrom_LDFLAGS = -am_copy_OBJECTS = copy.$(OBJEXT) -copy_OBJECTS = $(am_copy_OBJECTS) -copy_LDADD = $(LDADD) -copy_DEPENDENCIES = ../apt-pkg/libapt-pkg.la -copy_LDFLAGS = -am_file_OBJECTS = file.$(OBJEXT) -file_OBJECTS = $(am_file_OBJECTS) -file_LDADD = $(LDADD) -file_DEPENDENCIES = ../apt-pkg/libapt-pkg.la -file_LDFLAGS = -am_ftp_OBJECTS = ftp.$(OBJEXT) rfc2553emu.$(OBJEXT) connect.$(OBJEXT) -ftp_OBJECTS = $(am_ftp_OBJECTS) -ftp_DEPENDENCIES = ../apt-pkg/libapt-pkg.la -ftp_LDFLAGS = -am_gpg_OBJECTS = gpg.$(OBJEXT) -gpg_OBJECTS = $(am_gpg_OBJECTS) -gpg_LDADD = $(LDADD) -gpg_DEPENDENCIES = ../apt-pkg/libapt-pkg.la -gpg_LDFLAGS = -am_gzip_OBJECTS = gzip.$(OBJEXT) -gzip_OBJECTS = $(am_gzip_OBJECTS) -gzip_LDADD = $(LDADD) -gzip_DEPENDENCIES = ../apt-pkg/libapt-pkg.la -gzip_LDFLAGS = -am_http_OBJECTS = http.$(OBJEXT) rfc2553emu.$(OBJEXT) connect.$(OBJEXT) -http_OBJECTS = $(am_http_OBJECTS) -http_DEPENDENCIES = ../apt-pkg/libapt-pkg.la -http_LDFLAGS = -am_rsh_OBJECTS = rsh.$(OBJEXT) -rsh_OBJECTS = $(am_rsh_OBJECTS) -rsh_LDADD = $(LDADD) -rsh_DEPENDENCIES = ../apt-pkg/libapt-pkg.la -rsh_LDFLAGS = -am__objects_2 = rsh.$(OBJEXT) -am_ssh_OBJECTS = $(am__objects_2) -ssh_OBJECTS = $(am_ssh_OBJECTS) -ssh_LDADD = $(LDADD) -ssh_DEPENDENCIES = ../apt-pkg/libapt-pkg.la -ssh_LDFLAGS = - -DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/include -depcomp = $(SHELL) $(top_srcdir)/buildlib/depcomp -am__depfiles_maybe = depfiles -@AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/cdrom.Po ./$(DEPDIR)/connect.Po \ -@AMDEP_TRUE@ ./$(DEPDIR)/copy.Po ./$(DEPDIR)/file.Po \ -@AMDEP_TRUE@ ./$(DEPDIR)/ftp.Po ./$(DEPDIR)/gpg.Po \ -@AMDEP_TRUE@ ./$(DEPDIR)/gzip.Po ./$(DEPDIR)/http.Po \ -@AMDEP_TRUE@ ./$(DEPDIR)/rfc2553emu.Po ./$(DEPDIR)/rsh.Po -CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ - $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -LTCXXCOMPILE = $(LIBTOOL) --mode=compile $(CXX) $(DEFS) \ - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ - $(AM_CXXFLAGS) $(CXXFLAGS) -CXXLD = $(CXX) -CXXLINK = $(LIBTOOL) --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) \ - $(AM_LDFLAGS) $(LDFLAGS) -o $@ -COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ - $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) \ - $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -CCLD = $(CC) -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ - $(AM_LDFLAGS) $(LDFLAGS) -o $@ -DIST_SOURCES = $(bzip2_SOURCES) $(cdrom_SOURCES) $(copy_SOURCES) \ - $(file_SOURCES) $(ftp_SOURCES) $(gpg_SOURCES) $(gzip_SOURCES) \ - $(http_SOURCES) $(rsh_SOURCES) $(ssh_SOURCES) -DIST_COMMON = $(srcdir)/Makefile.in Makefile.am -SOURCES = $(bzip2_SOURCES) $(cdrom_SOURCES) $(copy_SOURCES) $(file_SOURCES) $(ftp_SOURCES) $(gpg_SOURCES) $(gzip_SOURCES) $(http_SOURCES) $(rsh_SOURCES) $(ssh_SOURCES) - all: all-am .SUFFIXES: .SUFFIXES: .cc .lo .o .obj -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign methods/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign methods/Makefile -Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in $(top_builddir)/config.status - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe) -methodsPROGRAMS_INSTALL = $(INSTALL_PROGRAM) +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh install-methodsPROGRAMS: $(methods_PROGRAMS) @$(NORMAL_INSTALL) - $(mkinstalldirs) $(DESTDIR)$(methodsdir) + test -z "$(methodsdir)" || $(mkdir_p) "$(DESTDIR)$(methodsdir)" @list='$(methods_PROGRAMS)'; for p in $$list; do \ p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ if test -f $$p \ || test -f $$p1 \ ; then \ f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ - echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(methodsPROGRAMS_INSTALL) $$p $(DESTDIR)$(methodsdir)/$$f"; \ - $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(methodsPROGRAMS_INSTALL) $$p $(DESTDIR)$(methodsdir)/$$f || exit 1; \ + echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(methodsPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(methodsdir)/$$f'"; \ + $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(methodsPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(methodsdir)/$$f" || exit 1; \ else :; fi; \ done @@ -324,8 +356,8 @@ uninstall-methodsPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(methods_PROGRAMS)'; for p in $$list; do \ f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ - echo " rm -f $(DESTDIR)$(methodsdir)/$$f"; \ - rm -f $(DESTDIR)$(methodsdir)/$$f; \ + echo " rm -f '$(DESTDIR)$(methodsdir)/$$f'"; \ + rm -f "$(DESTDIR)$(methodsdir)/$$f"; \ done clean-methodsPROGRAMS: @@ -366,7 +398,7 @@ ssh$(EXEEXT): $(ssh_OBJECTS) $(ssh_DEPENDENCIES) $(CXXLINK) $(ssh_LDFLAGS) $(ssh_OBJECTS) $(ssh_LDADD) $(LIBS) mostlyclean-compile: - -rm -f *.$(OBJEXT) core *.core + -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @@ -383,37 +415,28 @@ distclean-compile: @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rsh.Po@am__quote@ .cc.o: -@am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \ -@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \ -@am__fastdepCXX_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi +@am__fastdepCXX_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`; \ +@am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$$depbase.Tpo" -c -o $@ $<; \ +@am__fastdepCXX_TRUE@ then mv -f "$$depbase.Tpo" "$$depbase.Po"; else rm -f "$$depbase.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$< +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< .cc.obj: -@am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o $@ `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi`; \ -@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \ -@am__fastdepCXX_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi +@am__fastdepCXX_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`; \ +@am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$$depbase.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ +@am__fastdepCXX_TRUE@ then mv -f "$$depbase.Tpo" "$$depbase.Po"; else rm -f "$$depbase.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi` +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cc.lo: -@am__fastdepCXX_TRUE@ if $(LTCXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \ -@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; \ -@am__fastdepCXX_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi +@am__fastdepCXX_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`; \ +@am__fastdepCXX_TRUE@ if $(LTCXXCOMPILE) -MT $@ -MD -MP -MF "$$depbase.Tpo" -c -o $@ $<; \ +@am__fastdepCXX_TRUE@ then mv -f "$$depbase.Tpo" "$$depbase.Plo"; else rm -f "$$depbase.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='$(DEPDIR)/$*.Plo' tmpdepfile='$(DEPDIR)/$*.TPlo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$< +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo @@ -425,14 +448,6 @@ distclean-libtool: -rm -f libtool uninstall-info-am: -ETAGS = etags -ETAGSFLAGS = - -CTAGS = ctags -CTAGSFLAGS = - -tags: TAGS - ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ @@ -441,6 +456,7 @@ ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique +tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) @@ -452,10 +468,11 @@ TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ - test -z "$(ETAGS_ARGS)$$tags$$unique" \ - || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$tags $$unique - + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) @@ -478,10 +495,6 @@ GTAGS: distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) - -top_distdir = .. -distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ @@ -495,7 +508,7 @@ distdir: $(DISTFILES) dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ - $(mkinstalldirs) "$(distdir)$$dir"; \ + $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ @@ -513,9 +526,10 @@ distdir: $(DISTFILES) check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) - installdirs: - $(mkinstalldirs) $(DESTDIR)$(methodsdir) + for dir in "$(DESTDIR)$(methodsdir)"; do \ + test -z "$$dir" || $(mkdir_p) "$$dir"; \ + done install: install-am install-exec: install-exec-am install-data: install-data-am @@ -535,7 +549,7 @@ mostlyclean-generic: clean-generic: distclean-generic: - -rm -f $(CONFIG_CLEAN_FILES) + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @@ -555,6 +569,8 @@ dvi: dvi-am dvi-am: +html: html-am + info: info-am info-am: @@ -592,8 +608,8 @@ uninstall-am: uninstall-info-am uninstall-methodsPROGRAMS .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ clean-libtool clean-methodsPROGRAMS ctags distclean \ distclean-compile distclean-generic distclean-libtool \ - distclean-tags distdir dvi dvi-am info info-am install \ - install-am install-data install-data-am install-exec \ + distclean-tags distdir dvi dvi-am html html-am info info-am \ + install install-am install-data install-data-am install-exec \ install-exec-am install-info install-info-am install-man \ install-methodsPROGRAMS install-strip installcheck \ installcheck-am installdirs maintainer-clean \ diff --git a/apt/methods/cdrom.cc b/apt/methods/cdrom.cc index c77d36d..682f945 100644 --- a/apt/methods/cdrom.cc +++ b/apt/methods/cdrom.cc @@ -39,6 +39,7 @@ class CDROMMethod : public pkgAcqMethod virtual bool Fetch(FetchItem *Itm); string GetID(string Name); virtual void Exit(); + virtual string PreferredURI(); // CNC:2002-10-18 bool Copy(string Src, string Dest); @@ -53,12 +54,44 @@ class CDROMMethod : public pkgAcqMethod /* */ CDROMMethod::CDROMMethod() : pkgAcqMethod("1.0",SingleInstance | LocalOnly | SendConfig | NeedsCleanup | - Removable), + Removable | HasPreferredURI), DatabaseLoaded(false), Mounted(false) { }; /*}}}*/ +// CNC:2004-04-27 +// CDROMMethod::PreferredURI() - /*{{{*/ +// --------------------------------------------------------------------- +/* */ +string CDROMMethod::PreferredURI() +{ + CDROM = _config->FindDir("Acquire::cdrom::mount","/cdrom/"); + if (CDROM[0] == '.') + CDROM= SafeGetCWD() + '/' + CDROM; + string ID; + MountCdrom(CDROM); + if (IdentCdrom(CDROM,ID,2) == true) { + if (DatabaseLoaded == false) + { + string DFile = _config->FindFile("Dir::State::cdroms"); + if (FileExists(DFile) == true) + { + if (ReadConfigFile(Database,DFile) == false) { + _error->Error(_("Unable to read the cdrom database %s"), + DFile.c_str()); + return ""; + } + } + DatabaseLoaded = true; + } + string Name = Database.Find("CD::"+ID); + if (Name.empty() == false) + return "cdrom:[" + Name + "]"; + } + return ""; +} + /*}}}*/ // CDROMMethod::Exit - Unmount the disc if necessary /*{{{*/ // --------------------------------------------------------------------- /* */ diff --git a/apt/methods/gpg.cc b/apt/methods/gpg.cc index d6d0b30..932397f 100644 --- a/apt/methods/gpg.cc +++ b/apt/methods/gpg.cc @@ -246,7 +246,7 @@ char *getFileSigner(const char *file, const char *sigfile, if (!fgets(buffer, 1024, f)) break; - + if (goodsig && keyid[0]) continue; @@ -282,17 +282,17 @@ char *getFileSigner(const char *file, const char *sigfile, } else if (WEXITSTATUS(status) == 111) { - return "could not execute gpg to verify signature"; + return "Could not execute gpg to verify signature"; } else { if (badsig) - return "file has bad signature, it might have been corrupted or tampered."; + return "File has bad signature, it might have been corrupted or tampered."; if (!keyid[0] || !goodsig) - return "file was not signed with a known key. Check if the proper gpg key was imported to your keyring."; + return "File was not signed with a known key. Check if the proper gpg key was imported to your keyring."; - return "file could not be authenticated"; + return "File could not be authenticated"; } } diff --git a/apt/methods/http.cc b/apt/methods/http.cc index 8e8e41d..e9a020e 100644 --- a/apt/methods/http.cc +++ b/apt/methods/http.cc @@ -39,6 +39,7 @@ #include <errno.h> #include <string.h> #include <iostream> +#include <map> // Internet stuff #include <netdb.h> @@ -59,6 +60,7 @@ int HttpMethod::FailFd = -1; time_t HttpMethod::FailTime = 0; unsigned long PipelineDepth = 10; unsigned long TimeOut = 120; +bool ChokePipe = true; bool Debug = false; // CircleBuf::CircleBuf - Circular input buffer /*{{{*/ @@ -594,6 +596,31 @@ bool ServerState::HeaderLine(string Line) return true; } + if (stringcasecmp(Tag,"Location:") == 0) + { + Location = Val; + return true; + } + + if (stringcasecmp(Tag,"WWW-Authenticate:") == 0 || + stringcasecmp(Tag,"Proxy-Authenticate:") == 0) + { + string::size_type SplitPoint = Val.find(' '); + string AuthType = Val.substr(0, SplitPoint); + string RealmStr = Val.substr(SplitPoint + 1, + Val.length() - SplitPoint - 1); + SplitPoint = RealmStr.find('='); + string FoundRealm = RealmStr.substr(SplitPoint, + RealmStr.length() - SplitPoint); + + if (stringcasecmp(Tag,"WWW-Authenticate:") == 0) + Realm = FoundRealm; + else + ProxyRealm = FoundRealm; + + return true; + } + return true; } /*}}}*/ @@ -860,7 +887,8 @@ bool HttpMethod::ServerDie(ServerState *Srv) 1 - IMS hit 3 - Unrecoverable error 4 - Error with error content page - 5 - Unrecoverable non-server error (close the connection) */ + 5 - Unrecoverable non-server error (close the connection) + 6 - Try again with a new or changed URI */ int HttpMethod::DealWithHeaders(FetchResult &Res,ServerState *Srv) { // Not Modified @@ -871,7 +899,96 @@ int HttpMethod::DealWithHeaders(FetchResult &Res,ServerState *Srv) Res.LastModified = Queue->LastModified; return 1; } - + + /* Redirect + * + * Note that it is only OK for us to treat all redirection the same + * because we *always* use GET, not other HTTP methods. There are + * three redirection codes for which it is not appropriate that we + * redirect. Pass on those codes so the error handling kicks in. + */ + if ((Srv->Result > 300 && Srv->Result < 400) + && (Srv->Result != 300 // Multiple Choices + && Srv->Result != 304 // Not Modified + && Srv->Result != 306)) // (Not part of HTTP/1.1, reserved) + { + if (!Srv->Location.empty()) + { + NextURI = Srv->Location; + return 6; + } + else + return 3; + } + + // Authentication + if (Srv->Result == 401) + { + string Description; + string AuthUser, AuthPass; + vector<AuthRec>::iterator CurrentAuth; + URI ParsedURI(Queue->Uri); + + // Have we had to log in to this site before? + if (ParsedURI.User.empty()) + { + for (CurrentAuth = AuthList.begin(); CurrentAuth != AuthList.end(); + CurrentAuth++) + if (CurrentAuth->Host == Srv->ServerName.Host && + CurrentAuth->Realm == Srv->Realm) + { + AuthUser = CurrentAuth->User; + AuthPass = CurrentAuth->Password; + break; + } + } + else + CurrentAuth = AuthList.end(); + + // Nope - get username and password + if (CurrentAuth == AuthList.end()) + { + Description = ParsedURI.Host + ":" + Srv->Realm; + +#ifdef WITH_SSL + if (ParsedURI.Access == "https") + Description += string(" (secure)"); +#endif + + if (NeedAuth(Description, AuthUser, AuthPass) == true) + { + // Got new credentials; save them + AuthRec NewAuthInfo; + + NewAuthInfo.Host = Srv->ServerName.Host; + NewAuthInfo.Realm = Srv->Realm; + NewAuthInfo.User = AuthUser; + NewAuthInfo.Password = AuthPass; + + for (CurrentAuth = AuthList.begin(); CurrentAuth != AuthList.end(); + CurrentAuth++) + if (CurrentAuth->Host == Srv->ServerName.Host && + CurrentAuth->Realm == Srv->Realm) + { + *CurrentAuth = NewAuthInfo; + break; + } + + if (CurrentAuth == AuthList.end()) + AuthList.push_back(NewAuthInfo); + } + else + // Interactive auth failed + return 4; + } + + // Try the same URI again, with credentials this time + ParsedURI.User = AuthUser; + ParsedURI.Password = AuthPass; + NextURI = ParsedURI; + return 6; + } + /* We have a reply we dont handle. This should indicate a perm server failure */ if (Srv->Result < 200 || Srv->Result >= 300) @@ -963,10 +1080,21 @@ bool HttpMethod::Fetch(FetchItem *) // If pipelining is disabled, we only queue 1 request if (Server->Pipeline == false && Depth >= 0) break; + + // If we're choking the pipeline, we only queue 1 request + if (ChokePipe == true && Depth >= 0) + { + ChokePipe = false; + break; + } // Make sure we stick with the same server if (Server->Comp(I->Uri) == false) + { + ChokePipe = true; break; + } + if (QueueBack == I) Tail = true; if (Tail == true) @@ -1001,12 +1129,17 @@ bool HttpMethod::Configuration(string Message) /* */ int HttpMethod::Loop() { + typedef vector<string> StringVector; + typedef vector<string>::iterator StringVectorIterator; + map<string, StringVector> Redirected; + signal(SIGTERM,SigTerm); signal(SIGINT,SigTerm); Server = 0; int FailCounter = 0; + while (1) { // We have no commands, wait for some to arrive @@ -1171,6 +1304,46 @@ int HttpMethod::Loop() File = 0; break; } + + // Try again with a new URL + case 6: + { + // Clear rest of response if there is content + if (Server->HaveContent) + { + File = new FileFd("/dev/null",FileFd::WriteExists); + Server->RunData(); + delete File; + File = 0; + } + + /* Detect redirect loops. No more redirects are allowed + after the same URI is seen twice in a queue item. */ + StringVector &R = Redirected[Queue->DestFile]; + bool StopRedirects = false; + if (R.size() == 0) + R.push_back(Queue->Uri); + else if (R[0] == "STOP") + StopRedirects = true; + else + { + for (StringVectorIterator I = R.begin(); I != R.end(); I++) + if (Queue->Uri == *I) + { + R[0] = "STOP"; + break; + } + + R.push_back(Queue->Uri); + } + + if (StopRedirects == false) + Redirect(NextURI); + else + Fail(); + + break; + } default: Fail(_("Internal error")); diff --git a/apt/methods/http.h b/apt/methods/http.h index cd028db..8ee29b7 100644 --- a/apt/methods/http.h +++ b/apt/methods/http.h @@ -94,6 +94,8 @@ struct ServerState enum {Chunked,Stream,Closes} Encoding; enum {Header, Data} State; bool Persistent; + string Location; + string Realm, ProxyRealm; // This is a Persistent attribute of the server itself. bool Pipeline; @@ -123,6 +125,14 @@ struct ServerState class HttpMethod : public pkgAcqMethod { + struct AuthRec + { + string Host; + string Realm; + string User; + string Password; + }; + void SendReq(FetchItem *Itm,CircleBuf &Out); bool Go(bool ToFile,ServerState *Srv); bool Flush(ServerState *Srv); @@ -137,6 +147,9 @@ class HttpMethod : public pkgAcqMethod static int FailFd; static time_t FailTime; static void SigTerm(int); + + string NextURI; + vector<AuthRec> AuthList; public: friend class ServerState; diff --git a/apt/po/POTFILES.in b/apt/po/POTFILES.in index 0fea458..b8ee444 100644 --- a/apt/po/POTFILES.in +++ b/apt/po/POTFILES.in @@ -29,6 +29,7 @@ apt-pkg/rpm/rpmrecords.cc apt-pkg/rpm/rpmsrcrecords.cc apt-pkg/rpm/rpmsystem.cc apt-pkg/rpm/rpmversion.cc +apt-pkg/rpm/rpmshowprogress.h apt-pkg/acquire.cc apt-pkg/acquire-item.cc diff --git a/apt/po/de_DE.po b/apt/po/de_DE.po index c7195ae..a36bfe5 100644 --- a/apt/po/de_DE.po +++ b/apt/po/de_DE.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: apt\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2004-03-16 16:30-0300\n" +"POT-Creation-Date: 2004-05-20 16:12-0300\n" "PO-Revision-Date: 2002-08-20 14:00+0200\n" "Last-Translator: Ralf Corsepius <corsepiu@faw.uni-ulm.de>\n" "Language-Team: German <de@li.org>\n" @@ -49,17 +49,17 @@ msgstr "" "Medienwechsel: Bitte die Diskette beschriftet mit '%s' in Laufwerk '%s' " "einlegen und mit Eingabe betц╓tigen\n" -#: cmdline/apt-cache.cc:157 cmdline/apt-shell.cc:3188 +#: cmdline/apt-cache.cc:157 cmdline/apt-shell.cc:3209 #, c-format msgid "Package %s version %s has an unmet dep:\n" msgstr "Paket %s Version %s besitzt eine unerfц╪llte Abhц╓ngigkeit:\n" #: cmdline/apt-cache.cc:197 cmdline/apt-cache.cc:565 cmdline/apt-cache.cc:660 #: cmdline/apt-cache.cc:750 cmdline/apt-cache.cc:1024 -#: cmdline/apt-cache.cc:1242 cmdline/apt-cache.cc:1621 -#: cmdline/apt-cache.cc:1772 cmdline/apt-shell.cc:2740 -#: cmdline/apt-shell.cc:2838 cmdline/apt-shell.cc:2931 -#: cmdline/apt-shell.cc:3231 cmdline/apt-shell.cc:3647 +#: cmdline/apt-cache.cc:1242 cmdline/apt-cache.cc:1624 +#: cmdline/apt-cache.cc:1775 cmdline/apt-shell.cc:2761 +#: cmdline/apt-shell.cc:2859 cmdline/apt-shell.cc:2952 +#: cmdline/apt-shell.cc:3252 cmdline/apt-shell.cc:3671 #, c-format msgid "Unable to locate package %s" msgstr "Ausserstande Paket %s zu lokalisieren" @@ -121,74 +121,74 @@ msgid "Total Space Accounted for: " msgstr "Gesamt-Platz angerechnet fц╪r: " #: cmdline/apt-cache.cc:484 cmdline/apt-cache.cc:1452 -#: cmdline/apt-shell.cc:3309 +#: cmdline/apt-shell.cc:3330 #, c-format msgid "Package file %s is out of sync." msgstr "Paketdatei %s passt nicht zusammen." -#: cmdline/apt-cache.cc:1495 cmdline/apt-shell.cc:3355 +#: cmdline/apt-cache.cc:1495 cmdline/apt-shell.cc:3376 msgid "You must give exactly one pattern" msgstr "Sie mц╪ssen genau ein Muster angeben" -#: cmdline/apt-cache.cc:1649 cmdline/apt-shell.cc:3675 +#: cmdline/apt-cache.cc:1652 cmdline/apt-shell.cc:3699 #, fuzzy msgid "No packages found" msgstr "Fehlerhafte Pakete" -#: cmdline/apt-cache.cc:1726 +#: cmdline/apt-cache.cc:1729 msgid "Package Files:" msgstr "Paket Dateien:" -#: cmdline/apt-cache.cc:1733 cmdline/apt-cache.cc:1819 +#: cmdline/apt-cache.cc:1736 cmdline/apt-cache.cc:1822 msgid "Cache is out of sync, can't x-ref a package file" msgstr "" "Der Cache ist nicht synchronsiert, kann X-Referenz fц╪r Paket nicht ermitteln" -#: cmdline/apt-cache.cc:1734 +#: cmdline/apt-cache.cc:1737 #, c-format msgid "%4i %s\n" msgstr "%4i %s\n" -#: cmdline/apt-cache.cc:1746 +#: cmdline/apt-cache.cc:1749 msgid "Pinned Packages:" msgstr "Ange-pinnte Pakete: " -#: cmdline/apt-cache.cc:1758 cmdline/apt-cache.cc:1799 +#: cmdline/apt-cache.cc:1761 cmdline/apt-cache.cc:1802 msgid "(not found)" msgstr "(nicht gefunden)" -#: cmdline/apt-cache.cc:1779 +#: cmdline/apt-cache.cc:1782 msgid " Installed: " msgstr " Installiert: " -#: cmdline/apt-cache.cc:1781 cmdline/apt-cache.cc:1789 +#: cmdline/apt-cache.cc:1784 cmdline/apt-cache.cc:1792 msgid "(none)" msgstr "(nichts)" -#: cmdline/apt-cache.cc:1786 +#: cmdline/apt-cache.cc:1789 msgid " Candidate: " msgstr " Kandidat: " -#: cmdline/apt-cache.cc:1796 +#: cmdline/apt-cache.cc:1799 msgid " Package Pin: " msgstr " Paket Pin: " -#: cmdline/apt-cache.cc:1805 +#: cmdline/apt-cache.cc:1808 msgid " Version Table:" msgstr " Versionstabelle: " -#: cmdline/apt-cache.cc:1820 +#: cmdline/apt-cache.cc:1823 #, c-format msgid " %4i %s\n" msgstr " %4i %s\n" -#: cmdline/apt-cache.cc:1847 cmdline/apt-cdrom.cc:847 cmdline/apt-config.cc:72 -#: cmdline/apt-get.cc:2959 cmdline/apt-shell.cc:3694 +#: cmdline/apt-cache.cc:1850 cmdline/apt-cdrom.cc:847 cmdline/apt-config.cc:72 +#: cmdline/apt-get.cc:2985 cmdline/apt-shell.cc:3718 #, c-format msgid "%s %s for %s %s compiled on %s %s\n" msgstr "%s %s fц╪r %s %s compiliert auf %s %s\n" -#: cmdline/apt-cache.cc:1854 +#: cmdline/apt-cache.cc:1857 msgid "" "Usage: apt-cache [options] command\n" " apt-cache [options] add file1 [file2 ...]\n" @@ -217,7 +217,7 @@ msgid "" " policy - Show policy settings\n" msgstr "" -#: cmdline/apt-cache.cc:1884 +#: cmdline/apt-cache.cc:1889 msgid "" "\n" "Options:\n" @@ -236,7 +236,7 @@ msgstr "" msgid "Failed to rename %s.new to %s" msgstr "Gescheitert zu holen %s %s\n" -#: cmdline/apt-cdrom.cc:425 apt-pkg/sourcelist.cc:297 +#: cmdline/apt-cdrom.cc:425 apt-pkg/sourcelist.cc:300 #, c-format msgid "Opening %s" msgstr "ц√ffne %s" @@ -250,7 +250,8 @@ msgstr "Problem beim ц√ffnen von %s" msgid "Using CD-ROM mount point " msgstr "" -#: cmdline/apt-cdrom.cc:579 cmdline/apt-cdrom.cc:834 methods/cdrom.cc:160 +#: cmdline/apt-cdrom.cc:579 cmdline/apt-cdrom.cc:834 methods/cdrom.cc:81 +#: methods/cdrom.cc:193 #, c-format msgid "Unable to read the cdrom database %s" msgstr "Ausserstande %s die CD-ROM Datenbank zu lesen" @@ -402,8 +403,8 @@ msgstr "" msgid "Y" msgstr "J" -#: cmdline/apt-get.cc:180 cmdline/apt-get.cc:1982 cmdline/apt-shell.cc:202 -#: cmdline/apt-shell.cc:2057 +#: cmdline/apt-get.cc:180 cmdline/apt-get.cc:2006 cmdline/apt-shell.cc:202 +#: cmdline/apt-shell.cc:2078 #, c-format msgid "Regex compilation error - %s" msgstr "Regex Compilierungsfehler - %s" @@ -549,14 +550,14 @@ msgstr "Unerfц╪llte Abhц╓ngigkeiten. Versuche -f zu benutzen." msgid "Packages need to be removed but Remove is disabled." msgstr "Pakete mц╪ssen entfernt werden, aber Remove ist ausgeschaltet." -#: cmdline/apt-get.cc:915 cmdline/apt-get.cc:2329 cmdline/apt-get.cc:2362 -#: cmdline/apt-shell.cc:1020 cmdline/apt-shell.cc:2319 -#: cmdline/apt-shell.cc:2355 +#: cmdline/apt-get.cc:915 cmdline/apt-get.cc:2353 cmdline/apt-get.cc:2386 +#: cmdline/apt-shell.cc:1020 cmdline/apt-shell.cc:2340 +#: cmdline/apt-shell.cc:2376 msgid "Unable to lock the download directory" msgstr "Ausserstande das Download-Verzeichnis zu locken." -#: cmdline/apt-get.cc:925 cmdline/apt-get.cc:2410 cmdline/apt-get.cc:2652 -#: cmdline/apt-shell.cc:1030 cmdline/apt-shell.cc:2414 apt-pkg/cachefile.cc:71 +#: cmdline/apt-get.cc:925 cmdline/apt-get.cc:2434 cmdline/apt-get.cc:2678 +#: cmdline/apt-shell.cc:1030 cmdline/apt-shell.cc:2435 apt-pkg/cachefile.cc:71 msgid "The list of sources could not be read." msgstr "Die Liste der Quellen konnte nicht gelesen werden." @@ -619,8 +620,8 @@ msgstr "Abgebrochen." msgid "Do you want to continue? [Y/n] " msgstr "Wollen Sie fortsetzen? [J/n] " -#: cmdline/apt-get.cc:1092 cmdline/apt-get.cc:1197 cmdline/apt-get.cc:1712 -#: cmdline/apt-get.cc:2521 cmdline/apt-shell.cc:1196 cmdline/apt-shell.cc:1777 +#: cmdline/apt-get.cc:1092 cmdline/apt-get.cc:1197 cmdline/apt-get.cc:1724 +#: cmdline/apt-get.cc:2545 cmdline/apt-shell.cc:1196 cmdline/apt-shell.cc:1789 #, c-format msgid "Failed to fetch %s %s\n" msgstr "Gescheitert zu holen %s %s\n" @@ -629,7 +630,7 @@ msgstr "Gescheitert zu holen %s %s\n" msgid "Some files failed to download" msgstr "Einige Dateien konnten nicht heruntergeladen werden" -#: cmdline/apt-get.cc:1111 cmdline/apt-get.cc:2530 cmdline/apt-shell.cc:1215 +#: cmdline/apt-get.cc:1111 cmdline/apt-get.cc:2554 cmdline/apt-shell.cc:1215 msgid "Download complete and in download only mode" msgstr "Download vollstц╓ndig und in 'download-only' Modus" @@ -653,13 +654,13 @@ msgstr "Ausserstande fehlende Pakete zu korrigieren." msgid "Aborting Install." msgstr "Installation wird abgebrochen." -#: cmdline/apt-get.cc:1202 cmdline/apt-get.cc:2526 +#: cmdline/apt-get.cc:1202 cmdline/apt-get.cc:2550 msgid "Failed to fetch some archives." msgstr "Gescheitert einige Archive zu holen." -#: cmdline/apt-get.cc:1296 cmdline/apt-get.cc:1895 cmdline/apt-get.cc:1958 -#: cmdline/apt-get.cc:1993 cmdline/apt-shell.cc:1365 cmdline/apt-shell.cc:2033 -#: cmdline/apt-shell.cc:2068 +#: cmdline/apt-get.cc:1296 cmdline/apt-get.cc:1919 cmdline/apt-get.cc:1982 +#: cmdline/apt-get.cc:2017 cmdline/apt-shell.cc:1365 cmdline/apt-shell.cc:2054 +#: cmdline/apt-shell.cc:2089 #, fuzzy, c-format msgid "Selecting %s for '%s'\n" msgstr "Beachte, wц╓hle %s fц╪r Regex '%s'\n" @@ -751,25 +752,25 @@ msgstr "Wц╓hlte Version %s (%s) fц╪r %s\n" msgid "Selected version %s for %s\n" msgstr "Wц╓hlte Version %s (%s) fц╪r %s\n" -#: cmdline/apt-get.cc:1613 +#: cmdline/apt-get.cc:1625 msgid "The update command takes no arguments" msgstr "Der update Befehl braucht keine Argumente" -#: cmdline/apt-get.cc:1636 cmdline/apt-shell.cc:1704 +#: cmdline/apt-get.cc:1648 cmdline/apt-shell.cc:1716 #, fuzzy, c-format msgid "Sources list %s could not be read" msgstr "Die Liste der Quellen konnte nicht gelesen werden." -#: cmdline/apt-get.cc:1639 cmdline/apt-shell.cc:1707 +#: cmdline/apt-get.cc:1651 cmdline/apt-shell.cc:1719 #, c-format msgid "Sources list %s doesn't exist" msgstr "" -#: cmdline/apt-get.cc:1652 cmdline/apt-shell.cc:1719 +#: cmdline/apt-get.cc:1664 cmdline/apt-shell.cc:1731 msgid "Unable to lock the list directory" msgstr "Ausserstande das Listen-Verzeichnis zu locken" -#: cmdline/apt-get.cc:1684 cmdline/apt-shell.cc:1749 +#: cmdline/apt-get.cc:1696 cmdline/apt-shell.cc:1761 msgid "" "Release files for some repositories could not be retrieved or authenticated. " "Such repositories are being ignored." @@ -777,7 +778,7 @@ msgstr "" "Release-Dateien einiger Repositories konnten nicht geholt " "oderauthentifiziert werden.Derartige Repositories werden ignoriert." -#: cmdline/apt-get.cc:1743 cmdline/apt-shell.cc:1802 +#: cmdline/apt-get.cc:1764 cmdline/apt-shell.cc:1823 msgid "" "Some index files failed to download, they have been ignored, or old ones " "used instead." @@ -785,27 +786,27 @@ msgstr "" "Einige Index-Dateien konnten nicht heruntergeladen werden, sie wurden " "ignoriert oder alte weiterhin benutzt." -#: cmdline/apt-get.cc:1762 cmdline/apt-shell.cc:1831 +#: cmdline/apt-get.cc:1783 cmdline/apt-shell.cc:1852 msgid "Internal Error, AllUpgrade broke stuff" msgstr "Interner Fehler, AllUpgrade hat etwas zerstц╤rt" -#: cmdline/apt-get.cc:1856 cmdline/apt-get.cc:1873 cmdline/apt-shell.cc:1933 -#: cmdline/apt-shell.cc:1950 +#: cmdline/apt-get.cc:1880 cmdline/apt-get.cc:1897 cmdline/apt-shell.cc:1954 +#: cmdline/apt-shell.cc:1971 #, fuzzy, c-format msgid "Couldn't parse name '%s'" msgstr "Konnte Paket %s nicht finden" -#: cmdline/apt-get.cc:1968 cmdline/apt-get.cc:2007 cmdline/apt-shell.cc:2043 -#: cmdline/apt-shell.cc:2083 +#: cmdline/apt-get.cc:1992 cmdline/apt-get.cc:2031 cmdline/apt-shell.cc:2064 +#: cmdline/apt-shell.cc:2104 #, c-format msgid "Couldn't find package %s" msgstr "Konnte Paket %s nicht finden" -#: cmdline/apt-get.cc:2037 +#: cmdline/apt-get.cc:2061 msgid "You might want to run `apt-get -f install' to correct these:" msgstr "Sie mц╤chten `apt-get -f install' ausfц╪hren um diese zu beheben:" -#: cmdline/apt-get.cc:2040 +#: cmdline/apt-get.cc:2064 msgid "" "Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a " "solution)." @@ -813,7 +814,7 @@ msgstr "" "Unerfц╪llte Abhц╓ngigkeiten. Versuchen Sie 'apt-get -f install' ohne Pakete" "(oder geben Sie eine Lц╤sung an)" -#: cmdline/apt-get.cc:2062 cmdline/apt-shell.cc:2146 +#: cmdline/apt-get.cc:2086 cmdline/apt-shell.cc:2167 msgid "" "Some packages could not be installed. This may mean that you have\n" "requested an impossible situation or if you are using the unstable\n" @@ -825,7 +826,7 @@ msgstr "" "instabile Distribution verwenden, dass einige benц╤tigte Pakete noch nicht\n" "erzeugt oder aus 'Incoming' verschoben worden sind." -#: cmdline/apt-get.cc:2070 cmdline/apt-shell.cc:2154 +#: cmdline/apt-get.cc:2094 cmdline/apt-shell.cc:2175 msgid "" "Since you only requested a single operation it is extremely likely that\n" "the package is simply not installable and a bug report against\n" @@ -835,108 +836,108 @@ msgstr "" "wahrscheinlich, dass das Paket schlichtweg nicht installierbar ist und\n" "ein Bugreport ц╪ber dieses Paket eingereicht werden sollte." -#: cmdline/apt-get.cc:2075 cmdline/apt-shell.cc:2159 +#: cmdline/apt-get.cc:2099 cmdline/apt-shell.cc:2180 msgid "The following information may help to resolve the situation:" msgstr "Die folgende Information kц╤nnte helfen die Sitation zu beheben:" -#: cmdline/apt-get.cc:2078 cmdline/apt-shell.cc:2163 +#: cmdline/apt-get.cc:2102 cmdline/apt-shell.cc:2184 msgid "Broken packages" msgstr "Fehlerhafte Pakete" -#: cmdline/apt-get.cc:2104 +#: cmdline/apt-get.cc:2128 msgid "The following extra packages will be installed:" msgstr "Die folgenden zusц╓tzlichen Pakete werden installiert werden:" -#: cmdline/apt-get.cc:2184 +#: cmdline/apt-get.cc:2208 #, fuzzy msgid "Suggested packages:" msgstr "Ange-pinnte Pakete: " -#: cmdline/apt-get.cc:2185 +#: cmdline/apt-get.cc:2209 #, fuzzy msgid "Recommended packages:" msgstr "Fehlerhafte Pakete" -#: cmdline/apt-get.cc:2209 cmdline/apt-shell.cc:2190 +#: cmdline/apt-get.cc:2233 cmdline/apt-shell.cc:2211 msgid "Calculating Upgrade... " msgstr "Berechne Upgrade... " -#: cmdline/apt-get.cc:2212 cmdline/apt-shell.cc:2193 methods/connect.cc:102 +#: cmdline/apt-get.cc:2236 cmdline/apt-shell.cc:2214 methods/connect.cc:102 #: methods/ftp.cc:706 msgid "Failed" msgstr "Gescheitert" -#: cmdline/apt-get.cc:2228 cmdline/apt-shell.cc:2205 +#: cmdline/apt-get.cc:2252 cmdline/apt-shell.cc:2226 msgid "Done" msgstr "Fertig" -#: cmdline/apt-get.cc:2405 +#: cmdline/apt-get.cc:2429 msgid "Must specify at least one package to fetch source for" msgstr "" "Es muss mindestens ein Paket angegeben werden, fц╪r das die Quellen geholt " "werden sollen" -#: cmdline/apt-get.cc:2432 cmdline/apt-get.cc:2670 cmdline/apt-shell.cc:2432 +#: cmdline/apt-get.cc:2456 cmdline/apt-get.cc:2696 cmdline/apt-shell.cc:2453 #, c-format msgid "Unable to find a source package for %s" msgstr "Ausserstande, ein Quellpaket fц╪r %s zu finden" -#: cmdline/apt-get.cc:2481 +#: cmdline/apt-get.cc:2505 #, fuzzy, c-format msgid "You don't have enough free space in %s" msgstr "Entschuldigung, sie haben nicht genug freien Platz in %s" -#: cmdline/apt-get.cc:2486 +#: cmdline/apt-get.cc:2510 #, c-format msgid "Need to get %sB/%sB of source archives.\n" msgstr "Muss %sB/%sB an Quell-Archiven holen.\n" -#: cmdline/apt-get.cc:2489 +#: cmdline/apt-get.cc:2513 #, c-format msgid "Need to get %sB of source archives.\n" msgstr "Muss %sB an Quell-Archiven holen.\n" -#: cmdline/apt-get.cc:2495 +#: cmdline/apt-get.cc:2519 #, c-format msgid "Fetch Source %s\n" msgstr "Hole Quelle %s\n" -#: cmdline/apt-get.cc:2560 cmdline/apt-get.cc:2611 +#: cmdline/apt-get.cc:2584 cmdline/apt-get.cc:2635 #, c-format msgid "Build command '%s' failed.\n" msgstr "Build-Befehl '%s' gescheitert.\n" -#: cmdline/apt-get.cc:2572 cmdline/apt-get.cc:2594 +#: cmdline/apt-get.cc:2596 cmdline/apt-get.cc:2618 #, c-format msgid "Unpack command '%s' failed.\n" msgstr "Auspack-Befehl '%s' gescheitert.\n" -#: cmdline/apt-get.cc:2582 +#: cmdline/apt-get.cc:2606 #, c-format msgid "Skipping unpack of already unpacked source in %s\n" msgstr "ц°berspringe Auspacken von bereits ausgepackten Quellen in %s\n" -#: cmdline/apt-get.cc:2631 +#: cmdline/apt-get.cc:2655 msgid "Child process failed" msgstr "Kind-Prozess gescheitert" -#: cmdline/apt-get.cc:2647 cmdline/apt-shell.cc:2409 +#: cmdline/apt-get.cc:2673 cmdline/apt-shell.cc:2430 msgid "Must specify at least one package to check builddeps for" msgstr "" "Es muss mindestens ein Paket angegeben werden, um die Build-Abhц╓ngigkeiten " "zu ermitteln" -#: cmdline/apt-get.cc:2675 cmdline/apt-shell.cc:2437 +#: cmdline/apt-get.cc:2701 cmdline/apt-shell.cc:2458 #, c-format msgid "Unable to get build-dependency information for %s" msgstr "Ausserstande, Build-Abhц╓ngigkeitsinformationen fц╪r %s zu bekommen" -#: cmdline/apt-get.cc:2695 cmdline/apt-shell.cc:2457 +#: cmdline/apt-get.cc:2721 cmdline/apt-shell.cc:2478 #, c-format msgid "%s has no build depends.\n" msgstr "%s hat keine Build-Abhц╓ngigkeiten.\n" -#: cmdline/apt-get.cc:2766 cmdline/apt-shell.cc:2528 +#: cmdline/apt-get.cc:2792 cmdline/apt-shell.cc:2549 #, c-format msgid "" "%s dependency for %s cannot be satisfied because the package %s cannot be " @@ -945,7 +946,7 @@ msgstr "" "%s Abhц╓ngigkeit auf %s kann nicht erfц╪llt werden, da das Paket %s nicht " "gefunden werden kann" -#: cmdline/apt-get.cc:2818 cmdline/apt-shell.cc:2580 +#: cmdline/apt-get.cc:2844 cmdline/apt-shell.cc:2601 #, c-format msgid "" "%s dependency for %s cannot be satisfied because no available versions of " @@ -954,17 +955,17 @@ msgstr "" "%s Abhц╓ngigkeit auf %s kann nicht erfц╪llt werden, da keine verfц╪gbare " "Version des Paketes %s die Versionsanforderungen erfц╪llen kann" -#: cmdline/apt-get.cc:2853 cmdline/apt-shell.cc:2614 +#: cmdline/apt-get.cc:2879 cmdline/apt-shell.cc:2635 #, c-format msgid "Failed to satisfy %s dependency for %s: Installed package %s is too new" msgstr "" -#: cmdline/apt-get.cc:2878 cmdline/apt-shell.cc:2639 +#: cmdline/apt-get.cc:2904 cmdline/apt-shell.cc:2660 #, fuzzy, c-format msgid "Failed to satisfy %s dependency for %s: %s" msgstr "Ausserstande, Build-Abhц╓ngigkeiten zu verarbeiten" -#: cmdline/apt-get.cc:2892 cmdline/apt-shell.cc:2653 +#: cmdline/apt-get.cc:2918 cmdline/apt-shell.cc:2674 #, fuzzy, c-format msgid "" "Some broken packages were found while trying to process build-dependencies " @@ -976,15 +977,15 @@ msgstr "" "Sie mц╤chten wahrscheinlich `apt-get -f install' ausfц╪hren um diese zu " "beheben." -#: cmdline/apt-get.cc:2897 +#: cmdline/apt-get.cc:2923 msgid "Failed to process build dependencies" msgstr "Ausserstande, Build-Abhц╓ngigkeiten zu verarbeiten" -#: cmdline/apt-get.cc:2964 cmdline/apt-shell.cc:3699 +#: cmdline/apt-get.cc:2990 cmdline/apt-shell.cc:3723 msgid "Supported Modules:" msgstr "Unterstц╪tzte Module:" -#: cmdline/apt-get.cc:3005 +#: cmdline/apt-get.cc:3031 msgid "" "Usage: apt-get [options] command\n" " apt-get [options] install|remove pkg1 [pkg2 ...]\n" @@ -1007,7 +1008,7 @@ msgid "" " check - Verify that there are no broken dependencies\n" msgstr "" -#: cmdline/apt-get.cc:3031 +#: cmdline/apt-get.cc:3059 msgid "" "\n" "Options:\n" @@ -1030,18 +1031,18 @@ msgid "" " This APT has Super Cow Powers.\n" msgstr "" -#: cmdline/apt-shell.cc:151 cmdline/apt-shell.cc:4421 +#: cmdline/apt-shell.cc:151 cmdline/apt-shell.cc:4445 #, fuzzy msgid "There are broken packages. " msgstr "Fehlerhafte Pakete" -#: cmdline/apt-shell.cc:152 cmdline/apt-shell.cc:2116 -#: cmdline/apt-shell.cc:4422 +#: cmdline/apt-shell.cc:152 cmdline/apt-shell.cc:2137 +#: cmdline/apt-shell.cc:4446 msgid "Run `check' to see them." msgstr "" -#: cmdline/apt-shell.cc:153 cmdline/apt-shell.cc:2117 -#: cmdline/apt-shell.cc:4423 +#: cmdline/apt-shell.cc:153 cmdline/apt-shell.cc:2138 +#: cmdline/apt-shell.cc:4447 msgid "You can try to fix them automatically with `install -f'." msgstr "" @@ -1088,31 +1089,31 @@ msgstr "" msgid "You might want to run `install -f' to correct these." msgstr "Sie werde `apt-get -f install' ausfц╪hren wollen um diese zu beheben." -#: cmdline/apt-shell.cc:1818 cmdline/apt-shell.cc:1856 -#: cmdline/apt-shell.cc:2181 cmdline/apt-shell.cc:2222 -#: cmdline/apt-shell.cc:2399 cmdline/apt-shell.cc:4011 +#: cmdline/apt-shell.cc:1839 cmdline/apt-shell.cc:1877 +#: cmdline/apt-shell.cc:2202 cmdline/apt-shell.cc:2243 +#: cmdline/apt-shell.cc:2420 cmdline/apt-shell.cc:4035 msgid "You have no permissions for that" msgstr "" -#: cmdline/apt-shell.cc:2115 +#: cmdline/apt-shell.cc:2136 msgid "There are still broken packages. " msgstr "" -#: cmdline/apt-shell.cc:3528 +#: cmdline/apt-shell.cc:3552 msgid "Name" msgstr "" -#: cmdline/apt-shell.cc:3529 +#: cmdline/apt-shell.cc:3553 #, fuzzy msgid "Installed" msgstr " [Installiert]" -#: cmdline/apt-shell.cc:3530 +#: cmdline/apt-shell.cc:3554 #, fuzzy msgid "Candidate" msgstr " Kandidat: " -#: cmdline/apt-shell.cc:3740 +#: cmdline/apt-shell.cc:3764 msgid "" "\n" "Main commands:\n" @@ -1145,7 +1146,7 @@ msgid "" " This APT has Super Cow Powers.\n" msgstr "" -#: cmdline/apt-shell.cc:3782 +#: cmdline/apt-shell.cc:3806 msgid "" "Usage: install [options] pkg1[=ver] [pkg2 ...]\n" "\n" @@ -1162,7 +1163,7 @@ msgid "" "\n" msgstr "" -#: cmdline/apt-shell.cc:3800 +#: cmdline/apt-shell.cc:3824 msgid "" "Usage: remove [options] pkg1 [pkg2 ...]\n" "\n" @@ -1179,7 +1180,7 @@ msgid "" "\n" msgstr "" -#: cmdline/apt-shell.cc:3818 +#: cmdline/apt-shell.cc:3842 msgid "" "Usage: keep [options] pkg1 [pkg2 ...]\n" "\n" @@ -1197,7 +1198,7 @@ msgid "" "\n" msgstr "" -#: cmdline/apt-shell.cc:3837 +#: cmdline/apt-shell.cc:3861 msgid "" "Usage: upgrade [options]\n" "\n" @@ -1213,7 +1214,7 @@ msgid "" "\n" msgstr "" -#: cmdline/apt-shell.cc:3853 +#: cmdline/apt-shell.cc:3877 msgid "" "Usage: dist-upgrade [options]\n" "\n" @@ -1229,7 +1230,7 @@ msgid "" "\n" msgstr "" -#: cmdline/apt-shell.cc:3869 +#: cmdline/apt-shell.cc:3893 #, fuzzy msgid "" "Usage: showpkg [options] pkg1 [pkg2 ...]\n" @@ -1254,7 +1255,7 @@ msgstr "" " -c=? Lese diese Konfigurationsdatei\n" " -o=? Setze eine beliebige Konfigurationsoption, z.B. -o dir::cache=/tmp\n" -#: cmdline/apt-shell.cc:3882 +#: cmdline/apt-shell.cc:3906 #, fuzzy msgid "" "Usage: show [options] pkg1 [pkg2 ...]\n" @@ -1280,7 +1281,7 @@ msgstr "" " -c=? Lese diese Konfigurationsdatei\n" " -o=? Setze eine beliebige Konfigurationsoption, z.B. -o dir::cache=/tmp\n" -#: cmdline/apt-shell.cc:3896 +#: cmdline/apt-shell.cc:3920 #, fuzzy msgid "" "Usage: depends [options] pkg1 [pkg2 ...]\n" @@ -1305,7 +1306,7 @@ msgstr "" " -c=? Lese diese Konfigurationsdatei\n" " -o=? Setze eine beliebige Konfigurationsoption, z.B. -o dir::cache=/tmp\n" -#: cmdline/apt-shell.cc:3909 +#: cmdline/apt-shell.cc:3933 #, fuzzy msgid "" "Usage: whatdepends [options] pkg1 [pkg2 ...]\n" @@ -1330,7 +1331,7 @@ msgstr "" " -c=? Lese diese Konfigurationsdatei\n" " -o=? Setze eine beliebige Konfigurationsoption, z.B. -o dir::cache=/tmp\n" -#: cmdline/apt-shell.cc:3922 +#: cmdline/apt-shell.cc:3946 #, fuzzy msgid "" "Usage: unmet [options]\n" @@ -1355,7 +1356,7 @@ msgstr "" " -c=? Lese diese Konfigurationsdatei\n" " -o=? Setze eine beliebige Konfigurationsoption, z.B. -o dir::cache=/tmp\n" -#: cmdline/apt-shell.cc:3935 +#: cmdline/apt-shell.cc:3959 msgid "" "Usage: search [options] <regex>\n" "\n" @@ -1370,7 +1371,7 @@ msgid "" "\n" msgstr "" -#: cmdline/apt-shell.cc:3952 +#: cmdline/apt-shell.cc:3976 msgid "" "Usage: list/ls [options] [pattern ...]\n" "\n" @@ -1387,7 +1388,7 @@ msgid "" "\n" msgstr "" -#: cmdline/apt-shell.cc:3970 +#: cmdline/apt-shell.cc:3994 #, fuzzy msgid "" "Usage: commit [options]\n" @@ -1412,7 +1413,7 @@ msgstr "" " -c=? Lese diese Konfigurationsdatei\n" " -o=? Setze eine beliebige Konfigurationsoption, z.B. -o dir::cache=/tmp\n" -#: cmdline/apt-shell.cc:3983 +#: cmdline/apt-shell.cc:4007 #, fuzzy msgid "" "Usage: script [options] script1 [script2]\n" @@ -1437,35 +1438,35 @@ msgstr "" " -c=? Lese diese Konfigurationsdatei\n" " -o=? Setze eine beliebige Konfigurationsoption, z.B. -o dir::cache=/tmp\n" -#: cmdline/apt-shell.cc:3994 +#: cmdline/apt-shell.cc:4018 msgid "No help for that" msgstr "" -#: cmdline/apt-shell.cc:4431 +#: cmdline/apt-shell.cc:4455 msgid "Welcome to the APT shell. Type \"help\" for more information." msgstr "" -#: cmdline/apt-shell.cc:4471 +#: cmdline/apt-shell.cc:4495 msgid "Exceeded maximum number of command arguments" msgstr "" -#: apt-pkg/contrib/cdromutl.cc:55 +#: apt-pkg/contrib/cdromutl.cc:60 #, c-format msgid "Unable to stat the mount point %s" msgstr "Ausserstande auf Mount-Point %s zuzugreifen" -#: apt-pkg/contrib/cdromutl.cc:149 apt-pkg/acquire.cc:418 apt-pkg/clean.cc:44 +#: apt-pkg/contrib/cdromutl.cc:174 apt-pkg/acquire.cc:418 apt-pkg/clean.cc:44 #, c-format msgid "Unable to change to %s" msgstr "Ausserstande nach %s zu wechseln" -#: apt-pkg/contrib/cdromutl.cc:153 apt-pkg/contrib/configuration.cc:735 -#: apt-pkg/acquire.cc:412 apt-pkg/clean.cc:38 apt-pkg/sourcelist.cc:424 +#: apt-pkg/contrib/cdromutl.cc:178 apt-pkg/contrib/configuration.cc:735 +#: apt-pkg/acquire.cc:412 apt-pkg/clean.cc:38 apt-pkg/sourcelist.cc:427 #, c-format msgid "Unable to read %s" msgstr "Ausserstande %s zu lesen" -#: apt-pkg/contrib/cdromutl.cc:190 +#: apt-pkg/contrib/cdromutl.cc:215 msgid "Failed to stat the cdrom" msgstr "Gescheitert auf das CDROM zuzugreifen." @@ -1597,12 +1598,12 @@ msgstr "Auf %s gewartet, aber es war nicht da" msgid "Sub-process %s received a segmentation fault." msgstr "Unterprozess %s empfing Segmentationfault" -#: apt-pkg/contrib/fileutl.cc:374 apt-pkg/rpm/rpmpm.cc:618 +#: apt-pkg/contrib/fileutl.cc:374 apt-pkg/rpm/rpmpm.cc:623 #, c-format msgid "Sub-process %s returned an error code (%u)" msgstr "Unterprozesss %s gab Fehlercode zurц╪ck (%u)" -#: apt-pkg/contrib/fileutl.cc:376 apt-pkg/rpm/rpmpm.cc:621 +#: apt-pkg/contrib/fileutl.cc:376 apt-pkg/rpm/rpmpm.cc:626 #, c-format msgid "Sub-process %s exited unexpectedly" msgstr "Unter-Prozess %s stieg unerwartet aus" @@ -1671,7 +1672,7 @@ msgid "could not rewind RPMFileHandler" msgstr "kц╤nnte RPMFileHandler nicht zurц╪ckspulen" #: apt-pkg/rpm/rpmhandler.cc:160 apt-pkg/rpm/rpmhandler.cc:167 -#: apt-pkg/rpm/rpmpm.cc:680 apt-pkg/rpm/rpmpm.cc:685 +#: apt-pkg/rpm/rpmpm.cc:685 apt-pkg/rpm/rpmpm.cc:690 #, fuzzy, c-format msgid "Failed reading file %s" msgstr "Fehler beim Ausfц╪hren von Script %s" @@ -1743,7 +1744,7 @@ msgid "" "RPM::Allow-Duplicated-Warning \"false\";\n" msgstr "" -#: apt-pkg/rpm/rpmlistparser.cc:685 +#: apt-pkg/rpm/rpmlistparser.cc:680 msgid "Bad NotAutomatic flag" msgstr "" @@ -1800,67 +1801,67 @@ msgstr "" msgid "Failure running script %s" msgstr "Fehler beim Ausfц╪hren von Script %s" -#: apt-pkg/rpm/rpmpm.cc:309 +#: apt-pkg/rpm/rpmpm.cc:312 msgid "Unknown pkgRPMPM operation." msgstr "" -#: apt-pkg/rpm/rpmpm.cc:544 +#: apt-pkg/rpm/rpmpm.cc:549 msgid "Executing RPM (" msgstr "Fц╪hre RPM aus (" -#: apt-pkg/rpm/rpmpm.cc:584 +#: apt-pkg/rpm/rpmpm.cc:589 #, fuzzy msgid "Could not exec " msgstr "Konnte Lock %s nicht bekommen" -#: apt-pkg/rpm/rpmpm.cc:599 +#: apt-pkg/rpm/rpmpm.cc:604 #, fuzzy msgid "Couldn't wait for subprocess" msgstr "Konnte Pipe fц╪r %s nicht ц╤ffnen" -#: apt-pkg/rpm/rpmpm.cc:615 +#: apt-pkg/rpm/rpmpm.cc:620 #, c-format msgid "Sub-process %s recieved a segmentation fault." msgstr "Unterprozess %s empfing Segmentation-Fault." -#: apt-pkg/rpm/rpmpm.cc:625 apt-pkg/rpm/rpmpm.cc:873 +#: apt-pkg/rpm/rpmpm.cc:630 apt-pkg/rpm/rpmpm.cc:878 #, fuzzy msgid "Done." msgstr "Fertig" -#: apt-pkg/rpm/rpmpm.cc:676 +#: apt-pkg/rpm/rpmpm.cc:681 #, fuzzy, c-format msgid "Failed opening %s" msgstr "Problem beim ц√ffnen von %s" -#: apt-pkg/rpm/rpmpm.cc:689 apt-pkg/rpm/rpmpm.cc:713 +#: apt-pkg/rpm/rpmpm.cc:694 apt-pkg/rpm/rpmpm.cc:718 #, c-format msgid "Failed adding %s to transaction %s" msgstr "" -#: apt-pkg/rpm/rpmpm.cc:765 apt-pkg/rpm/rpmpm.cc:775 +#: apt-pkg/rpm/rpmpm.cc:770 apt-pkg/rpm/rpmpm.cc:780 #, fuzzy msgid "Could not open RPM database" msgstr "kц╤nnte RPM-Datenbank nicht ц╤ffnen" -#: apt-pkg/rpm/rpmpm.cc:812 apt-pkg/rpm/rpmpm.cc:825 +#: apt-pkg/rpm/rpmpm.cc:817 apt-pkg/rpm/rpmpm.cc:830 msgid "Transaction set check failed" msgstr "" -#: apt-pkg/rpm/rpmpm.cc:845 +#: apt-pkg/rpm/rpmpm.cc:850 #, c-format msgid "Ordering failed for %d packages" msgstr "" -#: apt-pkg/rpm/rpmpm.cc:849 +#: apt-pkg/rpm/rpmpm.cc:854 msgid "Committing changes..." msgstr "" -#: apt-pkg/rpm/rpmpm.cc:865 +#: apt-pkg/rpm/rpmpm.cc:870 msgid "Error while running transaction" msgstr "" -#: apt-pkg/rpm/rpmpm.cc:871 +#: apt-pkg/rpm/rpmpm.cc:876 #, fuzzy msgid "Some errors occurred while running transaction" msgstr "Fehler wц╓hrend der Verarbeitung von %s (NewVersion1) aufgetreten" @@ -1875,12 +1876,16 @@ msgstr "Konnte Speicher nicht allozieren" msgid "error parsing source list %s" msgstr "Fehler beim Parsen der Paketliste %s" -#: apt-pkg/rpm/rpmsystem.cc:410 apt-pkg/pkgcachegen.cc:714 +#: apt-pkg/rpm/rpmsystem.cc:411 apt-pkg/pkgcachegen.cc:714 #: apt-pkg/pkgcachegen.cc:741 apt-pkg/pkgcachegen.cc:783 #: apt-pkg/pkgcachegen.cc:788 apt-pkg/pkgcachegen.cc:992 msgid "Reading Package Lists" msgstr "Lese Paketlisten" +#: apt-pkg/rpm/rpmshowprogress.h:121 apt-pkg/rpm/rpmshowprogress.h:123 +msgid "Preparing..." +msgstr "" + #: apt-pkg/acquire.cc:61 #, c-format msgid "Lists directory %spartial is missing." @@ -2246,37 +2251,37 @@ msgstr "Misbildete Zeile %lu in Quellliste %s (URI parse)" msgid "Malformed line %lu in source list %s (Absolute dist)" msgstr "Misbildete Zeile %lu in Quellliste %s (Absolute dist)" -#: apt-pkg/sourcelist.cc:116 +#: apt-pkg/sourcelist.cc:119 #, c-format msgid "Malformed line %lu in source list %s (dist parse)" msgstr "Misbildete Zeile %lu in Quellliste %s (dist parse)" -#: apt-pkg/sourcelist.cc:206 apt-pkg/sourcelist.cc:230 +#: apt-pkg/sourcelist.cc:209 apt-pkg/sourcelist.cc:233 #, c-format msgid "Vendor block %s is invalid" msgstr "Vendor-Block %s ist ungц╪ltig" -#: apt-pkg/sourcelist.cc:314 +#: apt-pkg/sourcelist.cc:317 #, c-format msgid "Line %u too long in source list %s." msgstr "Zeile %u zu lang in Quellliste %s." -#: apt-pkg/sourcelist.cc:334 +#: apt-pkg/sourcelist.cc:337 #, c-format msgid "Malformed line %u in source list %s (type)" msgstr "Misbildete Zeile %u in Quellliste %s (type)" -#: apt-pkg/sourcelist.cc:338 +#: apt-pkg/sourcelist.cc:341 #, c-format msgid "Type '%s' is not known in on line %u in source list %s" msgstr "Unbekannter Typ '%s' in Zeile %u in Quellliste %s" -#: apt-pkg/sourcelist.cc:347 apt-pkg/sourcelist.cc:350 +#: apt-pkg/sourcelist.cc:350 apt-pkg/sourcelist.cc:353 #, c-format msgid "Malformed line %u in source list %s (vendor id)" msgstr "Misbildete Zeile %u in Quellliste %s (vendor id)" -#: apt-pkg/sourcelist.cc:364 +#: apt-pkg/sourcelist.cc:367 #, c-format msgid "Unknown vendor ID '%s' in line %u of source list %s" msgstr "Unbekannte Vendor-ID '%s' in Zeile %u der Quellliste %s" @@ -2295,7 +2300,7 @@ msgstr "Ausserstande Paketdatei %s (1) zu parsen" msgid "Unable to parse package file %s (2)" msgstr "Ausserstande Paketdatei %s (2) zu parsen" -#: methods/cdrom.cc:169 +#: methods/cdrom.cc:202 msgid "" "Please use apt-cdrom to make this CD recognized by APT. apt-get update " "cannot be used to add new CDs" @@ -2303,16 +2308,16 @@ msgstr "" "Bitte verwenden Sie apt-cdrom um diese CD von APT erkennen zu lassen, apt-" "get update kann nicht dazu verwendet werden new CDs hinzuzufц╪gen" -#: methods/cdrom.cc:177 methods/cdrom.cc:215 +#: methods/cdrom.cc:210 methods/cdrom.cc:248 msgid "Wrong CD" msgstr "Falsche CD" -#: methods/cdrom.cc:210 +#: methods/cdrom.cc:243 #, c-format msgid "Unable to unmount the CD-ROM in %s, it may still be in use." msgstr "" -#: methods/cdrom.cc:233 methods/file.cc:82 +#: methods/cdrom.cc:266 methods/file.cc:82 msgid "File not found" msgstr "Datei nicht gefunden" diff --git a/apt/po/es_ES.po b/apt/po/es_ES.po index 4e764ce..100b81f 100644 --- a/apt/po/es_ES.po +++ b/apt/po/es_ES.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: apt\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2004-03-16 16:30-0300\n" +"POT-Creation-Date: 2004-05-20 16:12-0300\n" "PO-Revision-Date: 2001-01-11 15:40-02:00\n" "Last-Translator: Jorge Carrasquilla Soares <jorge@conectiva.com.br>\n" "Language-Team: Spanish <es@li.org>\n" @@ -47,17 +47,17 @@ msgid "" "in the drive '%s' and press enter\n" msgstr "Inserte un disco en la unidad y presione intro" -#: cmdline/apt-cache.cc:157 cmdline/apt-shell.cc:3188 +#: cmdline/apt-cache.cc:157 cmdline/apt-shell.cc:3209 #, fuzzy, c-format msgid "Package %s version %s has an unmet dep:\n" msgstr " hay una dep. no resuelta:" #: cmdline/apt-cache.cc:197 cmdline/apt-cache.cc:565 cmdline/apt-cache.cc:660 #: cmdline/apt-cache.cc:750 cmdline/apt-cache.cc:1024 -#: cmdline/apt-cache.cc:1242 cmdline/apt-cache.cc:1621 -#: cmdline/apt-cache.cc:1772 cmdline/apt-shell.cc:2740 -#: cmdline/apt-shell.cc:2838 cmdline/apt-shell.cc:2931 -#: cmdline/apt-shell.cc:3231 cmdline/apt-shell.cc:3647 +#: cmdline/apt-cache.cc:1242 cmdline/apt-cache.cc:1624 +#: cmdline/apt-cache.cc:1775 cmdline/apt-shell.cc:2761 +#: cmdline/apt-shell.cc:2859 cmdline/apt-shell.cc:2952 +#: cmdline/apt-shell.cc:3252 cmdline/apt-shell.cc:3671 #, c-format msgid "Unable to locate package %s" msgstr "Imposible ubicar el paquete %s" @@ -120,79 +120,79 @@ msgid "Total Space Accounted for: " msgstr "Espacio total contabilizado para: " #: cmdline/apt-cache.cc:484 cmdline/apt-cache.cc:1452 -#: cmdline/apt-shell.cc:3309 +#: cmdline/apt-shell.cc:3330 #, c-format msgid "Package file %s is out of sync." msgstr "El paquete %s no estА sincronizado." -#: cmdline/apt-cache.cc:1495 cmdline/apt-shell.cc:3355 +#: cmdline/apt-cache.cc:1495 cmdline/apt-shell.cc:3376 msgid "You must give exactly one pattern" msgstr "Debe escribir exactamente un patrСn" -#: cmdline/apt-cache.cc:1649 cmdline/apt-shell.cc:3675 +#: cmdline/apt-cache.cc:1652 cmdline/apt-shell.cc:3699 #, fuzzy msgid "No packages found" msgstr " Мndice de paquetes y " -#: cmdline/apt-cache.cc:1726 +#: cmdline/apt-cache.cc:1729 #, fuzzy msgid "Package Files:" msgstr "Paquete " -#: cmdline/apt-cache.cc:1733 cmdline/apt-cache.cc:1819 +#: cmdline/apt-cache.cc:1736 cmdline/apt-cache.cc:1822 msgid "Cache is out of sync, can't x-ref a package file" msgstr "" -#: cmdline/apt-cache.cc:1734 +#: cmdline/apt-cache.cc:1737 #, c-format msgid "%4i %s\n" msgstr "" -#: cmdline/apt-cache.cc:1746 +#: cmdline/apt-cache.cc:1749 #, fuzzy msgid "Pinned Packages:" msgstr "Paquete: " -#: cmdline/apt-cache.cc:1758 cmdline/apt-cache.cc:1799 +#: cmdline/apt-cache.cc:1761 cmdline/apt-cache.cc:1802 msgid "(not found)" msgstr "" -#: cmdline/apt-cache.cc:1779 +#: cmdline/apt-cache.cc:1782 #, fuzzy msgid " Installed: " msgstr " [Instalado]" -#: cmdline/apt-cache.cc:1781 cmdline/apt-cache.cc:1789 +#: cmdline/apt-cache.cc:1784 cmdline/apt-cache.cc:1792 msgid "(none)" msgstr "" -#: cmdline/apt-cache.cc:1786 +#: cmdline/apt-cache.cc:1789 #, fuzzy msgid " Candidate: " msgstr "Versiones propuestas" -#: cmdline/apt-cache.cc:1796 +#: cmdline/apt-cache.cc:1799 #, fuzzy msgid " Package Pin: " msgstr "Paquete: " -#: cmdline/apt-cache.cc:1805 +#: cmdline/apt-cache.cc:1808 #, fuzzy msgid " Version Table:" msgstr " VersiСn: " -#: cmdline/apt-cache.cc:1820 +#: cmdline/apt-cache.cc:1823 #, c-format msgid " %4i %s\n" msgstr "" -#: cmdline/apt-cache.cc:1847 cmdline/apt-cdrom.cc:847 cmdline/apt-config.cc:72 -#: cmdline/apt-get.cc:2959 cmdline/apt-shell.cc:3694 +#: cmdline/apt-cache.cc:1850 cmdline/apt-cdrom.cc:847 cmdline/apt-config.cc:72 +#: cmdline/apt-get.cc:2985 cmdline/apt-shell.cc:3718 #, c-format msgid "%s %s for %s %s compiled on %s %s\n" msgstr "" -#: cmdline/apt-cache.cc:1854 +#: cmdline/apt-cache.cc:1857 msgid "" "Usage: apt-cache [options] command\n" " apt-cache [options] add file1 [file2 ...]\n" @@ -221,7 +221,7 @@ msgid "" " policy - Show policy settings\n" msgstr "" -#: cmdline/apt-cache.cc:1884 +#: cmdline/apt-cache.cc:1889 msgid "" "\n" "Options:\n" @@ -240,7 +240,7 @@ msgstr "" msgid "Failed to rename %s.new to %s" msgstr "FallС al cambiar el nombre de %s.new para %s" -#: cmdline/apt-cdrom.cc:425 apt-pkg/sourcelist.cc:297 +#: cmdline/apt-cdrom.cc:425 apt-pkg/sourcelist.cc:300 #, fuzzy, c-format msgid "Opening %s" msgstr "Problema al abrir %s" @@ -254,7 +254,8 @@ msgstr "Fall msgid "Using CD-ROM mount point " msgstr "Usando punto de montaje del CD-ROM " -#: cmdline/apt-cdrom.cc:579 cmdline/apt-cdrom.cc:834 methods/cdrom.cc:160 +#: cmdline/apt-cdrom.cc:579 cmdline/apt-cdrom.cc:834 methods/cdrom.cc:81 +#: methods/cdrom.cc:193 #, c-format msgid "Unable to read the cdrom database %s" msgstr "Imposible leer la base de datos %s" @@ -392,8 +393,8 @@ msgstr "" msgid "Y" msgstr "S" -#: cmdline/apt-get.cc:180 cmdline/apt-get.cc:1982 cmdline/apt-shell.cc:202 -#: cmdline/apt-shell.cc:2057 +#: cmdline/apt-get.cc:180 cmdline/apt-get.cc:2006 cmdline/apt-shell.cc:202 +#: cmdline/apt-shell.cc:2078 #, fuzzy, c-format msgid "Regex compilation error - %s" msgstr "Error de compilaciСn de Regex" @@ -550,14 +551,14 @@ msgstr "" "Deben eliminarse algunos paquetes, sin embargo, estА especificado No " "Eliminar." -#: cmdline/apt-get.cc:915 cmdline/apt-get.cc:2329 cmdline/apt-get.cc:2362 -#: cmdline/apt-shell.cc:1020 cmdline/apt-shell.cc:2319 -#: cmdline/apt-shell.cc:2355 +#: cmdline/apt-get.cc:915 cmdline/apt-get.cc:2353 cmdline/apt-get.cc:2386 +#: cmdline/apt-shell.cc:1020 cmdline/apt-shell.cc:2340 +#: cmdline/apt-shell.cc:2376 msgid "Unable to lock the download directory" msgstr "Imposible bloquear el directorio para descargas" -#: cmdline/apt-get.cc:925 cmdline/apt-get.cc:2410 cmdline/apt-get.cc:2652 -#: cmdline/apt-shell.cc:1030 cmdline/apt-shell.cc:2414 apt-pkg/cachefile.cc:71 +#: cmdline/apt-get.cc:925 cmdline/apt-get.cc:2434 cmdline/apt-get.cc:2678 +#: cmdline/apt-shell.cc:1030 cmdline/apt-shell.cc:2435 apt-pkg/cachefile.cc:71 msgid "The list of sources could not be read." msgstr "No se puede leer la lista de fuentes." @@ -617,8 +618,8 @@ msgstr "Terminado." msgid "Do you want to continue? [Y/n] " msgstr "©Quiere continuar? [S/n] " -#: cmdline/apt-get.cc:1092 cmdline/apt-get.cc:1197 cmdline/apt-get.cc:1712 -#: cmdline/apt-get.cc:2521 cmdline/apt-shell.cc:1196 cmdline/apt-shell.cc:1777 +#: cmdline/apt-get.cc:1092 cmdline/apt-get.cc:1197 cmdline/apt-get.cc:1724 +#: cmdline/apt-get.cc:2545 cmdline/apt-shell.cc:1196 cmdline/apt-shell.cc:1789 #, fuzzy, c-format msgid "Failed to fetch %s %s\n" msgstr "FallС en la carga " @@ -627,7 +628,7 @@ msgstr "Fall msgid "Some files failed to download" msgstr "Hubo un fallo al descargar algunos archivos" -#: cmdline/apt-get.cc:1111 cmdline/apt-get.cc:2530 cmdline/apt-shell.cc:1215 +#: cmdline/apt-get.cc:1111 cmdline/apt-get.cc:2554 cmdline/apt-shell.cc:1215 msgid "Download complete and in download only mode" msgstr "" @@ -651,13 +652,13 @@ msgstr "Imposible corregir los paquetes perdidos." msgid "Aborting Install." msgstr "Interrumpiendo instalaciСn." -#: cmdline/apt-get.cc:1202 cmdline/apt-get.cc:2526 +#: cmdline/apt-get.cc:1202 cmdline/apt-get.cc:2550 msgid "Failed to fetch some archives." msgstr "Fallo al traer algunos archivos." -#: cmdline/apt-get.cc:1296 cmdline/apt-get.cc:1895 cmdline/apt-get.cc:1958 -#: cmdline/apt-get.cc:1993 cmdline/apt-shell.cc:1365 cmdline/apt-shell.cc:2033 -#: cmdline/apt-shell.cc:2068 +#: cmdline/apt-get.cc:1296 cmdline/apt-get.cc:1919 cmdline/apt-get.cc:1982 +#: cmdline/apt-get.cc:2017 cmdline/apt-shell.cc:1365 cmdline/apt-shell.cc:2054 +#: cmdline/apt-shell.cc:2089 #, fuzzy, c-format msgid "Selecting %s for '%s'\n" msgstr "Nota, seleccionando " @@ -746,31 +747,31 @@ msgstr "" msgid "Selected version %s for %s\n" msgstr "Nota, seleccionando " -#: cmdline/apt-get.cc:1613 +#: cmdline/apt-get.cc:1625 msgid "The update command takes no arguments" msgstr "" -#: cmdline/apt-get.cc:1636 cmdline/apt-shell.cc:1704 +#: cmdline/apt-get.cc:1648 cmdline/apt-shell.cc:1716 #, fuzzy, c-format msgid "Sources list %s could not be read" msgstr "No se puede leer la lista de fuentes." -#: cmdline/apt-get.cc:1639 cmdline/apt-shell.cc:1707 +#: cmdline/apt-get.cc:1651 cmdline/apt-shell.cc:1719 #, c-format msgid "Sources list %s doesn't exist" msgstr "" -#: cmdline/apt-get.cc:1652 cmdline/apt-shell.cc:1719 +#: cmdline/apt-get.cc:1664 cmdline/apt-shell.cc:1731 msgid "Unable to lock the list directory" msgstr "Imposible bloquear el directorio de lista" -#: cmdline/apt-get.cc:1684 cmdline/apt-shell.cc:1749 +#: cmdline/apt-get.cc:1696 cmdline/apt-shell.cc:1761 msgid "" "Release files for some repositories could not be retrieved or authenticated. " "Such repositories are being ignored." msgstr "" -#: cmdline/apt-get.cc:1743 cmdline/apt-shell.cc:1802 +#: cmdline/apt-get.cc:1764 cmdline/apt-shell.cc:1823 msgid "" "Some index files failed to download, they have been ignored, or old ones " "used instead." @@ -778,27 +779,27 @@ msgstr "" "Hubo un fallo al descargar algunos archivos de Мndice. Se han ignorado o se " "han usado los antiguos." -#: cmdline/apt-get.cc:1762 cmdline/apt-shell.cc:1831 +#: cmdline/apt-get.cc:1783 cmdline/apt-shell.cc:1852 msgid "Internal Error, AllUpgrade broke stuff" msgstr "Error interno en el AllUpgrade" -#: cmdline/apt-get.cc:1856 cmdline/apt-get.cc:1873 cmdline/apt-shell.cc:1933 -#: cmdline/apt-shell.cc:1950 +#: cmdline/apt-get.cc:1880 cmdline/apt-get.cc:1897 cmdline/apt-shell.cc:1954 +#: cmdline/apt-shell.cc:1971 #, fuzzy, c-format msgid "Couldn't parse name '%s'" msgstr "No se encontrС el paquete %s" -#: cmdline/apt-get.cc:1968 cmdline/apt-get.cc:2007 cmdline/apt-shell.cc:2043 -#: cmdline/apt-shell.cc:2083 +#: cmdline/apt-get.cc:1992 cmdline/apt-get.cc:2031 cmdline/apt-shell.cc:2064 +#: cmdline/apt-shell.cc:2104 #, c-format msgid "Couldn't find package %s" msgstr "No se encontrС el paquete %s" -#: cmdline/apt-get.cc:2037 +#: cmdline/apt-get.cc:2061 msgid "You might want to run `apt-get -f install' to correct these:" msgstr "Tal vez quiera ejecutar `apt-get -f install' para corregirlos:" -#: cmdline/apt-get.cc:2040 +#: cmdline/apt-get.cc:2064 msgid "" "Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a " "solution)." @@ -806,7 +807,7 @@ msgstr "" "Dependencias no resueltas. Intente 'apt-get -f install' sin paquetes (o " "especifique una soluciСn)." -#: cmdline/apt-get.cc:2062 cmdline/apt-shell.cc:2146 +#: cmdline/apt-get.cc:2086 cmdline/apt-shell.cc:2167 msgid "" "Some packages could not be installed. This may mean that you have\n" "requested an impossible situation or if you are using the unstable\n" @@ -814,7 +815,7 @@ msgid "" "or been moved out of Incoming." msgstr "" -#: cmdline/apt-get.cc:2070 cmdline/apt-shell.cc:2154 +#: cmdline/apt-get.cc:2094 cmdline/apt-shell.cc:2175 #, fuzzy msgid "" "Since you only requested a single operation it is extremely likely that\n" @@ -822,130 +823,130 @@ msgid "" "that package should be filed." msgstr "Como solicitС solamente una Зnica operaciСn, es muy probable que" -#: cmdline/apt-get.cc:2075 cmdline/apt-shell.cc:2159 +#: cmdline/apt-get.cc:2099 cmdline/apt-shell.cc:2180 msgid "The following information may help to resolve the situation:" msgstr "La siguiente informaciСn puede ayudar a resolver la situaciСn:" -#: cmdline/apt-get.cc:2078 cmdline/apt-shell.cc:2163 +#: cmdline/apt-get.cc:2102 cmdline/apt-shell.cc:2184 #, fuzzy msgid "Broken packages" msgstr "Lo siento, paquetes rotos" -#: cmdline/apt-get.cc:2104 +#: cmdline/apt-get.cc:2128 msgid "The following extra packages will be installed:" msgstr "Se instalarАn los siguientes paquetes extras: " -#: cmdline/apt-get.cc:2184 +#: cmdline/apt-get.cc:2208 #, fuzzy msgid "Suggested packages:" msgstr "Paquete: " -#: cmdline/apt-get.cc:2185 +#: cmdline/apt-get.cc:2209 #, fuzzy msgid "Recommended packages:" msgstr "Lo siento, paquetes rotos" -#: cmdline/apt-get.cc:2209 cmdline/apt-shell.cc:2190 +#: cmdline/apt-get.cc:2233 cmdline/apt-shell.cc:2211 msgid "Calculating Upgrade... " msgstr "Calculando actualizaciСn... " -#: cmdline/apt-get.cc:2212 cmdline/apt-shell.cc:2193 methods/connect.cc:102 +#: cmdline/apt-get.cc:2236 cmdline/apt-shell.cc:2214 methods/connect.cc:102 #: methods/ftp.cc:706 msgid "Failed" msgstr "FallС" -#: cmdline/apt-get.cc:2228 cmdline/apt-shell.cc:2205 +#: cmdline/apt-get.cc:2252 cmdline/apt-shell.cc:2226 msgid "Done" msgstr "Hecho" -#: cmdline/apt-get.cc:2405 +#: cmdline/apt-get.cc:2429 msgid "Must specify at least one package to fetch source for" msgstr "Debe especificar por lo menos un paquete del que buscar su fuente" -#: cmdline/apt-get.cc:2432 cmdline/apt-get.cc:2670 cmdline/apt-shell.cc:2432 +#: cmdline/apt-get.cc:2456 cmdline/apt-get.cc:2696 cmdline/apt-shell.cc:2453 #, c-format msgid "Unable to find a source package for %s" msgstr "Imposible encontrar un paquete fuente para %s" -#: cmdline/apt-get.cc:2481 +#: cmdline/apt-get.cc:2505 #, fuzzy, c-format msgid "You don't have enough free space in %s" msgstr "Lo siento, no tiene suficiente espacio libre en %s" -#: cmdline/apt-get.cc:2486 +#: cmdline/apt-get.cc:2510 #, fuzzy, c-format msgid "Need to get %sB/%sB of source archives.\n" msgstr " para archivos fuente." -#: cmdline/apt-get.cc:2489 +#: cmdline/apt-get.cc:2513 #, fuzzy, c-format msgid "Need to get %sB of source archives.\n" msgstr " para archivos fuente." -#: cmdline/apt-get.cc:2495 +#: cmdline/apt-get.cc:2519 #, fuzzy, c-format msgid "Fetch Source %s\n" msgstr "Cargar fuente" -#: cmdline/apt-get.cc:2560 cmdline/apt-get.cc:2611 +#: cmdline/apt-get.cc:2584 cmdline/apt-get.cc:2635 #, fuzzy, c-format msgid "Build command '%s' failed.\n" msgstr "Comando construir '" -#: cmdline/apt-get.cc:2572 cmdline/apt-get.cc:2594 +#: cmdline/apt-get.cc:2596 cmdline/apt-get.cc:2618 #, fuzzy, c-format msgid "Unpack command '%s' failed.\n" msgstr "Comando desempaquetar '" -#: cmdline/apt-get.cc:2582 +#: cmdline/apt-get.cc:2606 #, fuzzy, c-format msgid "Skipping unpack of already unpacked source in %s\n" msgstr "Omitiendo la operaciСn. Fuente ya desempaquetada en " -#: cmdline/apt-get.cc:2631 +#: cmdline/apt-get.cc:2655 msgid "Child process failed" msgstr "FallС el proceso hijo" -#: cmdline/apt-get.cc:2647 cmdline/apt-shell.cc:2409 +#: cmdline/apt-get.cc:2673 cmdline/apt-shell.cc:2430 #, fuzzy msgid "Must specify at least one package to check builddeps for" msgstr "Debe especificar por lo menos un paquete del que buscar su fuente" -#: cmdline/apt-get.cc:2675 cmdline/apt-shell.cc:2437 +#: cmdline/apt-get.cc:2701 cmdline/apt-shell.cc:2458 #, fuzzy, c-format msgid "Unable to get build-dependency information for %s" msgstr "Imposible corregir dependencias" -#: cmdline/apt-get.cc:2695 cmdline/apt-shell.cc:2457 +#: cmdline/apt-get.cc:2721 cmdline/apt-shell.cc:2478 #, c-format msgid "%s has no build depends.\n" msgstr "" -#: cmdline/apt-get.cc:2766 cmdline/apt-shell.cc:2528 +#: cmdline/apt-get.cc:2792 cmdline/apt-shell.cc:2549 #, c-format msgid "" "%s dependency for %s cannot be satisfied because the package %s cannot be " "found" msgstr "" -#: cmdline/apt-get.cc:2818 cmdline/apt-shell.cc:2580 +#: cmdline/apt-get.cc:2844 cmdline/apt-shell.cc:2601 #, c-format msgid "" "%s dependency for %s cannot be satisfied because no available versions of " "package %s can satisfy version requirements" msgstr "" -#: cmdline/apt-get.cc:2853 cmdline/apt-shell.cc:2614 +#: cmdline/apt-get.cc:2879 cmdline/apt-shell.cc:2635 #, c-format msgid "Failed to satisfy %s dependency for %s: Installed package %s is too new" msgstr "" -#: cmdline/apt-get.cc:2878 cmdline/apt-shell.cc:2639 +#: cmdline/apt-get.cc:2904 cmdline/apt-shell.cc:2660 #, fuzzy, c-format msgid "Failed to satisfy %s dependency for %s: %s" msgstr "Imposible corregir dependencias" -#: cmdline/apt-get.cc:2892 cmdline/apt-shell.cc:2653 +#: cmdline/apt-get.cc:2918 cmdline/apt-shell.cc:2674 #, fuzzy, c-format msgid "" "Some broken packages were found while trying to process build-dependencies " @@ -953,16 +954,16 @@ msgid "" "You might want to run `apt-get -f install' to correct these." msgstr "Tal vez quiera ejecutar `apt-get -f install' para corregirlos." -#: cmdline/apt-get.cc:2897 +#: cmdline/apt-get.cc:2923 #, fuzzy msgid "Failed to process build dependencies" msgstr "Imposible corregir dependencias" -#: cmdline/apt-get.cc:2964 cmdline/apt-shell.cc:3699 +#: cmdline/apt-get.cc:2990 cmdline/apt-shell.cc:3723 msgid "Supported Modules:" msgstr "" -#: cmdline/apt-get.cc:3005 +#: cmdline/apt-get.cc:3031 msgid "" "Usage: apt-get [options] command\n" " apt-get [options] install|remove pkg1 [pkg2 ...]\n" @@ -985,7 +986,7 @@ msgid "" " check - Verify that there are no broken dependencies\n" msgstr "" -#: cmdline/apt-get.cc:3031 +#: cmdline/apt-get.cc:3059 msgid "" "\n" "Options:\n" @@ -1008,18 +1009,18 @@ msgid "" " This APT has Super Cow Powers.\n" msgstr "" -#: cmdline/apt-shell.cc:151 cmdline/apt-shell.cc:4421 +#: cmdline/apt-shell.cc:151 cmdline/apt-shell.cc:4445 #, fuzzy msgid "There are broken packages. " msgstr "Lo siento, paquetes rotos" -#: cmdline/apt-shell.cc:152 cmdline/apt-shell.cc:2116 -#: cmdline/apt-shell.cc:4422 +#: cmdline/apt-shell.cc:152 cmdline/apt-shell.cc:2137 +#: cmdline/apt-shell.cc:4446 msgid "Run `check' to see them." msgstr "" -#: cmdline/apt-shell.cc:153 cmdline/apt-shell.cc:2117 -#: cmdline/apt-shell.cc:4423 +#: cmdline/apt-shell.cc:153 cmdline/apt-shell.cc:2138 +#: cmdline/apt-shell.cc:4447 msgid "You can try to fix them automatically with `install -f'." msgstr "" @@ -1066,32 +1067,32 @@ msgstr "" msgid "You might want to run `install -f' to correct these." msgstr "Tal vez quiera ejecutar `apt-get -f install' para corregirlos." -#: cmdline/apt-shell.cc:1818 cmdline/apt-shell.cc:1856 -#: cmdline/apt-shell.cc:2181 cmdline/apt-shell.cc:2222 -#: cmdline/apt-shell.cc:2399 cmdline/apt-shell.cc:4011 +#: cmdline/apt-shell.cc:1839 cmdline/apt-shell.cc:1877 +#: cmdline/apt-shell.cc:2202 cmdline/apt-shell.cc:2243 +#: cmdline/apt-shell.cc:2420 cmdline/apt-shell.cc:4035 msgid "You have no permissions for that" msgstr "" -#: cmdline/apt-shell.cc:2115 +#: cmdline/apt-shell.cc:2136 #, fuzzy msgid "There are still broken packages. " msgstr "Lo siento, paquetes rotos" -#: cmdline/apt-shell.cc:3528 +#: cmdline/apt-shell.cc:3552 msgid "Name" msgstr "" -#: cmdline/apt-shell.cc:3529 +#: cmdline/apt-shell.cc:3553 #, fuzzy msgid "Installed" msgstr " [Instalado]" -#: cmdline/apt-shell.cc:3530 +#: cmdline/apt-shell.cc:3554 #, fuzzy msgid "Candidate" msgstr "Versiones propuestas" -#: cmdline/apt-shell.cc:3740 +#: cmdline/apt-shell.cc:3764 msgid "" "\n" "Main commands:\n" @@ -1124,7 +1125,7 @@ msgid "" " This APT has Super Cow Powers.\n" msgstr "" -#: cmdline/apt-shell.cc:3782 +#: cmdline/apt-shell.cc:3806 msgid "" "Usage: install [options] pkg1[=ver] [pkg2 ...]\n" "\n" @@ -1141,7 +1142,7 @@ msgid "" "\n" msgstr "" -#: cmdline/apt-shell.cc:3800 +#: cmdline/apt-shell.cc:3824 msgid "" "Usage: remove [options] pkg1 [pkg2 ...]\n" "\n" @@ -1158,7 +1159,7 @@ msgid "" "\n" msgstr "" -#: cmdline/apt-shell.cc:3818 +#: cmdline/apt-shell.cc:3842 msgid "" "Usage: keep [options] pkg1 [pkg2 ...]\n" "\n" @@ -1176,7 +1177,7 @@ msgid "" "\n" msgstr "" -#: cmdline/apt-shell.cc:3837 +#: cmdline/apt-shell.cc:3861 msgid "" "Usage: upgrade [options]\n" "\n" @@ -1192,7 +1193,7 @@ msgid "" "\n" msgstr "" -#: cmdline/apt-shell.cc:3853 +#: cmdline/apt-shell.cc:3877 msgid "" "Usage: dist-upgrade [options]\n" "\n" @@ -1208,7 +1209,7 @@ msgid "" "\n" msgstr "" -#: cmdline/apt-shell.cc:3869 +#: cmdline/apt-shell.cc:3893 msgid "" "Usage: showpkg [options] pkg1 [pkg2 ...]\n" "\n" @@ -1220,7 +1221,7 @@ msgid "" "\n" msgstr "" -#: cmdline/apt-shell.cc:3882 +#: cmdline/apt-shell.cc:3906 msgid "" "Usage: show [options] pkg1 [pkg2 ...]\n" "\n" @@ -1233,7 +1234,7 @@ msgid "" "\n" msgstr "" -#: cmdline/apt-shell.cc:3896 +#: cmdline/apt-shell.cc:3920 msgid "" "Usage: depends [options] pkg1 [pkg2 ...]\n" "\n" @@ -1245,7 +1246,7 @@ msgid "" "\n" msgstr "" -#: cmdline/apt-shell.cc:3909 +#: cmdline/apt-shell.cc:3933 msgid "" "Usage: whatdepends [options] pkg1 [pkg2 ...]\n" "\n" @@ -1257,7 +1258,7 @@ msgid "" "\n" msgstr "" -#: cmdline/apt-shell.cc:3922 +#: cmdline/apt-shell.cc:3946 msgid "" "Usage: unmet [options]\n" "\n" @@ -1269,7 +1270,7 @@ msgid "" "\n" msgstr "" -#: cmdline/apt-shell.cc:3935 +#: cmdline/apt-shell.cc:3959 msgid "" "Usage: search [options] <regex>\n" "\n" @@ -1284,7 +1285,7 @@ msgid "" "\n" msgstr "" -#: cmdline/apt-shell.cc:3952 +#: cmdline/apt-shell.cc:3976 msgid "" "Usage: list/ls [options] [pattern ...]\n" "\n" @@ -1301,7 +1302,7 @@ msgid "" "\n" msgstr "" -#: cmdline/apt-shell.cc:3970 +#: cmdline/apt-shell.cc:3994 msgid "" "Usage: commit [options]\n" "\n" @@ -1313,7 +1314,7 @@ msgid "" "\n" msgstr "" -#: cmdline/apt-shell.cc:3983 +#: cmdline/apt-shell.cc:4007 msgid "" "Usage: script [options] script1 [script2]\n" "\n" @@ -1325,35 +1326,35 @@ msgid "" "\n" msgstr "" -#: cmdline/apt-shell.cc:3994 +#: cmdline/apt-shell.cc:4018 msgid "No help for that" msgstr "" -#: cmdline/apt-shell.cc:4431 +#: cmdline/apt-shell.cc:4455 msgid "Welcome to the APT shell. Type \"help\" for more information." msgstr "" -#: cmdline/apt-shell.cc:4471 +#: cmdline/apt-shell.cc:4495 msgid "Exceeded maximum number of command arguments" msgstr "" -#: apt-pkg/contrib/cdromutl.cc:55 +#: apt-pkg/contrib/cdromutl.cc:60 #, fuzzy, c-format msgid "Unable to stat the mount point %s" msgstr "Imposible leer %s." -#: apt-pkg/contrib/cdromutl.cc:149 apt-pkg/acquire.cc:418 apt-pkg/clean.cc:44 +#: apt-pkg/contrib/cdromutl.cc:174 apt-pkg/acquire.cc:418 apt-pkg/clean.cc:44 #, c-format msgid "Unable to change to %s" msgstr "Imposible alterar para %s" -#: apt-pkg/contrib/cdromutl.cc:153 apt-pkg/contrib/configuration.cc:735 -#: apt-pkg/acquire.cc:412 apt-pkg/clean.cc:38 apt-pkg/sourcelist.cc:424 +#: apt-pkg/contrib/cdromutl.cc:178 apt-pkg/contrib/configuration.cc:735 +#: apt-pkg/acquire.cc:412 apt-pkg/clean.cc:38 apt-pkg/sourcelist.cc:427 #, c-format msgid "Unable to read %s" msgstr "Imposible leer %s" -#: apt-pkg/contrib/cdromutl.cc:190 +#: apt-pkg/contrib/cdromutl.cc:215 #, fuzzy msgid "Failed to stat the cdrom" msgstr "FallС al montar el CD-ROM." @@ -1484,12 +1485,12 @@ msgstr "" msgid "Sub-process %s received a segmentation fault." msgstr "" -#: apt-pkg/contrib/fileutl.cc:374 apt-pkg/rpm/rpmpm.cc:618 +#: apt-pkg/contrib/fileutl.cc:374 apt-pkg/rpm/rpmpm.cc:623 #, c-format msgid "Sub-process %s returned an error code (%u)" msgstr "" -#: apt-pkg/contrib/fileutl.cc:376 apt-pkg/rpm/rpmpm.cc:621 +#: apt-pkg/contrib/fileutl.cc:376 apt-pkg/rpm/rpmpm.cc:626 #, fuzzy, c-format msgid "Sub-process %s exited unexpectedly" msgstr "║El mИtodo %s terminС inesperadamente!" @@ -1564,7 +1565,7 @@ msgid "could not rewind RPMFileHandler" msgstr "no se pudo abrir Мndice hash" #: apt-pkg/rpm/rpmhandler.cc:160 apt-pkg/rpm/rpmhandler.cc:167 -#: apt-pkg/rpm/rpmpm.cc:680 apt-pkg/rpm/rpmpm.cc:685 +#: apt-pkg/rpm/rpmpm.cc:685 apt-pkg/rpm/rpmpm.cc:690 #, fuzzy, c-format msgid "Failed reading file %s" msgstr "FallС al cargar el archivo hash:" @@ -1639,7 +1640,7 @@ msgid "" "RPM::Allow-Duplicated-Warning \"false\";\n" msgstr "" -#: apt-pkg/rpm/rpmlistparser.cc:685 +#: apt-pkg/rpm/rpmlistparser.cc:680 msgid "Bad NotAutomatic flag" msgstr "" @@ -1696,67 +1697,67 @@ msgstr "Fall msgid "Failure running script %s" msgstr "" -#: apt-pkg/rpm/rpmpm.cc:309 +#: apt-pkg/rpm/rpmpm.cc:312 msgid "Unknown pkgRPMPM operation." msgstr "" -#: apt-pkg/rpm/rpmpm.cc:544 +#: apt-pkg/rpm/rpmpm.cc:549 msgid "Executing RPM (" msgstr "" -#: apt-pkg/rpm/rpmpm.cc:584 +#: apt-pkg/rpm/rpmpm.cc:589 #, fuzzy msgid "Could not exec " msgstr "No se encontrС el paquete %s" -#: apt-pkg/rpm/rpmpm.cc:599 +#: apt-pkg/rpm/rpmpm.cc:604 #, fuzzy msgid "Couldn't wait for subprocess" msgstr "No se encontrС el paquete %s" -#: apt-pkg/rpm/rpmpm.cc:615 +#: apt-pkg/rpm/rpmpm.cc:620 #, c-format msgid "Sub-process %s recieved a segmentation fault." msgstr "" -#: apt-pkg/rpm/rpmpm.cc:625 apt-pkg/rpm/rpmpm.cc:873 +#: apt-pkg/rpm/rpmpm.cc:630 apt-pkg/rpm/rpmpm.cc:878 #, fuzzy msgid "Done." msgstr "Hecho" -#: apt-pkg/rpm/rpmpm.cc:676 +#: apt-pkg/rpm/rpmpm.cc:681 #, fuzzy, c-format msgid "Failed opening %s" msgstr "Problema al abrir %s" -#: apt-pkg/rpm/rpmpm.cc:689 apt-pkg/rpm/rpmpm.cc:713 +#: apt-pkg/rpm/rpmpm.cc:694 apt-pkg/rpm/rpmpm.cc:718 #, fuzzy, c-format msgid "Failed adding %s to transaction %s" msgstr "FallС al cambiar de nombre de %s para %s" -#: apt-pkg/rpm/rpmpm.cc:765 apt-pkg/rpm/rpmpm.cc:775 +#: apt-pkg/rpm/rpmpm.cc:770 apt-pkg/rpm/rpmpm.cc:780 #, fuzzy msgid "Could not open RPM database" msgstr "no se pudo abrir Мndice hash" -#: apt-pkg/rpm/rpmpm.cc:812 apt-pkg/rpm/rpmpm.cc:825 +#: apt-pkg/rpm/rpmpm.cc:817 apt-pkg/rpm/rpmpm.cc:830 msgid "Transaction set check failed" msgstr "" -#: apt-pkg/rpm/rpmpm.cc:845 +#: apt-pkg/rpm/rpmpm.cc:850 #, c-format msgid "Ordering failed for %d packages" msgstr "" -#: apt-pkg/rpm/rpmpm.cc:849 +#: apt-pkg/rpm/rpmpm.cc:854 msgid "Committing changes..." msgstr "" -#: apt-pkg/rpm/rpmpm.cc:865 +#: apt-pkg/rpm/rpmpm.cc:870 msgid "Error while running transaction" msgstr "" -#: apt-pkg/rpm/rpmpm.cc:871 +#: apt-pkg/rpm/rpmpm.cc:876 #, fuzzy msgid "Some errors occurred while running transaction" msgstr "Error ocurrido al procesar %s (NewVersion1)" @@ -1771,12 +1772,16 @@ msgstr "No se pudo esperar al subproceso" msgid "error parsing source list %s" msgstr "Grabando nueva lista fuente" -#: apt-pkg/rpm/rpmsystem.cc:410 apt-pkg/pkgcachegen.cc:714 +#: apt-pkg/rpm/rpmsystem.cc:411 apt-pkg/pkgcachegen.cc:714 #: apt-pkg/pkgcachegen.cc:741 apt-pkg/pkgcachegen.cc:783 #: apt-pkg/pkgcachegen.cc:788 apt-pkg/pkgcachegen.cc:992 msgid "Reading Package Lists" msgstr "Leyendo listas de paquetes" +#: apt-pkg/rpm/rpmshowprogress.h:121 apt-pkg/rpm/rpmshowprogress.h:123 +msgid "Preparing..." +msgstr "" + #: apt-pkg/acquire.cc:61 #, c-format msgid "Lists directory %spartial is missing." @@ -2136,37 +2141,37 @@ msgstr "L msgid "Malformed line %lu in source list %s (Absolute dist)" msgstr "LМnea %u equivocada en la lista fuente %s (dist absoluta)" -#: apt-pkg/sourcelist.cc:116 +#: apt-pkg/sourcelist.cc:119 #, fuzzy, c-format msgid "Malformed line %lu in source list %s (dist parse)" msgstr "LМnea %u equivocada en la lista fuente %s (anАlisis de dist)" -#: apt-pkg/sourcelist.cc:206 apt-pkg/sourcelist.cc:230 +#: apt-pkg/sourcelist.cc:209 apt-pkg/sourcelist.cc:233 #, fuzzy, c-format msgid "Vendor block %s is invalid" msgstr "El bloque %s no es vАlido" -#: apt-pkg/sourcelist.cc:314 +#: apt-pkg/sourcelist.cc:317 #, fuzzy, c-format msgid "Line %u too long in source list %s." msgstr "LМnea %u equivocada en la lista fuente %s (URI)" -#: apt-pkg/sourcelist.cc:334 +#: apt-pkg/sourcelist.cc:337 #, c-format msgid "Malformed line %u in source list %s (type)" msgstr "LМnea %u equivocada en la lista fuente %s (tipo)" -#: apt-pkg/sourcelist.cc:338 +#: apt-pkg/sourcelist.cc:341 #, c-format msgid "Type '%s' is not known in on line %u in source list %s" msgstr "" -#: apt-pkg/sourcelist.cc:347 apt-pkg/sourcelist.cc:350 +#: apt-pkg/sourcelist.cc:350 apt-pkg/sourcelist.cc:353 #, fuzzy, c-format msgid "Malformed line %u in source list %s (vendor id)" msgstr "LМnea %u equivocada en la lista fuente %s (ID de fabricante)" -#: apt-pkg/sourcelist.cc:364 +#: apt-pkg/sourcelist.cc:367 #, c-format msgid "Unknown vendor ID '%s' in line %u of source list %s" msgstr "" @@ -2186,22 +2191,22 @@ msgstr "Imposible analizar el paquete %s (1)" msgid "Unable to parse package file %s (2)" msgstr "Imposible analizar el paquete %s (2)" -#: methods/cdrom.cc:169 +#: methods/cdrom.cc:202 msgid "" "Please use apt-cdrom to make this CD recognized by APT. apt-get update " "cannot be used to add new CDs" msgstr "" -#: methods/cdrom.cc:177 methods/cdrom.cc:215 +#: methods/cdrom.cc:210 methods/cdrom.cc:248 msgid "Wrong CD" msgstr "" -#: methods/cdrom.cc:210 +#: methods/cdrom.cc:243 #, c-format msgid "Unable to unmount the CD-ROM in %s, it may still be in use." msgstr "" -#: methods/cdrom.cc:233 methods/file.cc:82 +#: methods/cdrom.cc:266 methods/file.cc:82 msgid "File not found" msgstr "" diff --git a/apt/po/it_IT.po b/apt/po/it_IT.po index 6097af8..850ba33 100644 --- a/apt/po/it_IT.po +++ b/apt/po/it_IT.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: apt\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2004-03-16 16:30-0300\n" +"POT-Creation-Date: 2004-05-20 16:12-0300\n" "PO-Revision-Date: 2001-01-11 15:40-02:00\n" "Last-Translator: Stefano Corsi <ippo@madeinlinux.com>\n" "Language-Team: Italian <it@li.org>\n" @@ -47,17 +47,17 @@ msgid "" "in the drive '%s' and press enter\n" msgstr "Prego, inserire un Disco nel drive e premere enter" -#: cmdline/apt-cache.cc:157 cmdline/apt-shell.cc:3188 +#: cmdline/apt-cache.cc:157 cmdline/apt-shell.cc:3209 #, fuzzy, c-format msgid "Package %s version %s has an unmet dep:\n" msgstr " ha una dipendenza irrisolta:" #: cmdline/apt-cache.cc:197 cmdline/apt-cache.cc:565 cmdline/apt-cache.cc:660 #: cmdline/apt-cache.cc:750 cmdline/apt-cache.cc:1024 -#: cmdline/apt-cache.cc:1242 cmdline/apt-cache.cc:1621 -#: cmdline/apt-cache.cc:1772 cmdline/apt-shell.cc:2740 -#: cmdline/apt-shell.cc:2838 cmdline/apt-shell.cc:2931 -#: cmdline/apt-shell.cc:3231 cmdline/apt-shell.cc:3647 +#: cmdline/apt-cache.cc:1242 cmdline/apt-cache.cc:1624 +#: cmdline/apt-cache.cc:1775 cmdline/apt-shell.cc:2761 +#: cmdline/apt-shell.cc:2859 cmdline/apt-shell.cc:2952 +#: cmdline/apt-shell.cc:3252 cmdline/apt-shell.cc:3671 #, c-format msgid "Unable to locate package %s" msgstr "Impossibile trovare il pacchetto %s" @@ -120,79 +120,79 @@ msgid "Total Space Accounted for: " msgstr "Spazio totale occupato: " #: cmdline/apt-cache.cc:484 cmdline/apt-cache.cc:1452 -#: cmdline/apt-shell.cc:3309 +#: cmdline/apt-shell.cc:3330 #, c-format msgid "Package file %s is out of sync." msgstr "Il pacchetto %s non Х sincronizzato." -#: cmdline/apt-cache.cc:1495 cmdline/apt-shell.cc:3355 +#: cmdline/apt-cache.cc:1495 cmdline/apt-shell.cc:3376 msgid "You must give exactly one pattern" msgstr "Devi fornire esattamente un modello" -#: cmdline/apt-cache.cc:1649 cmdline/apt-shell.cc:3675 +#: cmdline/apt-cache.cc:1652 cmdline/apt-shell.cc:3699 #, fuzzy msgid "No packages found" msgstr " indici di pacchetti e " -#: cmdline/apt-cache.cc:1726 +#: cmdline/apt-cache.cc:1729 #, fuzzy msgid "Package Files:" msgstr "Pacchetto " -#: cmdline/apt-cache.cc:1733 cmdline/apt-cache.cc:1819 +#: cmdline/apt-cache.cc:1736 cmdline/apt-cache.cc:1822 msgid "Cache is out of sync, can't x-ref a package file" msgstr "" -#: cmdline/apt-cache.cc:1734 +#: cmdline/apt-cache.cc:1737 #, c-format msgid "%4i %s\n" msgstr "" -#: cmdline/apt-cache.cc:1746 +#: cmdline/apt-cache.cc:1749 #, fuzzy msgid "Pinned Packages:" msgstr "Pacchetto: " -#: cmdline/apt-cache.cc:1758 cmdline/apt-cache.cc:1799 +#: cmdline/apt-cache.cc:1761 cmdline/apt-cache.cc:1802 msgid "(not found)" msgstr "" -#: cmdline/apt-cache.cc:1779 +#: cmdline/apt-cache.cc:1782 #, fuzzy msgid " Installed: " msgstr " [Installato]" -#: cmdline/apt-cache.cc:1781 cmdline/apt-cache.cc:1789 +#: cmdline/apt-cache.cc:1784 cmdline/apt-cache.cc:1792 msgid "(none)" msgstr "" -#: cmdline/apt-cache.cc:1786 +#: cmdline/apt-cache.cc:1789 #, fuzzy msgid " Candidate: " msgstr "Versioni proposte" -#: cmdline/apt-cache.cc:1796 +#: cmdline/apt-cache.cc:1799 #, fuzzy msgid " Package Pin: " msgstr "Pacchetto: " -#: cmdline/apt-cache.cc:1805 +#: cmdline/apt-cache.cc:1808 #, fuzzy msgid " Version Table:" msgstr " Versione: " -#: cmdline/apt-cache.cc:1820 +#: cmdline/apt-cache.cc:1823 #, c-format msgid " %4i %s\n" msgstr "" -#: cmdline/apt-cache.cc:1847 cmdline/apt-cdrom.cc:847 cmdline/apt-config.cc:72 -#: cmdline/apt-get.cc:2959 cmdline/apt-shell.cc:3694 +#: cmdline/apt-cache.cc:1850 cmdline/apt-cdrom.cc:847 cmdline/apt-config.cc:72 +#: cmdline/apt-get.cc:2985 cmdline/apt-shell.cc:3718 #, c-format msgid "%s %s for %s %s compiled on %s %s\n" msgstr "" -#: cmdline/apt-cache.cc:1854 +#: cmdline/apt-cache.cc:1857 msgid "" "Usage: apt-cache [options] command\n" " apt-cache [options] add file1 [file2 ...]\n" @@ -221,7 +221,7 @@ msgid "" " policy - Show policy settings\n" msgstr "" -#: cmdline/apt-cache.cc:1884 +#: cmdline/apt-cache.cc:1889 msgid "" "\n" "Options:\n" @@ -240,7 +240,7 @@ msgstr "" msgid "Failed to rename %s.new to %s" msgstr "Impossibile rinominare %s.new in %s" -#: cmdline/apt-cdrom.cc:425 apt-pkg/sourcelist.cc:297 +#: cmdline/apt-cdrom.cc:425 apt-pkg/sourcelist.cc:300 #, fuzzy, c-format msgid "Opening %s" msgstr "Problema nell'apertura di %s" @@ -254,7 +254,8 @@ msgstr "Impossibile aprire %s.new" msgid "Using CD-ROM mount point " msgstr "Utilizzo del punto di montaggio del CD-ROM " -#: cmdline/apt-cdrom.cc:579 cmdline/apt-cdrom.cc:834 methods/cdrom.cc:160 +#: cmdline/apt-cdrom.cc:579 cmdline/apt-cdrom.cc:834 methods/cdrom.cc:81 +#: methods/cdrom.cc:193 #, c-format msgid "Unable to read the cdrom database %s" msgstr "Impossibile leggere la base dati %s" @@ -392,8 +393,8 @@ msgstr "" msgid "Y" msgstr "S" -#: cmdline/apt-get.cc:180 cmdline/apt-get.cc:1982 cmdline/apt-shell.cc:202 -#: cmdline/apt-shell.cc:2057 +#: cmdline/apt-get.cc:180 cmdline/apt-get.cc:2006 cmdline/apt-shell.cc:202 +#: cmdline/apt-shell.cc:2078 #, fuzzy, c-format msgid "Regex compilation error - %s" msgstr "Errore di compilazione dell'espressione regolare" @@ -549,14 +550,14 @@ msgid "Packages need to be removed but Remove is disabled." msgstr "" "Devono essere eliminati dei pacchetti ma Х stato specificato No Remove." -#: cmdline/apt-get.cc:915 cmdline/apt-get.cc:2329 cmdline/apt-get.cc:2362 -#: cmdline/apt-shell.cc:1020 cmdline/apt-shell.cc:2319 -#: cmdline/apt-shell.cc:2355 +#: cmdline/apt-get.cc:915 cmdline/apt-get.cc:2353 cmdline/apt-get.cc:2386 +#: cmdline/apt-shell.cc:1020 cmdline/apt-shell.cc:2340 +#: cmdline/apt-shell.cc:2376 msgid "Unable to lock the download directory" msgstr "Impossible bloccare lo scaricamento della directory" -#: cmdline/apt-get.cc:925 cmdline/apt-get.cc:2410 cmdline/apt-get.cc:2652 -#: cmdline/apt-shell.cc:1030 cmdline/apt-shell.cc:2414 apt-pkg/cachefile.cc:71 +#: cmdline/apt-get.cc:925 cmdline/apt-get.cc:2434 cmdline/apt-get.cc:2678 +#: cmdline/apt-shell.cc:1030 cmdline/apt-shell.cc:2435 apt-pkg/cachefile.cc:71 msgid "The list of sources could not be read." msgstr "Non Х possibile leggere la lista delle fonti." @@ -618,8 +619,8 @@ msgstr "Terminato." msgid "Do you want to continue? [Y/n] " msgstr "Vuoi proseguire? [S/n] " -#: cmdline/apt-get.cc:1092 cmdline/apt-get.cc:1197 cmdline/apt-get.cc:1712 -#: cmdline/apt-get.cc:2521 cmdline/apt-shell.cc:1196 cmdline/apt-shell.cc:1777 +#: cmdline/apt-get.cc:1092 cmdline/apt-get.cc:1197 cmdline/apt-get.cc:1724 +#: cmdline/apt-get.cc:2545 cmdline/apt-shell.cc:1196 cmdline/apt-shell.cc:1789 #, fuzzy, c-format msgid "Failed to fetch %s %s\n" msgstr "Recupero fallito" @@ -628,7 +629,7 @@ msgstr "Recupero fallito" msgid "Some files failed to download" msgstr "Scaricamento di alcuni file fallito" -#: cmdline/apt-get.cc:1111 cmdline/apt-get.cc:2530 cmdline/apt-shell.cc:1215 +#: cmdline/apt-get.cc:1111 cmdline/apt-get.cc:2554 cmdline/apt-shell.cc:1215 msgid "Download complete and in download only mode" msgstr "" @@ -653,13 +654,13 @@ msgstr "Impossible correggere i pacchetti persi." msgid "Aborting Install." msgstr "Installazione in fase di interruzione." -#: cmdline/apt-get.cc:1202 cmdline/apt-get.cc:2526 +#: cmdline/apt-get.cc:1202 cmdline/apt-get.cc:2550 msgid "Failed to fetch some archives." msgstr "Impossibile recuperare alcuni archivi." -#: cmdline/apt-get.cc:1296 cmdline/apt-get.cc:1895 cmdline/apt-get.cc:1958 -#: cmdline/apt-get.cc:1993 cmdline/apt-shell.cc:1365 cmdline/apt-shell.cc:2033 -#: cmdline/apt-shell.cc:2068 +#: cmdline/apt-get.cc:1296 cmdline/apt-get.cc:1919 cmdline/apt-get.cc:1982 +#: cmdline/apt-get.cc:2017 cmdline/apt-shell.cc:1365 cmdline/apt-shell.cc:2054 +#: cmdline/apt-shell.cc:2089 #, fuzzy, c-format msgid "Selecting %s for '%s'\n" msgstr "Nota, selezionando " @@ -748,32 +749,32 @@ msgstr "" msgid "Selected version %s for %s\n" msgstr "Nota, selezionando " -#: cmdline/apt-get.cc:1613 +#: cmdline/apt-get.cc:1625 msgid "The update command takes no arguments" msgstr "" -#: cmdline/apt-get.cc:1636 cmdline/apt-shell.cc:1704 +#: cmdline/apt-get.cc:1648 cmdline/apt-shell.cc:1716 #, fuzzy, c-format msgid "Sources list %s could not be read" msgstr "Non Х possibile leggere la lista delle fonti." -#: cmdline/apt-get.cc:1639 cmdline/apt-shell.cc:1707 +#: cmdline/apt-get.cc:1651 cmdline/apt-shell.cc:1719 #, c-format msgid "Sources list %s doesn't exist" msgstr "" -#: cmdline/apt-get.cc:1652 cmdline/apt-shell.cc:1719 +#: cmdline/apt-get.cc:1664 cmdline/apt-shell.cc:1731 msgid "Unable to lock the list directory" msgstr "Impossibile bloccare la directory di lista" -#: cmdline/apt-get.cc:1684 cmdline/apt-shell.cc:1749 +#: cmdline/apt-get.cc:1696 cmdline/apt-shell.cc:1761 msgid "" "Release files for some repositories could not be retrieved or authenticated. " "Such repositories are being ignored." msgstr "" # o MD5sum, come in 1051? -#: cmdline/apt-get.cc:1743 cmdline/apt-shell.cc:1802 +#: cmdline/apt-get.cc:1764 cmdline/apt-shell.cc:1823 msgid "" "Some index files failed to download, they have been ignored, or old ones " "used instead." @@ -781,28 +782,28 @@ msgstr "" "Lo scaricamento di alcuni archivi di indice non Х riuscito, sono stati " "ignorati, o al loro posto sono stati utilizzati i vecchi." -#: cmdline/apt-get.cc:1762 cmdline/apt-shell.cc:1831 +#: cmdline/apt-get.cc:1783 cmdline/apt-shell.cc:1852 msgid "Internal Error, AllUpgrade broke stuff" msgstr "Errore interno, AllUpgrade si Х rotto" -#: cmdline/apt-get.cc:1856 cmdline/apt-get.cc:1873 cmdline/apt-shell.cc:1933 -#: cmdline/apt-shell.cc:1950 +#: cmdline/apt-get.cc:1880 cmdline/apt-get.cc:1897 cmdline/apt-shell.cc:1954 +#: cmdline/apt-shell.cc:1971 #, fuzzy, c-format msgid "Couldn't parse name '%s'" msgstr "Il pacchetto %s non Х stato trovato" -#: cmdline/apt-get.cc:1968 cmdline/apt-get.cc:2007 cmdline/apt-shell.cc:2043 -#: cmdline/apt-shell.cc:2083 +#: cmdline/apt-get.cc:1992 cmdline/apt-get.cc:2031 cmdline/apt-shell.cc:2064 +#: cmdline/apt-shell.cc:2104 #, c-format msgid "Couldn't find package %s" msgstr "Il pacchetto %s non Х stato trovato" # o regex, come in 1066? -#: cmdline/apt-get.cc:2037 +#: cmdline/apt-get.cc:2061 msgid "You might want to run `apt-get -f install' to correct these:" msgstr "Potresti eseguire `apt-get -f install' per correggerli:" -#: cmdline/apt-get.cc:2040 +#: cmdline/apt-get.cc:2064 msgid "" "Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a " "solution)." @@ -810,7 +811,7 @@ msgstr "" "Dipendenze non soddisfatte. Prova 'apt-get -f install' senza pacchetti (o " "specifica una soluzione)." -#: cmdline/apt-get.cc:2062 cmdline/apt-shell.cc:2146 +#: cmdline/apt-get.cc:2086 cmdline/apt-shell.cc:2167 msgid "" "Some packages could not be installed. This may mean that you have\n" "requested an impossible situation or if you are using the unstable\n" @@ -818,7 +819,7 @@ msgid "" "or been moved out of Incoming." msgstr "" -#: cmdline/apt-get.cc:2070 cmdline/apt-shell.cc:2154 +#: cmdline/apt-get.cc:2094 cmdline/apt-shell.cc:2175 #, fuzzy msgid "" "Since you only requested a single operation it is extremely likely that\n" @@ -827,130 +828,130 @@ msgid "" msgstr "" "Dal momento che hai richiesto un' operazione singola Х molto probabile che" -#: cmdline/apt-get.cc:2075 cmdline/apt-shell.cc:2159 +#: cmdline/apt-get.cc:2099 cmdline/apt-shell.cc:2180 msgid "The following information may help to resolve the situation:" msgstr "La seguente informazione ti puР aiutare a risolvere il problema:" -#: cmdline/apt-get.cc:2078 cmdline/apt-shell.cc:2163 +#: cmdline/apt-get.cc:2102 cmdline/apt-shell.cc:2184 #, fuzzy msgid "Broken packages" msgstr "Spiacente, pacchetti danneggiati" -#: cmdline/apt-get.cc:2104 +#: cmdline/apt-get.cc:2128 msgid "The following extra packages will be installed:" msgstr "Verranno installati i seguenti pacchetti extra: " -#: cmdline/apt-get.cc:2184 +#: cmdline/apt-get.cc:2208 #, fuzzy msgid "Suggested packages:" msgstr "Pacchetto: " -#: cmdline/apt-get.cc:2185 +#: cmdline/apt-get.cc:2209 #, fuzzy msgid "Recommended packages:" msgstr "Spiacente, pacchetti danneggiati" -#: cmdline/apt-get.cc:2209 cmdline/apt-shell.cc:2190 +#: cmdline/apt-get.cc:2233 cmdline/apt-shell.cc:2211 msgid "Calculating Upgrade... " msgstr "Calcolo dell'aggiornamento... " -#: cmdline/apt-get.cc:2212 cmdline/apt-shell.cc:2193 methods/connect.cc:102 +#: cmdline/apt-get.cc:2236 cmdline/apt-shell.cc:2214 methods/connect.cc:102 #: methods/ftp.cc:706 msgid "Failed" msgstr "Fallito" -#: cmdline/apt-get.cc:2228 cmdline/apt-shell.cc:2205 +#: cmdline/apt-get.cc:2252 cmdline/apt-shell.cc:2226 msgid "Done" msgstr "Fatto" -#: cmdline/apt-get.cc:2405 +#: cmdline/apt-get.cc:2429 msgid "Must specify at least one package to fetch source for" msgstr "Devi specificare almeno un pacchetto per cui recuperare il sorgente" -#: cmdline/apt-get.cc:2432 cmdline/apt-get.cc:2670 cmdline/apt-shell.cc:2432 +#: cmdline/apt-get.cc:2456 cmdline/apt-get.cc:2696 cmdline/apt-shell.cc:2453 #, c-format msgid "Unable to find a source package for %s" msgstr "Impossibile trovare un pacchetto sorgente per %s" -#: cmdline/apt-get.cc:2481 +#: cmdline/apt-get.cc:2505 #, fuzzy, c-format msgid "You don't have enough free space in %s" msgstr "Peccato, non hai spazio sufficiente in %s" -#: cmdline/apt-get.cc:2486 +#: cmdline/apt-get.cc:2510 #, fuzzy, c-format msgid "Need to get %sB/%sB of source archives.\n" msgstr " di archivi sorgente." -#: cmdline/apt-get.cc:2489 +#: cmdline/apt-get.cc:2513 #, fuzzy, c-format msgid "Need to get %sB of source archives.\n" msgstr " di archivi sorgente." -#: cmdline/apt-get.cc:2495 +#: cmdline/apt-get.cc:2519 #, fuzzy, c-format msgid "Fetch Source %s\n" msgstr "Download del sorgente" -#: cmdline/apt-get.cc:2560 cmdline/apt-get.cc:2611 +#: cmdline/apt-get.cc:2584 cmdline/apt-get.cc:2635 #, fuzzy, c-format msgid "Build command '%s' failed.\n" msgstr "Comando di Build '" -#: cmdline/apt-get.cc:2572 cmdline/apt-get.cc:2594 +#: cmdline/apt-get.cc:2596 cmdline/apt-get.cc:2618 #, fuzzy, c-format msgid "Unpack command '%s' failed.\n" msgstr "Comando di spacchettamento '" -#: cmdline/apt-get.cc:2582 +#: cmdline/apt-get.cc:2606 #, fuzzy, c-format msgid "Skipping unpack of already unpacked source in %s\n" msgstr "Non spacchetto. Sorgente gia' scompattato in " -#: cmdline/apt-get.cc:2631 +#: cmdline/apt-get.cc:2655 msgid "Child process failed" msgstr "Fallito il processo figlio" -#: cmdline/apt-get.cc:2647 cmdline/apt-shell.cc:2409 +#: cmdline/apt-get.cc:2673 cmdline/apt-shell.cc:2430 #, fuzzy msgid "Must specify at least one package to check builddeps for" msgstr "Devi specificare almeno un pacchetto per cui recuperare il sorgente" -#: cmdline/apt-get.cc:2675 cmdline/apt-shell.cc:2437 +#: cmdline/apt-get.cc:2701 cmdline/apt-shell.cc:2458 #, fuzzy, c-format msgid "Unable to get build-dependency information for %s" msgstr "Impossibile correggere le dipendenze" -#: cmdline/apt-get.cc:2695 cmdline/apt-shell.cc:2457 +#: cmdline/apt-get.cc:2721 cmdline/apt-shell.cc:2478 #, c-format msgid "%s has no build depends.\n" msgstr "" -#: cmdline/apt-get.cc:2766 cmdline/apt-shell.cc:2528 +#: cmdline/apt-get.cc:2792 cmdline/apt-shell.cc:2549 #, c-format msgid "" "%s dependency for %s cannot be satisfied because the package %s cannot be " "found" msgstr "" -#: cmdline/apt-get.cc:2818 cmdline/apt-shell.cc:2580 +#: cmdline/apt-get.cc:2844 cmdline/apt-shell.cc:2601 #, c-format msgid "" "%s dependency for %s cannot be satisfied because no available versions of " "package %s can satisfy version requirements" msgstr "" -#: cmdline/apt-get.cc:2853 cmdline/apt-shell.cc:2614 +#: cmdline/apt-get.cc:2879 cmdline/apt-shell.cc:2635 #, c-format msgid "Failed to satisfy %s dependency for %s: Installed package %s is too new" msgstr "" -#: cmdline/apt-get.cc:2878 cmdline/apt-shell.cc:2639 +#: cmdline/apt-get.cc:2904 cmdline/apt-shell.cc:2660 #, fuzzy, c-format msgid "Failed to satisfy %s dependency for %s: %s" msgstr "Impossibile correggere le dipendenze" -#: cmdline/apt-get.cc:2892 cmdline/apt-shell.cc:2653 +#: cmdline/apt-get.cc:2918 cmdline/apt-shell.cc:2674 #, fuzzy, c-format msgid "" "Some broken packages were found while trying to process build-dependencies " @@ -958,16 +959,16 @@ msgid "" "You might want to run `apt-get -f install' to correct these." msgstr "Potresti eseguire `apt-get -f install' per correggerli." -#: cmdline/apt-get.cc:2897 +#: cmdline/apt-get.cc:2923 #, fuzzy msgid "Failed to process build dependencies" msgstr "Impossibile correggere le dipendenze" -#: cmdline/apt-get.cc:2964 cmdline/apt-shell.cc:3699 +#: cmdline/apt-get.cc:2990 cmdline/apt-shell.cc:3723 msgid "Supported Modules:" msgstr "" -#: cmdline/apt-get.cc:3005 +#: cmdline/apt-get.cc:3031 msgid "" "Usage: apt-get [options] command\n" " apt-get [options] install|remove pkg1 [pkg2 ...]\n" @@ -990,7 +991,7 @@ msgid "" " check - Verify that there are no broken dependencies\n" msgstr "" -#: cmdline/apt-get.cc:3031 +#: cmdline/apt-get.cc:3059 msgid "" "\n" "Options:\n" @@ -1013,18 +1014,18 @@ msgid "" " This APT has Super Cow Powers.\n" msgstr "" -#: cmdline/apt-shell.cc:151 cmdline/apt-shell.cc:4421 +#: cmdline/apt-shell.cc:151 cmdline/apt-shell.cc:4445 #, fuzzy msgid "There are broken packages. " msgstr "Spiacente, pacchetti danneggiati" -#: cmdline/apt-shell.cc:152 cmdline/apt-shell.cc:2116 -#: cmdline/apt-shell.cc:4422 +#: cmdline/apt-shell.cc:152 cmdline/apt-shell.cc:2137 +#: cmdline/apt-shell.cc:4446 msgid "Run `check' to see them." msgstr "" -#: cmdline/apt-shell.cc:153 cmdline/apt-shell.cc:2117 -#: cmdline/apt-shell.cc:4423 +#: cmdline/apt-shell.cc:153 cmdline/apt-shell.cc:2138 +#: cmdline/apt-shell.cc:4447 msgid "You can try to fix them automatically with `install -f'." msgstr "" @@ -1071,32 +1072,32 @@ msgstr "" msgid "You might want to run `install -f' to correct these." msgstr "Potresti eseguire `apt-get -f install' per correggerli." -#: cmdline/apt-shell.cc:1818 cmdline/apt-shell.cc:1856 -#: cmdline/apt-shell.cc:2181 cmdline/apt-shell.cc:2222 -#: cmdline/apt-shell.cc:2399 cmdline/apt-shell.cc:4011 +#: cmdline/apt-shell.cc:1839 cmdline/apt-shell.cc:1877 +#: cmdline/apt-shell.cc:2202 cmdline/apt-shell.cc:2243 +#: cmdline/apt-shell.cc:2420 cmdline/apt-shell.cc:4035 msgid "You have no permissions for that" msgstr "" -#: cmdline/apt-shell.cc:2115 +#: cmdline/apt-shell.cc:2136 #, fuzzy msgid "There are still broken packages. " msgstr "Spiacente, pacchetti danneggiati" -#: cmdline/apt-shell.cc:3528 +#: cmdline/apt-shell.cc:3552 msgid "Name" msgstr "" -#: cmdline/apt-shell.cc:3529 +#: cmdline/apt-shell.cc:3553 #, fuzzy msgid "Installed" msgstr " [Installato]" -#: cmdline/apt-shell.cc:3530 +#: cmdline/apt-shell.cc:3554 #, fuzzy msgid "Candidate" msgstr "Versioni proposte" -#: cmdline/apt-shell.cc:3740 +#: cmdline/apt-shell.cc:3764 msgid "" "\n" "Main commands:\n" @@ -1129,7 +1130,7 @@ msgid "" " This APT has Super Cow Powers.\n" msgstr "" -#: cmdline/apt-shell.cc:3782 +#: cmdline/apt-shell.cc:3806 msgid "" "Usage: install [options] pkg1[=ver] [pkg2 ...]\n" "\n" @@ -1146,7 +1147,7 @@ msgid "" "\n" msgstr "" -#: cmdline/apt-shell.cc:3800 +#: cmdline/apt-shell.cc:3824 msgid "" "Usage: remove [options] pkg1 [pkg2 ...]\n" "\n" @@ -1163,7 +1164,7 @@ msgid "" "\n" msgstr "" -#: cmdline/apt-shell.cc:3818 +#: cmdline/apt-shell.cc:3842 msgid "" "Usage: keep [options] pkg1 [pkg2 ...]\n" "\n" @@ -1181,7 +1182,7 @@ msgid "" "\n" msgstr "" -#: cmdline/apt-shell.cc:3837 +#: cmdline/apt-shell.cc:3861 msgid "" "Usage: upgrade [options]\n" "\n" @@ -1197,7 +1198,7 @@ msgid "" "\n" msgstr "" -#: cmdline/apt-shell.cc:3853 +#: cmdline/apt-shell.cc:3877 msgid "" "Usage: dist-upgrade [options]\n" "\n" @@ -1213,7 +1214,7 @@ msgid "" "\n" msgstr "" -#: cmdline/apt-shell.cc:3869 +#: cmdline/apt-shell.cc:3893 msgid "" "Usage: showpkg [options] pkg1 [pkg2 ...]\n" "\n" @@ -1225,7 +1226,7 @@ msgid "" "\n" msgstr "" -#: cmdline/apt-shell.cc:3882 +#: cmdline/apt-shell.cc:3906 msgid "" "Usage: show [options] pkg1 [pkg2 ...]\n" "\n" @@ -1238,7 +1239,7 @@ msgid "" "\n" msgstr "" -#: cmdline/apt-shell.cc:3896 +#: cmdline/apt-shell.cc:3920 msgid "" "Usage: depends [options] pkg1 [pkg2 ...]\n" "\n" @@ -1250,7 +1251,7 @@ msgid "" "\n" msgstr "" -#: cmdline/apt-shell.cc:3909 +#: cmdline/apt-shell.cc:3933 msgid "" "Usage: whatdepends [options] pkg1 [pkg2 ...]\n" "\n" @@ -1262,7 +1263,7 @@ msgid "" "\n" msgstr "" -#: cmdline/apt-shell.cc:3922 +#: cmdline/apt-shell.cc:3946 msgid "" "Usage: unmet [options]\n" "\n" @@ -1274,7 +1275,7 @@ msgid "" "\n" msgstr "" -#: cmdline/apt-shell.cc:3935 +#: cmdline/apt-shell.cc:3959 msgid "" "Usage: search [options] <regex>\n" "\n" @@ -1289,7 +1290,7 @@ msgid "" "\n" msgstr "" -#: cmdline/apt-shell.cc:3952 +#: cmdline/apt-shell.cc:3976 msgid "" "Usage: list/ls [options] [pattern ...]\n" "\n" @@ -1306,7 +1307,7 @@ msgid "" "\n" msgstr "" -#: cmdline/apt-shell.cc:3970 +#: cmdline/apt-shell.cc:3994 msgid "" "Usage: commit [options]\n" "\n" @@ -1318,7 +1319,7 @@ msgid "" "\n" msgstr "" -#: cmdline/apt-shell.cc:3983 +#: cmdline/apt-shell.cc:4007 msgid "" "Usage: script [options] script1 [script2]\n" "\n" @@ -1330,35 +1331,35 @@ msgid "" "\n" msgstr "" -#: cmdline/apt-shell.cc:3994 +#: cmdline/apt-shell.cc:4018 msgid "No help for that" msgstr "" -#: cmdline/apt-shell.cc:4431 +#: cmdline/apt-shell.cc:4455 msgid "Welcome to the APT shell. Type \"help\" for more information." msgstr "" -#: cmdline/apt-shell.cc:4471 +#: cmdline/apt-shell.cc:4495 msgid "Exceeded maximum number of command arguments" msgstr "" -#: apt-pkg/contrib/cdromutl.cc:55 +#: apt-pkg/contrib/cdromutl.cc:60 #, fuzzy, c-format msgid "Unable to stat the mount point %s" msgstr "Impossibile leggere %s." -#: apt-pkg/contrib/cdromutl.cc:149 apt-pkg/acquire.cc:418 apt-pkg/clean.cc:44 +#: apt-pkg/contrib/cdromutl.cc:174 apt-pkg/acquire.cc:418 apt-pkg/clean.cc:44 #, c-format msgid "Unable to change to %s" msgstr "Impossibile cambiare a %s" -#: apt-pkg/contrib/cdromutl.cc:153 apt-pkg/contrib/configuration.cc:735 -#: apt-pkg/acquire.cc:412 apt-pkg/clean.cc:38 apt-pkg/sourcelist.cc:424 +#: apt-pkg/contrib/cdromutl.cc:178 apt-pkg/contrib/configuration.cc:735 +#: apt-pkg/acquire.cc:412 apt-pkg/clean.cc:38 apt-pkg/sourcelist.cc:427 #, c-format msgid "Unable to read %s" msgstr "Impossibile leggere %s" -#: apt-pkg/contrib/cdromutl.cc:190 +#: apt-pkg/contrib/cdromutl.cc:215 #, fuzzy msgid "Failed to stat the cdrom" msgstr "Impossibile montare CD-ROM." @@ -1489,12 +1490,12 @@ msgstr "" msgid "Sub-process %s received a segmentation fault." msgstr "" -#: apt-pkg/contrib/fileutl.cc:374 apt-pkg/rpm/rpmpm.cc:618 +#: apt-pkg/contrib/fileutl.cc:374 apt-pkg/rpm/rpmpm.cc:623 #, c-format msgid "Sub-process %s returned an error code (%u)" msgstr "" -#: apt-pkg/contrib/fileutl.cc:376 apt-pkg/rpm/rpmpm.cc:621 +#: apt-pkg/contrib/fileutl.cc:376 apt-pkg/rpm/rpmpm.cc:626 #, fuzzy, c-format msgid "Sub-process %s exited unexpectedly" msgstr "Il metodo %s Х terminato inaspettatamente!" @@ -1569,7 +1570,7 @@ msgid "could not rewind RPMFileHandler" msgstr "Impossibile aprire l'indice hash" #: apt-pkg/rpm/rpmhandler.cc:160 apt-pkg/rpm/rpmhandler.cc:167 -#: apt-pkg/rpm/rpmpm.cc:680 apt-pkg/rpm/rpmpm.cc:685 +#: apt-pkg/rpm/rpmpm.cc:685 apt-pkg/rpm/rpmpm.cc:690 #, fuzzy, c-format msgid "Failed reading file %s" msgstr "Recupero dell' archivio hash fallito:" @@ -1644,7 +1645,7 @@ msgid "" "RPM::Allow-Duplicated-Warning \"false\";\n" msgstr "" -#: apt-pkg/rpm/rpmlistparser.cc:685 +#: apt-pkg/rpm/rpmlistparser.cc:680 msgid "Bad NotAutomatic flag" msgstr "" @@ -1701,67 +1702,67 @@ msgstr "Impossibile creare una pipe IPC per il subprocesso" msgid "Failure running script %s" msgstr "" -#: apt-pkg/rpm/rpmpm.cc:309 +#: apt-pkg/rpm/rpmpm.cc:312 msgid "Unknown pkgRPMPM operation." msgstr "" -#: apt-pkg/rpm/rpmpm.cc:544 +#: apt-pkg/rpm/rpmpm.cc:549 msgid "Executing RPM (" msgstr "" -#: apt-pkg/rpm/rpmpm.cc:584 +#: apt-pkg/rpm/rpmpm.cc:589 #, fuzzy msgid "Could not exec " msgstr "Il pacchetto %s non Х stato trovato" -#: apt-pkg/rpm/rpmpm.cc:599 +#: apt-pkg/rpm/rpmpm.cc:604 #, fuzzy msgid "Couldn't wait for subprocess" msgstr "Il pacchetto %s non Х stato trovato" -#: apt-pkg/rpm/rpmpm.cc:615 +#: apt-pkg/rpm/rpmpm.cc:620 #, c-format msgid "Sub-process %s recieved a segmentation fault." msgstr "" -#: apt-pkg/rpm/rpmpm.cc:625 apt-pkg/rpm/rpmpm.cc:873 +#: apt-pkg/rpm/rpmpm.cc:630 apt-pkg/rpm/rpmpm.cc:878 #, fuzzy msgid "Done." msgstr "Fatto" -#: apt-pkg/rpm/rpmpm.cc:676 +#: apt-pkg/rpm/rpmpm.cc:681 #, fuzzy, c-format msgid "Failed opening %s" msgstr "Problema nell'apertura di %s" -#: apt-pkg/rpm/rpmpm.cc:689 apt-pkg/rpm/rpmpm.cc:713 +#: apt-pkg/rpm/rpmpm.cc:694 apt-pkg/rpm/rpmpm.cc:718 #, fuzzy, c-format msgid "Failed adding %s to transaction %s" msgstr "Impossibile rinominare %s in %s" -#: apt-pkg/rpm/rpmpm.cc:765 apt-pkg/rpm/rpmpm.cc:775 +#: apt-pkg/rpm/rpmpm.cc:770 apt-pkg/rpm/rpmpm.cc:780 #, fuzzy msgid "Could not open RPM database" msgstr "Impossibile aprire l'indice hash" -#: apt-pkg/rpm/rpmpm.cc:812 apt-pkg/rpm/rpmpm.cc:825 +#: apt-pkg/rpm/rpmpm.cc:817 apt-pkg/rpm/rpmpm.cc:830 msgid "Transaction set check failed" msgstr "" -#: apt-pkg/rpm/rpmpm.cc:845 +#: apt-pkg/rpm/rpmpm.cc:850 #, c-format msgid "Ordering failed for %d packages" msgstr "" -#: apt-pkg/rpm/rpmpm.cc:849 +#: apt-pkg/rpm/rpmpm.cc:854 msgid "Committing changes..." msgstr "" -#: apt-pkg/rpm/rpmpm.cc:865 +#: apt-pkg/rpm/rpmpm.cc:870 msgid "Error while running transaction" msgstr "" -#: apt-pkg/rpm/rpmpm.cc:871 +#: apt-pkg/rpm/rpmpm.cc:876 #, fuzzy msgid "Some errors occurred while running transaction" msgstr "Errore nel processare %s (NewVersion1)" @@ -1776,12 +1777,16 @@ msgstr "Impossibile attendere il sottoprocesso" msgid "error parsing source list %s" msgstr "Scrittura della nuova lista di sorgenti" -#: apt-pkg/rpm/rpmsystem.cc:410 apt-pkg/pkgcachegen.cc:714 +#: apt-pkg/rpm/rpmsystem.cc:411 apt-pkg/pkgcachegen.cc:714 #: apt-pkg/pkgcachegen.cc:741 apt-pkg/pkgcachegen.cc:783 #: apt-pkg/pkgcachegen.cc:788 apt-pkg/pkgcachegen.cc:992 msgid "Reading Package Lists" msgstr "Lettura della lista di pacchetti" +#: apt-pkg/rpm/rpmshowprogress.h:121 apt-pkg/rpm/rpmshowprogress.h:123 +msgid "Preparing..." +msgstr "" + #: apt-pkg/acquire.cc:61 #, c-format msgid "Lists directory %spartial is missing." @@ -2141,37 +2146,37 @@ msgstr "Linea %u errata nella lista di sorgenti %s (URI)" msgid "Malformed line %lu in source list %s (Absolute dist)" msgstr "Linea %u errata nella lista di sorgenti %s (dist assoluta)" -#: apt-pkg/sourcelist.cc:116 +#: apt-pkg/sourcelist.cc:119 #, fuzzy, c-format msgid "Malformed line %lu in source list %s (dist parse)" msgstr "Linea errata %u nella lista di sorgenti %s (analisi di dist)" -#: apt-pkg/sourcelist.cc:206 apt-pkg/sourcelist.cc:230 +#: apt-pkg/sourcelist.cc:209 apt-pkg/sourcelist.cc:233 #, fuzzy, c-format msgid "Vendor block %s is invalid" msgstr "Il blocco %s non Х valido" -#: apt-pkg/sourcelist.cc:314 +#: apt-pkg/sourcelist.cc:317 #, fuzzy, c-format msgid "Line %u too long in source list %s." msgstr "Linea %u errata nella lista di sorgenti %s (URI)" -#: apt-pkg/sourcelist.cc:334 +#: apt-pkg/sourcelist.cc:337 #, c-format msgid "Malformed line %u in source list %s (type)" msgstr "Linea %u errata nella lista di sorgenti %s (tipo)" -#: apt-pkg/sourcelist.cc:338 +#: apt-pkg/sourcelist.cc:341 #, c-format msgid "Type '%s' is not known in on line %u in source list %s" msgstr "" -#: apt-pkg/sourcelist.cc:347 apt-pkg/sourcelist.cc:350 +#: apt-pkg/sourcelist.cc:350 apt-pkg/sourcelist.cc:353 #, fuzzy, c-format msgid "Malformed line %u in source list %s (vendor id)" msgstr "Linea %u errata nella lista di sorgenti %s (ID del produttore)" -#: apt-pkg/sourcelist.cc:364 +#: apt-pkg/sourcelist.cc:367 #, c-format msgid "Unknown vendor ID '%s' in line %u of source list %s" msgstr "" @@ -2192,22 +2197,22 @@ msgstr "Impossibile analizzare il pacchetto %s (1)" msgid "Unable to parse package file %s (2)" msgstr "Impossibile analizzare il pacchetto %s (2)" -#: methods/cdrom.cc:169 +#: methods/cdrom.cc:202 msgid "" "Please use apt-cdrom to make this CD recognized by APT. apt-get update " "cannot be used to add new CDs" msgstr "" -#: methods/cdrom.cc:177 methods/cdrom.cc:215 +#: methods/cdrom.cc:210 methods/cdrom.cc:248 msgid "Wrong CD" msgstr "" -#: methods/cdrom.cc:210 +#: methods/cdrom.cc:243 #, c-format msgid "Unable to unmount the CD-ROM in %s, it may still be in use." msgstr "" -#: methods/cdrom.cc:233 methods/file.cc:82 +#: methods/cdrom.cc:266 methods/file.cc:82 msgid "File not found" msgstr "" diff --git a/apt/po/pt_BR.po b/apt/po/pt_BR.po index 7e85395..0c26c78 100644 --- a/apt/po/pt_BR.po +++ b/apt/po/pt_BR.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: apt\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2004-03-16 16:30-0300\n" +"POT-Creation-Date: 2004-05-20 16:12-0300\n" "PO-Revision-Date: 2001-12-12 17:50-0200\n" "Last-Translator: Gustavo Niemeyer <niemeyer@conectiva.com>\n" "Language-Team: Brazilian Portuguese <ldp-br@bazar.conectiva.com.br>\n" @@ -51,17 +51,17 @@ msgstr "" " '%s'\n" "no drive '%s' e pressione enter\n" -#: cmdline/apt-cache.cc:157 cmdline/apt-shell.cc:3188 +#: cmdline/apt-cache.cc:157 cmdline/apt-shell.cc:3209 #, c-format msgid "Package %s version %s has an unmet dep:\n" msgstr "O pacote %s versЦo %s possui uma dependЙncia nЦo resolvida:\n" #: cmdline/apt-cache.cc:197 cmdline/apt-cache.cc:565 cmdline/apt-cache.cc:660 #: cmdline/apt-cache.cc:750 cmdline/apt-cache.cc:1024 -#: cmdline/apt-cache.cc:1242 cmdline/apt-cache.cc:1621 -#: cmdline/apt-cache.cc:1772 cmdline/apt-shell.cc:2740 -#: cmdline/apt-shell.cc:2838 cmdline/apt-shell.cc:2931 -#: cmdline/apt-shell.cc:3231 cmdline/apt-shell.cc:3647 +#: cmdline/apt-cache.cc:1242 cmdline/apt-cache.cc:1624 +#: cmdline/apt-cache.cc:1775 cmdline/apt-shell.cc:2761 +#: cmdline/apt-shell.cc:2859 cmdline/apt-shell.cc:2952 +#: cmdline/apt-shell.cc:3252 cmdline/apt-shell.cc:3671 #, c-format msgid "Unable to locate package %s" msgstr "ImpossМvel localizar o pacote %s" @@ -123,72 +123,72 @@ msgid "Total Space Accounted for: " msgstr "EspaГo Total Contabilizado: " #: cmdline/apt-cache.cc:484 cmdline/apt-cache.cc:1452 -#: cmdline/apt-shell.cc:3309 +#: cmdline/apt-shell.cc:3330 #, c-format msgid "Package file %s is out of sync." msgstr "O arquivo de pacotes %s estА fora de sincronia." -#: cmdline/apt-cache.cc:1495 cmdline/apt-shell.cc:3355 +#: cmdline/apt-cache.cc:1495 cmdline/apt-shell.cc:3376 msgid "You must give exactly one pattern" msgstr "VocЙ deve fornecer exatamente um padrЦo" -#: cmdline/apt-cache.cc:1649 cmdline/apt-shell.cc:3675 +#: cmdline/apt-cache.cc:1652 cmdline/apt-shell.cc:3699 msgid "No packages found" msgstr "Nenhum pacote encontrado" -#: cmdline/apt-cache.cc:1726 +#: cmdline/apt-cache.cc:1729 msgid "Package Files:" msgstr "Arquivos de Pacotes:" -#: cmdline/apt-cache.cc:1733 cmdline/apt-cache.cc:1819 +#: cmdline/apt-cache.cc:1736 cmdline/apt-cache.cc:1822 msgid "Cache is out of sync, can't x-ref a package file" msgstr "Cache fora de sincronia, nЦo И possМvel referenciar arquivo de pacotes" -#: cmdline/apt-cache.cc:1734 +#: cmdline/apt-cache.cc:1737 #, c-format msgid "%4i %s\n" msgstr "%4i %s\n" -#: cmdline/apt-cache.cc:1746 +#: cmdline/apt-cache.cc:1749 msgid "Pinned Packages:" msgstr "Pacotes Pinados:" -#: cmdline/apt-cache.cc:1758 cmdline/apt-cache.cc:1799 +#: cmdline/apt-cache.cc:1761 cmdline/apt-cache.cc:1802 msgid "(not found)" msgstr "(nЦo encontrado)" -#: cmdline/apt-cache.cc:1779 +#: cmdline/apt-cache.cc:1782 msgid " Installed: " msgstr " Instalado: " -#: cmdline/apt-cache.cc:1781 cmdline/apt-cache.cc:1789 +#: cmdline/apt-cache.cc:1784 cmdline/apt-cache.cc:1792 msgid "(none)" msgstr "(nenhum)" -#: cmdline/apt-cache.cc:1786 +#: cmdline/apt-cache.cc:1789 msgid " Candidate: " msgstr " Candidato: " -#: cmdline/apt-cache.cc:1796 +#: cmdline/apt-cache.cc:1799 msgid " Package Pin: " msgstr " Pin do Pacote: " -#: cmdline/apt-cache.cc:1805 +#: cmdline/apt-cache.cc:1808 msgid " Version Table:" msgstr " Tabela de VersЦo: " -#: cmdline/apt-cache.cc:1820 +#: cmdline/apt-cache.cc:1823 #, c-format msgid " %4i %s\n" msgstr " %4i %s\n" -#: cmdline/apt-cache.cc:1847 cmdline/apt-cdrom.cc:847 cmdline/apt-config.cc:72 -#: cmdline/apt-get.cc:2959 cmdline/apt-shell.cc:3694 +#: cmdline/apt-cache.cc:1850 cmdline/apt-cdrom.cc:847 cmdline/apt-config.cc:72 +#: cmdline/apt-get.cc:2985 cmdline/apt-shell.cc:3718 #, c-format msgid "%s %s for %s %s compiled on %s %s\n" msgstr "%s %s para %s %s compilado em %s %s\n" -#: cmdline/apt-cache.cc:1854 +#: cmdline/apt-cache.cc:1857 msgid "" "Usage: apt-cache [options] command\n" " apt-cache [options] add file1 [file2 ...]\n" @@ -243,7 +243,7 @@ msgstr "" " xvcg - Gera grafos dos pacotes para o xvcg\n" " policy - Mostra as configuraГУes de polМtica\n" -#: cmdline/apt-cache.cc:1884 +#: cmdline/apt-cache.cc:1889 msgid "" "\n" "Options:\n" @@ -272,7 +272,7 @@ msgstr "" msgid "Failed to rename %s.new to %s" msgstr "Falha ao obter %s %s\n" -#: cmdline/apt-cdrom.cc:425 apt-pkg/sourcelist.cc:297 +#: cmdline/apt-cdrom.cc:425 apt-pkg/sourcelist.cc:300 #, c-format msgid "Opening %s" msgstr "Abrindo %s" @@ -284,96 +284,92 @@ msgstr "Problema ao abrir %s" #: cmdline/apt-cdrom.cc:571 cmdline/apt-cdrom.cc:812 msgid "Using CD-ROM mount point " -msgstr "" +msgstr "Usando o ponto de montagem " -#: cmdline/apt-cdrom.cc:579 cmdline/apt-cdrom.cc:834 methods/cdrom.cc:160 +#: cmdline/apt-cdrom.cc:579 cmdline/apt-cdrom.cc:834 methods/cdrom.cc:81 +#: methods/cdrom.cc:193 #, c-format msgid "Unable to read the cdrom database %s" msgstr "ImpossМvel ler a base de dados de cdrom %s" #: cmdline/apt-cdrom.cc:596 msgid "Unmounting CD-ROM" -msgstr "" +msgstr "Desmontando o CD-ROM" #: cmdline/apt-cdrom.cc:600 -#, fuzzy msgid "Please insert a Disc in the drive and press enter" -msgstr "" -"Troca de MМdia: Por favor insira o disco nomeado\n" -" '%s'\n" -"no drive '%s' e pressione enter\n" +msgstr "Por favor, insira um disco no drive e pressione enter" #: cmdline/apt-cdrom.cc:601 cmdline/apt-cdrom.cc:813 msgid "Mounting CD-ROM" -msgstr "" +msgstr "Montando o CD-ROM" #: cmdline/apt-cdrom.cc:603 cmdline/apt-cdrom.cc:815 -#, fuzzy msgid "Failed to mount the cdrom." -msgstr "ImpossМvel rodar stat no cdrom" +msgstr "ImpossМvel montar o cdrom." #: cmdline/apt-cdrom.cc:607 cmdline/apt-cdrom.cc:818 msgid "Identifying.. " -msgstr "" +msgstr "Identificando.. " #: cmdline/apt-cdrom.cc:627 msgid "Scanning Disc for index files.. " -msgstr "" +msgstr "Procurando arquivos de Мndice no disco.. " #: cmdline/apt-cdrom.cc:644 msgid "I found (binary):" -msgstr "" +msgstr "Encontrei (binАrio):" #: cmdline/apt-cdrom.cc:647 msgid "I found (source):" -msgstr "" +msgstr "Encontrei (fonte):" #: cmdline/apt-cdrom.cc:662 msgid "Found " -msgstr "" +msgstr "Encontrado(s) " #: cmdline/apt-cdrom.cc:662 -#, fuzzy msgid " package indexes and " -msgstr "Nenhum pacote encontrado" +msgstr " Мndices de pacotes e " #: cmdline/apt-cdrom.cc:663 msgid " source indexes." -msgstr "" +msgstr " Мndices de fontes." #: cmdline/apt-cdrom.cc:670 msgid "" "Unable to locate any package files, perhaps this is not an APT enabled disc" msgstr "" +"ImpossМvel localizar Мndices. Talvez esse nЦo seja um disco preparado para o " +"APT" #: cmdline/apt-cdrom.cc:694 msgid "Found label '" -msgstr "" +msgstr "Encontrado label '" #: cmdline/apt-cdrom.cc:703 msgid "Please provide a name for this Disc, such as 'Distribution Disk 1'" -msgstr "" +msgstr "Por favor, forneГa um nome para o Disco, como 'DistribuiГЦo Disco 1'" #: cmdline/apt-cdrom.cc:712 msgid "That is not a valid name, try again " -msgstr "" +msgstr "Esse nome nЦo И vАlido, tente novamente " #: cmdline/apt-cdrom.cc:726 -#, fuzzy msgid "This Disc is called:" -msgstr "mas %s estА instalado" +msgstr "Esse disco И chamado:" #: cmdline/apt-cdrom.cc:759 msgid "Source List entries for this Disc are:" -msgstr "" +msgstr "Entradas Source List para esse disco sЦo:" #: cmdline/apt-cdrom.cc:792 msgid "Repeat this process for the rest of the CDs in your set." -msgstr "" +msgstr "Repita esse processo para os demais CDs no seu conjunto." #: cmdline/apt-cdrom.cc:837 msgid "Stored Label: '" -msgstr "" +msgstr "Label armazenado: '" #: cmdline/apt-cdrom.cc:853 msgid "" @@ -398,6 +394,26 @@ msgid "" " -o=? Set an arbitary configuration option, eg -o dir::cache=/tmp\n" "See fstab(5)\n" msgstr "" +"Uso: apt-cdrom [opГУes] comando\n" +"\n" +"O apt-cdrom И uma ferramenta para adicionar CDROMs na lista de\n" +"fontes do APT. O ponto de montagem do CDROM e as informaГУes do\n" +"dispositivo sЦo obtidos dos arquivos apt.conf e /etc/fstab.\n" +"\n" +"Comandos:\n" +" add - Adiciona um CDROM\n" +" ident - Reporta a identidade de um CDROM\n" +"\n" +"OpГУes:\n" +" -h Esse texto de ajuda\n" +" -d Ponto de montagem do CDROM\n" +" -r Renomear um CDROM reconhecido\n" +" -m NЦo efetuar a montagem do dispositivo\n" +" -f Modo rАpido, nЦo verifica arquivos de pacotes\n" +" -a Modo de busca profunda\n" +" -c=? Ler o arquivo de configuraГЦo fornecido\n" +" -o=? Configurar uma opГЦo arbitrАria, ex. -o dir::cache=/tmp\n" +"Ver fstab(5)\n" #: cmdline/apt-config.cc:43 msgid "Arguments not in pairs" @@ -429,15 +445,15 @@ msgstr "" "\n" "OpГУes:\n" " -h Esse texto de ajuda.\n" -" -c=? Ler esse arquivo de configuraГЦo\n" +" -c=? Ler o arquivo de configuraГЦo fornecido\n" " -o=? Configurar uma opГЦo arbitrАria, ex. -o dir::cache=/tmp\n" #: cmdline/apt-get.cc:158 cmdline/apt-shell.cc:180 msgid "Y" msgstr "S" -#: cmdline/apt-get.cc:180 cmdline/apt-get.cc:1982 cmdline/apt-shell.cc:202 -#: cmdline/apt-shell.cc:2057 +#: cmdline/apt-get.cc:180 cmdline/apt-get.cc:2006 cmdline/apt-shell.cc:202 +#: cmdline/apt-shell.cc:2078 #, c-format msgid "Regex compilation error - %s" msgstr "Erro de compilaГЦo de expressЦo regular - %s" @@ -549,7 +565,7 @@ msgstr "%lu n #: cmdline/apt-get.cc:747 msgid "There are changes to be made" -msgstr "" +msgstr "Existem mudanГas a serem efetuadas" #: cmdline/apt-get.cc:813 cmdline/apt-shell.cc:918 msgid "Correcting dependencies..." @@ -583,14 +599,14 @@ msgstr "Depend msgid "Packages need to be removed but Remove is disabled." msgstr "Pacotes precisam ser removidos mas Remove estА desabilitado." -#: cmdline/apt-get.cc:915 cmdline/apt-get.cc:2329 cmdline/apt-get.cc:2362 -#: cmdline/apt-shell.cc:1020 cmdline/apt-shell.cc:2319 -#: cmdline/apt-shell.cc:2355 +#: cmdline/apt-get.cc:915 cmdline/apt-get.cc:2353 cmdline/apt-get.cc:2386 +#: cmdline/apt-shell.cc:1020 cmdline/apt-shell.cc:2340 +#: cmdline/apt-shell.cc:2376 msgid "Unable to lock the download directory" msgstr "ImpossМvel bloquar o diretСrio de download" -#: cmdline/apt-get.cc:925 cmdline/apt-get.cc:2410 cmdline/apt-get.cc:2652 -#: cmdline/apt-shell.cc:1030 cmdline/apt-shell.cc:2414 apt-pkg/cachefile.cc:71 +#: cmdline/apt-get.cc:925 cmdline/apt-get.cc:2434 cmdline/apt-get.cc:2678 +#: cmdline/apt-shell.cc:1030 cmdline/apt-shell.cc:2435 apt-pkg/cachefile.cc:71 msgid "The list of sources could not be read." msgstr "A lista de fontes nЦo pТde ser lida." @@ -652,8 +668,8 @@ msgstr "Abortado." msgid "Do you want to continue? [Y/n] " msgstr "VocЙ quer continuar? [S/n] " -#: cmdline/apt-get.cc:1092 cmdline/apt-get.cc:1197 cmdline/apt-get.cc:1712 -#: cmdline/apt-get.cc:2521 cmdline/apt-shell.cc:1196 cmdline/apt-shell.cc:1777 +#: cmdline/apt-get.cc:1092 cmdline/apt-get.cc:1197 cmdline/apt-get.cc:1724 +#: cmdline/apt-get.cc:2545 cmdline/apt-shell.cc:1196 cmdline/apt-shell.cc:1789 #, c-format msgid "Failed to fetch %s %s\n" msgstr "Falha ao obter %s %s\n" @@ -662,7 +678,7 @@ msgstr "Falha ao obter %s %s\n" msgid "Some files failed to download" msgstr "Houve falha ao baixar alguns arquivos" -#: cmdline/apt-get.cc:1111 cmdline/apt-get.cc:2530 cmdline/apt-shell.cc:1215 +#: cmdline/apt-get.cc:1111 cmdline/apt-get.cc:2554 cmdline/apt-shell.cc:1215 msgid "Download complete and in download only mode" msgstr "Download completo e em modo de somente download" @@ -671,9 +687,8 @@ msgid "" "Unable to fetch some archives, maybe run apt-get update or try with --fix-" "missing?" msgstr "" -"ImpossМvel obter alguns arquivos, tentar talvez com --fix-missing?ImpossМvel " -"obter alguns arquivos, talvez rodar apt-get update ou tentar com --fix-" -"missing?" +"ImpossМvel obter alguns arquivos, talvez rodar apt-get update ou tentar com " +"--fix-missing?" #: cmdline/apt-get.cc:1121 cmdline/apt-shell.cc:1225 msgid "--fix-missing and media swapping is not currently supported" @@ -687,13 +702,13 @@ msgstr "Imposs msgid "Aborting Install." msgstr "Abortando InstalaГЦo." -#: cmdline/apt-get.cc:1202 cmdline/apt-get.cc:2526 +#: cmdline/apt-get.cc:1202 cmdline/apt-get.cc:2550 msgid "Failed to fetch some archives." msgstr "Falha ao obter alguns arquivos." -#: cmdline/apt-get.cc:1296 cmdline/apt-get.cc:1895 cmdline/apt-get.cc:1958 -#: cmdline/apt-get.cc:1993 cmdline/apt-shell.cc:1365 cmdline/apt-shell.cc:2033 -#: cmdline/apt-shell.cc:2068 +#: cmdline/apt-get.cc:1296 cmdline/apt-get.cc:1919 cmdline/apt-get.cc:1982 +#: cmdline/apt-get.cc:2017 cmdline/apt-shell.cc:1365 cmdline/apt-shell.cc:2054 +#: cmdline/apt-shell.cc:2089 #, c-format msgid "Selecting %s for '%s'\n" msgstr "Selecionando %s para '%s'\n" @@ -786,25 +801,25 @@ msgstr "Selecionada a vers msgid "Selected version %s for %s\n" msgstr "Selecionada a versЦo %s para %s\n" -#: cmdline/apt-get.cc:1613 +#: cmdline/apt-get.cc:1625 msgid "The update command takes no arguments" msgstr "O comando update nЦo possui argumentos" -#: cmdline/apt-get.cc:1636 cmdline/apt-shell.cc:1704 +#: cmdline/apt-get.cc:1648 cmdline/apt-shell.cc:1716 #, c-format msgid "Sources list %s could not be read" msgstr "A lista de fontes %s nЦo pТde ser lida." -#: cmdline/apt-get.cc:1639 cmdline/apt-shell.cc:1707 +#: cmdline/apt-get.cc:1651 cmdline/apt-shell.cc:1719 #, c-format msgid "Sources list %s doesn't exist" -msgstr "" +msgstr "Arquivos de fontes %s nЦo existe" -#: cmdline/apt-get.cc:1652 cmdline/apt-shell.cc:1719 +#: cmdline/apt-get.cc:1664 cmdline/apt-shell.cc:1731 msgid "Unable to lock the list directory" msgstr "ImpossМvel bloquear o diretСrio list" -#: cmdline/apt-get.cc:1684 cmdline/apt-shell.cc:1749 +#: cmdline/apt-get.cc:1696 cmdline/apt-shell.cc:1761 msgid "" "Release files for some repositories could not be retrieved or authenticated. " "Such repositories are being ignored." @@ -812,7 +827,7 @@ msgstr "" "Alguns arquivos de release nЦo puderam ser obtidos ou autenticados. Estes " "repositСrios estЦo sendo ignorados." -#: cmdline/apt-get.cc:1743 cmdline/apt-shell.cc:1802 +#: cmdline/apt-get.cc:1764 cmdline/apt-shell.cc:1823 msgid "" "Some index files failed to download, they have been ignored, or old ones " "used instead." @@ -820,27 +835,27 @@ msgstr "" "Houve falha no download de alguns arquivos de Мndice, eles foram ignorados " "ou os antigos serЦo usados." -#: cmdline/apt-get.cc:1762 cmdline/apt-shell.cc:1831 +#: cmdline/apt-get.cc:1783 cmdline/apt-shell.cc:1852 msgid "Internal Error, AllUpgrade broke stuff" msgstr "Erro interno no AllUpgrade" -#: cmdline/apt-get.cc:1856 cmdline/apt-get.cc:1873 cmdline/apt-shell.cc:1933 -#: cmdline/apt-shell.cc:1950 +#: cmdline/apt-get.cc:1880 cmdline/apt-get.cc:1897 cmdline/apt-shell.cc:1954 +#: cmdline/apt-shell.cc:1971 #, c-format msgid "Couldn't parse name '%s'" msgstr "NЦo foi possМvel processar o nome '%s'" -#: cmdline/apt-get.cc:1968 cmdline/apt-get.cc:2007 cmdline/apt-shell.cc:2043 -#: cmdline/apt-shell.cc:2083 +#: cmdline/apt-get.cc:1992 cmdline/apt-get.cc:2031 cmdline/apt-shell.cc:2064 +#: cmdline/apt-shell.cc:2104 #, c-format msgid "Couldn't find package %s" msgstr "NЦo foi possМvel encontrar o pacote %s" -#: cmdline/apt-get.cc:2037 +#: cmdline/apt-get.cc:2061 msgid "You might want to run `apt-get -f install' to correct these:" msgstr "VocЙ pode querer rodar `apt-get -f install' para corrigir estas:" -#: cmdline/apt-get.cc:2040 +#: cmdline/apt-get.cc:2064 msgid "" "Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a " "solution)." @@ -848,7 +863,7 @@ msgstr "" "DependЙncias nЦo resolvidas. Tente 'apt-get -f install' sem pacotes (ou " "especifique uma soluГЦo)." -#: cmdline/apt-get.cc:2062 cmdline/apt-shell.cc:2146 +#: cmdline/apt-get.cc:2086 cmdline/apt-shell.cc:2167 msgid "" "Some packages could not be installed. This may mean that you have\n" "requested an impossible situation or if you are using the unstable\n" @@ -860,7 +875,7 @@ msgstr "" "distribuiГЦo instАvel, que alguns pacotes requeridos nЦo foram \n" "criados ainda ou foram tirados do Incoming." -#: cmdline/apt-get.cc:2070 cmdline/apt-shell.cc:2154 +#: cmdline/apt-get.cc:2094 cmdline/apt-shell.cc:2175 msgid "" "Since you only requested a single operation it is extremely likely that\n" "the package is simply not installable and a bug report against\n" @@ -870,104 +885,104 @@ msgstr "" "o pacote esteja simplesmente nЦo instalАvel e um relato de erro sobre\n" "esse pacote deve ser enviado." -#: cmdline/apt-get.cc:2075 cmdline/apt-shell.cc:2159 +#: cmdline/apt-get.cc:2099 cmdline/apt-shell.cc:2180 msgid "The following information may help to resolve the situation:" msgstr "A seguinte informaГЦo pode ajudar a resolver a situaГЦo:" -#: cmdline/apt-get.cc:2078 cmdline/apt-shell.cc:2163 +#: cmdline/apt-get.cc:2102 cmdline/apt-shell.cc:2184 msgid "Broken packages" msgstr "Pacotes quebrados" -#: cmdline/apt-get.cc:2104 +#: cmdline/apt-get.cc:2128 msgid "The following extra packages will be installed:" msgstr "Os seguintes pacotes extras serЦo instalados:" -#: cmdline/apt-get.cc:2184 +#: cmdline/apt-get.cc:2208 msgid "Suggested packages:" msgstr "Pacotes sugeridos:" -#: cmdline/apt-get.cc:2185 +#: cmdline/apt-get.cc:2209 msgid "Recommended packages:" msgstr "Pacotes recomendados" -#: cmdline/apt-get.cc:2209 cmdline/apt-shell.cc:2190 +#: cmdline/apt-get.cc:2233 cmdline/apt-shell.cc:2211 msgid "Calculating Upgrade... " msgstr "Calculando AtualizaГЦo... " -#: cmdline/apt-get.cc:2212 cmdline/apt-shell.cc:2193 methods/connect.cc:102 +#: cmdline/apt-get.cc:2236 cmdline/apt-shell.cc:2214 methods/connect.cc:102 #: methods/ftp.cc:706 msgid "Failed" msgstr "Falhou" -#: cmdline/apt-get.cc:2228 cmdline/apt-shell.cc:2205 +#: cmdline/apt-get.cc:2252 cmdline/apt-shell.cc:2226 msgid "Done" msgstr "Feito" -#: cmdline/apt-get.cc:2405 +#: cmdline/apt-get.cc:2429 msgid "Must specify at least one package to fetch source for" msgstr "Deve-se especificar pelo menos um pacote para buscar o fonte" -#: cmdline/apt-get.cc:2432 cmdline/apt-get.cc:2670 cmdline/apt-shell.cc:2432 +#: cmdline/apt-get.cc:2456 cmdline/apt-get.cc:2696 cmdline/apt-shell.cc:2453 #, c-format msgid "Unable to find a source package for %s" msgstr "ImpossМvel encontrar um pacote-fonte para %s" -#: cmdline/apt-get.cc:2481 +#: cmdline/apt-get.cc:2505 #, c-format msgid "You don't have enough free space in %s" msgstr "VocЙ nЦo tem espaГo livre suficiente em %s" -#: cmdline/apt-get.cc:2486 +#: cmdline/apt-get.cc:2510 #, c-format msgid "Need to get %sB/%sB of source archives.\n" msgstr "и necessАrio obter %sB/%sB de arquivos fonte.\n" -#: cmdline/apt-get.cc:2489 +#: cmdline/apt-get.cc:2513 #, c-format msgid "Need to get %sB of source archives.\n" msgstr "и necessАrio obter %sB de arquivos fonte.\n" -#: cmdline/apt-get.cc:2495 +#: cmdline/apt-get.cc:2519 #, c-format msgid "Fetch Source %s\n" msgstr "Obter Fonte %s\n" -#: cmdline/apt-get.cc:2560 cmdline/apt-get.cc:2611 +#: cmdline/apt-get.cc:2584 cmdline/apt-get.cc:2635 #, c-format msgid "Build command '%s' failed.\n" msgstr "Comando de construГЦo '%s' falhou.\n" -#: cmdline/apt-get.cc:2572 cmdline/apt-get.cc:2594 +#: cmdline/apt-get.cc:2596 cmdline/apt-get.cc:2618 #, c-format msgid "Unpack command '%s' failed.\n" msgstr "Comando de desempacotamento '%s' falhou.\n" -#: cmdline/apt-get.cc:2582 +#: cmdline/apt-get.cc:2606 #, c-format msgid "Skipping unpack of already unpacked source in %s\n" msgstr "Omitindo o desempacotamento de fonte jА desempacotado em %s\n" -#: cmdline/apt-get.cc:2631 +#: cmdline/apt-get.cc:2655 msgid "Child process failed" msgstr "Processo filho falhou" -#: cmdline/apt-get.cc:2647 cmdline/apt-shell.cc:2409 +#: cmdline/apt-get.cc:2673 cmdline/apt-shell.cc:2430 msgid "Must specify at least one package to check builddeps for" msgstr "" "Deve-se especificar pelo menos um pacote para que se verifique as " "dependЙncias de construГЦo" -#: cmdline/apt-get.cc:2675 cmdline/apt-shell.cc:2437 +#: cmdline/apt-get.cc:2701 cmdline/apt-shell.cc:2458 #, c-format msgid "Unable to get build-dependency information for %s" msgstr "ImpossМvel obter informaГУes de dependЙncia de construГЦo para %s" -#: cmdline/apt-get.cc:2695 cmdline/apt-shell.cc:2457 +#: cmdline/apt-get.cc:2721 cmdline/apt-shell.cc:2478 #, c-format msgid "%s has no build depends.\n" msgstr "%s nЦo possui dependЙncias de construГЦo.\n" -#: cmdline/apt-get.cc:2766 cmdline/apt-shell.cc:2528 +#: cmdline/apt-get.cc:2792 cmdline/apt-shell.cc:2549 #, c-format msgid "" "%s dependency for %s cannot be satisfied because the package %s cannot be " @@ -976,7 +991,7 @@ msgstr "" "A dependЙncia %s por %s nЦo pode ser satisfeita porque o pacote %s nЦo pode " "ser encontrado" -#: cmdline/apt-get.cc:2818 cmdline/apt-shell.cc:2580 +#: cmdline/apt-get.cc:2844 cmdline/apt-shell.cc:2601 #, c-format msgid "" "%s dependency for %s cannot be satisfied because no available versions of " @@ -985,17 +1000,19 @@ msgstr "" "A dependЙncia de %s por %s nЦo pode ser satisfeita porque nenhum versЦo " "disponМvel do pacote %s pТde satisfazer os requisitos de versЦo" -#: cmdline/apt-get.cc:2853 cmdline/apt-shell.cc:2614 +#: cmdline/apt-get.cc:2879 cmdline/apt-shell.cc:2635 #, c-format msgid "Failed to satisfy %s dependency for %s: Installed package %s is too new" msgstr "" +"ImpossМvel satisfazer a dependЙncia %s de %s: Pacote %s instalado И muito " +"novo" -#: cmdline/apt-get.cc:2878 cmdline/apt-shell.cc:2639 +#: cmdline/apt-get.cc:2904 cmdline/apt-shell.cc:2660 #, c-format msgid "Failed to satisfy %s dependency for %s: %s" msgstr "ImpossМvel satisfazer dependencia %s para %s: %s" -#: cmdline/apt-get.cc:2892 cmdline/apt-shell.cc:2653 +#: cmdline/apt-get.cc:2918 cmdline/apt-shell.cc:2674 #, c-format msgid "" "Some broken packages were found while trying to process build-dependencies " @@ -1006,15 +1023,15 @@ msgstr "" "as dependЙncias de construГЦo para %s.\n" "VocЙ pode querer rodar `apt-get -f install' para corrigМ-los." -#: cmdline/apt-get.cc:2897 +#: cmdline/apt-get.cc:2923 msgid "Failed to process build dependencies" msgstr "Falha ao processar as dependЙncias de construГЦo" -#: cmdline/apt-get.cc:2964 cmdline/apt-shell.cc:3699 +#: cmdline/apt-get.cc:2990 cmdline/apt-shell.cc:3723 msgid "Supported Modules:" msgstr "MСdulos Suportados:" -#: cmdline/apt-get.cc:3005 +#: cmdline/apt-get.cc:3031 msgid "" "Usage: apt-get [options] command\n" " apt-get [options] install|remove pkg1 [pkg2 ...]\n" @@ -1057,7 +1074,7 @@ msgstr "" " autoclean - Apaga arquivos antigos obtidos para instalaГЦo\n" " check - Verifica se nЦo hА dependЙncias quebradas\n" -#: cmdline/apt-get.cc:3031 +#: cmdline/apt-get.cc:3059 msgid "" "\n" "Options:\n" @@ -1099,23 +1116,23 @@ msgstr "" "para maiores informaГУes e opГУes.\n" " Esse APT tem Poderes da Super Vaca\n" -#: cmdline/apt-shell.cc:151 cmdline/apt-shell.cc:4421 +#: cmdline/apt-shell.cc:151 cmdline/apt-shell.cc:4445 msgid "There are broken packages. " msgstr "Existem pacotes quebrados. " -#: cmdline/apt-shell.cc:152 cmdline/apt-shell.cc:2116 -#: cmdline/apt-shell.cc:4422 +#: cmdline/apt-shell.cc:152 cmdline/apt-shell.cc:2137 +#: cmdline/apt-shell.cc:4446 msgid "Run `check' to see them." -msgstr "" +msgstr "Rode `check' para verificА-los." -#: cmdline/apt-shell.cc:153 cmdline/apt-shell.cc:2117 -#: cmdline/apt-shell.cc:4423 +#: cmdline/apt-shell.cc:153 cmdline/apt-shell.cc:2138 +#: cmdline/apt-shell.cc:4447 msgid "You can try to fix them automatically with `install -f'." -msgstr "" +msgstr "VocЙ pode tentar solucionА-los automaticamente com `install -f'." #: cmdline/apt-shell.cc:163 msgid "Excessive arguments" -msgstr "" +msgstr "Argumentos excessМvos" #: cmdline/apt-shell.cc:786 #, c-format @@ -1155,29 +1172,29 @@ msgstr "Modifica msgid "You might want to run `install -f' to correct these." msgstr "VocЙ pode executar `install -f' para corrigМ-los." -#: cmdline/apt-shell.cc:1818 cmdline/apt-shell.cc:1856 -#: cmdline/apt-shell.cc:2181 cmdline/apt-shell.cc:2222 -#: cmdline/apt-shell.cc:2399 cmdline/apt-shell.cc:4011 +#: cmdline/apt-shell.cc:1839 cmdline/apt-shell.cc:1877 +#: cmdline/apt-shell.cc:2202 cmdline/apt-shell.cc:2243 +#: cmdline/apt-shell.cc:2420 cmdline/apt-shell.cc:4035 msgid "You have no permissions for that" -msgstr "" +msgstr "VocЙ nЦo tem permissЦo para isso" -#: cmdline/apt-shell.cc:2115 +#: cmdline/apt-shell.cc:2136 msgid "There are still broken packages. " -msgstr "" +msgstr "Ainda existem pacotes quebrados. " -#: cmdline/apt-shell.cc:3528 +#: cmdline/apt-shell.cc:3552 msgid "Name" -msgstr "" +msgstr "Nome" -#: cmdline/apt-shell.cc:3529 +#: cmdline/apt-shell.cc:3553 msgid "Installed" msgstr "Instalado" -#: cmdline/apt-shell.cc:3530 +#: cmdline/apt-shell.cc:3554 msgid "Candidate" msgstr "Candidato" -#: cmdline/apt-shell.cc:3740 +#: cmdline/apt-shell.cc:3764 msgid "" "\n" "Main commands:\n" @@ -1210,7 +1227,7 @@ msgid "" " This APT has Super Cow Powers.\n" msgstr "" -#: cmdline/apt-shell.cc:3782 +#: cmdline/apt-shell.cc:3806 msgid "" "Usage: install [options] pkg1[=ver] [pkg2 ...]\n" "\n" @@ -1227,7 +1244,7 @@ msgid "" "\n" msgstr "" -#: cmdline/apt-shell.cc:3800 +#: cmdline/apt-shell.cc:3824 msgid "" "Usage: remove [options] pkg1 [pkg2 ...]\n" "\n" @@ -1244,7 +1261,7 @@ msgid "" "\n" msgstr "" -#: cmdline/apt-shell.cc:3818 +#: cmdline/apt-shell.cc:3842 msgid "" "Usage: keep [options] pkg1 [pkg2 ...]\n" "\n" @@ -1262,7 +1279,7 @@ msgid "" "\n" msgstr "" -#: cmdline/apt-shell.cc:3837 +#: cmdline/apt-shell.cc:3861 msgid "" "Usage: upgrade [options]\n" "\n" @@ -1278,7 +1295,7 @@ msgid "" "\n" msgstr "" -#: cmdline/apt-shell.cc:3853 +#: cmdline/apt-shell.cc:3877 msgid "" "Usage: dist-upgrade [options]\n" "\n" @@ -1294,7 +1311,7 @@ msgid "" "\n" msgstr "" -#: cmdline/apt-shell.cc:3869 +#: cmdline/apt-shell.cc:3893 msgid "" "Usage: showpkg [options] pkg1 [pkg2 ...]\n" "\n" @@ -1306,7 +1323,7 @@ msgid "" "\n" msgstr "" -#: cmdline/apt-shell.cc:3882 +#: cmdline/apt-shell.cc:3906 msgid "" "Usage: show [options] pkg1 [pkg2 ...]\n" "\n" @@ -1319,7 +1336,7 @@ msgid "" "\n" msgstr "" -#: cmdline/apt-shell.cc:3896 +#: cmdline/apt-shell.cc:3920 msgid "" "Usage: depends [options] pkg1 [pkg2 ...]\n" "\n" @@ -1331,7 +1348,7 @@ msgid "" "\n" msgstr "" -#: cmdline/apt-shell.cc:3909 +#: cmdline/apt-shell.cc:3933 msgid "" "Usage: whatdepends [options] pkg1 [pkg2 ...]\n" "\n" @@ -1343,7 +1360,7 @@ msgid "" "\n" msgstr "" -#: cmdline/apt-shell.cc:3922 +#: cmdline/apt-shell.cc:3946 msgid "" "Usage: unmet [options]\n" "\n" @@ -1355,7 +1372,7 @@ msgid "" "\n" msgstr "" -#: cmdline/apt-shell.cc:3935 +#: cmdline/apt-shell.cc:3959 msgid "" "Usage: search [options] <regex>\n" "\n" @@ -1370,7 +1387,7 @@ msgid "" "\n" msgstr "" -#: cmdline/apt-shell.cc:3952 +#: cmdline/apt-shell.cc:3976 msgid "" "Usage: list/ls [options] [pattern ...]\n" "\n" @@ -1387,7 +1404,7 @@ msgid "" "\n" msgstr "" -#: cmdline/apt-shell.cc:3970 +#: cmdline/apt-shell.cc:3994 msgid "" "Usage: commit [options]\n" "\n" @@ -1399,7 +1416,7 @@ msgid "" "\n" msgstr "" -#: cmdline/apt-shell.cc:3983 +#: cmdline/apt-shell.cc:4007 msgid "" "Usage: script [options] script1 [script2]\n" "\n" @@ -1411,35 +1428,35 @@ msgid "" "\n" msgstr "" -#: cmdline/apt-shell.cc:3994 +#: cmdline/apt-shell.cc:4018 msgid "No help for that" -msgstr "" +msgstr "NЦo existe ajuda para esse comando" -#: cmdline/apt-shell.cc:4431 +#: cmdline/apt-shell.cc:4455 msgid "Welcome to the APT shell. Type \"help\" for more information." -msgstr "" +msgstr "Bem-vindo ao APT shell. Digite \"help\" para mais informaГУes." -#: cmdline/apt-shell.cc:4471 +#: cmdline/apt-shell.cc:4495 msgid "Exceeded maximum number of command arguments" -msgstr "" +msgstr "NЗmero mАximo de argumentos para o comando excedido" -#: apt-pkg/contrib/cdromutl.cc:55 +#: apt-pkg/contrib/cdromutl.cc:60 #, c-format msgid "Unable to stat the mount point %s" msgstr "ImpossМvel rodar stat no ponto de montagem %s" -#: apt-pkg/contrib/cdromutl.cc:149 apt-pkg/acquire.cc:418 apt-pkg/clean.cc:44 +#: apt-pkg/contrib/cdromutl.cc:174 apt-pkg/acquire.cc:418 apt-pkg/clean.cc:44 #, c-format msgid "Unable to change to %s" msgstr "ImpossМvel alterar para %s" -#: apt-pkg/contrib/cdromutl.cc:153 apt-pkg/contrib/configuration.cc:735 -#: apt-pkg/acquire.cc:412 apt-pkg/clean.cc:38 apt-pkg/sourcelist.cc:424 +#: apt-pkg/contrib/cdromutl.cc:178 apt-pkg/contrib/configuration.cc:735 +#: apt-pkg/acquire.cc:412 apt-pkg/clean.cc:38 apt-pkg/sourcelist.cc:427 #, c-format msgid "Unable to read %s" msgstr "ImpossМvel ler %s" -#: apt-pkg/contrib/cdromutl.cc:190 +#: apt-pkg/contrib/cdromutl.cc:215 msgid "Failed to stat the cdrom" msgstr "ImpossМvel rodar stat no cdrom" @@ -1492,7 +1509,7 @@ msgstr "Opera #: apt-pkg/contrib/configuration.cc:425 #, c-format msgid "Unrecognized type abbreviation: '%c'" -msgstr "" +msgstr "AbreviaГЦo de tipo nЦo reconhecida: '%c'" #: apt-pkg/contrib/configuration.cc:483 #, c-format @@ -1570,12 +1587,12 @@ msgstr "Esperando, por %s mas este n msgid "Sub-process %s received a segmentation fault." msgstr "Subprocesso %s recebeu uma falha de segmentaГЦo." -#: apt-pkg/contrib/fileutl.cc:374 apt-pkg/rpm/rpmpm.cc:618 +#: apt-pkg/contrib/fileutl.cc:374 apt-pkg/rpm/rpmpm.cc:623 #, c-format msgid "Sub-process %s returned an error code (%u)" msgstr "Subprocesso %s retornou um cСdigo de erro (%u)" -#: apt-pkg/contrib/fileutl.cc:376 apt-pkg/rpm/rpmpm.cc:621 +#: apt-pkg/contrib/fileutl.cc:376 apt-pkg/rpm/rpmpm.cc:626 #, c-format msgid "Sub-process %s exited unexpectedly" msgstr "O subprocesso %s terminou inesperadamente" @@ -1644,7 +1661,7 @@ msgid "could not rewind RPMFileHandler" msgstr "nЦo foi possМvel retroceder o RPMFileHandler" #: apt-pkg/rpm/rpmhandler.cc:160 apt-pkg/rpm/rpmhandler.cc:167 -#: apt-pkg/rpm/rpmpm.cc:680 apt-pkg/rpm/rpmpm.cc:685 +#: apt-pkg/rpm/rpmpm.cc:685 apt-pkg/rpm/rpmpm.cc:690 #, c-format msgid "Failed reading file %s" msgstr "Falha ao ler o arquivo %s" @@ -1697,7 +1714,7 @@ msgstr "Problema com SelectFile na base de dados RPM" #: apt-pkg/rpm/rpmlistparser.cc:111 msgid "Corrupt pkglist: no RPMTAG_NAME in header entry" -msgstr "" +msgstr "pkglist corrompido: RPMTAG_NAME nЦo encontrado no header" #: apt-pkg/rpm/rpmlistparser.cc:130 #, c-format @@ -1715,10 +1732,22 @@ msgid "" "\n" "RPM::Allow-Duplicated-Warning \"false\";\n" msgstr "" +"Existem multiplas versУes de \"%s\" no seu sistema.\n" +"\n" +"Esse pacote nЦo serА atualizado transparentemente, a menos\n" +"que uma Зnica versЦo seja mantida. Para manter multiplas versУes\n" +"instaladas, vocЙ pode remover esse aviso adicionando a seguinte\n" +"opГЦo no seu arquivo de configuraГЦo:\n" +"\n" +"RPM::Allow-Duplicated { \"^%s$\"; };\n" +"\n" +"Para desabilitar esses avisos completamente use:\n" +"\n" +"RPM::Allow-Duplicated-Warning \"false\";\n" -#: apt-pkg/rpm/rpmlistparser.cc:685 +#: apt-pkg/rpm/rpmlistparser.cc:680 msgid "Bad NotAutomatic flag" -msgstr "" +msgstr "Flag NotAutomatic incorreta" #: apt-pkg/rpm/rpmpackagedata.cc:28 #, c-format @@ -1773,85 +1802,85 @@ msgstr "Falha ao criar pipe IPC para subprocesso" msgid "Failure running script %s" msgstr "Falha ao executar o script %s" -#: apt-pkg/rpm/rpmpm.cc:309 +#: apt-pkg/rpm/rpmpm.cc:312 msgid "Unknown pkgRPMPM operation." -msgstr "" +msgstr "OperaГЦo do pkgRPMPM desconhecida" -#: apt-pkg/rpm/rpmpm.cc:544 +#: apt-pkg/rpm/rpmpm.cc:549 msgid "Executing RPM (" msgstr "Executando RPM (" -#: apt-pkg/rpm/rpmpm.cc:584 -#, fuzzy +#: apt-pkg/rpm/rpmpm.cc:589 msgid "Could not exec " -msgstr "ImpossМvel bloquear %s" +msgstr "ImpossМvel executar " -#: apt-pkg/rpm/rpmpm.cc:599 -#, fuzzy +#: apt-pkg/rpm/rpmpm.cc:604 msgid "Couldn't wait for subprocess" -msgstr "ImpossМvel abrir pipe para %s" +msgstr "ImpossМvel esperar por subprocesso" -#: apt-pkg/rpm/rpmpm.cc:615 +#: apt-pkg/rpm/rpmpm.cc:620 #, c-format msgid "Sub-process %s recieved a segmentation fault." msgstr "Subprocesso %s recebeu uma falha de segmentaГЦo." -#: apt-pkg/rpm/rpmpm.cc:625 apt-pkg/rpm/rpmpm.cc:873 -#, fuzzy +#: apt-pkg/rpm/rpmpm.cc:630 apt-pkg/rpm/rpmpm.cc:878 msgid "Done." -msgstr "Feito" +msgstr "Feito." -#: apt-pkg/rpm/rpmpm.cc:676 +#: apt-pkg/rpm/rpmpm.cc:681 #, c-format msgid "Failed opening %s" msgstr "Problema ao abrir %s" -#: apt-pkg/rpm/rpmpm.cc:689 apt-pkg/rpm/rpmpm.cc:713 +#: apt-pkg/rpm/rpmpm.cc:694 apt-pkg/rpm/rpmpm.cc:718 #, c-format msgid "Failed adding %s to transaction %s" -msgstr "" +msgstr "Falha ao adicionar %s na transaГЦo %s" -#: apt-pkg/rpm/rpmpm.cc:765 apt-pkg/rpm/rpmpm.cc:775 +#: apt-pkg/rpm/rpmpm.cc:770 apt-pkg/rpm/rpmpm.cc:780 msgid "Could not open RPM database" msgstr "NЦo foi possМvel abrir a base de dados RPM" -#: apt-pkg/rpm/rpmpm.cc:812 apt-pkg/rpm/rpmpm.cc:825 +#: apt-pkg/rpm/rpmpm.cc:817 apt-pkg/rpm/rpmpm.cc:830 msgid "Transaction set check failed" -msgstr "" +msgstr "VerificaГЦo da transaГЦo falhou" -#: apt-pkg/rpm/rpmpm.cc:845 +#: apt-pkg/rpm/rpmpm.cc:850 #, c-format msgid "Ordering failed for %d packages" -msgstr "" +msgstr "OrdenaГЦo falhou para %d pacotes" -#: apt-pkg/rpm/rpmpm.cc:849 +#: apt-pkg/rpm/rpmpm.cc:854 msgid "Committing changes..." -msgstr "" +msgstr "Aplicando modificaГУes..." -#: apt-pkg/rpm/rpmpm.cc:865 +#: apt-pkg/rpm/rpmpm.cc:870 msgid "Error while running transaction" -msgstr "" +msgstr "Erro enquanto rodando a transaГЦo" -#: apt-pkg/rpm/rpmpm.cc:871 +#: apt-pkg/rpm/rpmpm.cc:876 msgid "Some errors occurred while running transaction" msgstr "Ocorreram erros enquanto rodando a transaГЦo" #: apt-pkg/rpm/rpmrecords.cc:201 apt-pkg/rpm/rpmsrcrecords.cc:215 -#, fuzzy msgid "Could not allocate buffer for record text" -msgstr "ImpossМvel alocar memСria" +msgstr "ImpossМvel alocar buffer para o texto do registro" #: apt-pkg/rpm/rpmsrcrecords.cc:146 apt-pkg/rpm/rpmsrcrecords.cc:153 #, c-format msgid "error parsing source list %s" msgstr "erro analisando a lista de fontes %s" -#: apt-pkg/rpm/rpmsystem.cc:410 apt-pkg/pkgcachegen.cc:714 +#: apt-pkg/rpm/rpmsystem.cc:411 apt-pkg/pkgcachegen.cc:714 #: apt-pkg/pkgcachegen.cc:741 apt-pkg/pkgcachegen.cc:783 #: apt-pkg/pkgcachegen.cc:788 apt-pkg/pkgcachegen.cc:992 msgid "Reading Package Lists" msgstr "Lendo Listas de Pacotes" +#: apt-pkg/rpm/rpmshowprogress.h:121 apt-pkg/rpm/rpmshowprogress.h:123 +msgid "Preparing..." +msgstr "Preparando..." + #: apt-pkg/acquire.cc:61 #, c-format msgid "Lists directory %spartial is missing." @@ -2173,7 +2202,7 @@ msgstr "N #: apt-pkg/policy.cc:342 msgid "No priority (or zero) specified for pin" -msgstr "" +msgstr "Nenhuma prioridade (ou zero) especificada para um pin" #: apt-pkg/repository.cc:40 #, c-format @@ -2210,37 +2239,37 @@ msgstr "Linha inv msgid "Malformed line %lu in source list %s (Absolute dist)" msgstr "Linha invАlida %lu na lista de fontes %s (Absolute dist)" -#: apt-pkg/sourcelist.cc:116 +#: apt-pkg/sourcelist.cc:119 #, c-format msgid "Malformed line %lu in source list %s (dist parse)" msgstr "Linha invАlida %lu na lista de fontes %s (dist parse)" -#: apt-pkg/sourcelist.cc:206 apt-pkg/sourcelist.cc:230 +#: apt-pkg/sourcelist.cc:209 apt-pkg/sourcelist.cc:233 #, c-format msgid "Vendor block %s is invalid" msgstr "O bloco de vendors %s И invАlido" -#: apt-pkg/sourcelist.cc:314 +#: apt-pkg/sourcelist.cc:317 #, c-format msgid "Line %u too long in source list %s." msgstr "Linha %u muito longa no lista de fontes %s." -#: apt-pkg/sourcelist.cc:334 +#: apt-pkg/sourcelist.cc:337 #, c-format msgid "Malformed line %u in source list %s (type)" msgstr "Linha invАlida %u na lista de fontes %s (type)" -#: apt-pkg/sourcelist.cc:338 +#: apt-pkg/sourcelist.cc:341 #, c-format msgid "Type '%s' is not known in on line %u in source list %s" msgstr "Tipo '%s' nЦo И conhecido na linha %u na lista de fontes %s" -#: apt-pkg/sourcelist.cc:347 apt-pkg/sourcelist.cc:350 +#: apt-pkg/sourcelist.cc:350 apt-pkg/sourcelist.cc:353 #, c-format msgid "Malformed line %u in source list %s (vendor id)" msgstr "Linha invАlida %u na lista de fontes %s (vendor id)" -#: apt-pkg/sourcelist.cc:364 +#: apt-pkg/sourcelist.cc:367 #, c-format msgid "Unknown vendor ID '%s' in line %u of source list %s" msgstr "Vendor ID '%s' desconhecido na linha %u do arquivo de fontes %s" @@ -2259,7 +2288,7 @@ msgstr "Imposs msgid "Unable to parse package file %s (2)" msgstr "ImpossМvel analisar o arquivo de pacotes %s (2)" -#: methods/cdrom.cc:169 +#: methods/cdrom.cc:202 msgid "" "Please use apt-cdrom to make this CD recognized by APT. apt-get update " "cannot be used to add new CDs" @@ -2267,16 +2296,16 @@ msgstr "" "Use o apt-cdrom para tornar este CD reconhecido pelo APT. apt-get update nЦo " "pode ser utilizado para adicioanr CDs" -#: methods/cdrom.cc:177 methods/cdrom.cc:215 +#: methods/cdrom.cc:210 methods/cdrom.cc:248 msgid "Wrong CD" msgstr "CD Incorreto" -#: methods/cdrom.cc:210 +#: methods/cdrom.cc:243 #, c-format msgid "Unable to unmount the CD-ROM in %s, it may still be in use." msgstr "ImpossМvel desmontar o CD-ROM em %s, ele pode ainda estar em uso" -#: methods/cdrom.cc:233 methods/file.cc:82 +#: methods/cdrom.cc:266 methods/file.cc:82 msgid "File not found" msgstr "Arquivo nЦo encontrado" diff --git a/apt/po/ru.po b/apt/po/ru.po index 0bc6807..3f60732 100644 --- a/apt/po/ru.po +++ b/apt/po/ru.po @@ -9,7 +9,7 @@ msgid "" msgstr "" "Project-Id-Version: apt-0.5.15cnc4-alt0.1\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2004-03-16 16:30-0300\n" +"POT-Creation-Date: 2004-05-20 16:12-0300\n" "PO-Revision-Date: 2003-12-08 17:41+1200\n" "Last-Translator: Anton V. Denisov <avd@altlinux.org>\n" "Language-Team: ALT Linux Team <devel@altlinux.org>\n" @@ -52,17 +52,17 @@ msgstr "" "Смена диска: Вставьте, пожалуйста, диск с меткой '%s'\n" "в устройство '%s' и нажмите <Enter>.\n" -#: cmdline/apt-cache.cc:157 cmdline/apt-shell.cc:3188 +#: cmdline/apt-cache.cc:157 cmdline/apt-shell.cc:3209 #, c-format msgid "Package %s version %s has an unmet dep:\n" msgstr "Пакет %s версии %s имеет неудовлетворенные зависимости:\n" #: cmdline/apt-cache.cc:197 cmdline/apt-cache.cc:565 cmdline/apt-cache.cc:660 #: cmdline/apt-cache.cc:750 cmdline/apt-cache.cc:1024 -#: cmdline/apt-cache.cc:1242 cmdline/apt-cache.cc:1621 -#: cmdline/apt-cache.cc:1772 cmdline/apt-shell.cc:2740 -#: cmdline/apt-shell.cc:2838 cmdline/apt-shell.cc:2931 -#: cmdline/apt-shell.cc:3231 cmdline/apt-shell.cc:3647 +#: cmdline/apt-cache.cc:1242 cmdline/apt-cache.cc:1624 +#: cmdline/apt-cache.cc:1775 cmdline/apt-shell.cc:2761 +#: cmdline/apt-shell.cc:2859 cmdline/apt-shell.cc:2952 +#: cmdline/apt-shell.cc:3252 cmdline/apt-shell.cc:3671 #, c-format msgid "Unable to locate package %s" msgstr "Невозможно найти пакет %s" @@ -124,72 +124,72 @@ msgid "Total Space Accounted for: " msgstr "Всего будет занято места: " #: cmdline/apt-cache.cc:484 cmdline/apt-cache.cc:1452 -#: cmdline/apt-shell.cc:3309 +#: cmdline/apt-shell.cc:3330 #, c-format msgid "Package file %s is out of sync." msgstr "Файл пакета %s вышел из под контроля." -#: cmdline/apt-cache.cc:1495 cmdline/apt-shell.cc:3355 +#: cmdline/apt-cache.cc:1495 cmdline/apt-shell.cc:3376 msgid "You must give exactly one pattern" msgstr "Необходимо указать только один образец" -#: cmdline/apt-cache.cc:1649 cmdline/apt-shell.cc:3675 +#: cmdline/apt-cache.cc:1652 cmdline/apt-shell.cc:3699 msgid "No packages found" msgstr "Не найдено ни одного пакета" -#: cmdline/apt-cache.cc:1726 +#: cmdline/apt-cache.cc:1729 msgid "Package Files:" msgstr "Файлы пакетов:" -#: cmdline/apt-cache.cc:1733 cmdline/apt-cache.cc:1819 +#: cmdline/apt-cache.cc:1736 cmdline/apt-cache.cc:1822 msgid "Cache is out of sync, can't x-ref a package file" msgstr "Содержимое кэша устарело, невозможно получить данные о пакете." -#: cmdline/apt-cache.cc:1734 +#: cmdline/apt-cache.cc:1737 #, c-format msgid "%4i %s\n" msgstr "%4i %s\n" -#: cmdline/apt-cache.cc:1746 +#: cmdline/apt-cache.cc:1749 msgid "Pinned Packages:" msgstr "Предпочитаемые пакеты:" -#: cmdline/apt-cache.cc:1758 cmdline/apt-cache.cc:1799 +#: cmdline/apt-cache.cc:1761 cmdline/apt-cache.cc:1802 msgid "(not found)" msgstr "(не найдено)" -#: cmdline/apt-cache.cc:1779 +#: cmdline/apt-cache.cc:1782 msgid " Installed: " msgstr " Установлен: " -#: cmdline/apt-cache.cc:1781 cmdline/apt-cache.cc:1789 +#: cmdline/apt-cache.cc:1784 cmdline/apt-cache.cc:1792 msgid "(none)" msgstr "(нет)" -#: cmdline/apt-cache.cc:1786 +#: cmdline/apt-cache.cc:1789 msgid " Candidate: " msgstr " Кандидат: " -#: cmdline/apt-cache.cc:1796 +#: cmdline/apt-cache.cc:1799 msgid " Package Pin: " msgstr " Предпочтение: " -#: cmdline/apt-cache.cc:1805 +#: cmdline/apt-cache.cc:1808 msgid " Version Table:" msgstr " Таблица версий:" -#: cmdline/apt-cache.cc:1820 +#: cmdline/apt-cache.cc:1823 #, c-format msgid " %4i %s\n" msgstr " %4i %s\n" -#: cmdline/apt-cache.cc:1847 cmdline/apt-cdrom.cc:847 cmdline/apt-config.cc:72 -#: cmdline/apt-get.cc:2959 cmdline/apt-shell.cc:3694 +#: cmdline/apt-cache.cc:1850 cmdline/apt-cdrom.cc:847 cmdline/apt-config.cc:72 +#: cmdline/apt-get.cc:2985 cmdline/apt-shell.cc:3718 #, c-format msgid "%s %s for %s %s compiled on %s %s\n" msgstr "%s %s для %s %s собран %s %s\n" -#: cmdline/apt-cache.cc:1854 +#: cmdline/apt-cache.cc:1857 msgid "" "Usage: apt-cache [options] command\n" " apt-cache [options] add file1 [file2 ...]\n" @@ -245,7 +245,7 @@ msgstr "" " xvcg - Построить граф зависимостей в формате xvcg\n" " policy - Сообщить сведения о приоритетности источников пакетов\n" -#: cmdline/apt-cache.cc:1884 +#: cmdline/apt-cache.cc:1889 msgid "" "\n" "Options:\n" @@ -276,7 +276,7 @@ msgstr "" msgid "Failed to rename %s.new to %s" msgstr "Не удалось переименовать %s.new в %s" -#: cmdline/apt-cdrom.cc:425 apt-pkg/sourcelist.cc:297 +#: cmdline/apt-cdrom.cc:425 apt-pkg/sourcelist.cc:300 #, c-format msgid "Opening %s" msgstr "Открытие %s" @@ -290,7 +290,8 @@ msgstr " msgid "Using CD-ROM mount point " msgstr "Используется точка монтирования CD-ROM " -#: cmdline/apt-cdrom.cc:579 cmdline/apt-cdrom.cc:834 methods/cdrom.cc:160 +#: cmdline/apt-cdrom.cc:579 cmdline/apt-cdrom.cc:834 methods/cdrom.cc:81 +#: methods/cdrom.cc:193 #, c-format msgid "Unable to read the cdrom database %s" msgstr "Невозможно прочитать базу данных компакт-дисков в %s." @@ -458,8 +459,8 @@ msgstr "" msgid "Y" msgstr "Y" -#: cmdline/apt-get.cc:180 cmdline/apt-get.cc:1982 cmdline/apt-shell.cc:202 -#: cmdline/apt-shell.cc:2057 +#: cmdline/apt-get.cc:180 cmdline/apt-get.cc:2006 cmdline/apt-shell.cc:202 +#: cmdline/apt-shell.cc:2078 #, c-format msgid "Regex compilation error - %s" msgstr "Ошибка компиляции регулярного выражения - %s" @@ -609,14 +610,14 @@ msgstr "" "Необходимо удалить некоторые пакеты, но это было запрещено параметром No " "Remove (не удалять)." -#: cmdline/apt-get.cc:915 cmdline/apt-get.cc:2329 cmdline/apt-get.cc:2362 -#: cmdline/apt-shell.cc:1020 cmdline/apt-shell.cc:2319 -#: cmdline/apt-shell.cc:2355 +#: cmdline/apt-get.cc:915 cmdline/apt-get.cc:2353 cmdline/apt-get.cc:2386 +#: cmdline/apt-shell.cc:1020 cmdline/apt-shell.cc:2340 +#: cmdline/apt-shell.cc:2376 msgid "Unable to lock the download directory" msgstr "Невозможно разблокировать временный каталог для скачиваемых файлов" -#: cmdline/apt-get.cc:925 cmdline/apt-get.cc:2410 cmdline/apt-get.cc:2652 -#: cmdline/apt-shell.cc:1030 cmdline/apt-shell.cc:2414 apt-pkg/cachefile.cc:71 +#: cmdline/apt-get.cc:925 cmdline/apt-get.cc:2434 cmdline/apt-get.cc:2678 +#: cmdline/apt-shell.cc:1030 cmdline/apt-shell.cc:2435 apt-pkg/cachefile.cc:71 msgid "The list of sources could not be read." msgstr "Невозможно прочитать список исходных пакетов." @@ -681,8 +682,8 @@ msgstr " msgid "Do you want to continue? [Y/n] " msgstr "Продолжить? [Y/n] " -#: cmdline/apt-get.cc:1092 cmdline/apt-get.cc:1197 cmdline/apt-get.cc:1712 -#: cmdline/apt-get.cc:2521 cmdline/apt-shell.cc:1196 cmdline/apt-shell.cc:1777 +#: cmdline/apt-get.cc:1092 cmdline/apt-get.cc:1197 cmdline/apt-get.cc:1724 +#: cmdline/apt-get.cc:2545 cmdline/apt-shell.cc:1196 cmdline/apt-shell.cc:1789 #, c-format msgid "Failed to fetch %s %s\n" msgstr "Невозможно получить %s %s\n" @@ -691,7 +692,7 @@ msgstr " msgid "Some files failed to download" msgstr "Некоторые файлы не удалось получить" -#: cmdline/apt-get.cc:1111 cmdline/apt-get.cc:2530 cmdline/apt-shell.cc:1215 +#: cmdline/apt-get.cc:1111 cmdline/apt-get.cc:2554 cmdline/apt-shell.cc:1215 msgid "Download complete and in download only mode" msgstr "Скачивание пакетов завершено в режиме 'только скачать'." @@ -716,13 +717,13 @@ msgstr " msgid "Aborting Install." msgstr "Прерывание установки." -#: cmdline/apt-get.cc:1202 cmdline/apt-get.cc:2526 +#: cmdline/apt-get.cc:1202 cmdline/apt-get.cc:2550 msgid "Failed to fetch some archives." msgstr "Невозможно скачать некоторые архивы." -#: cmdline/apt-get.cc:1296 cmdline/apt-get.cc:1895 cmdline/apt-get.cc:1958 -#: cmdline/apt-get.cc:1993 cmdline/apt-shell.cc:1365 cmdline/apt-shell.cc:2033 -#: cmdline/apt-shell.cc:2068 +#: cmdline/apt-get.cc:1296 cmdline/apt-get.cc:1919 cmdline/apt-get.cc:1982 +#: cmdline/apt-get.cc:2017 cmdline/apt-shell.cc:1365 cmdline/apt-shell.cc:2054 +#: cmdline/apt-shell.cc:2089 #, c-format msgid "Selecting %s for '%s'\n" msgstr "Выбрано %s для '%s'\n" @@ -816,25 +817,25 @@ msgstr " msgid "Selected version %s for %s\n" msgstr "Выбрана версия %s для %s\n" -#: cmdline/apt-get.cc:1613 +#: cmdline/apt-get.cc:1625 msgid "The update command takes no arguments" msgstr "Для команды обновления не требуются аргументы" -#: cmdline/apt-get.cc:1636 cmdline/apt-shell.cc:1704 +#: cmdline/apt-get.cc:1648 cmdline/apt-shell.cc:1716 #, c-format msgid "Sources list %s could not be read" msgstr "Невозможно прочитать список источников из %s" -#: cmdline/apt-get.cc:1639 cmdline/apt-shell.cc:1707 +#: cmdline/apt-get.cc:1651 cmdline/apt-shell.cc:1719 #, c-format msgid "Sources list %s doesn't exist" msgstr "Список источников %s отсутствует." -#: cmdline/apt-get.cc:1652 cmdline/apt-shell.cc:1719 +#: cmdline/apt-get.cc:1664 cmdline/apt-shell.cc:1731 msgid "Unable to lock the list directory" msgstr "Невозможно заблокировать каталог" -#: cmdline/apt-get.cc:1684 cmdline/apt-shell.cc:1749 +#: cmdline/apt-get.cc:1696 cmdline/apt-shell.cc:1761 msgid "" "Release files for some repositories could not be retrieved or authenticated. " "Such repositories are being ignored." @@ -842,7 +843,7 @@ msgstr "" "Невозможно получить или проверить файлы описания некоторых репозиториев. Эти " "репозитории будут игнорироваться." -#: cmdline/apt-get.cc:1743 cmdline/apt-shell.cc:1802 +#: cmdline/apt-get.cc:1764 cmdline/apt-shell.cc:1823 msgid "" "Some index files failed to download, they have been ignored, or old ones " "used instead." @@ -850,28 +851,28 @@ msgstr "" "Некоторые индексные файлы не удалось скачать, они либо были проигнорированы, " "либо вместо них были использованы старые версии." -#: cmdline/apt-get.cc:1762 cmdline/apt-shell.cc:1831 +#: cmdline/apt-get.cc:1783 cmdline/apt-shell.cc:1852 msgid "Internal Error, AllUpgrade broke stuff" msgstr "Внутренняя ошибка, результат работы AllUpgrade все испортил" -#: cmdline/apt-get.cc:1856 cmdline/apt-get.cc:1873 cmdline/apt-shell.cc:1933 -#: cmdline/apt-shell.cc:1950 +#: cmdline/apt-get.cc:1880 cmdline/apt-get.cc:1897 cmdline/apt-shell.cc:1954 +#: cmdline/apt-shell.cc:1971 #, c-format msgid "Couldn't parse name '%s'" msgstr "Невозможно разобрать имя '%s'" -#: cmdline/apt-get.cc:1968 cmdline/apt-get.cc:2007 cmdline/apt-shell.cc:2043 -#: cmdline/apt-shell.cc:2083 +#: cmdline/apt-get.cc:1992 cmdline/apt-get.cc:2031 cmdline/apt-shell.cc:2064 +#: cmdline/apt-shell.cc:2104 #, c-format msgid "Couldn't find package %s" msgstr "Невозможно найти пакет %s" -#: cmdline/apt-get.cc:2037 +#: cmdline/apt-get.cc:2061 msgid "You might want to run `apt-get -f install' to correct these:" msgstr "" "Возможно, Вам потребуется запустить `apt-get -f install' для исправления:" -#: cmdline/apt-get.cc:2040 +#: cmdline/apt-get.cc:2064 msgid "" "Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a " "solution)." @@ -879,7 +880,7 @@ msgstr "" "Некоторые зависимости не были найдены. Попробуйте `apt-get -f install' без " "указания пакетов или укажите пакет-решение." -#: cmdline/apt-get.cc:2062 cmdline/apt-shell.cc:2146 +#: cmdline/apt-get.cc:2086 cmdline/apt-shell.cc:2167 msgid "" "Some packages could not be installed. This may mean that you have\n" "requested an impossible situation or if you are using the unstable\n" @@ -891,7 +892,7 @@ msgstr "" "Часть необходимых пакетов либо ещё не создана, либо была удалена\n" "из каталога 'Входящие'." -#: cmdline/apt-get.cc:2070 cmdline/apt-shell.cc:2154 +#: cmdline/apt-get.cc:2094 cmdline/apt-shell.cc:2175 msgid "" "Since you only requested a single operation it is extremely likely that\n" "the package is simply not installable and a bug report against\n" @@ -901,102 +902,102 @@ msgstr "" "скорее всего этот пакет просто невозможно установить. Сообщите, пожалуйста,\n" "об этом как о найденной ошибке в пакете." -#: cmdline/apt-get.cc:2075 cmdline/apt-shell.cc:2159 +#: cmdline/apt-get.cc:2099 cmdline/apt-shell.cc:2180 msgid "The following information may help to resolve the situation:" msgstr "Эти сведения могут помочь найти выход из ситуации:" -#: cmdline/apt-get.cc:2078 cmdline/apt-shell.cc:2163 +#: cmdline/apt-get.cc:2102 cmdline/apt-shell.cc:2184 msgid "Broken packages" msgstr "Извините, `битые' пакеты" -#: cmdline/apt-get.cc:2104 +#: cmdline/apt-get.cc:2128 msgid "The following extra packages will be installed:" msgstr "Следующие дополнительные пакеты будут установлены:" -#: cmdline/apt-get.cc:2184 +#: cmdline/apt-get.cc:2208 msgid "Suggested packages:" msgstr "Предпочитаемые пакеты:" -#: cmdline/apt-get.cc:2185 +#: cmdline/apt-get.cc:2209 msgid "Recommended packages:" msgstr "Рекомендуемые пакеты" -#: cmdline/apt-get.cc:2209 cmdline/apt-shell.cc:2190 +#: cmdline/apt-get.cc:2233 cmdline/apt-shell.cc:2211 msgid "Calculating Upgrade... " msgstr "Подсчет обновлений... " -#: cmdline/apt-get.cc:2212 cmdline/apt-shell.cc:2193 methods/connect.cc:102 +#: cmdline/apt-get.cc:2236 cmdline/apt-shell.cc:2214 methods/connect.cc:102 #: methods/ftp.cc:706 msgid "Failed" msgstr "Ошибка" -#: cmdline/apt-get.cc:2228 cmdline/apt-shell.cc:2205 +#: cmdline/apt-get.cc:2252 cmdline/apt-shell.cc:2226 msgid "Done" msgstr "Завершено" -#: cmdline/apt-get.cc:2405 +#: cmdline/apt-get.cc:2429 msgid "Must specify at least one package to fetch source for" msgstr "Для скачивания исходника необходимо указать хотя бы один пакет." -#: cmdline/apt-get.cc:2432 cmdline/apt-get.cc:2670 cmdline/apt-shell.cc:2432 +#: cmdline/apt-get.cc:2456 cmdline/apt-get.cc:2696 cmdline/apt-shell.cc:2453 #, c-format msgid "Unable to find a source package for %s" msgstr "Невозможно найти исходный пакет для %s" -#: cmdline/apt-get.cc:2481 +#: cmdline/apt-get.cc:2505 #, c-format msgid "You don't have enough free space in %s" msgstr "Недостаточно свободного места в %s" -#: cmdline/apt-get.cc:2486 +#: cmdline/apt-get.cc:2510 #, c-format msgid "Need to get %sB/%sB of source archives.\n" msgstr "Необходимо получить %sB/%sB исходных архивов.\n" -#: cmdline/apt-get.cc:2489 +#: cmdline/apt-get.cc:2513 #, c-format msgid "Need to get %sB of source archives.\n" msgstr "Необходимо получить %sB исходных архивов.\n" -#: cmdline/apt-get.cc:2495 +#: cmdline/apt-get.cc:2519 #, c-format msgid "Fetch Source %s\n" msgstr "Получение исходника пакета %s\n" -#: cmdline/apt-get.cc:2560 cmdline/apt-get.cc:2611 +#: cmdline/apt-get.cc:2584 cmdline/apt-get.cc:2635 #, c-format msgid "Build command '%s' failed.\n" msgstr "Команда сборки пакета '%s' вызвала ошибку.\n" -#: cmdline/apt-get.cc:2572 cmdline/apt-get.cc:2594 +#: cmdline/apt-get.cc:2596 cmdline/apt-get.cc:2618 #, c-format msgid "Unpack command '%s' failed.\n" msgstr "Команда распаковки '%s' вызвала ошибку.\n" -#: cmdline/apt-get.cc:2582 +#: cmdline/apt-get.cc:2606 #, c-format msgid "Skipping unpack of already unpacked source in %s\n" msgstr "Пропуск распаковки уже распакованных исходников пакета в %s\n" -#: cmdline/apt-get.cc:2631 +#: cmdline/apt-get.cc:2655 msgid "Child process failed" msgstr "Вспомогательный процесс завершился с ошибкой" -#: cmdline/apt-get.cc:2647 cmdline/apt-shell.cc:2409 +#: cmdline/apt-get.cc:2673 cmdline/apt-shell.cc:2430 msgid "Must specify at least one package to check builddeps for" msgstr "Укажите хотя бы один пакет для проверки его сборочных зависимостей." -#: cmdline/apt-get.cc:2675 cmdline/apt-shell.cc:2437 +#: cmdline/apt-get.cc:2701 cmdline/apt-shell.cc:2458 #, c-format msgid "Unable to get build-dependency information for %s" msgstr "Невозможно определить сборочные зависимости для %s." -#: cmdline/apt-get.cc:2695 cmdline/apt-shell.cc:2457 +#: cmdline/apt-get.cc:2721 cmdline/apt-shell.cc:2478 #, c-format msgid "%s has no build depends.\n" msgstr "%s не имеет сборочных зависимостей.\n" -#: cmdline/apt-get.cc:2766 cmdline/apt-shell.cc:2528 +#: cmdline/apt-get.cc:2792 cmdline/apt-shell.cc:2549 #, c-format msgid "" "%s dependency for %s cannot be satisfied because the package %s cannot be " @@ -1005,7 +1006,7 @@ msgstr "" "зависимость %s для %s не может быть удовлетворена, потому что отсутствует " "пакет %s." -#: cmdline/apt-get.cc:2818 cmdline/apt-shell.cc:2580 +#: cmdline/apt-get.cc:2844 cmdline/apt-shell.cc:2601 #, c-format msgid "" "%s dependency for %s cannot be satisfied because no available versions of " @@ -1014,19 +1015,19 @@ msgstr "" "зависимость %s для %s не может быть удовлетворена, потому что ни одна из " "доступных версий пакета %s, не может её удовлетворить." -#: cmdline/apt-get.cc:2853 cmdline/apt-shell.cc:2614 +#: cmdline/apt-get.cc:2879 cmdline/apt-shell.cc:2635 #, c-format msgid "Failed to satisfy %s dependency for %s: Installed package %s is too new" msgstr "" "Невозможно удовлетворить %s зависимость для %s: Установленный пакет %s " "слишком нов." -#: cmdline/apt-get.cc:2878 cmdline/apt-shell.cc:2639 +#: cmdline/apt-get.cc:2904 cmdline/apt-shell.cc:2660 #, c-format msgid "Failed to satisfy %s dependency for %s: %s" msgstr "Невозможно удовлетворить %s зависимость для %s: %s" -#: cmdline/apt-get.cc:2892 cmdline/apt-shell.cc:2653 +#: cmdline/apt-get.cc:2918 cmdline/apt-shell.cc:2674 #, c-format msgid "" "Some broken packages were found while trying to process build-dependencies " @@ -1036,15 +1037,15 @@ msgstr "" "Обнаружены повреждённые пакеты при обработке сборочных зависимостей для %s.\n" "Возможно, потребуется запустить `apt-get -f install' для исправления." -#: cmdline/apt-get.cc:2897 +#: cmdline/apt-get.cc:2923 msgid "Failed to process build dependencies" msgstr "Ошибка обработки сборочных зависимостей" -#: cmdline/apt-get.cc:2964 cmdline/apt-shell.cc:3699 +#: cmdline/apt-get.cc:2990 cmdline/apt-shell.cc:3723 msgid "Supported Modules:" msgstr "Поддерживаемые модули:" -#: cmdline/apt-get.cc:3005 +#: cmdline/apt-get.cc:3031 msgid "" "Usage: apt-get [options] command\n" " apt-get [options] install|remove pkg1 [pkg2 ...]\n" @@ -1086,7 +1087,7 @@ msgstr "" " autoclean - Удалить давно скачанные архивные файлы\n" " check - Удостовериться в отсутствии неудовлетворённых зависимостей\n" -#: cmdline/apt-get.cc:3031 +#: cmdline/apt-get.cc:3059 msgid "" "\n" "Options:\n" @@ -1130,17 +1131,17 @@ msgstr "" "Более полное описание доступно на страницах руководства man:\n" "apt-get(8), sources.list(5) и apt.conf(5).\n" -#: cmdline/apt-shell.cc:151 cmdline/apt-shell.cc:4421 +#: cmdline/apt-shell.cc:151 cmdline/apt-shell.cc:4445 msgid "There are broken packages. " msgstr "Присутствуют пакеты с нарушенными зависимостями." -#: cmdline/apt-shell.cc:152 cmdline/apt-shell.cc:2116 -#: cmdline/apt-shell.cc:4422 +#: cmdline/apt-shell.cc:152 cmdline/apt-shell.cc:2137 +#: cmdline/apt-shell.cc:4446 msgid "Run `check' to see them." msgstr "Запустите команду `check', чтобы увидеть их." -#: cmdline/apt-shell.cc:153 cmdline/apt-shell.cc:2117 -#: cmdline/apt-shell.cc:4423 +#: cmdline/apt-shell.cc:153 cmdline/apt-shell.cc:2138 +#: cmdline/apt-shell.cc:4447 msgid "You can try to fix them automatically with `install -f'." msgstr "" "Вы можете попробовать исправить их автоматически, используя команду `install " @@ -1189,29 +1190,29 @@ msgstr "" msgid "You might want to run `install -f' to correct these." msgstr "Возможно, Вам потребуется запустить `install -f' для исправления." -#: cmdline/apt-shell.cc:1818 cmdline/apt-shell.cc:1856 -#: cmdline/apt-shell.cc:2181 cmdline/apt-shell.cc:2222 -#: cmdline/apt-shell.cc:2399 cmdline/apt-shell.cc:4011 +#: cmdline/apt-shell.cc:1839 cmdline/apt-shell.cc:1877 +#: cmdline/apt-shell.cc:2202 cmdline/apt-shell.cc:2243 +#: cmdline/apt-shell.cc:2420 cmdline/apt-shell.cc:4035 msgid "You have no permissions for that" msgstr "Вы не имеете необходимых разрешений для этого" -#: cmdline/apt-shell.cc:2115 +#: cmdline/apt-shell.cc:2136 msgid "There are still broken packages. " msgstr "Всё ещё есть пакеты с нарушенными зависимостями." -#: cmdline/apt-shell.cc:3528 +#: cmdline/apt-shell.cc:3552 msgid "Name" msgstr "Имя" -#: cmdline/apt-shell.cc:3529 +#: cmdline/apt-shell.cc:3553 msgid "Installed" msgstr "Установлено" -#: cmdline/apt-shell.cc:3530 +#: cmdline/apt-shell.cc:3554 msgid "Candidate" msgstr "Кандидат" -#: cmdline/apt-shell.cc:3740 +#: cmdline/apt-shell.cc:3764 msgid "" "\n" "Main commands:\n" @@ -1275,7 +1276,7 @@ msgstr "" "\n" " This APT has Super Cow Powers.\n" -#: cmdline/apt-shell.cc:3782 +#: cmdline/apt-shell.cc:3806 msgid "" "Usage: install [options] pkg1[=ver] [pkg2 ...]\n" "\n" @@ -1309,7 +1310,7 @@ msgstr "" "tmp)\n" "\n" -#: cmdline/apt-shell.cc:3800 +#: cmdline/apt-shell.cc:3824 msgid "" "Usage: remove [options] pkg1 [pkg2 ...]\n" "\n" @@ -1342,7 +1343,7 @@ msgstr "" "tmp)\n" "\n" -#: cmdline/apt-shell.cc:3818 +#: cmdline/apt-shell.cc:3842 msgid "" "Usage: keep [options] pkg1 [pkg2 ...]\n" "\n" @@ -1376,7 +1377,7 @@ msgstr "" "tmp)\n" "\n" -#: cmdline/apt-shell.cc:3837 +#: cmdline/apt-shell.cc:3861 msgid "" "Usage: upgrade [options]\n" "\n" @@ -1407,7 +1408,7 @@ msgstr "" "tmp)\n" "\n" -#: cmdline/apt-shell.cc:3853 +#: cmdline/apt-shell.cc:3877 msgid "" "Usage: dist-upgrade [options]\n" "\n" @@ -1438,7 +1439,7 @@ msgstr "" "tmp)\n" "\n" -#: cmdline/apt-shell.cc:3869 +#: cmdline/apt-shell.cc:3893 msgid "" "Usage: showpkg [options] pkg1 [pkg2 ...]\n" "\n" @@ -1459,7 +1460,7 @@ msgstr "" "tmp)\n" "\n" -#: cmdline/apt-shell.cc:3882 +#: cmdline/apt-shell.cc:3906 msgid "" "Usage: show [options] pkg1 [pkg2 ...]\n" "\n" @@ -1482,7 +1483,7 @@ msgstr "" "tmp)\n" "\n" -#: cmdline/apt-shell.cc:3896 +#: cmdline/apt-shell.cc:3920 msgid "" "Usage: depends [options] pkg1 [pkg2 ...]\n" "\n" @@ -1503,7 +1504,7 @@ msgstr "" "tmp)\n" "\n" -#: cmdline/apt-shell.cc:3909 +#: cmdline/apt-shell.cc:3933 msgid "" "Usage: whatdepends [options] pkg1 [pkg2 ...]\n" "\n" @@ -1524,7 +1525,7 @@ msgstr "" "tmp)\n" "\n" -#: cmdline/apt-shell.cc:3922 +#: cmdline/apt-shell.cc:3946 msgid "" "Usage: unmet [options]\n" "\n" @@ -1545,7 +1546,7 @@ msgstr "" "tmp)\n" "\n" -#: cmdline/apt-shell.cc:3935 +#: cmdline/apt-shell.cc:3959 msgid "" "Usage: search [options] <regex>\n" "\n" @@ -1571,7 +1572,7 @@ msgstr "" "tmp)\n" "\n" -#: cmdline/apt-shell.cc:3952 +#: cmdline/apt-shell.cc:3976 msgid "" "Usage: list/ls [options] [pattern ...]\n" "\n" @@ -1602,7 +1603,7 @@ msgstr "" "tmp)\n" "\n" -#: cmdline/apt-shell.cc:3970 +#: cmdline/apt-shell.cc:3994 msgid "" "Usage: commit [options]\n" "\n" @@ -1623,7 +1624,7 @@ msgstr "" "tmp)\n" "\n" -#: cmdline/apt-shell.cc:3983 +#: cmdline/apt-shell.cc:4007 msgid "" "Usage: script [options] script1 [script2]\n" "\n" @@ -1644,37 +1645,37 @@ msgstr "" "tmp)\n" "\n" -#: cmdline/apt-shell.cc:3994 +#: cmdline/apt-shell.cc:4018 msgid "No help for that" msgstr "Нет справки для этого" -#: cmdline/apt-shell.cc:4431 +#: cmdline/apt-shell.cc:4455 msgid "Welcome to the APT shell. Type \"help\" for more information." msgstr "" "Добро пожаловать в APT shell. Используйте команду \"help\" для " "дополнительной информации." -#: cmdline/apt-shell.cc:4471 +#: cmdline/apt-shell.cc:4495 msgid "Exceeded maximum number of command arguments" msgstr "Превышено максимальное количество аргументов команды" -#: apt-pkg/contrib/cdromutl.cc:55 +#: apt-pkg/contrib/cdromutl.cc:60 #, c-format msgid "Unable to stat the mount point %s" msgstr "Не найдена точка монтирования %s диска" -#: apt-pkg/contrib/cdromutl.cc:149 apt-pkg/acquire.cc:418 apt-pkg/clean.cc:44 +#: apt-pkg/contrib/cdromutl.cc:174 apt-pkg/acquire.cc:418 apt-pkg/clean.cc:44 #, c-format msgid "Unable to change to %s" msgstr "Невозможно перейти к %s" -#: apt-pkg/contrib/cdromutl.cc:153 apt-pkg/contrib/configuration.cc:735 -#: apt-pkg/acquire.cc:412 apt-pkg/clean.cc:38 apt-pkg/sourcelist.cc:424 +#: apt-pkg/contrib/cdromutl.cc:178 apt-pkg/contrib/configuration.cc:735 +#: apt-pkg/acquire.cc:412 apt-pkg/clean.cc:38 apt-pkg/sourcelist.cc:427 #, c-format msgid "Unable to read %s" msgstr "Невозможно прочитать %s" -#: apt-pkg/contrib/cdromutl.cc:190 +#: apt-pkg/contrib/cdromutl.cc:215 msgid "Failed to stat the cdrom" msgstr "Не найден CD-ROM." @@ -1809,12 +1810,12 @@ msgstr " msgid "Sub-process %s received a segmentation fault." msgstr "Подпроцесс %s выполнил недопустимую операцию." -#: apt-pkg/contrib/fileutl.cc:374 apt-pkg/rpm/rpmpm.cc:618 +#: apt-pkg/contrib/fileutl.cc:374 apt-pkg/rpm/rpmpm.cc:623 #, c-format msgid "Sub-process %s returned an error code (%u)" msgstr "Подпроцесс %s завершился с ошибкой (%u)." -#: apt-pkg/contrib/fileutl.cc:376 apt-pkg/rpm/rpmpm.cc:621 +#: apt-pkg/contrib/fileutl.cc:376 apt-pkg/rpm/rpmpm.cc:626 #, c-format msgid "Sub-process %s exited unexpectedly" msgstr "Подпроцесс %s завершился непредусмотренным образом." @@ -1883,7 +1884,7 @@ msgid "could not rewind RPMFileHandler" msgstr "откат RPMFileHandler невозможен" #: apt-pkg/rpm/rpmhandler.cc:160 apt-pkg/rpm/rpmhandler.cc:167 -#: apt-pkg/rpm/rpmpm.cc:680 apt-pkg/rpm/rpmpm.cc:685 +#: apt-pkg/rpm/rpmpm.cc:685 apt-pkg/rpm/rpmpm.cc:690 #, c-format msgid "Failed reading file %s" msgstr "Ошибка чтения файла %s" @@ -1969,7 +1970,7 @@ msgstr "" "\n" "RPM::Allow-Duplicated-Warning \"false\";\n" -#: apt-pkg/rpm/rpmlistparser.cc:685 +#: apt-pkg/rpm/rpmlistparser.cc:680 msgid "Bad NotAutomatic flag" msgstr "" @@ -2027,66 +2028,66 @@ msgstr " msgid "Failure running script %s" msgstr "Ошибка выполнения скрипта %s" -#: apt-pkg/rpm/rpmpm.cc:309 +#: apt-pkg/rpm/rpmpm.cc:312 msgid "Unknown pkgRPMPM operation." msgstr "" -#: apt-pkg/rpm/rpmpm.cc:544 +#: apt-pkg/rpm/rpmpm.cc:549 msgid "Executing RPM (" msgstr "Запуск RPM (" -#: apt-pkg/rpm/rpmpm.cc:584 +#: apt-pkg/rpm/rpmpm.cc:589 #, fuzzy msgid "Could not exec " msgstr "Невозможно заблокировать %s" -#: apt-pkg/rpm/rpmpm.cc:599 +#: apt-pkg/rpm/rpmpm.cc:604 #, fuzzy msgid "Couldn't wait for subprocess" msgstr "Невозможно открыть канал для %s." -#: apt-pkg/rpm/rpmpm.cc:615 +#: apt-pkg/rpm/rpmpm.cc:620 #, c-format msgid "Sub-process %s recieved a segmentation fault." msgstr "Подпроцесс %s выполнил недопустимую операцию." -#: apt-pkg/rpm/rpmpm.cc:625 apt-pkg/rpm/rpmpm.cc:873 +#: apt-pkg/rpm/rpmpm.cc:630 apt-pkg/rpm/rpmpm.cc:878 #, fuzzy msgid "Done." msgstr "Завершено" -#: apt-pkg/rpm/rpmpm.cc:676 +#: apt-pkg/rpm/rpmpm.cc:681 #, c-format msgid "Failed opening %s" msgstr "Ошибка открытия %s" -#: apt-pkg/rpm/rpmpm.cc:689 apt-pkg/rpm/rpmpm.cc:713 +#: apt-pkg/rpm/rpmpm.cc:694 apt-pkg/rpm/rpmpm.cc:718 #, c-format msgid "Failed adding %s to transaction %s" msgstr "Ошибка добавления %s в транзакцию %s" -#: apt-pkg/rpm/rpmpm.cc:765 apt-pkg/rpm/rpmpm.cc:775 +#: apt-pkg/rpm/rpmpm.cc:770 apt-pkg/rpm/rpmpm.cc:780 msgid "Could not open RPM database" msgstr "Невозможно открыть базу данных RPM" -#: apt-pkg/rpm/rpmpm.cc:812 apt-pkg/rpm/rpmpm.cc:825 +#: apt-pkg/rpm/rpmpm.cc:817 apt-pkg/rpm/rpmpm.cc:830 msgid "Transaction set check failed" msgstr "Проверка группы транзакций не удалась" -#: apt-pkg/rpm/rpmpm.cc:845 +#: apt-pkg/rpm/rpmpm.cc:850 #, c-format msgid "Ordering failed for %d packages" msgstr "Упорядочивание не удалось для %d пакетов" -#: apt-pkg/rpm/rpmpm.cc:849 +#: apt-pkg/rpm/rpmpm.cc:854 msgid "Committing changes..." msgstr "Совершаем изменения..." -#: apt-pkg/rpm/rpmpm.cc:865 +#: apt-pkg/rpm/rpmpm.cc:870 msgid "Error while running transaction" msgstr "Ошибка во время исполнения транзакции" -#: apt-pkg/rpm/rpmpm.cc:871 +#: apt-pkg/rpm/rpmpm.cc:876 msgid "Some errors occurred while running transaction" msgstr "Произошли ошибки при выполнении транзакции" @@ -2100,12 +2101,16 @@ msgstr " msgid "error parsing source list %s" msgstr "ошибка обработки списка источников %s" -#: apt-pkg/rpm/rpmsystem.cc:410 apt-pkg/pkgcachegen.cc:714 +#: apt-pkg/rpm/rpmsystem.cc:411 apt-pkg/pkgcachegen.cc:714 #: apt-pkg/pkgcachegen.cc:741 apt-pkg/pkgcachegen.cc:783 #: apt-pkg/pkgcachegen.cc:788 apt-pkg/pkgcachegen.cc:992 msgid "Reading Package Lists" msgstr "Чтение списков пакетов" +#: apt-pkg/rpm/rpmshowprogress.h:121 apt-pkg/rpm/rpmshowprogress.h:123 +msgid "Preparing..." +msgstr "" + #: apt-pkg/acquire.cc:61 #, c-format msgid "Lists directory %spartial is missing." @@ -2467,38 +2472,38 @@ msgid "Malformed line %lu in source list %s (Absolute dist)" msgstr "" "Неправильная строка %lu в списке источников %s (абсолютный дистрибутив)" -#: apt-pkg/sourcelist.cc:116 +#: apt-pkg/sourcelist.cc:119 #, c-format msgid "Malformed line %lu in source list %s (dist parse)" msgstr "" "Неправильная строка %lu в списке источников %s (обработка дистрибутива)" -#: apt-pkg/sourcelist.cc:206 apt-pkg/sourcelist.cc:230 +#: apt-pkg/sourcelist.cc:209 apt-pkg/sourcelist.cc:233 #, c-format msgid "Vendor block %s is invalid" msgstr "Неверный блок данных поставщика %s." -#: apt-pkg/sourcelist.cc:314 +#: apt-pkg/sourcelist.cc:317 #, c-format msgid "Line %u too long in source list %s." msgstr "Слишком длинная запись %u в списке источников %s." -#: apt-pkg/sourcelist.cc:334 +#: apt-pkg/sourcelist.cc:337 #, c-format msgid "Malformed line %u in source list %s (type)" msgstr "Ошибочная запись в строке %u в списке источников %s (тип источника)" -#: apt-pkg/sourcelist.cc:338 +#: apt-pkg/sourcelist.cc:341 #, c-format msgid "Type '%s' is not known in on line %u in source list %s" msgstr "Неизвестный тип '%s' в строке %u списка источников %s." -#: apt-pkg/sourcelist.cc:347 apt-pkg/sourcelist.cc:350 +#: apt-pkg/sourcelist.cc:350 apt-pkg/sourcelist.cc:353 #, c-format msgid "Malformed line %u in source list %s (vendor id)" msgstr "Неправильная строка %u в списке источников %s (ID поставщика)" -#: apt-pkg/sourcelist.cc:364 +#: apt-pkg/sourcelist.cc:367 #, c-format msgid "Unknown vendor ID '%s' in line %u of source list %s" msgstr "Неизвестный ID поставщика '%s' в строке %u списка источников %s." @@ -2517,7 +2522,7 @@ msgstr " msgid "Unable to parse package file %s (2)" msgstr "Невозможно прочитать пакетный файл %s (2)" -#: methods/cdrom.cc:169 +#: methods/cdrom.cc:202 msgid "" "Please use apt-cdrom to make this CD recognized by APT. apt-get update " "cannot be used to add new CDs" @@ -2525,17 +2530,17 @@ msgstr "" "Пожалуйста, используйте apt-cdrom, чтобы сделать этот CD доступным APT. apt-" "get update не может быть использован для добавления новых CD дисков" -#: methods/cdrom.cc:177 methods/cdrom.cc:215 +#: methods/cdrom.cc:210 methods/cdrom.cc:248 msgid "Wrong CD" msgstr "Неправильный CD" -#: methods/cdrom.cc:210 +#: methods/cdrom.cc:243 #, c-format msgid "Unable to unmount the CD-ROM in %s, it may still be in use." msgstr "" "Невозможно размонтировать CD-ROM в %s, наверное он все еще используется" -#: methods/cdrom.cc:233 methods/file.cc:82 +#: methods/cdrom.cc:266 methods/file.cc:82 msgid "File not found" msgstr "Файл не найден" diff --git a/apt/python/Makefile b/apt/python/Makefile index a314365..d709e1e 100644 --- a/apt/python/Makefile +++ b/apt/python/Makefile @@ -1,28 +1,28 @@ MODULES = apt.py -CC = gcc +CC = g++ SWIG = swig #SWIGFLAGS = -w312 -w315 -w508 -w509 SWIGFLAGS = -w312 -w315 -w508 #SWIG = /var/tmp/swig/BUILD/SWIG-1.3.16/swig LUAFLAGS = -DWITH_LUA -PYTHONVER = $(shell python -c "import sys; v=sys.version_info[:2]; print '%d.%d'%v" 2>/dev/null || echo NONE) -PYTHONFLAGS=-I/usr/include/python$(PYTHONVER) +PYTHON = python +PYTHONFLAGS = $(shell $(PYTHON) -c "from distutils.sysconfig import get_python_inc; print '-I' + get_python_inc(1)") all: $(MODULES) $(MODULES): %.py: _%.so _%.so: %_wrap.cxx - $(CC) -shared -I.. $(PYTHONFLAGS) $(LUAFLAGS) -L../bin -L../build/bin -lapt-pkg -o $@ $< + $(CC) -fPIC -shared -I.. -I../include $(PYTHONFLAGS) $(LUAFLAGS) -L../apt-pkg/.libs -lapt-pkg -o $@ $< apt_wrap.cxx: apt.i - $(SWIG) $(SWIGFLAGS) -c++ -I.. $(LUAFLAGS) -python $< + $(SWIG) $(SWIGFLAGS) -c++ -I.. -I../include $(LUAFLAGS) -python $< clean: rm -f *.cxx distclean: clean - rm -f $(MODULES) *.pyc _*.so + rm -f $(MODULES) *.pyc *.pyo *.so diff --git a/apt/python/apt.py b/apt/python/apt.py index e626f9e..d1f14bc 100644 --- a/apt/python/apt.py +++ b/apt/python/apt.py @@ -1,7 +1,9 @@ # This file was created automatically by SWIG. # Don't modify this file, modify the SWIG interface instead. # This file is compatible with both classic and new-style classes. + import _apt + def _swig_setattr(self,class_type,name,value): if (name == "this"): if isinstance(value, class_type): @@ -25,22 +27,25 @@ try: except AttributeError: class _object : pass _newclass = 0 +del types + pkgInit = _apt.pkgInit - APT_PKG_MAJOR = _apt.APT_PKG_MAJOR APT_PKG_MINOR = _apt.APT_PKG_MINOR APT_PKG_RELEASE = _apt.APT_PKG_RELEASE + pkgInitConfig = _apt.pkgInitConfig pkgInitSystem = _apt.pkgInitSystem - class pkgCache(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, pkgCache, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, pkgCache, name) + def __repr__(self): + return "<C pkgCache instance at %s>" % (self.this,) DepDepends = _apt.pkgCache_DepDepends DepPreDepends = _apt.pkgCache_DepPreDepends DepSuggests = _apt.pkgCache_DepSuggests @@ -83,171 +88,172 @@ class pkgCache(_object): FlagNotAutomatic = _apt.pkgCache_FlagNotAutomatic __swig_setmethods__["HeaderP"] = _apt.pkgCache_HeaderP_set __swig_getmethods__["HeaderP"] = _apt.pkgCache_HeaderP_get - if _newclass:HeaderP = property(_apt.pkgCache_HeaderP_get,_apt.pkgCache_HeaderP_set) + if _newclass:HeaderP = property(_apt.pkgCache_HeaderP_get, _apt.pkgCache_HeaderP_set) __swig_setmethods__["PkgP"] = _apt.pkgCache_PkgP_set __swig_getmethods__["PkgP"] = _apt.pkgCache_PkgP_get - if _newclass:PkgP = property(_apt.pkgCache_PkgP_get,_apt.pkgCache_PkgP_set) + if _newclass:PkgP = property(_apt.pkgCache_PkgP_get, _apt.pkgCache_PkgP_set) __swig_setmethods__["VerFileP"] = _apt.pkgCache_VerFileP_set __swig_getmethods__["VerFileP"] = _apt.pkgCache_VerFileP_get - if _newclass:VerFileP = property(_apt.pkgCache_VerFileP_get,_apt.pkgCache_VerFileP_set) + if _newclass:VerFileP = property(_apt.pkgCache_VerFileP_get, _apt.pkgCache_VerFileP_set) __swig_setmethods__["PkgFileP"] = _apt.pkgCache_PkgFileP_set __swig_getmethods__["PkgFileP"] = _apt.pkgCache_PkgFileP_get - if _newclass:PkgFileP = property(_apt.pkgCache_PkgFileP_get,_apt.pkgCache_PkgFileP_set) + if _newclass:PkgFileP = property(_apt.pkgCache_PkgFileP_get, _apt.pkgCache_PkgFileP_set) __swig_setmethods__["VerP"] = _apt.pkgCache_VerP_set __swig_getmethods__["VerP"] = _apt.pkgCache_VerP_get - if _newclass:VerP = property(_apt.pkgCache_VerP_get,_apt.pkgCache_VerP_set) + if _newclass:VerP = property(_apt.pkgCache_VerP_get, _apt.pkgCache_VerP_set) __swig_setmethods__["ProvideP"] = _apt.pkgCache_ProvideP_set __swig_getmethods__["ProvideP"] = _apt.pkgCache_ProvideP_get - if _newclass:ProvideP = property(_apt.pkgCache_ProvideP_get,_apt.pkgCache_ProvideP_set) + if _newclass:ProvideP = property(_apt.pkgCache_ProvideP_get, _apt.pkgCache_ProvideP_set) __swig_setmethods__["DepP"] = _apt.pkgCache_DepP_set __swig_getmethods__["DepP"] = _apt.pkgCache_DepP_get - if _newclass:DepP = property(_apt.pkgCache_DepP_get,_apt.pkgCache_DepP_set) + if _newclass:DepP = property(_apt.pkgCache_DepP_get, _apt.pkgCache_DepP_set) __swig_setmethods__["StringItemP"] = _apt.pkgCache_StringItemP_set __swig_getmethods__["StringItemP"] = _apt.pkgCache_StringItemP_get - if _newclass:StringItemP = property(_apt.pkgCache_StringItemP_get,_apt.pkgCache_StringItemP_set) + if _newclass:StringItemP = property(_apt.pkgCache_StringItemP_get, _apt.pkgCache_StringItemP_set) __swig_setmethods__["StrP"] = _apt.pkgCache_StrP_set __swig_getmethods__["StrP"] = _apt.pkgCache_StrP_get - if _newclass:StrP = property(_apt.pkgCache_StrP_get,_apt.pkgCache_StrP_set) - def ReMap(*args): return apply(_apt.pkgCache_ReMap,args) - def Sync(*args): return apply(_apt.pkgCache_Sync,args) - def GetMap(*args): return apply(_apt.pkgCache_GetMap,args) - def DataEnd(*args): return apply(_apt.pkgCache_DataEnd,args) - def Hash(*args): return apply(_apt.pkgCache_Hash,args) - def Priority(*args): return apply(_apt.pkgCache_Priority,args) - def FindPkg(*args): return apply(_apt.pkgCache_FindPkg,args) - def FindPackage(*args): return apply(_apt.pkgCache_FindPackage,args) - def Head(*args): return apply(_apt.pkgCache_Head,args) - def PkgIter(*args): return apply(_apt.pkgCache_PkgIter,args) - def FileIter(*args): return apply(_apt.pkgCache_FileIter,args) + if _newclass:StrP = property(_apt.pkgCache_StrP_get, _apt.pkgCache_StrP_set) + def ReMap(*args): return _apt.pkgCache_ReMap(*args) + def Sync(*args): return _apt.pkgCache_Sync(*args) + def GetMap(*args): return _apt.pkgCache_GetMap(*args) + def DataEnd(*args): return _apt.pkgCache_DataEnd(*args) + def Hash(*args): return _apt.pkgCache_Hash(*args) + def Priority(*args): return _apt.pkgCache_Priority(*args) + def FindPkg(*args): return _apt.pkgCache_FindPkg(*args) + def FindPackage(*args): return _apt.pkgCache_FindPackage(*args) + def Head(*args): return _apt.pkgCache_Head(*args) + def PkgIter(*args): return _apt.pkgCache_PkgIter(*args) + def FileIter(*args): return _apt.pkgCache_FileIter(*args) __swig_setmethods__["VS"] = _apt.pkgCache_VS_set __swig_getmethods__["VS"] = _apt.pkgCache_VS_get - if _newclass:VS = property(_apt.pkgCache_VS_get,_apt.pkgCache_VS_set) + if _newclass:VS = property(_apt.pkgCache_VS_get, _apt.pkgCache_VS_set) __swig_getmethods__["CompTypeDeb"] = lambda x: _apt.pkgCache_CompTypeDeb if _newclass:CompTypeDeb = staticmethod(_apt.pkgCache_CompTypeDeb) __swig_getmethods__["CompType"] = lambda x: _apt.pkgCache_CompType if _newclass:CompType = staticmethod(_apt.pkgCache_CompType) __swig_getmethods__["DepType"] = lambda x: _apt.pkgCache_DepType if _newclass:DepType = staticmethod(_apt.pkgCache_DepType) - def __init__(self,*args): - self.this = apply(_apt.new_pkgCache,args) - self.thisown = 1 - def __del__(self, destroy= _apt.delete_pkgCache): + def __init__(self, *args): + _swig_setattr(self, pkgCache, 'this', _apt.new_pkgCache(*args)) + _swig_setattr(self, pkgCache, 'thisown', 1) + def __del__(self, destroy=_apt.delete_pkgCache): try: if self.thisown: destroy(self) except: pass - def __repr__(self): - return "<C pkgCache instance at %s>" % (self.this,) class pkgCachePtr(pkgCache): - def __init__(self,this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = pkgCache + def __init__(self, this): + _swig_setattr(self, pkgCache, 'this', this) + if not hasattr(self,"thisown"): _swig_setattr(self, pkgCache, 'thisown', 0) + _swig_setattr(self, pkgCache,self.__class__,pkgCache) _apt.pkgCache_swigregister(pkgCachePtr) cvar = _apt.cvar + pkgCache_CompTypeDeb = _apt.pkgCache_CompTypeDeb pkgCache_CompType = _apt.pkgCache_CompType pkgCache_DepType = _apt.pkgCache_DepType - class pkgCacheHeader(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, pkgCacheHeader, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, pkgCacheHeader, name) + def __repr__(self): + return "<C pkgCache::Header instance at %s>" % (self.this,) __swig_setmethods__["Signature"] = _apt.pkgCacheHeader_Signature_set __swig_getmethods__["Signature"] = _apt.pkgCacheHeader_Signature_get - if _newclass:Signature = property(_apt.pkgCacheHeader_Signature_get,_apt.pkgCacheHeader_Signature_set) + if _newclass:Signature = property(_apt.pkgCacheHeader_Signature_get, _apt.pkgCacheHeader_Signature_set) __swig_setmethods__["MajorVersion"] = _apt.pkgCacheHeader_MajorVersion_set __swig_getmethods__["MajorVersion"] = _apt.pkgCacheHeader_MajorVersion_get - if _newclass:MajorVersion = property(_apt.pkgCacheHeader_MajorVersion_get,_apt.pkgCacheHeader_MajorVersion_set) + if _newclass:MajorVersion = property(_apt.pkgCacheHeader_MajorVersion_get, _apt.pkgCacheHeader_MajorVersion_set) __swig_setmethods__["MinorVersion"] = _apt.pkgCacheHeader_MinorVersion_set __swig_getmethods__["MinorVersion"] = _apt.pkgCacheHeader_MinorVersion_get - if _newclass:MinorVersion = property(_apt.pkgCacheHeader_MinorVersion_get,_apt.pkgCacheHeader_MinorVersion_set) + if _newclass:MinorVersion = property(_apt.pkgCacheHeader_MinorVersion_get, _apt.pkgCacheHeader_MinorVersion_set) __swig_setmethods__["Dirty"] = _apt.pkgCacheHeader_Dirty_set __swig_getmethods__["Dirty"] = _apt.pkgCacheHeader_Dirty_get - if _newclass:Dirty = property(_apt.pkgCacheHeader_Dirty_get,_apt.pkgCacheHeader_Dirty_set) + if _newclass:Dirty = property(_apt.pkgCacheHeader_Dirty_get, _apt.pkgCacheHeader_Dirty_set) __swig_setmethods__["HasFileDeps"] = _apt.pkgCacheHeader_HasFileDeps_set __swig_getmethods__["HasFileDeps"] = _apt.pkgCacheHeader_HasFileDeps_get - if _newclass:HasFileDeps = property(_apt.pkgCacheHeader_HasFileDeps_get,_apt.pkgCacheHeader_HasFileDeps_set) + if _newclass:HasFileDeps = property(_apt.pkgCacheHeader_HasFileDeps_get, _apt.pkgCacheHeader_HasFileDeps_set) + __swig_setmethods__["OptionsHash"] = _apt.pkgCacheHeader_OptionsHash_set + __swig_getmethods__["OptionsHash"] = _apt.pkgCacheHeader_OptionsHash_get + if _newclass:OptionsHash = property(_apt.pkgCacheHeader_OptionsHash_get, _apt.pkgCacheHeader_OptionsHash_set) __swig_setmethods__["HeaderSz"] = _apt.pkgCacheHeader_HeaderSz_set __swig_getmethods__["HeaderSz"] = _apt.pkgCacheHeader_HeaderSz_get - if _newclass:HeaderSz = property(_apt.pkgCacheHeader_HeaderSz_get,_apt.pkgCacheHeader_HeaderSz_set) + if _newclass:HeaderSz = property(_apt.pkgCacheHeader_HeaderSz_get, _apt.pkgCacheHeader_HeaderSz_set) __swig_setmethods__["PackageSz"] = _apt.pkgCacheHeader_PackageSz_set __swig_getmethods__["PackageSz"] = _apt.pkgCacheHeader_PackageSz_get - if _newclass:PackageSz = property(_apt.pkgCacheHeader_PackageSz_get,_apt.pkgCacheHeader_PackageSz_set) + if _newclass:PackageSz = property(_apt.pkgCacheHeader_PackageSz_get, _apt.pkgCacheHeader_PackageSz_set) __swig_setmethods__["PackageFileSz"] = _apt.pkgCacheHeader_PackageFileSz_set __swig_getmethods__["PackageFileSz"] = _apt.pkgCacheHeader_PackageFileSz_get - if _newclass:PackageFileSz = property(_apt.pkgCacheHeader_PackageFileSz_get,_apt.pkgCacheHeader_PackageFileSz_set) + if _newclass:PackageFileSz = property(_apt.pkgCacheHeader_PackageFileSz_get, _apt.pkgCacheHeader_PackageFileSz_set) __swig_setmethods__["VersionSz"] = _apt.pkgCacheHeader_VersionSz_set __swig_getmethods__["VersionSz"] = _apt.pkgCacheHeader_VersionSz_get - if _newclass:VersionSz = property(_apt.pkgCacheHeader_VersionSz_get,_apt.pkgCacheHeader_VersionSz_set) + if _newclass:VersionSz = property(_apt.pkgCacheHeader_VersionSz_get, _apt.pkgCacheHeader_VersionSz_set) __swig_setmethods__["DependencySz"] = _apt.pkgCacheHeader_DependencySz_set __swig_getmethods__["DependencySz"] = _apt.pkgCacheHeader_DependencySz_get - if _newclass:DependencySz = property(_apt.pkgCacheHeader_DependencySz_get,_apt.pkgCacheHeader_DependencySz_set) + if _newclass:DependencySz = property(_apt.pkgCacheHeader_DependencySz_get, _apt.pkgCacheHeader_DependencySz_set) __swig_setmethods__["ProvidesSz"] = _apt.pkgCacheHeader_ProvidesSz_set __swig_getmethods__["ProvidesSz"] = _apt.pkgCacheHeader_ProvidesSz_get - if _newclass:ProvidesSz = property(_apt.pkgCacheHeader_ProvidesSz_get,_apt.pkgCacheHeader_ProvidesSz_set) + if _newclass:ProvidesSz = property(_apt.pkgCacheHeader_ProvidesSz_get, _apt.pkgCacheHeader_ProvidesSz_set) __swig_setmethods__["VerFileSz"] = _apt.pkgCacheHeader_VerFileSz_set __swig_getmethods__["VerFileSz"] = _apt.pkgCacheHeader_VerFileSz_get - if _newclass:VerFileSz = property(_apt.pkgCacheHeader_VerFileSz_get,_apt.pkgCacheHeader_VerFileSz_set) + if _newclass:VerFileSz = property(_apt.pkgCacheHeader_VerFileSz_get, _apt.pkgCacheHeader_VerFileSz_set) __swig_setmethods__["PackageCount"] = _apt.pkgCacheHeader_PackageCount_set __swig_getmethods__["PackageCount"] = _apt.pkgCacheHeader_PackageCount_get - if _newclass:PackageCount = property(_apt.pkgCacheHeader_PackageCount_get,_apt.pkgCacheHeader_PackageCount_set) + if _newclass:PackageCount = property(_apt.pkgCacheHeader_PackageCount_get, _apt.pkgCacheHeader_PackageCount_set) __swig_setmethods__["VersionCount"] = _apt.pkgCacheHeader_VersionCount_set __swig_getmethods__["VersionCount"] = _apt.pkgCacheHeader_VersionCount_get - if _newclass:VersionCount = property(_apt.pkgCacheHeader_VersionCount_get,_apt.pkgCacheHeader_VersionCount_set) + if _newclass:VersionCount = property(_apt.pkgCacheHeader_VersionCount_get, _apt.pkgCacheHeader_VersionCount_set) __swig_setmethods__["DependsCount"] = _apt.pkgCacheHeader_DependsCount_set __swig_getmethods__["DependsCount"] = _apt.pkgCacheHeader_DependsCount_get - if _newclass:DependsCount = property(_apt.pkgCacheHeader_DependsCount_get,_apt.pkgCacheHeader_DependsCount_set) + if _newclass:DependsCount = property(_apt.pkgCacheHeader_DependsCount_get, _apt.pkgCacheHeader_DependsCount_set) __swig_setmethods__["PackageFileCount"] = _apt.pkgCacheHeader_PackageFileCount_set __swig_getmethods__["PackageFileCount"] = _apt.pkgCacheHeader_PackageFileCount_get - if _newclass:PackageFileCount = property(_apt.pkgCacheHeader_PackageFileCount_get,_apt.pkgCacheHeader_PackageFileCount_set) + if _newclass:PackageFileCount = property(_apt.pkgCacheHeader_PackageFileCount_get, _apt.pkgCacheHeader_PackageFileCount_set) __swig_setmethods__["VerFileCount"] = _apt.pkgCacheHeader_VerFileCount_set __swig_getmethods__["VerFileCount"] = _apt.pkgCacheHeader_VerFileCount_get - if _newclass:VerFileCount = property(_apt.pkgCacheHeader_VerFileCount_get,_apt.pkgCacheHeader_VerFileCount_set) + if _newclass:VerFileCount = property(_apt.pkgCacheHeader_VerFileCount_get, _apt.pkgCacheHeader_VerFileCount_set) __swig_setmethods__["ProvidesCount"] = _apt.pkgCacheHeader_ProvidesCount_set __swig_getmethods__["ProvidesCount"] = _apt.pkgCacheHeader_ProvidesCount_get - if _newclass:ProvidesCount = property(_apt.pkgCacheHeader_ProvidesCount_get,_apt.pkgCacheHeader_ProvidesCount_set) + if _newclass:ProvidesCount = property(_apt.pkgCacheHeader_ProvidesCount_get, _apt.pkgCacheHeader_ProvidesCount_set) __swig_setmethods__["FileList"] = _apt.pkgCacheHeader_FileList_set __swig_getmethods__["FileList"] = _apt.pkgCacheHeader_FileList_get - if _newclass:FileList = property(_apt.pkgCacheHeader_FileList_get,_apt.pkgCacheHeader_FileList_set) + if _newclass:FileList = property(_apt.pkgCacheHeader_FileList_get, _apt.pkgCacheHeader_FileList_set) __swig_setmethods__["StringList"] = _apt.pkgCacheHeader_StringList_set __swig_getmethods__["StringList"] = _apt.pkgCacheHeader_StringList_get - if _newclass:StringList = property(_apt.pkgCacheHeader_StringList_get,_apt.pkgCacheHeader_StringList_set) + if _newclass:StringList = property(_apt.pkgCacheHeader_StringList_get, _apt.pkgCacheHeader_StringList_set) __swig_setmethods__["VerSysName"] = _apt.pkgCacheHeader_VerSysName_set __swig_getmethods__["VerSysName"] = _apt.pkgCacheHeader_VerSysName_get - if _newclass:VerSysName = property(_apt.pkgCacheHeader_VerSysName_get,_apt.pkgCacheHeader_VerSysName_set) + if _newclass:VerSysName = property(_apt.pkgCacheHeader_VerSysName_get, _apt.pkgCacheHeader_VerSysName_set) __swig_setmethods__["Architecture"] = _apt.pkgCacheHeader_Architecture_set __swig_getmethods__["Architecture"] = _apt.pkgCacheHeader_Architecture_get - if _newclass:Architecture = property(_apt.pkgCacheHeader_Architecture_get,_apt.pkgCacheHeader_Architecture_set) + if _newclass:Architecture = property(_apt.pkgCacheHeader_Architecture_get, _apt.pkgCacheHeader_Architecture_set) __swig_setmethods__["MaxVerFileSize"] = _apt.pkgCacheHeader_MaxVerFileSize_set __swig_getmethods__["MaxVerFileSize"] = _apt.pkgCacheHeader_MaxVerFileSize_get - if _newclass:MaxVerFileSize = property(_apt.pkgCacheHeader_MaxVerFileSize_get,_apt.pkgCacheHeader_MaxVerFileSize_set) + if _newclass:MaxVerFileSize = property(_apt.pkgCacheHeader_MaxVerFileSize_get, _apt.pkgCacheHeader_MaxVerFileSize_set) __swig_setmethods__["Pools"] = _apt.pkgCacheHeader_Pools_set __swig_getmethods__["Pools"] = _apt.pkgCacheHeader_Pools_get - if _newclass:Pools = property(_apt.pkgCacheHeader_Pools_get,_apt.pkgCacheHeader_Pools_set) + if _newclass:Pools = property(_apt.pkgCacheHeader_Pools_get, _apt.pkgCacheHeader_Pools_set) __swig_setmethods__["HashTable"] = _apt.pkgCacheHeader_HashTable_set __swig_getmethods__["HashTable"] = _apt.pkgCacheHeader_HashTable_get - if _newclass:HashTable = property(_apt.pkgCacheHeader_HashTable_get,_apt.pkgCacheHeader_HashTable_set) - def CheckSizes(*args): return apply(_apt.pkgCacheHeader_CheckSizes,args) - def __init__(self,*args): - self.this = apply(_apt.new_pkgCacheHeader,args) - self.thisown = 1 - def __del__(self, destroy= _apt.delete_pkgCacheHeader): + if _newclass:HashTable = property(_apt.pkgCacheHeader_HashTable_get, _apt.pkgCacheHeader_HashTable_set) + def CheckSizes(*args): return _apt.pkgCacheHeader_CheckSizes(*args) + def __init__(self, *args): + _swig_setattr(self, pkgCacheHeader, 'this', _apt.new_pkgCacheHeader(*args)) + _swig_setattr(self, pkgCacheHeader, 'thisown', 1) + def __del__(self, destroy=_apt.delete_pkgCacheHeader): try: if self.thisown: destroy(self) except: pass - def __repr__(self): - return "<C pkgCacheHeader instance at %s>" % (self.this,) class pkgCacheHeaderPtr(pkgCacheHeader): - def __init__(self,this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = pkgCacheHeader + def __init__(self, this): + _swig_setattr(self, pkgCacheHeader, 'this', this) + if not hasattr(self,"thisown"): _swig_setattr(self, pkgCacheHeader, 'thisown', 0) + _swig_setattr(self, pkgCacheHeader,self.__class__,pkgCacheHeader) _apt.pkgCacheHeader_swigregister(pkgCacheHeaderPtr) class pkgCachePackage(_object): @@ -255,57 +261,57 @@ class pkgCachePackage(_object): __setattr__ = lambda self, name, value: _swig_setattr(self, pkgCachePackage, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, pkgCachePackage, name) + def __repr__(self): + return "<C pkgCache::Package instance at %s>" % (self.this,) __swig_setmethods__["Name"] = _apt.pkgCachePackage_Name_set __swig_getmethods__["Name"] = _apt.pkgCachePackage_Name_get - if _newclass:Name = property(_apt.pkgCachePackage_Name_get,_apt.pkgCachePackage_Name_set) + if _newclass:Name = property(_apt.pkgCachePackage_Name_get, _apt.pkgCachePackage_Name_set) __swig_setmethods__["VersionList"] = _apt.pkgCachePackage_VersionList_set __swig_getmethods__["VersionList"] = _apt.pkgCachePackage_VersionList_get - if _newclass:VersionList = property(_apt.pkgCachePackage_VersionList_get,_apt.pkgCachePackage_VersionList_set) + if _newclass:VersionList = property(_apt.pkgCachePackage_VersionList_get, _apt.pkgCachePackage_VersionList_set) __swig_setmethods__["CurrentVer"] = _apt.pkgCachePackage_CurrentVer_set __swig_getmethods__["CurrentVer"] = _apt.pkgCachePackage_CurrentVer_get - if _newclass:CurrentVer = property(_apt.pkgCachePackage_CurrentVer_get,_apt.pkgCachePackage_CurrentVer_set) + if _newclass:CurrentVer = property(_apt.pkgCachePackage_CurrentVer_get, _apt.pkgCachePackage_CurrentVer_set) __swig_setmethods__["Section"] = _apt.pkgCachePackage_Section_set __swig_getmethods__["Section"] = _apt.pkgCachePackage_Section_get - if _newclass:Section = property(_apt.pkgCachePackage_Section_get,_apt.pkgCachePackage_Section_set) + if _newclass:Section = property(_apt.pkgCachePackage_Section_get, _apt.pkgCachePackage_Section_set) __swig_setmethods__["NextPackage"] = _apt.pkgCachePackage_NextPackage_set __swig_getmethods__["NextPackage"] = _apt.pkgCachePackage_NextPackage_get - if _newclass:NextPackage = property(_apt.pkgCachePackage_NextPackage_get,_apt.pkgCachePackage_NextPackage_set) + if _newclass:NextPackage = property(_apt.pkgCachePackage_NextPackage_get, _apt.pkgCachePackage_NextPackage_set) __swig_setmethods__["RevDepends"] = _apt.pkgCachePackage_RevDepends_set __swig_getmethods__["RevDepends"] = _apt.pkgCachePackage_RevDepends_get - if _newclass:RevDepends = property(_apt.pkgCachePackage_RevDepends_get,_apt.pkgCachePackage_RevDepends_set) + if _newclass:RevDepends = property(_apt.pkgCachePackage_RevDepends_get, _apt.pkgCachePackage_RevDepends_set) __swig_setmethods__["ProvidesList"] = _apt.pkgCachePackage_ProvidesList_set __swig_getmethods__["ProvidesList"] = _apt.pkgCachePackage_ProvidesList_get - if _newclass:ProvidesList = property(_apt.pkgCachePackage_ProvidesList_get,_apt.pkgCachePackage_ProvidesList_set) + if _newclass:ProvidesList = property(_apt.pkgCachePackage_ProvidesList_get, _apt.pkgCachePackage_ProvidesList_set) __swig_setmethods__["SelectedState"] = _apt.pkgCachePackage_SelectedState_set __swig_getmethods__["SelectedState"] = _apt.pkgCachePackage_SelectedState_get - if _newclass:SelectedState = property(_apt.pkgCachePackage_SelectedState_get,_apt.pkgCachePackage_SelectedState_set) + if _newclass:SelectedState = property(_apt.pkgCachePackage_SelectedState_get, _apt.pkgCachePackage_SelectedState_set) __swig_setmethods__["InstState"] = _apt.pkgCachePackage_InstState_set __swig_getmethods__["InstState"] = _apt.pkgCachePackage_InstState_get - if _newclass:InstState = property(_apt.pkgCachePackage_InstState_get,_apt.pkgCachePackage_InstState_set) + if _newclass:InstState = property(_apt.pkgCachePackage_InstState_get, _apt.pkgCachePackage_InstState_set) __swig_setmethods__["CurrentState"] = _apt.pkgCachePackage_CurrentState_set __swig_getmethods__["CurrentState"] = _apt.pkgCachePackage_CurrentState_get - if _newclass:CurrentState = property(_apt.pkgCachePackage_CurrentState_get,_apt.pkgCachePackage_CurrentState_set) + if _newclass:CurrentState = property(_apt.pkgCachePackage_CurrentState_get, _apt.pkgCachePackage_CurrentState_set) __swig_setmethods__["ID"] = _apt.pkgCachePackage_ID_set __swig_getmethods__["ID"] = _apt.pkgCachePackage_ID_get - if _newclass:ID = property(_apt.pkgCachePackage_ID_get,_apt.pkgCachePackage_ID_set) + if _newclass:ID = property(_apt.pkgCachePackage_ID_get, _apt.pkgCachePackage_ID_set) __swig_setmethods__["Flags"] = _apt.pkgCachePackage_Flags_set __swig_getmethods__["Flags"] = _apt.pkgCachePackage_Flags_get - if _newclass:Flags = property(_apt.pkgCachePackage_Flags_get,_apt.pkgCachePackage_Flags_set) - def __init__(self,*args): - self.this = apply(_apt.new_pkgCachePackage,args) - self.thisown = 1 - def __del__(self, destroy= _apt.delete_pkgCachePackage): + if _newclass:Flags = property(_apt.pkgCachePackage_Flags_get, _apt.pkgCachePackage_Flags_set) + def __init__(self, *args): + _swig_setattr(self, pkgCachePackage, 'this', _apt.new_pkgCachePackage(*args)) + _swig_setattr(self, pkgCachePackage, 'thisown', 1) + def __del__(self, destroy=_apt.delete_pkgCachePackage): try: if self.thisown: destroy(self) except: pass - def __repr__(self): - return "<C pkgCachePackage instance at %s>" % (self.this,) class pkgCachePackagePtr(pkgCachePackage): - def __init__(self,this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = pkgCachePackage + def __init__(self, this): + _swig_setattr(self, pkgCachePackage, 'this', this) + if not hasattr(self,"thisown"): _swig_setattr(self, pkgCachePackage, 'thisown', 0) + _swig_setattr(self, pkgCachePackage,self.__class__,pkgCachePackage) _apt.pkgCachePackage_swigregister(pkgCachePackagePtr) class pkgCachePackageFile(_object): @@ -313,63 +319,63 @@ class pkgCachePackageFile(_object): __setattr__ = lambda self, name, value: _swig_setattr(self, pkgCachePackageFile, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, pkgCachePackageFile, name) + def __repr__(self): + return "<C pkgCache::PackageFile instance at %s>" % (self.this,) __swig_setmethods__["FileName"] = _apt.pkgCachePackageFile_FileName_set __swig_getmethods__["FileName"] = _apt.pkgCachePackageFile_FileName_get - if _newclass:FileName = property(_apt.pkgCachePackageFile_FileName_get,_apt.pkgCachePackageFile_FileName_set) + if _newclass:FileName = property(_apt.pkgCachePackageFile_FileName_get, _apt.pkgCachePackageFile_FileName_set) __swig_setmethods__["Archive"] = _apt.pkgCachePackageFile_Archive_set __swig_getmethods__["Archive"] = _apt.pkgCachePackageFile_Archive_get - if _newclass:Archive = property(_apt.pkgCachePackageFile_Archive_get,_apt.pkgCachePackageFile_Archive_set) + if _newclass:Archive = property(_apt.pkgCachePackageFile_Archive_get, _apt.pkgCachePackageFile_Archive_set) __swig_setmethods__["Component"] = _apt.pkgCachePackageFile_Component_set __swig_getmethods__["Component"] = _apt.pkgCachePackageFile_Component_get - if _newclass:Component = property(_apt.pkgCachePackageFile_Component_get,_apt.pkgCachePackageFile_Component_set) + if _newclass:Component = property(_apt.pkgCachePackageFile_Component_get, _apt.pkgCachePackageFile_Component_set) __swig_setmethods__["Version"] = _apt.pkgCachePackageFile_Version_set __swig_getmethods__["Version"] = _apt.pkgCachePackageFile_Version_get - if _newclass:Version = property(_apt.pkgCachePackageFile_Version_get,_apt.pkgCachePackageFile_Version_set) + if _newclass:Version = property(_apt.pkgCachePackageFile_Version_get, _apt.pkgCachePackageFile_Version_set) __swig_setmethods__["Origin"] = _apt.pkgCachePackageFile_Origin_set __swig_getmethods__["Origin"] = _apt.pkgCachePackageFile_Origin_get - if _newclass:Origin = property(_apt.pkgCachePackageFile_Origin_get,_apt.pkgCachePackageFile_Origin_set) + if _newclass:Origin = property(_apt.pkgCachePackageFile_Origin_get, _apt.pkgCachePackageFile_Origin_set) __swig_setmethods__["Label"] = _apt.pkgCachePackageFile_Label_set __swig_getmethods__["Label"] = _apt.pkgCachePackageFile_Label_get - if _newclass:Label = property(_apt.pkgCachePackageFile_Label_get,_apt.pkgCachePackageFile_Label_set) + if _newclass:Label = property(_apt.pkgCachePackageFile_Label_get, _apt.pkgCachePackageFile_Label_set) __swig_setmethods__["Architecture"] = _apt.pkgCachePackageFile_Architecture_set __swig_getmethods__["Architecture"] = _apt.pkgCachePackageFile_Architecture_get - if _newclass:Architecture = property(_apt.pkgCachePackageFile_Architecture_get,_apt.pkgCachePackageFile_Architecture_set) + if _newclass:Architecture = property(_apt.pkgCachePackageFile_Architecture_get, _apt.pkgCachePackageFile_Architecture_set) __swig_setmethods__["Site"] = _apt.pkgCachePackageFile_Site_set __swig_getmethods__["Site"] = _apt.pkgCachePackageFile_Site_get - if _newclass:Site = property(_apt.pkgCachePackageFile_Site_get,_apt.pkgCachePackageFile_Site_set) + if _newclass:Site = property(_apt.pkgCachePackageFile_Site_get, _apt.pkgCachePackageFile_Site_set) __swig_setmethods__["IndexType"] = _apt.pkgCachePackageFile_IndexType_set __swig_getmethods__["IndexType"] = _apt.pkgCachePackageFile_IndexType_get - if _newclass:IndexType = property(_apt.pkgCachePackageFile_IndexType_get,_apt.pkgCachePackageFile_IndexType_set) + if _newclass:IndexType = property(_apt.pkgCachePackageFile_IndexType_get, _apt.pkgCachePackageFile_IndexType_set) __swig_setmethods__["Size"] = _apt.pkgCachePackageFile_Size_set __swig_getmethods__["Size"] = _apt.pkgCachePackageFile_Size_get - if _newclass:Size = property(_apt.pkgCachePackageFile_Size_get,_apt.pkgCachePackageFile_Size_set) + if _newclass:Size = property(_apt.pkgCachePackageFile_Size_get, _apt.pkgCachePackageFile_Size_set) __swig_setmethods__["Flags"] = _apt.pkgCachePackageFile_Flags_set __swig_getmethods__["Flags"] = _apt.pkgCachePackageFile_Flags_get - if _newclass:Flags = property(_apt.pkgCachePackageFile_Flags_get,_apt.pkgCachePackageFile_Flags_set) + if _newclass:Flags = property(_apt.pkgCachePackageFile_Flags_get, _apt.pkgCachePackageFile_Flags_set) __swig_setmethods__["NextFile"] = _apt.pkgCachePackageFile_NextFile_set __swig_getmethods__["NextFile"] = _apt.pkgCachePackageFile_NextFile_get - if _newclass:NextFile = property(_apt.pkgCachePackageFile_NextFile_get,_apt.pkgCachePackageFile_NextFile_set) + if _newclass:NextFile = property(_apt.pkgCachePackageFile_NextFile_get, _apt.pkgCachePackageFile_NextFile_set) __swig_setmethods__["ID"] = _apt.pkgCachePackageFile_ID_set __swig_getmethods__["ID"] = _apt.pkgCachePackageFile_ID_get - if _newclass:ID = property(_apt.pkgCachePackageFile_ID_get,_apt.pkgCachePackageFile_ID_set) + if _newclass:ID = property(_apt.pkgCachePackageFile_ID_get, _apt.pkgCachePackageFile_ID_set) __swig_setmethods__["mtime"] = _apt.pkgCachePackageFile_mtime_set __swig_getmethods__["mtime"] = _apt.pkgCachePackageFile_mtime_get - if _newclass:mtime = property(_apt.pkgCachePackageFile_mtime_get,_apt.pkgCachePackageFile_mtime_set) - def __init__(self,*args): - self.this = apply(_apt.new_pkgCachePackageFile,args) - self.thisown = 1 - def __del__(self, destroy= _apt.delete_pkgCachePackageFile): + if _newclass:mtime = property(_apt.pkgCachePackageFile_mtime_get, _apt.pkgCachePackageFile_mtime_set) + def __init__(self, *args): + _swig_setattr(self, pkgCachePackageFile, 'this', _apt.new_pkgCachePackageFile(*args)) + _swig_setattr(self, pkgCachePackageFile, 'thisown', 1) + def __del__(self, destroy=_apt.delete_pkgCachePackageFile): try: if self.thisown: destroy(self) except: pass - def __repr__(self): - return "<C pkgCachePackageFile instance at %s>" % (self.this,) class pkgCachePackageFilePtr(pkgCachePackageFile): - def __init__(self,this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = pkgCachePackageFile + def __init__(self, this): + _swig_setattr(self, pkgCachePackageFile, 'this', this) + if not hasattr(self,"thisown"): _swig_setattr(self, pkgCachePackageFile, 'thisown', 0) + _swig_setattr(self, pkgCachePackageFile,self.__class__,pkgCachePackageFile) _apt.pkgCachePackageFile_swigregister(pkgCachePackageFilePtr) class pkgCacheVerFile(_object): @@ -377,33 +383,33 @@ class pkgCacheVerFile(_object): __setattr__ = lambda self, name, value: _swig_setattr(self, pkgCacheVerFile, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, pkgCacheVerFile, name) + def __repr__(self): + return "<C pkgCache::VerFile instance at %s>" % (self.this,) __swig_setmethods__["File"] = _apt.pkgCacheVerFile_File_set __swig_getmethods__["File"] = _apt.pkgCacheVerFile_File_get - if _newclass:File = property(_apt.pkgCacheVerFile_File_get,_apt.pkgCacheVerFile_File_set) + if _newclass:File = property(_apt.pkgCacheVerFile_File_get, _apt.pkgCacheVerFile_File_set) __swig_setmethods__["NextFile"] = _apt.pkgCacheVerFile_NextFile_set __swig_getmethods__["NextFile"] = _apt.pkgCacheVerFile_NextFile_get - if _newclass:NextFile = property(_apt.pkgCacheVerFile_NextFile_get,_apt.pkgCacheVerFile_NextFile_set) + if _newclass:NextFile = property(_apt.pkgCacheVerFile_NextFile_get, _apt.pkgCacheVerFile_NextFile_set) __swig_setmethods__["Offset"] = _apt.pkgCacheVerFile_Offset_set __swig_getmethods__["Offset"] = _apt.pkgCacheVerFile_Offset_get - if _newclass:Offset = property(_apt.pkgCacheVerFile_Offset_get,_apt.pkgCacheVerFile_Offset_set) + if _newclass:Offset = property(_apt.pkgCacheVerFile_Offset_get, _apt.pkgCacheVerFile_Offset_set) __swig_setmethods__["Size"] = _apt.pkgCacheVerFile_Size_set __swig_getmethods__["Size"] = _apt.pkgCacheVerFile_Size_get - if _newclass:Size = property(_apt.pkgCacheVerFile_Size_get,_apt.pkgCacheVerFile_Size_set) - def __init__(self,*args): - self.this = apply(_apt.new_pkgCacheVerFile,args) - self.thisown = 1 - def __del__(self, destroy= _apt.delete_pkgCacheVerFile): + if _newclass:Size = property(_apt.pkgCacheVerFile_Size_get, _apt.pkgCacheVerFile_Size_set) + def __init__(self, *args): + _swig_setattr(self, pkgCacheVerFile, 'this', _apt.new_pkgCacheVerFile(*args)) + _swig_setattr(self, pkgCacheVerFile, 'thisown', 1) + def __del__(self, destroy=_apt.delete_pkgCacheVerFile): try: if self.thisown: destroy(self) except: pass - def __repr__(self): - return "<C pkgCacheVerFile instance at %s>" % (self.this,) class pkgCacheVerFilePtr(pkgCacheVerFile): - def __init__(self,this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = pkgCacheVerFile + def __init__(self, this): + _swig_setattr(self, pkgCacheVerFile, 'this', this) + if not hasattr(self,"thisown"): _swig_setattr(self, pkgCacheVerFile, 'thisown', 0) + _swig_setattr(self, pkgCacheVerFile,self.__class__,pkgCacheVerFile) _apt.pkgCacheVerFile_swigregister(pkgCacheVerFilePtr) class pkgCacheVersion(_object): @@ -411,60 +417,60 @@ class pkgCacheVersion(_object): __setattr__ = lambda self, name, value: _swig_setattr(self, pkgCacheVersion, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, pkgCacheVersion, name) + def __repr__(self): + return "<C pkgCache::Version instance at %s>" % (self.this,) __swig_setmethods__["VerStr"] = _apt.pkgCacheVersion_VerStr_set __swig_getmethods__["VerStr"] = _apt.pkgCacheVersion_VerStr_get - if _newclass:VerStr = property(_apt.pkgCacheVersion_VerStr_get,_apt.pkgCacheVersion_VerStr_set) + if _newclass:VerStr = property(_apt.pkgCacheVersion_VerStr_get, _apt.pkgCacheVersion_VerStr_set) __swig_setmethods__["Section"] = _apt.pkgCacheVersion_Section_set __swig_getmethods__["Section"] = _apt.pkgCacheVersion_Section_get - if _newclass:Section = property(_apt.pkgCacheVersion_Section_get,_apt.pkgCacheVersion_Section_set) + if _newclass:Section = property(_apt.pkgCacheVersion_Section_get, _apt.pkgCacheVersion_Section_set) __swig_setmethods__["Arch"] = _apt.pkgCacheVersion_Arch_set __swig_getmethods__["Arch"] = _apt.pkgCacheVersion_Arch_get - if _newclass:Arch = property(_apt.pkgCacheVersion_Arch_get,_apt.pkgCacheVersion_Arch_set) + if _newclass:Arch = property(_apt.pkgCacheVersion_Arch_get, _apt.pkgCacheVersion_Arch_set) __swig_setmethods__["FileList"] = _apt.pkgCacheVersion_FileList_set __swig_getmethods__["FileList"] = _apt.pkgCacheVersion_FileList_get - if _newclass:FileList = property(_apt.pkgCacheVersion_FileList_get,_apt.pkgCacheVersion_FileList_set) + if _newclass:FileList = property(_apt.pkgCacheVersion_FileList_get, _apt.pkgCacheVersion_FileList_set) __swig_setmethods__["NextVer"] = _apt.pkgCacheVersion_NextVer_set __swig_getmethods__["NextVer"] = _apt.pkgCacheVersion_NextVer_get - if _newclass:NextVer = property(_apt.pkgCacheVersion_NextVer_get,_apt.pkgCacheVersion_NextVer_set) + if _newclass:NextVer = property(_apt.pkgCacheVersion_NextVer_get, _apt.pkgCacheVersion_NextVer_set) __swig_setmethods__["DependsList"] = _apt.pkgCacheVersion_DependsList_set __swig_getmethods__["DependsList"] = _apt.pkgCacheVersion_DependsList_get - if _newclass:DependsList = property(_apt.pkgCacheVersion_DependsList_get,_apt.pkgCacheVersion_DependsList_set) + if _newclass:DependsList = property(_apt.pkgCacheVersion_DependsList_get, _apt.pkgCacheVersion_DependsList_set) __swig_setmethods__["ParentPkg"] = _apt.pkgCacheVersion_ParentPkg_set __swig_getmethods__["ParentPkg"] = _apt.pkgCacheVersion_ParentPkg_get - if _newclass:ParentPkg = property(_apt.pkgCacheVersion_ParentPkg_get,_apt.pkgCacheVersion_ParentPkg_set) + if _newclass:ParentPkg = property(_apt.pkgCacheVersion_ParentPkg_get, _apt.pkgCacheVersion_ParentPkg_set) __swig_setmethods__["ProvidesList"] = _apt.pkgCacheVersion_ProvidesList_set __swig_getmethods__["ProvidesList"] = _apt.pkgCacheVersion_ProvidesList_get - if _newclass:ProvidesList = property(_apt.pkgCacheVersion_ProvidesList_get,_apt.pkgCacheVersion_ProvidesList_set) + if _newclass:ProvidesList = property(_apt.pkgCacheVersion_ProvidesList_get, _apt.pkgCacheVersion_ProvidesList_set) __swig_setmethods__["Size"] = _apt.pkgCacheVersion_Size_set __swig_getmethods__["Size"] = _apt.pkgCacheVersion_Size_get - if _newclass:Size = property(_apt.pkgCacheVersion_Size_get,_apt.pkgCacheVersion_Size_set) + if _newclass:Size = property(_apt.pkgCacheVersion_Size_get, _apt.pkgCacheVersion_Size_set) __swig_setmethods__["InstalledSize"] = _apt.pkgCacheVersion_InstalledSize_set __swig_getmethods__["InstalledSize"] = _apt.pkgCacheVersion_InstalledSize_get - if _newclass:InstalledSize = property(_apt.pkgCacheVersion_InstalledSize_get,_apt.pkgCacheVersion_InstalledSize_set) + if _newclass:InstalledSize = property(_apt.pkgCacheVersion_InstalledSize_get, _apt.pkgCacheVersion_InstalledSize_set) __swig_setmethods__["Hash"] = _apt.pkgCacheVersion_Hash_set __swig_getmethods__["Hash"] = _apt.pkgCacheVersion_Hash_get - if _newclass:Hash = property(_apt.pkgCacheVersion_Hash_get,_apt.pkgCacheVersion_Hash_set) + if _newclass:Hash = property(_apt.pkgCacheVersion_Hash_get, _apt.pkgCacheVersion_Hash_set) __swig_setmethods__["ID"] = _apt.pkgCacheVersion_ID_set __swig_getmethods__["ID"] = _apt.pkgCacheVersion_ID_get - if _newclass:ID = property(_apt.pkgCacheVersion_ID_get,_apt.pkgCacheVersion_ID_set) + if _newclass:ID = property(_apt.pkgCacheVersion_ID_get, _apt.pkgCacheVersion_ID_set) __swig_setmethods__["Priority"] = _apt.pkgCacheVersion_Priority_set __swig_getmethods__["Priority"] = _apt.pkgCacheVersion_Priority_get - if _newclass:Priority = property(_apt.pkgCacheVersion_Priority_get,_apt.pkgCacheVersion_Priority_set) - def __init__(self,*args): - self.this = apply(_apt.new_pkgCacheVersion,args) - self.thisown = 1 - def __del__(self, destroy= _apt.delete_pkgCacheVersion): + if _newclass:Priority = property(_apt.pkgCacheVersion_Priority_get, _apt.pkgCacheVersion_Priority_set) + def __init__(self, *args): + _swig_setattr(self, pkgCacheVersion, 'this', _apt.new_pkgCacheVersion(*args)) + _swig_setattr(self, pkgCacheVersion, 'thisown', 1) + def __del__(self, destroy=_apt.delete_pkgCacheVersion): try: if self.thisown: destroy(self) except: pass - def __repr__(self): - return "<C pkgCacheVersion instance at %s>" % (self.this,) class pkgCacheVersionPtr(pkgCacheVersion): - def __init__(self,this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = pkgCacheVersion + def __init__(self, this): + _swig_setattr(self, pkgCacheVersion, 'this', this) + if not hasattr(self,"thisown"): _swig_setattr(self, pkgCacheVersion, 'thisown', 0) + _swig_setattr(self, pkgCacheVersion,self.__class__,pkgCacheVersion) _apt.pkgCacheVersion_swigregister(pkgCacheVersionPtr) class pkgCacheDependency(_object): @@ -472,45 +478,45 @@ class pkgCacheDependency(_object): __setattr__ = lambda self, name, value: _swig_setattr(self, pkgCacheDependency, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, pkgCacheDependency, name) + def __repr__(self): + return "<C pkgCache::Dependency instance at %s>" % (self.this,) __swig_setmethods__["Version"] = _apt.pkgCacheDependency_Version_set __swig_getmethods__["Version"] = _apt.pkgCacheDependency_Version_get - if _newclass:Version = property(_apt.pkgCacheDependency_Version_get,_apt.pkgCacheDependency_Version_set) + if _newclass:Version = property(_apt.pkgCacheDependency_Version_get, _apt.pkgCacheDependency_Version_set) __swig_setmethods__["Package"] = _apt.pkgCacheDependency_Package_set __swig_getmethods__["Package"] = _apt.pkgCacheDependency_Package_get - if _newclass:Package = property(_apt.pkgCacheDependency_Package_get,_apt.pkgCacheDependency_Package_set) + if _newclass:Package = property(_apt.pkgCacheDependency_Package_get, _apt.pkgCacheDependency_Package_set) __swig_setmethods__["NextDepends"] = _apt.pkgCacheDependency_NextDepends_set __swig_getmethods__["NextDepends"] = _apt.pkgCacheDependency_NextDepends_get - if _newclass:NextDepends = property(_apt.pkgCacheDependency_NextDepends_get,_apt.pkgCacheDependency_NextDepends_set) + if _newclass:NextDepends = property(_apt.pkgCacheDependency_NextDepends_get, _apt.pkgCacheDependency_NextDepends_set) __swig_setmethods__["NextRevDepends"] = _apt.pkgCacheDependency_NextRevDepends_set __swig_getmethods__["NextRevDepends"] = _apt.pkgCacheDependency_NextRevDepends_get - if _newclass:NextRevDepends = property(_apt.pkgCacheDependency_NextRevDepends_get,_apt.pkgCacheDependency_NextRevDepends_set) + if _newclass:NextRevDepends = property(_apt.pkgCacheDependency_NextRevDepends_get, _apt.pkgCacheDependency_NextRevDepends_set) __swig_setmethods__["ParentVer"] = _apt.pkgCacheDependency_ParentVer_set __swig_getmethods__["ParentVer"] = _apt.pkgCacheDependency_ParentVer_get - if _newclass:ParentVer = property(_apt.pkgCacheDependency_ParentVer_get,_apt.pkgCacheDependency_ParentVer_set) + if _newclass:ParentVer = property(_apt.pkgCacheDependency_ParentVer_get, _apt.pkgCacheDependency_ParentVer_set) __swig_setmethods__["ID"] = _apt.pkgCacheDependency_ID_set __swig_getmethods__["ID"] = _apt.pkgCacheDependency_ID_get - if _newclass:ID = property(_apt.pkgCacheDependency_ID_get,_apt.pkgCacheDependency_ID_set) + if _newclass:ID = property(_apt.pkgCacheDependency_ID_get, _apt.pkgCacheDependency_ID_set) __swig_setmethods__["Type"] = _apt.pkgCacheDependency_Type_set __swig_getmethods__["Type"] = _apt.pkgCacheDependency_Type_get - if _newclass:Type = property(_apt.pkgCacheDependency_Type_get,_apt.pkgCacheDependency_Type_set) + if _newclass:Type = property(_apt.pkgCacheDependency_Type_get, _apt.pkgCacheDependency_Type_set) __swig_setmethods__["CompareOp"] = _apt.pkgCacheDependency_CompareOp_set __swig_getmethods__["CompareOp"] = _apt.pkgCacheDependency_CompareOp_get - if _newclass:CompareOp = property(_apt.pkgCacheDependency_CompareOp_get,_apt.pkgCacheDependency_CompareOp_set) - def __init__(self,*args): - self.this = apply(_apt.new_pkgCacheDependency,args) - self.thisown = 1 - def __del__(self, destroy= _apt.delete_pkgCacheDependency): + if _newclass:CompareOp = property(_apt.pkgCacheDependency_CompareOp_get, _apt.pkgCacheDependency_CompareOp_set) + def __init__(self, *args): + _swig_setattr(self, pkgCacheDependency, 'this', _apt.new_pkgCacheDependency(*args)) + _swig_setattr(self, pkgCacheDependency, 'thisown', 1) + def __del__(self, destroy=_apt.delete_pkgCacheDependency): try: if self.thisown: destroy(self) except: pass - def __repr__(self): - return "<C pkgCacheDependency instance at %s>" % (self.this,) class pkgCacheDependencyPtr(pkgCacheDependency): - def __init__(self,this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = pkgCacheDependency + def __init__(self, this): + _swig_setattr(self, pkgCacheDependency, 'this', this) + if not hasattr(self,"thisown"): _swig_setattr(self, pkgCacheDependency, 'thisown', 0) + _swig_setattr(self, pkgCacheDependency,self.__class__,pkgCacheDependency) _apt.pkgCacheDependency_swigregister(pkgCacheDependencyPtr) class pkgCacheProvides(_object): @@ -518,36 +524,36 @@ class pkgCacheProvides(_object): __setattr__ = lambda self, name, value: _swig_setattr(self, pkgCacheProvides, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, pkgCacheProvides, name) + def __repr__(self): + return "<C pkgCache::Provides instance at %s>" % (self.this,) __swig_setmethods__["ParentPkg"] = _apt.pkgCacheProvides_ParentPkg_set __swig_getmethods__["ParentPkg"] = _apt.pkgCacheProvides_ParentPkg_get - if _newclass:ParentPkg = property(_apt.pkgCacheProvides_ParentPkg_get,_apt.pkgCacheProvides_ParentPkg_set) + if _newclass:ParentPkg = property(_apt.pkgCacheProvides_ParentPkg_get, _apt.pkgCacheProvides_ParentPkg_set) __swig_setmethods__["Version"] = _apt.pkgCacheProvides_Version_set __swig_getmethods__["Version"] = _apt.pkgCacheProvides_Version_get - if _newclass:Version = property(_apt.pkgCacheProvides_Version_get,_apt.pkgCacheProvides_Version_set) + if _newclass:Version = property(_apt.pkgCacheProvides_Version_get, _apt.pkgCacheProvides_Version_set) __swig_setmethods__["ProvideVersion"] = _apt.pkgCacheProvides_ProvideVersion_set __swig_getmethods__["ProvideVersion"] = _apt.pkgCacheProvides_ProvideVersion_get - if _newclass:ProvideVersion = property(_apt.pkgCacheProvides_ProvideVersion_get,_apt.pkgCacheProvides_ProvideVersion_set) + if _newclass:ProvideVersion = property(_apt.pkgCacheProvides_ProvideVersion_get, _apt.pkgCacheProvides_ProvideVersion_set) __swig_setmethods__["NextProvides"] = _apt.pkgCacheProvides_NextProvides_set __swig_getmethods__["NextProvides"] = _apt.pkgCacheProvides_NextProvides_get - if _newclass:NextProvides = property(_apt.pkgCacheProvides_NextProvides_get,_apt.pkgCacheProvides_NextProvides_set) + if _newclass:NextProvides = property(_apt.pkgCacheProvides_NextProvides_get, _apt.pkgCacheProvides_NextProvides_set) __swig_setmethods__["NextPkgProv"] = _apt.pkgCacheProvides_NextPkgProv_set __swig_getmethods__["NextPkgProv"] = _apt.pkgCacheProvides_NextPkgProv_get - if _newclass:NextPkgProv = property(_apt.pkgCacheProvides_NextPkgProv_get,_apt.pkgCacheProvides_NextPkgProv_set) - def __init__(self,*args): - self.this = apply(_apt.new_pkgCacheProvides,args) - self.thisown = 1 - def __del__(self, destroy= _apt.delete_pkgCacheProvides): + if _newclass:NextPkgProv = property(_apt.pkgCacheProvides_NextPkgProv_get, _apt.pkgCacheProvides_NextPkgProv_set) + def __init__(self, *args): + _swig_setattr(self, pkgCacheProvides, 'this', _apt.new_pkgCacheProvides(*args)) + _swig_setattr(self, pkgCacheProvides, 'thisown', 1) + def __del__(self, destroy=_apt.delete_pkgCacheProvides): try: if self.thisown: destroy(self) except: pass - def __repr__(self): - return "<C pkgCacheProvides instance at %s>" % (self.this,) class pkgCacheProvidesPtr(pkgCacheProvides): - def __init__(self,this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = pkgCacheProvides + def __init__(self, this): + _swig_setattr(self, pkgCacheProvides, 'this', this) + if not hasattr(self,"thisown"): _swig_setattr(self, pkgCacheProvides, 'thisown', 0) + _swig_setattr(self, pkgCacheProvides,self.__class__,pkgCacheProvides) _apt.pkgCacheProvides_swigregister(pkgCacheProvidesPtr) class pkgCacheStringItem(_object): @@ -555,27 +561,27 @@ class pkgCacheStringItem(_object): __setattr__ = lambda self, name, value: _swig_setattr(self, pkgCacheStringItem, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, pkgCacheStringItem, name) + def __repr__(self): + return "<C pkgCache::StringItem instance at %s>" % (self.this,) __swig_setmethods__["String"] = _apt.pkgCacheStringItem_String_set __swig_getmethods__["String"] = _apt.pkgCacheStringItem_String_get - if _newclass:String = property(_apt.pkgCacheStringItem_String_get,_apt.pkgCacheStringItem_String_set) + if _newclass:String = property(_apt.pkgCacheStringItem_String_get, _apt.pkgCacheStringItem_String_set) __swig_setmethods__["NextItem"] = _apt.pkgCacheStringItem_NextItem_set __swig_getmethods__["NextItem"] = _apt.pkgCacheStringItem_NextItem_get - if _newclass:NextItem = property(_apt.pkgCacheStringItem_NextItem_get,_apt.pkgCacheStringItem_NextItem_set) - def __init__(self,*args): - self.this = apply(_apt.new_pkgCacheStringItem,args) - self.thisown = 1 - def __del__(self, destroy= _apt.delete_pkgCacheStringItem): + if _newclass:NextItem = property(_apt.pkgCacheStringItem_NextItem_get, _apt.pkgCacheStringItem_NextItem_set) + def __init__(self, *args): + _swig_setattr(self, pkgCacheStringItem, 'this', _apt.new_pkgCacheStringItem(*args)) + _swig_setattr(self, pkgCacheStringItem, 'thisown', 1) + def __del__(self, destroy=_apt.delete_pkgCacheStringItem): try: if self.thisown: destroy(self) except: pass - def __repr__(self): - return "<C pkgCacheStringItem instance at %s>" % (self.this,) class pkgCacheStringItemPtr(pkgCacheStringItem): - def __init__(self,this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = pkgCacheStringItem + def __init__(self, this): + _swig_setattr(self, pkgCacheStringItem, 'this', this) + if not hasattr(self,"thisown"): _swig_setattr(self, pkgCacheStringItem, 'thisown', 0) + _swig_setattr(self, pkgCacheStringItem,self.__class__,pkgCacheStringItem) _apt.pkgCacheStringItem_swigregister(pkgCacheStringItemPtr) class pkgDepCache(_object): @@ -583,6 +589,8 @@ class pkgDepCache(_object): __setattr__ = lambda self, name, value: _swig_setattr(self, pkgDepCache, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, pkgDepCache, name) + def __repr__(self): + return "<C pkgDepCache instance at %s>" % (self.this,) DepNow = _apt.pkgDepCache_DepNow DepInstall = _apt.pkgDepCache_DepInstall DepCVer = _apt.pkgDepCache_DepCVer @@ -604,47 +612,45 @@ class pkgDepCache(_object): ModeDelete = _apt.pkgDepCache_ModeDelete ModeKeep = _apt.pkgDepCache_ModeKeep ModeInstall = _apt.pkgDepCache_ModeInstall - def BuildGroupOrs(*args): return apply(_apt.pkgDepCache_BuildGroupOrs,args) - def UpdateVerState(*args): return apply(_apt.pkgDepCache_UpdateVerState,args) - def Head(*args): return apply(_apt.pkgDepCache_Head,args) - def PkgIter(*args): return apply(_apt.pkgDepCache_PkgIter,args) - def FindPkg(*args): return apply(_apt.pkgDepCache_FindPkg,args) - def GetCache(*args): return apply(_apt.pkgDepCache_GetCache,args) - def VS(*args): return apply(_apt.pkgDepCache_VS,args) - def GetCandidateVer(*args): return apply(_apt.pkgDepCache_GetCandidateVer,args) - def IsImportantDep(*args): return apply(_apt.pkgDepCache_IsImportantDep,args) - def GetPolicy(*args): return apply(_apt.pkgDepCache_GetPolicy,args) - def GetPkgPriority(*args): return apply(_apt.pkgDepCache_GetPkgPriority,args) - def __getitem__(*args): return apply(_apt.pkgDepCache___getitem__,args) - def MarkKeep(*args): return apply(_apt.pkgDepCache_MarkKeep,args) - def MarkDelete(*args): return apply(_apt.pkgDepCache_MarkDelete,args) - def MarkInstall(*args): return apply(_apt.pkgDepCache_MarkInstall,args) - def SetReInstall(*args): return apply(_apt.pkgDepCache_SetReInstall,args) - def SetCandidateVersion(*args): return apply(_apt.pkgDepCache_SetCandidateVersion,args) - def Update(*args): return apply(_apt.pkgDepCache_Update,args) - def UsrSize(*args): return apply(_apt.pkgDepCache_UsrSize,args) - def DebSize(*args): return apply(_apt.pkgDepCache_DebSize,args) - def DelCount(*args): return apply(_apt.pkgDepCache_DelCount,args) - def KeepCount(*args): return apply(_apt.pkgDepCache_KeepCount,args) - def InstCount(*args): return apply(_apt.pkgDepCache_InstCount,args) - def BrokenCount(*args): return apply(_apt.pkgDepCache_BrokenCount,args) - def BadCount(*args): return apply(_apt.pkgDepCache_BadCount,args) - def Init(*args): return apply(_apt.pkgDepCache_Init,args) - def __init__(self,*args): - self.this = apply(_apt.new_pkgDepCache,args) - self.thisown = 1 - def __del__(self, destroy= _apt.delete_pkgDepCache): + def BuildGroupOrs(*args): return _apt.pkgDepCache_BuildGroupOrs(*args) + def UpdateVerState(*args): return _apt.pkgDepCache_UpdateVerState(*args) + def Head(*args): return _apt.pkgDepCache_Head(*args) + def PkgIter(*args): return _apt.pkgDepCache_PkgIter(*args) + def FindPkg(*args): return _apt.pkgDepCache_FindPkg(*args) + def GetCache(*args): return _apt.pkgDepCache_GetCache(*args) + def VS(*args): return _apt.pkgDepCache_VS(*args) + def GetCandidateVer(*args): return _apt.pkgDepCache_GetCandidateVer(*args) + def IsImportantDep(*args): return _apt.pkgDepCache_IsImportantDep(*args) + def GetPolicy(*args): return _apt.pkgDepCache_GetPolicy(*args) + def GetPkgPriority(*args): return _apt.pkgDepCache_GetPkgPriority(*args) + def __getitem__(*args): return _apt.pkgDepCache___getitem__(*args) + def MarkKeep(*args): return _apt.pkgDepCache_MarkKeep(*args) + def MarkDelete(*args): return _apt.pkgDepCache_MarkDelete(*args) + def MarkInstall(*args): return _apt.pkgDepCache_MarkInstall(*args) + def SetReInstall(*args): return _apt.pkgDepCache_SetReInstall(*args) + def SetCandidateVersion(*args): return _apt.pkgDepCache_SetCandidateVersion(*args) + def Update(*args): return _apt.pkgDepCache_Update(*args) + def UsrSize(*args): return _apt.pkgDepCache_UsrSize(*args) + def DebSize(*args): return _apt.pkgDepCache_DebSize(*args) + def DelCount(*args): return _apt.pkgDepCache_DelCount(*args) + def KeepCount(*args): return _apt.pkgDepCache_KeepCount(*args) + def InstCount(*args): return _apt.pkgDepCache_InstCount(*args) + def BrokenCount(*args): return _apt.pkgDepCache_BrokenCount(*args) + def BadCount(*args): return _apt.pkgDepCache_BadCount(*args) + def Init(*args): return _apt.pkgDepCache_Init(*args) + def __init__(self, *args): + _swig_setattr(self, pkgDepCache, 'this', _apt.new_pkgDepCache(*args)) + _swig_setattr(self, pkgDepCache, 'thisown', 1) + def __del__(self, destroy=_apt.delete_pkgDepCache): try: if self.thisown: destroy(self) except: pass - def __repr__(self): - return "<C pkgDepCache instance at %s>" % (self.this,) class pkgDepCachePtr(pkgDepCache): - def __init__(self,this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = pkgDepCache + def __init__(self, this): + _swig_setattr(self, pkgDepCache, 'this', this) + if not hasattr(self,"thisown"): _swig_setattr(self, pkgDepCache, 'thisown', 0) + _swig_setattr(self, pkgDepCache,self.__class__,pkgDepCache) _apt.pkgDepCache_swigregister(pkgDepCachePtr) class pkgDepCacheStateCache(_object): @@ -652,60 +658,60 @@ class pkgDepCacheStateCache(_object): __setattr__ = lambda self, name, value: _swig_setattr(self, pkgDepCacheStateCache, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, pkgDepCacheStateCache, name) + def __repr__(self): + return "<C pkgDepCache::StateCache instance at %s>" % (self.this,) __swig_getmethods__["CandVersion"] = _apt.pkgDepCacheStateCache_CandVersion_get if _newclass:CandVersion = property(_apt.pkgDepCacheStateCache_CandVersion_get) __swig_getmethods__["CurVersion"] = _apt.pkgDepCacheStateCache_CurVersion_get if _newclass:CurVersion = property(_apt.pkgDepCacheStateCache_CurVersion_get) __swig_setmethods__["CandidateVer"] = _apt.pkgDepCacheStateCache_CandidateVer_set __swig_getmethods__["CandidateVer"] = _apt.pkgDepCacheStateCache_CandidateVer_get - if _newclass:CandidateVer = property(_apt.pkgDepCacheStateCache_CandidateVer_get,_apt.pkgDepCacheStateCache_CandidateVer_set) + if _newclass:CandidateVer = property(_apt.pkgDepCacheStateCache_CandidateVer_get, _apt.pkgDepCacheStateCache_CandidateVer_set) __swig_setmethods__["InstallVer"] = _apt.pkgDepCacheStateCache_InstallVer_set __swig_getmethods__["InstallVer"] = _apt.pkgDepCacheStateCache_InstallVer_get - if _newclass:InstallVer = property(_apt.pkgDepCacheStateCache_InstallVer_get,_apt.pkgDepCacheStateCache_InstallVer_set) + if _newclass:InstallVer = property(_apt.pkgDepCacheStateCache_InstallVer_get, _apt.pkgDepCacheStateCache_InstallVer_set) __swig_setmethods__["Flags"] = _apt.pkgDepCacheStateCache_Flags_set __swig_getmethods__["Flags"] = _apt.pkgDepCacheStateCache_Flags_get - if _newclass:Flags = property(_apt.pkgDepCacheStateCache_Flags_get,_apt.pkgDepCacheStateCache_Flags_set) + if _newclass:Flags = property(_apt.pkgDepCacheStateCache_Flags_get, _apt.pkgDepCacheStateCache_Flags_set) __swig_setmethods__["iFlags"] = _apt.pkgDepCacheStateCache_iFlags_set __swig_getmethods__["iFlags"] = _apt.pkgDepCacheStateCache_iFlags_get - if _newclass:iFlags = property(_apt.pkgDepCacheStateCache_iFlags_get,_apt.pkgDepCacheStateCache_iFlags_set) + if _newclass:iFlags = property(_apt.pkgDepCacheStateCache_iFlags_get, _apt.pkgDepCacheStateCache_iFlags_set) __swig_setmethods__["Status"] = _apt.pkgDepCacheStateCache_Status_set __swig_getmethods__["Status"] = _apt.pkgDepCacheStateCache_Status_get - if _newclass:Status = property(_apt.pkgDepCacheStateCache_Status_get,_apt.pkgDepCacheStateCache_Status_set) + if _newclass:Status = property(_apt.pkgDepCacheStateCache_Status_get, _apt.pkgDepCacheStateCache_Status_set) __swig_setmethods__["Mode"] = _apt.pkgDepCacheStateCache_Mode_set __swig_getmethods__["Mode"] = _apt.pkgDepCacheStateCache_Mode_get - if _newclass:Mode = property(_apt.pkgDepCacheStateCache_Mode_get,_apt.pkgDepCacheStateCache_Mode_set) + if _newclass:Mode = property(_apt.pkgDepCacheStateCache_Mode_get, _apt.pkgDepCacheStateCache_Mode_set) __swig_setmethods__["DepState"] = _apt.pkgDepCacheStateCache_DepState_set __swig_getmethods__["DepState"] = _apt.pkgDepCacheStateCache_DepState_get - if _newclass:DepState = property(_apt.pkgDepCacheStateCache_DepState_get,_apt.pkgDepCacheStateCache_DepState_set) - def StripEpoch(*args): return apply(_apt.pkgDepCacheStateCache_StripEpoch,args) - def Update(*args): return apply(_apt.pkgDepCacheStateCache_Update,args) - def NewInstall(*args): return apply(_apt.pkgDepCacheStateCache_NewInstall,args) - def Delete(*args): return apply(_apt.pkgDepCacheStateCache_Delete,args) - def Keep(*args): return apply(_apt.pkgDepCacheStateCache_Keep,args) - def Upgrade(*args): return apply(_apt.pkgDepCacheStateCache_Upgrade,args) - def Upgradable(*args): return apply(_apt.pkgDepCacheStateCache_Upgradable,args) - def Downgrade(*args): return apply(_apt.pkgDepCacheStateCache_Downgrade,args) - def Held(*args): return apply(_apt.pkgDepCacheStateCache_Held,args) - def NowBroken(*args): return apply(_apt.pkgDepCacheStateCache_NowBroken,args) - def InstBroken(*args): return apply(_apt.pkgDepCacheStateCache_InstBroken,args) - def Install(*args): return apply(_apt.pkgDepCacheStateCache_Install,args) - def InstVerIter(*args): return apply(_apt.pkgDepCacheStateCache_InstVerIter,args) - def CandidateVerIter(*args): return apply(_apt.pkgDepCacheStateCache_CandidateVerIter,args) - def __init__(self,*args): - self.this = apply(_apt.new_pkgDepCacheStateCache,args) - self.thisown = 1 - def __del__(self, destroy= _apt.delete_pkgDepCacheStateCache): + if _newclass:DepState = property(_apt.pkgDepCacheStateCache_DepState_get, _apt.pkgDepCacheStateCache_DepState_set) + def StripEpoch(*args): return _apt.pkgDepCacheStateCache_StripEpoch(*args) + def Update(*args): return _apt.pkgDepCacheStateCache_Update(*args) + def NewInstall(*args): return _apt.pkgDepCacheStateCache_NewInstall(*args) + def Delete(*args): return _apt.pkgDepCacheStateCache_Delete(*args) + def Keep(*args): return _apt.pkgDepCacheStateCache_Keep(*args) + def Upgrade(*args): return _apt.pkgDepCacheStateCache_Upgrade(*args) + def Upgradable(*args): return _apt.pkgDepCacheStateCache_Upgradable(*args) + def Downgrade(*args): return _apt.pkgDepCacheStateCache_Downgrade(*args) + def Held(*args): return _apt.pkgDepCacheStateCache_Held(*args) + def NowBroken(*args): return _apt.pkgDepCacheStateCache_NowBroken(*args) + def InstBroken(*args): return _apt.pkgDepCacheStateCache_InstBroken(*args) + def Install(*args): return _apt.pkgDepCacheStateCache_Install(*args) + def InstVerIter(*args): return _apt.pkgDepCacheStateCache_InstVerIter(*args) + def CandidateVerIter(*args): return _apt.pkgDepCacheStateCache_CandidateVerIter(*args) + def __init__(self, *args): + _swig_setattr(self, pkgDepCacheStateCache, 'this', _apt.new_pkgDepCacheStateCache(*args)) + _swig_setattr(self, pkgDepCacheStateCache, 'thisown', 1) + def __del__(self, destroy=_apt.delete_pkgDepCacheStateCache): try: if self.thisown: destroy(self) except: pass - def __repr__(self): - return "<C pkgDepCacheStateCache instance at %s>" % (self.this,) class pkgDepCacheStateCachePtr(pkgDepCacheStateCache): - def __init__(self,this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = pkgDepCacheStateCache + def __init__(self, this): + _swig_setattr(self, pkgDepCacheStateCache, 'this', this) + if not hasattr(self,"thisown"): _swig_setattr(self, pkgDepCacheStateCache, 'thisown', 0) + _swig_setattr(self, pkgDepCacheStateCache,self.__class__,pkgDepCacheStateCache) _apt.pkgDepCacheStateCache_swigregister(pkgDepCacheStateCachePtr) class pkgCachePkgIterator(_object): @@ -713,64 +719,57 @@ class pkgCachePkgIterator(_object): __setattr__ = lambda self, name, value: _swig_setattr(self, pkgCachePkgIterator, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, pkgCachePkgIterator, name) - def __nonzero__(*args): return apply(_apt.pkgCachePkgIterator___nonzero__,args) - def next(*args): return apply(_apt.pkgCachePkgIterator_next,args) - def __iter__(*args): return apply(_apt.pkgCachePkgIterator___iter__,args) + def __repr__(self): + return "<C pkgCache::PkgIterator instance at %s>" % (self.this,) + def __nonzero__(*args): return _apt.pkgCachePkgIterator___nonzero__(*args) + def next(*args): return _apt.pkgCachePkgIterator_next(*args) + def __iter__(*args): return _apt.pkgCachePkgIterator___iter__(*args) NeedsNothing = _apt.pkgCachePkgIterator_NeedsNothing NeedsUnpack = _apt.pkgCachePkgIterator_NeedsUnpack NeedsConfigure = _apt.pkgCachePkgIterator_NeedsConfigure - def end(*args): return apply(_apt.pkgCachePkgIterator_end,args) - def __eq__(*args): return apply(_apt.pkgCachePkgIterator___eq__,args) - def __ne__(*args): return apply(_apt.pkgCachePkgIterator___ne__,args) - def __deref__(*args): return apply(_apt.pkgCachePkgIterator___deref__,args) - def __mul__(*args): return apply(_apt.pkgCachePkgIterator___mul__,args) - def Package(*args): return apply(_apt.pkgCachePkgIterator_Package,args) - def Cache(*args): return apply(_apt.pkgCachePkgIterator_Cache,args) - def Name(*args): return apply(_apt.pkgCachePkgIterator_Name,args) - def Section(*args): return apply(_apt.pkgCachePkgIterator_Section,args) - def Purge(*args): return apply(_apt.pkgCachePkgIterator_Purge,args) - def VersionList(*args): return apply(_apt.pkgCachePkgIterator_VersionList,args) - def CurrentVer(*args): return apply(_apt.pkgCachePkgIterator_CurrentVer,args) - def RevDependsList(*args): return apply(_apt.pkgCachePkgIterator_RevDependsList,args) - def ProvidesList(*args): return apply(_apt.pkgCachePkgIterator_ProvidesList,args) - def Index(*args): return apply(_apt.pkgCachePkgIterator_Index,args) - def State(*args): return apply(_apt.pkgCachePkgIterator_State,args) - def __init__(self,*args): - self.this = apply(_apt.new_pkgCachePkgIterator,args) - self.thisown = 1 - __swig_setmethods__["NextPackage"] = _apt.pkgCachePkgIterator_NextPackage_set + def end(*args): return _apt.pkgCachePkgIterator_end(*args) + def __eq__(*args): return _apt.pkgCachePkgIterator___eq__(*args) + def __ne__(*args): return _apt.pkgCachePkgIterator___ne__(*args) + def __deref__(*args): return _apt.pkgCachePkgIterator___deref__(*args) + def __mul__(*args): return _apt.pkgCachePkgIterator___mul__(*args) + def Package(*args): return _apt.pkgCachePkgIterator_Package(*args) + def Cache(*args): return _apt.pkgCachePkgIterator_Cache(*args) + def Name(*args): return _apt.pkgCachePkgIterator_Name(*args) + def Section(*args): return _apt.pkgCachePkgIterator_Section(*args) + def Purge(*args): return _apt.pkgCachePkgIterator_Purge(*args) + def VersionList(*args): return _apt.pkgCachePkgIterator_VersionList(*args) + def CurrentVer(*args): return _apt.pkgCachePkgIterator_CurrentVer(*args) + def RevDependsList(*args): return _apt.pkgCachePkgIterator_RevDependsList(*args) + def ProvidesList(*args): return _apt.pkgCachePkgIterator_ProvidesList(*args) + def Index(*args): return _apt.pkgCachePkgIterator_Index(*args) + def State(*args): return _apt.pkgCachePkgIterator_State(*args) + def __init__(self, *args): + _swig_setattr(self, pkgCachePkgIterator, 'this', _apt.new_pkgCachePkgIterator(*args)) + _swig_setattr(self, pkgCachePkgIterator, 'thisown', 1) __swig_getmethods__["NextPackage"] = _apt.pkgCachePkgIterator_NextPackage_get - if _newclass:NextPackage = property(_apt.pkgCachePkgIterator_NextPackage_get,_apt.pkgCachePkgIterator_NextPackage_set) - __swig_setmethods__["RevDepends"] = _apt.pkgCachePkgIterator_RevDepends_set + if _newclass:NextPackage = property(_apt.pkgCachePkgIterator_NextPackage_get) __swig_getmethods__["RevDepends"] = _apt.pkgCachePkgIterator_RevDepends_get - if _newclass:RevDepends = property(_apt.pkgCachePkgIterator_RevDepends_get,_apt.pkgCachePkgIterator_RevDepends_set) - __swig_setmethods__["SelectedState"] = _apt.pkgCachePkgIterator_SelectedState_set + if _newclass:RevDepends = property(_apt.pkgCachePkgIterator_RevDepends_get) __swig_getmethods__["SelectedState"] = _apt.pkgCachePkgIterator_SelectedState_get - if _newclass:SelectedState = property(_apt.pkgCachePkgIterator_SelectedState_get,_apt.pkgCachePkgIterator_SelectedState_set) - __swig_setmethods__["InstState"] = _apt.pkgCachePkgIterator_InstState_set + if _newclass:SelectedState = property(_apt.pkgCachePkgIterator_SelectedState_get) __swig_getmethods__["InstState"] = _apt.pkgCachePkgIterator_InstState_get - if _newclass:InstState = property(_apt.pkgCachePkgIterator_InstState_get,_apt.pkgCachePkgIterator_InstState_set) - __swig_setmethods__["CurrentState"] = _apt.pkgCachePkgIterator_CurrentState_set + if _newclass:InstState = property(_apt.pkgCachePkgIterator_InstState_get) __swig_getmethods__["CurrentState"] = _apt.pkgCachePkgIterator_CurrentState_get - if _newclass:CurrentState = property(_apt.pkgCachePkgIterator_CurrentState_get,_apt.pkgCachePkgIterator_CurrentState_set) - __swig_setmethods__["ID"] = _apt.pkgCachePkgIterator_ID_set + if _newclass:CurrentState = property(_apt.pkgCachePkgIterator_CurrentState_get) __swig_getmethods__["ID"] = _apt.pkgCachePkgIterator_ID_get - if _newclass:ID = property(_apt.pkgCachePkgIterator_ID_get,_apt.pkgCachePkgIterator_ID_set) - __swig_setmethods__["Flags"] = _apt.pkgCachePkgIterator_Flags_set + if _newclass:ID = property(_apt.pkgCachePkgIterator_ID_get) __swig_getmethods__["Flags"] = _apt.pkgCachePkgIterator_Flags_get - if _newclass:Flags = property(_apt.pkgCachePkgIterator_Flags_get,_apt.pkgCachePkgIterator_Flags_set) - def __del__(self, destroy= _apt.delete_pkgCachePkgIterator): + if _newclass:Flags = property(_apt.pkgCachePkgIterator_Flags_get) + def __del__(self, destroy=_apt.delete_pkgCachePkgIterator): try: if self.thisown: destroy(self) except: pass - def __repr__(self): - return "<C pkgCachePkgIterator instance at %s>" % (self.this,) class pkgCachePkgIteratorPtr(pkgCachePkgIterator): - def __init__(self,this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = pkgCachePkgIterator + def __init__(self, this): + _swig_setattr(self, pkgCachePkgIterator, 'this', this) + if not hasattr(self,"thisown"): _swig_setattr(self, pkgCachePkgIterator, 'thisown', 0) + _swig_setattr(self, pkgCachePkgIterator,self.__class__,pkgCachePkgIterator) _apt.pkgCachePkgIterator_swigregister(pkgCachePkgIteratorPtr) class pkgCacheVerIterator(_object): @@ -778,64 +777,58 @@ class pkgCacheVerIterator(_object): __setattr__ = lambda self, name, value: _swig_setattr(self, pkgCacheVerIterator, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, pkgCacheVerIterator, name) - def __nonzero__(*args): return apply(_apt.pkgCacheVerIterator___nonzero__,args) - def next(*args): return apply(_apt.pkgCacheVerIterator_next,args) - def __iter__(*args): return apply(_apt.pkgCacheVerIterator___iter__,args) - def end(*args): return apply(_apt.pkgCacheVerIterator_end,args) - def assign(*args): return apply(_apt.pkgCacheVerIterator_assign,args) - def __eq__(*args): return apply(_apt.pkgCacheVerIterator___eq__,args) - def __ne__(*args): return apply(_apt.pkgCacheVerIterator___ne__,args) - def CompareVer(*args): return apply(_apt.pkgCacheVerIterator_CompareVer,args) - def __deref__(*args): return apply(_apt.pkgCacheVerIterator___deref__,args) - def __mul__(*args): return apply(_apt.pkgCacheVerIterator___mul__,args) - def Version(*args): return apply(_apt.pkgCacheVerIterator_Version,args) - def Cache(*args): return apply(_apt.pkgCacheVerIterator_Cache,args) - def VerStr(*args): return apply(_apt.pkgCacheVerIterator_VerStr,args) - def Section(*args): return apply(_apt.pkgCacheVerIterator_Section,args) - def Arch(*args): return apply(_apt.pkgCacheVerIterator_Arch,args) - def ParentPkg(*args): return apply(_apt.pkgCacheVerIterator_ParentPkg,args) - def DependsList(*args): return apply(_apt.pkgCacheVerIterator_DependsList,args) - def ProvidesList(*args): return apply(_apt.pkgCacheVerIterator_ProvidesList,args) - def FileList(*args): return apply(_apt.pkgCacheVerIterator_FileList,args) - def Index(*args): return apply(_apt.pkgCacheVerIterator_Index,args) - def Downloadable(*args): return apply(_apt.pkgCacheVerIterator_Downloadable,args) - def PriorityType(*args): return apply(_apt.pkgCacheVerIterator_PriorityType,args) - def RelStr(*args): return apply(_apt.pkgCacheVerIterator_RelStr,args) - def Automatic(*args): return apply(_apt.pkgCacheVerIterator_Automatic,args) - def NewestFile(*args): return apply(_apt.pkgCacheVerIterator_NewestFile,args) - def __init__(self,*args): - self.this = apply(_apt.new_pkgCacheVerIterator,args) - self.thisown = 1 - __swig_setmethods__["NextVer"] = _apt.pkgCacheVerIterator_NextVer_set + def __repr__(self): + return "<C pkgCache::VerIterator instance at %s>" % (self.this,) + def __nonzero__(*args): return _apt.pkgCacheVerIterator___nonzero__(*args) + def next(*args): return _apt.pkgCacheVerIterator_next(*args) + def __iter__(*args): return _apt.pkgCacheVerIterator___iter__(*args) + def end(*args): return _apt.pkgCacheVerIterator_end(*args) + def assign(*args): return _apt.pkgCacheVerIterator_assign(*args) + def __eq__(*args): return _apt.pkgCacheVerIterator___eq__(*args) + def __ne__(*args): return _apt.pkgCacheVerIterator___ne__(*args) + def CompareVer(*args): return _apt.pkgCacheVerIterator_CompareVer(*args) + def __deref__(*args): return _apt.pkgCacheVerIterator___deref__(*args) + def __mul__(*args): return _apt.pkgCacheVerIterator___mul__(*args) + def Version(*args): return _apt.pkgCacheVerIterator_Version(*args) + def Cache(*args): return _apt.pkgCacheVerIterator_Cache(*args) + def VerStr(*args): return _apt.pkgCacheVerIterator_VerStr(*args) + def Section(*args): return _apt.pkgCacheVerIterator_Section(*args) + def Arch(*args): return _apt.pkgCacheVerIterator_Arch(*args) + def ParentPkg(*args): return _apt.pkgCacheVerIterator_ParentPkg(*args) + def DependsList(*args): return _apt.pkgCacheVerIterator_DependsList(*args) + def ProvidesList(*args): return _apt.pkgCacheVerIterator_ProvidesList(*args) + def FileList(*args): return _apt.pkgCacheVerIterator_FileList(*args) + def Index(*args): return _apt.pkgCacheVerIterator_Index(*args) + def Downloadable(*args): return _apt.pkgCacheVerIterator_Downloadable(*args) + def PriorityType(*args): return _apt.pkgCacheVerIterator_PriorityType(*args) + def RelStr(*args): return _apt.pkgCacheVerIterator_RelStr(*args) + def Automatic(*args): return _apt.pkgCacheVerIterator_Automatic(*args) + def NewestFile(*args): return _apt.pkgCacheVerIterator_NewestFile(*args) + def __init__(self, *args): + _swig_setattr(self, pkgCacheVerIterator, 'this', _apt.new_pkgCacheVerIterator(*args)) + _swig_setattr(self, pkgCacheVerIterator, 'thisown', 1) __swig_getmethods__["NextVer"] = _apt.pkgCacheVerIterator_NextVer_get - if _newclass:NextVer = property(_apt.pkgCacheVerIterator_NextVer_get,_apt.pkgCacheVerIterator_NextVer_set) - __swig_setmethods__["Size"] = _apt.pkgCacheVerIterator_Size_set + if _newclass:NextVer = property(_apt.pkgCacheVerIterator_NextVer_get) __swig_getmethods__["Size"] = _apt.pkgCacheVerIterator_Size_get - if _newclass:Size = property(_apt.pkgCacheVerIterator_Size_get,_apt.pkgCacheVerIterator_Size_set) - __swig_setmethods__["InstalledSize"] = _apt.pkgCacheVerIterator_InstalledSize_set + if _newclass:Size = property(_apt.pkgCacheVerIterator_Size_get) __swig_getmethods__["InstalledSize"] = _apt.pkgCacheVerIterator_InstalledSize_get - if _newclass:InstalledSize = property(_apt.pkgCacheVerIterator_InstalledSize_get,_apt.pkgCacheVerIterator_InstalledSize_set) - __swig_setmethods__["Hash"] = _apt.pkgCacheVerIterator_Hash_set + if _newclass:InstalledSize = property(_apt.pkgCacheVerIterator_InstalledSize_get) __swig_getmethods__["Hash"] = _apt.pkgCacheVerIterator_Hash_get - if _newclass:Hash = property(_apt.pkgCacheVerIterator_Hash_get,_apt.pkgCacheVerIterator_Hash_set) - __swig_setmethods__["ID"] = _apt.pkgCacheVerIterator_ID_set + if _newclass:Hash = property(_apt.pkgCacheVerIterator_Hash_get) __swig_getmethods__["ID"] = _apt.pkgCacheVerIterator_ID_get - if _newclass:ID = property(_apt.pkgCacheVerIterator_ID_get,_apt.pkgCacheVerIterator_ID_set) - __swig_setmethods__["Priority"] = _apt.pkgCacheVerIterator_Priority_set + if _newclass:ID = property(_apt.pkgCacheVerIterator_ID_get) __swig_getmethods__["Priority"] = _apt.pkgCacheVerIterator_Priority_get - if _newclass:Priority = property(_apt.pkgCacheVerIterator_Priority_get,_apt.pkgCacheVerIterator_Priority_set) - def __del__(self, destroy= _apt.delete_pkgCacheVerIterator): + if _newclass:Priority = property(_apt.pkgCacheVerIterator_Priority_get) + def __del__(self, destroy=_apt.delete_pkgCacheVerIterator): try: if self.thisown: destroy(self) except: pass - def __repr__(self): - return "<C pkgCacheVerIterator instance at %s>" % (self.this,) class pkgCacheVerIteratorPtr(pkgCacheVerIterator): - def __init__(self,this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = pkgCacheVerIterator + def __init__(self, this): + _swig_setattr(self, pkgCacheVerIterator, 'this', this) + if not hasattr(self,"thisown"): _swig_setattr(self, pkgCacheVerIterator, 'thisown', 0) + _swig_setattr(self, pkgCacheVerIterator,self.__class__,pkgCacheVerIterator) _apt.pkgCacheVerIterator_swigregister(pkgCacheVerIteratorPtr) class pkgCacheDepIterator(_object): @@ -843,64 +836,57 @@ class pkgCacheDepIterator(_object): __setattr__ = lambda self, name, value: _swig_setattr(self, pkgCacheDepIterator, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, pkgCacheDepIterator, name) - def __nonzero__(*args): return apply(_apt.pkgCacheDepIterator___nonzero__,args) - def next(*args): return apply(_apt.pkgCacheDepIterator_next,args) - def __iter__(*args): return apply(_apt.pkgCacheDepIterator___iter__,args) - def end(*args): return apply(_apt.pkgCacheDepIterator_end,args) - def __eq__(*args): return apply(_apt.pkgCacheDepIterator___eq__,args) - def __ne__(*args): return apply(_apt.pkgCacheDepIterator___ne__,args) - def __deref__(*args): return apply(_apt.pkgCacheDepIterator___deref__,args) - def __mul__(*args): return apply(_apt.pkgCacheDepIterator___mul__,args) - def Dependency(*args): return apply(_apt.pkgCacheDepIterator_Dependency,args) - def Cache(*args): return apply(_apt.pkgCacheDepIterator_Cache,args) - def TargetVer(*args): return apply(_apt.pkgCacheDepIterator_TargetVer,args) - def TargetPkg(*args): return apply(_apt.pkgCacheDepIterator_TargetPkg,args) - def ParentVer(*args): return apply(_apt.pkgCacheDepIterator_ParentVer,args) - def ParentPkg(*args): return apply(_apt.pkgCacheDepIterator_ParentPkg,args) - def Reverse(*args): return apply(_apt.pkgCacheDepIterator_Reverse,args) - def Index(*args): return apply(_apt.pkgCacheDepIterator_Index,args) - def IsCritical(*args): return apply(_apt.pkgCacheDepIterator_IsCritical,args) - def GlobOr(*args): return apply(_apt.pkgCacheDepIterator_GlobOr,args) - def AllTargets(*args): return apply(_apt.pkgCacheDepIterator_AllTargets,args) - def SmartTargetPkg(*args): return apply(_apt.pkgCacheDepIterator_SmartTargetPkg,args) - def CompType(*args): return apply(_apt.pkgCacheDepIterator_CompType,args) - def DepType(*args): return apply(_apt.pkgCacheDepIterator_DepType,args) - def __init__(self,*args): - self.this = apply(_apt.new_pkgCacheDepIterator,args) - self.thisown = 1 - __swig_setmethods__["Version"] = _apt.pkgCacheDepIterator_Version_set + def __repr__(self): + return "<C pkgCache::DepIterator instance at %s>" % (self.this,) + def __nonzero__(*args): return _apt.pkgCacheDepIterator___nonzero__(*args) + def next(*args): return _apt.pkgCacheDepIterator_next(*args) + def __iter__(*args): return _apt.pkgCacheDepIterator___iter__(*args) + def end(*args): return _apt.pkgCacheDepIterator_end(*args) + def __eq__(*args): return _apt.pkgCacheDepIterator___eq__(*args) + def __ne__(*args): return _apt.pkgCacheDepIterator___ne__(*args) + def __deref__(*args): return _apt.pkgCacheDepIterator___deref__(*args) + def __mul__(*args): return _apt.pkgCacheDepIterator___mul__(*args) + def Dependency(*args): return _apt.pkgCacheDepIterator_Dependency(*args) + def Cache(*args): return _apt.pkgCacheDepIterator_Cache(*args) + def TargetVer(*args): return _apt.pkgCacheDepIterator_TargetVer(*args) + def TargetPkg(*args): return _apt.pkgCacheDepIterator_TargetPkg(*args) + def ParentVer(*args): return _apt.pkgCacheDepIterator_ParentVer(*args) + def ParentPkg(*args): return _apt.pkgCacheDepIterator_ParentPkg(*args) + def Reverse(*args): return _apt.pkgCacheDepIterator_Reverse(*args) + def Index(*args): return _apt.pkgCacheDepIterator_Index(*args) + def IsCritical(*args): return _apt.pkgCacheDepIterator_IsCritical(*args) + def GlobOr(*args): return _apt.pkgCacheDepIterator_GlobOr(*args) + def AllTargets(*args): return _apt.pkgCacheDepIterator_AllTargets(*args) + def SmartTargetPkg(*args): return _apt.pkgCacheDepIterator_SmartTargetPkg(*args) + def CompType(*args): return _apt.pkgCacheDepIterator_CompType(*args) + def DepType(*args): return _apt.pkgCacheDepIterator_DepType(*args) + def __init__(self, *args): + _swig_setattr(self, pkgCacheDepIterator, 'this', _apt.new_pkgCacheDepIterator(*args)) + _swig_setattr(self, pkgCacheDepIterator, 'thisown', 1) __swig_getmethods__["Version"] = _apt.pkgCacheDepIterator_Version_get - if _newclass:Version = property(_apt.pkgCacheDepIterator_Version_get,_apt.pkgCacheDepIterator_Version_set) - __swig_setmethods__["Package"] = _apt.pkgCacheDepIterator_Package_set + if _newclass:Version = property(_apt.pkgCacheDepIterator_Version_get) __swig_getmethods__["Package"] = _apt.pkgCacheDepIterator_Package_get - if _newclass:Package = property(_apt.pkgCacheDepIterator_Package_get,_apt.pkgCacheDepIterator_Package_set) - __swig_setmethods__["NextDepends"] = _apt.pkgCacheDepIterator_NextDepends_set + if _newclass:Package = property(_apt.pkgCacheDepIterator_Package_get) __swig_getmethods__["NextDepends"] = _apt.pkgCacheDepIterator_NextDepends_get - if _newclass:NextDepends = property(_apt.pkgCacheDepIterator_NextDepends_get,_apt.pkgCacheDepIterator_NextDepends_set) - __swig_setmethods__["NextRevDepends"] = _apt.pkgCacheDepIterator_NextRevDepends_set + if _newclass:NextDepends = property(_apt.pkgCacheDepIterator_NextDepends_get) __swig_getmethods__["NextRevDepends"] = _apt.pkgCacheDepIterator_NextRevDepends_get - if _newclass:NextRevDepends = property(_apt.pkgCacheDepIterator_NextRevDepends_get,_apt.pkgCacheDepIterator_NextRevDepends_set) - __swig_setmethods__["ID"] = _apt.pkgCacheDepIterator_ID_set + if _newclass:NextRevDepends = property(_apt.pkgCacheDepIterator_NextRevDepends_get) __swig_getmethods__["ID"] = _apt.pkgCacheDepIterator_ID_get - if _newclass:ID = property(_apt.pkgCacheDepIterator_ID_get,_apt.pkgCacheDepIterator_ID_set) - __swig_setmethods__["Type"] = _apt.pkgCacheDepIterator_Type_set + if _newclass:ID = property(_apt.pkgCacheDepIterator_ID_get) __swig_getmethods__["Type"] = _apt.pkgCacheDepIterator_Type_get - if _newclass:Type = property(_apt.pkgCacheDepIterator_Type_get,_apt.pkgCacheDepIterator_Type_set) - __swig_setmethods__["CompareOp"] = _apt.pkgCacheDepIterator_CompareOp_set + if _newclass:Type = property(_apt.pkgCacheDepIterator_Type_get) __swig_getmethods__["CompareOp"] = _apt.pkgCacheDepIterator_CompareOp_get - if _newclass:CompareOp = property(_apt.pkgCacheDepIterator_CompareOp_get,_apt.pkgCacheDepIterator_CompareOp_set) - def __del__(self, destroy= _apt.delete_pkgCacheDepIterator): + if _newclass:CompareOp = property(_apt.pkgCacheDepIterator_CompareOp_get) + def __del__(self, destroy=_apt.delete_pkgCacheDepIterator): try: if self.thisown: destroy(self) except: pass - def __repr__(self): - return "<C pkgCacheDepIterator instance at %s>" % (self.this,) class pkgCacheDepIteratorPtr(pkgCacheDepIterator): - def __init__(self,this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = pkgCacheDepIterator + def __init__(self, this): + _swig_setattr(self, pkgCacheDepIterator, 'this', this) + if not hasattr(self,"thisown"): _swig_setattr(self, pkgCacheDepIterator, 'thisown', 0) + _swig_setattr(self, pkgCacheDepIterator,self.__class__,pkgCacheDepIterator) _apt.pkgCacheDepIterator_swigregister(pkgCacheDepIteratorPtr) class pkgCachePrvIterator(_object): @@ -908,46 +894,43 @@ class pkgCachePrvIterator(_object): __setattr__ = lambda self, name, value: _swig_setattr(self, pkgCachePrvIterator, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, pkgCachePrvIterator, name) - def __nonzero__(*args): return apply(_apt.pkgCachePrvIterator___nonzero__,args) - def next(*args): return apply(_apt.pkgCachePrvIterator_next,args) - def __iter__(*args): return apply(_apt.pkgCachePrvIterator___iter__,args) - def end(*args): return apply(_apt.pkgCachePrvIterator_end,args) - def __eq__(*args): return apply(_apt.pkgCachePrvIterator___eq__,args) - def __ne__(*args): return apply(_apt.pkgCachePrvIterator___ne__,args) - def __deref__(*args): return apply(_apt.pkgCachePrvIterator___deref__,args) - def __mul__(*args): return apply(_apt.pkgCachePrvIterator___mul__,args) - def Provides(*args): return apply(_apt.pkgCachePrvIterator_Provides,args) - def Cache(*args): return apply(_apt.pkgCachePrvIterator_Cache,args) - def Name(*args): return apply(_apt.pkgCachePrvIterator_Name,args) - def ProvideVersion(*args): return apply(_apt.pkgCachePrvIterator_ProvideVersion,args) - def ParentPkg(*args): return apply(_apt.pkgCachePrvIterator_ParentPkg,args) - def OwnerVer(*args): return apply(_apt.pkgCachePrvIterator_OwnerVer,args) - def OwnerPkg(*args): return apply(_apt.pkgCachePrvIterator_OwnerPkg,args) - def Index(*args): return apply(_apt.pkgCachePrvIterator_Index,args) - def __init__(self,*args): - self.this = apply(_apt.new_pkgCachePrvIterator,args) - self.thisown = 1 - __swig_setmethods__["Version"] = _apt.pkgCachePrvIterator_Version_set + def __repr__(self): + return "<C pkgCache::PrvIterator instance at %s>" % (self.this,) + def __nonzero__(*args): return _apt.pkgCachePrvIterator___nonzero__(*args) + def next(*args): return _apt.pkgCachePrvIterator_next(*args) + def __iter__(*args): return _apt.pkgCachePrvIterator___iter__(*args) + def end(*args): return _apt.pkgCachePrvIterator_end(*args) + def __eq__(*args): return _apt.pkgCachePrvIterator___eq__(*args) + def __ne__(*args): return _apt.pkgCachePrvIterator___ne__(*args) + def __deref__(*args): return _apt.pkgCachePrvIterator___deref__(*args) + def __mul__(*args): return _apt.pkgCachePrvIterator___mul__(*args) + def Provides(*args): return _apt.pkgCachePrvIterator_Provides(*args) + def Cache(*args): return _apt.pkgCachePrvIterator_Cache(*args) + def Name(*args): return _apt.pkgCachePrvIterator_Name(*args) + def ProvideVersion(*args): return _apt.pkgCachePrvIterator_ProvideVersion(*args) + def ParentPkg(*args): return _apt.pkgCachePrvIterator_ParentPkg(*args) + def OwnerVer(*args): return _apt.pkgCachePrvIterator_OwnerVer(*args) + def OwnerPkg(*args): return _apt.pkgCachePrvIterator_OwnerPkg(*args) + def Index(*args): return _apt.pkgCachePrvIterator_Index(*args) + def __init__(self, *args): + _swig_setattr(self, pkgCachePrvIterator, 'this', _apt.new_pkgCachePrvIterator(*args)) + _swig_setattr(self, pkgCachePrvIterator, 'thisown', 1) __swig_getmethods__["Version"] = _apt.pkgCachePrvIterator_Version_get - if _newclass:Version = property(_apt.pkgCachePrvIterator_Version_get,_apt.pkgCachePrvIterator_Version_set) - __swig_setmethods__["NextProvides"] = _apt.pkgCachePrvIterator_NextProvides_set + if _newclass:Version = property(_apt.pkgCachePrvIterator_Version_get) __swig_getmethods__["NextProvides"] = _apt.pkgCachePrvIterator_NextProvides_get - if _newclass:NextProvides = property(_apt.pkgCachePrvIterator_NextProvides_get,_apt.pkgCachePrvIterator_NextProvides_set) - __swig_setmethods__["NextPkgProv"] = _apt.pkgCachePrvIterator_NextPkgProv_set + if _newclass:NextProvides = property(_apt.pkgCachePrvIterator_NextProvides_get) __swig_getmethods__["NextPkgProv"] = _apt.pkgCachePrvIterator_NextPkgProv_get - if _newclass:NextPkgProv = property(_apt.pkgCachePrvIterator_NextPkgProv_get,_apt.pkgCachePrvIterator_NextPkgProv_set) - def __del__(self, destroy= _apt.delete_pkgCachePrvIterator): + if _newclass:NextPkgProv = property(_apt.pkgCachePrvIterator_NextPkgProv_get) + def __del__(self, destroy=_apt.delete_pkgCachePrvIterator): try: if self.thisown: destroy(self) except: pass - def __repr__(self): - return "<C pkgCachePrvIterator instance at %s>" % (self.this,) class pkgCachePrvIteratorPtr(pkgCachePrvIterator): - def __init__(self,this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = pkgCachePrvIterator + def __init__(self, this): + _swig_setattr(self, pkgCachePrvIterator, 'this', this) + if not hasattr(self,"thisown"): _swig_setattr(self, pkgCachePrvIterator, 'thisown', 0) + _swig_setattr(self, pkgCachePrvIterator,self.__class__,pkgCachePrvIterator) _apt.pkgCachePrvIterator_swigregister(pkgCachePrvIteratorPtr) class pkgCachePkgFileIterator(_object): @@ -955,58 +938,53 @@ class pkgCachePkgFileIterator(_object): __setattr__ = lambda self, name, value: _swig_setattr(self, pkgCachePkgFileIterator, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, pkgCachePkgFileIterator, name) - def __nonzero__(*args): return apply(_apt.pkgCachePkgFileIterator___nonzero__,args) - def next(*args): return apply(_apt.pkgCachePkgFileIterator_next,args) - def __iter__(*args): return apply(_apt.pkgCachePkgFileIterator___iter__,args) - def end(*args): return apply(_apt.pkgCachePkgFileIterator_end,args) - def __eq__(*args): return apply(_apt.pkgCachePkgFileIterator___eq__,args) - def __ne__(*args): return apply(_apt.pkgCachePkgFileIterator___ne__,args) - def __deref__(*args): return apply(_apt.pkgCachePkgFileIterator___deref__,args) - def __mul__(*args): return apply(_apt.pkgCachePkgFileIterator___mul__,args) - def PackageFile(*args): return apply(_apt.pkgCachePkgFileIterator_PackageFile,args) - def Cache(*args): return apply(_apt.pkgCachePkgFileIterator_Cache,args) - def FileName(*args): return apply(_apt.pkgCachePkgFileIterator_FileName,args) - def Archive(*args): return apply(_apt.pkgCachePkgFileIterator_Archive,args) - def Component(*args): return apply(_apt.pkgCachePkgFileIterator_Component,args) - def Version(*args): return apply(_apt.pkgCachePkgFileIterator_Version,args) - def Origin(*args): return apply(_apt.pkgCachePkgFileIterator_Origin,args) - def Label(*args): return apply(_apt.pkgCachePkgFileIterator_Label,args) - def Site(*args): return apply(_apt.pkgCachePkgFileIterator_Site,args) - def Architecture(*args): return apply(_apt.pkgCachePkgFileIterator_Architecture,args) - def IndexType(*args): return apply(_apt.pkgCachePkgFileIterator_IndexType,args) - def Index(*args): return apply(_apt.pkgCachePkgFileIterator_Index,args) - def IsOk(*args): return apply(_apt.pkgCachePkgFileIterator_IsOk,args) - def RelStr(*args): return apply(_apt.pkgCachePkgFileIterator_RelStr,args) - def __init__(self,*args): - self.this = apply(_apt.new_pkgCachePkgFileIterator,args) - self.thisown = 1 - __swig_setmethods__["Size"] = _apt.pkgCachePkgFileIterator_Size_set + def __repr__(self): + return "<C pkgCache::PkgFileIterator instance at %s>" % (self.this,) + def __nonzero__(*args): return _apt.pkgCachePkgFileIterator___nonzero__(*args) + def next(*args): return _apt.pkgCachePkgFileIterator_next(*args) + def __iter__(*args): return _apt.pkgCachePkgFileIterator___iter__(*args) + def end(*args): return _apt.pkgCachePkgFileIterator_end(*args) + def __eq__(*args): return _apt.pkgCachePkgFileIterator___eq__(*args) + def __ne__(*args): return _apt.pkgCachePkgFileIterator___ne__(*args) + def __deref__(*args): return _apt.pkgCachePkgFileIterator___deref__(*args) + def __mul__(*args): return _apt.pkgCachePkgFileIterator___mul__(*args) + def PackageFile(*args): return _apt.pkgCachePkgFileIterator_PackageFile(*args) + def Cache(*args): return _apt.pkgCachePkgFileIterator_Cache(*args) + def FileName(*args): return _apt.pkgCachePkgFileIterator_FileName(*args) + def Archive(*args): return _apt.pkgCachePkgFileIterator_Archive(*args) + def Component(*args): return _apt.pkgCachePkgFileIterator_Component(*args) + def Version(*args): return _apt.pkgCachePkgFileIterator_Version(*args) + def Origin(*args): return _apt.pkgCachePkgFileIterator_Origin(*args) + def Label(*args): return _apt.pkgCachePkgFileIterator_Label(*args) + def Site(*args): return _apt.pkgCachePkgFileIterator_Site(*args) + def Architecture(*args): return _apt.pkgCachePkgFileIterator_Architecture(*args) + def IndexType(*args): return _apt.pkgCachePkgFileIterator_IndexType(*args) + def Index(*args): return _apt.pkgCachePkgFileIterator_Index(*args) + def IsOk(*args): return _apt.pkgCachePkgFileIterator_IsOk(*args) + def RelStr(*args): return _apt.pkgCachePkgFileIterator_RelStr(*args) + def __init__(self, *args): + _swig_setattr(self, pkgCachePkgFileIterator, 'this', _apt.new_pkgCachePkgFileIterator(*args)) + _swig_setattr(self, pkgCachePkgFileIterator, 'thisown', 1) __swig_getmethods__["Size"] = _apt.pkgCachePkgFileIterator_Size_get - if _newclass:Size = property(_apt.pkgCachePkgFileIterator_Size_get,_apt.pkgCachePkgFileIterator_Size_set) - __swig_setmethods__["Flags"] = _apt.pkgCachePkgFileIterator_Flags_set + if _newclass:Size = property(_apt.pkgCachePkgFileIterator_Size_get) __swig_getmethods__["Flags"] = _apt.pkgCachePkgFileIterator_Flags_get - if _newclass:Flags = property(_apt.pkgCachePkgFileIterator_Flags_get,_apt.pkgCachePkgFileIterator_Flags_set) - __swig_setmethods__["NextFile"] = _apt.pkgCachePkgFileIterator_NextFile_set + if _newclass:Flags = property(_apt.pkgCachePkgFileIterator_Flags_get) __swig_getmethods__["NextFile"] = _apt.pkgCachePkgFileIterator_NextFile_get - if _newclass:NextFile = property(_apt.pkgCachePkgFileIterator_NextFile_get,_apt.pkgCachePkgFileIterator_NextFile_set) - __swig_setmethods__["ID"] = _apt.pkgCachePkgFileIterator_ID_set + if _newclass:NextFile = property(_apt.pkgCachePkgFileIterator_NextFile_get) __swig_getmethods__["ID"] = _apt.pkgCachePkgFileIterator_ID_get - if _newclass:ID = property(_apt.pkgCachePkgFileIterator_ID_get,_apt.pkgCachePkgFileIterator_ID_set) - __swig_setmethods__["mtime"] = _apt.pkgCachePkgFileIterator_mtime_set + if _newclass:ID = property(_apt.pkgCachePkgFileIterator_ID_get) __swig_getmethods__["mtime"] = _apt.pkgCachePkgFileIterator_mtime_get - if _newclass:mtime = property(_apt.pkgCachePkgFileIterator_mtime_get,_apt.pkgCachePkgFileIterator_mtime_set) - def __del__(self, destroy= _apt.delete_pkgCachePkgFileIterator): + if _newclass:mtime = property(_apt.pkgCachePkgFileIterator_mtime_get) + def __del__(self, destroy=_apt.delete_pkgCachePkgFileIterator): try: if self.thisown: destroy(self) except: pass - def __repr__(self): - return "<C pkgCachePkgFileIterator instance at %s>" % (self.this,) class pkgCachePkgFileIteratorPtr(pkgCachePkgFileIterator): - def __init__(self,this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = pkgCachePkgFileIterator + def __init__(self, this): + _swig_setattr(self, pkgCachePkgFileIterator, 'this', this) + if not hasattr(self,"thisown"): _swig_setattr(self, pkgCachePkgFileIterator, 'thisown', 0) + _swig_setattr(self, pkgCachePkgFileIterator,self.__class__,pkgCachePkgFileIterator) _apt.pkgCachePkgFileIterator_swigregister(pkgCachePkgFileIteratorPtr) class pkgCacheVerFileIterator(_object): @@ -1014,42 +992,39 @@ class pkgCacheVerFileIterator(_object): __setattr__ = lambda self, name, value: _swig_setattr(self, pkgCacheVerFileIterator, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, pkgCacheVerFileIterator, name) - def __nonzero__(*args): return apply(_apt.pkgCacheVerFileIterator___nonzero__,args) - def next(*args): return apply(_apt.pkgCacheVerFileIterator_next,args) - def __iter__(*args): return apply(_apt.pkgCacheVerFileIterator___iter__,args) - def end(*args): return apply(_apt.pkgCacheVerFileIterator_end,args) - def __eq__(*args): return apply(_apt.pkgCacheVerFileIterator___eq__,args) - def __ne__(*args): return apply(_apt.pkgCacheVerFileIterator___ne__,args) - def __deref__(*args): return apply(_apt.pkgCacheVerFileIterator___deref__,args) - def __mul__(*args): return apply(_apt.pkgCacheVerFileIterator___mul__,args) - def VerFile(*args): return apply(_apt.pkgCacheVerFileIterator_VerFile,args) - def Cache(*args): return apply(_apt.pkgCacheVerFileIterator_Cache,args) - def File(*args): return apply(_apt.pkgCacheVerFileIterator_File,args) - def Index(*args): return apply(_apt.pkgCacheVerFileIterator_Index,args) - def __init__(self,*args): - self.this = apply(_apt.new_pkgCacheVerFileIterator,args) - self.thisown = 1 - __swig_setmethods__["NextFile"] = _apt.pkgCacheVerFileIterator_NextFile_set + def __repr__(self): + return "<C pkgCache::VerFileIterator instance at %s>" % (self.this,) + def __nonzero__(*args): return _apt.pkgCacheVerFileIterator___nonzero__(*args) + def next(*args): return _apt.pkgCacheVerFileIterator_next(*args) + def __iter__(*args): return _apt.pkgCacheVerFileIterator___iter__(*args) + def end(*args): return _apt.pkgCacheVerFileIterator_end(*args) + def __eq__(*args): return _apt.pkgCacheVerFileIterator___eq__(*args) + def __ne__(*args): return _apt.pkgCacheVerFileIterator___ne__(*args) + def __deref__(*args): return _apt.pkgCacheVerFileIterator___deref__(*args) + def __mul__(*args): return _apt.pkgCacheVerFileIterator___mul__(*args) + def VerFile(*args): return _apt.pkgCacheVerFileIterator_VerFile(*args) + def Cache(*args): return _apt.pkgCacheVerFileIterator_Cache(*args) + def File(*args): return _apt.pkgCacheVerFileIterator_File(*args) + def Index(*args): return _apt.pkgCacheVerFileIterator_Index(*args) + def __init__(self, *args): + _swig_setattr(self, pkgCacheVerFileIterator, 'this', _apt.new_pkgCacheVerFileIterator(*args)) + _swig_setattr(self, pkgCacheVerFileIterator, 'thisown', 1) __swig_getmethods__["NextFile"] = _apt.pkgCacheVerFileIterator_NextFile_get - if _newclass:NextFile = property(_apt.pkgCacheVerFileIterator_NextFile_get,_apt.pkgCacheVerFileIterator_NextFile_set) - __swig_setmethods__["Offset"] = _apt.pkgCacheVerFileIterator_Offset_set + if _newclass:NextFile = property(_apt.pkgCacheVerFileIterator_NextFile_get) __swig_getmethods__["Offset"] = _apt.pkgCacheVerFileIterator_Offset_get - if _newclass:Offset = property(_apt.pkgCacheVerFileIterator_Offset_get,_apt.pkgCacheVerFileIterator_Offset_set) - __swig_setmethods__["Size"] = _apt.pkgCacheVerFileIterator_Size_set + if _newclass:Offset = property(_apt.pkgCacheVerFileIterator_Offset_get) __swig_getmethods__["Size"] = _apt.pkgCacheVerFileIterator_Size_get - if _newclass:Size = property(_apt.pkgCacheVerFileIterator_Size_get,_apt.pkgCacheVerFileIterator_Size_set) - def __del__(self, destroy= _apt.delete_pkgCacheVerFileIterator): + if _newclass:Size = property(_apt.pkgCacheVerFileIterator_Size_get) + def __del__(self, destroy=_apt.delete_pkgCacheVerFileIterator): try: if self.thisown: destroy(self) except: pass - def __repr__(self): - return "<C pkgCacheVerFileIterator instance at %s>" % (self.this,) class pkgCacheVerFileIteratorPtr(pkgCacheVerFileIterator): - def __init__(self,this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = pkgCacheVerFileIterator + def __init__(self, this): + _swig_setattr(self, pkgCacheVerFileIterator, 'this', this) + if not hasattr(self,"thisown"): _swig_setattr(self, pkgCacheVerFileIterator, 'thisown', 0) + _swig_setattr(self, pkgCacheVerFileIterator,self.__class__,pkgCacheVerFileIterator) _apt.pkgCacheVerFileIterator_swigregister(pkgCacheVerFileIteratorPtr) class pkgCacheFile(_object): @@ -1057,57 +1032,57 @@ class pkgCacheFile(_object): __setattr__ = lambda self, name, value: _swig_setattr(self, pkgCacheFile, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, pkgCacheFile, name) + def __repr__(self): + return "<C pkgCacheFile instance at %s>" % (self.this,) __swig_setmethods__["Policy"] = _apt.pkgCacheFile_Policy_set __swig_getmethods__["Policy"] = _apt.pkgCacheFile_Policy_get - if _newclass:Policy = property(_apt.pkgCacheFile_Policy_get,_apt.pkgCacheFile_Policy_set) - def pkgCache(*args): return apply(_apt.pkgCacheFile_pkgCache,args) - def pkgDepCache(*args): return apply(_apt.pkgCacheFile_pkgDepCache,args) - def __deref__(*args): return apply(_apt.pkgCacheFile___deref__,args) - def __mul__(*args): return apply(_apt.pkgCacheFile___mul__,args) - def __getitem__(*args): return apply(_apt.pkgCacheFile___getitem__,args) - def BuildCaches(*args): return apply(_apt.pkgCacheFile_BuildCaches,args) - def Open(*args): return apply(_apt.pkgCacheFile_Open,args) - def Close(*args): return apply(_apt.pkgCacheFile_Close,args) - def __init__(self,*args): - self.this = apply(_apt.new_pkgCacheFile,args) - self.thisown = 1 - def __del__(self, destroy= _apt.delete_pkgCacheFile): + if _newclass:Policy = property(_apt.pkgCacheFile_Policy_get, _apt.pkgCacheFile_Policy_set) + def pkgCache(*args): return _apt.pkgCacheFile_pkgCache(*args) + def pkgDepCache(*args): return _apt.pkgCacheFile_pkgDepCache(*args) + def __deref__(*args): return _apt.pkgCacheFile___deref__(*args) + def __mul__(*args): return _apt.pkgCacheFile___mul__(*args) + def __getitem__(*args): return _apt.pkgCacheFile___getitem__(*args) + def BuildCaches(*args): return _apt.pkgCacheFile_BuildCaches(*args) + def Open(*args): return _apt.pkgCacheFile_Open(*args) + def Close(*args): return _apt.pkgCacheFile_Close(*args) + def __init__(self, *args): + _swig_setattr(self, pkgCacheFile, 'this', _apt.new_pkgCacheFile(*args)) + _swig_setattr(self, pkgCacheFile, 'thisown', 1) + def __del__(self, destroy=_apt.delete_pkgCacheFile): try: if self.thisown: destroy(self) except: pass - def BuildGroupOrs(*args): return apply(_apt.pkgCacheFile_BuildGroupOrs,args) - def UpdateVerState(*args): return apply(_apt.pkgCacheFile_UpdateVerState,args) - def Head(*args): return apply(_apt.pkgCacheFile_Head,args) - def PkgIter(*args): return apply(_apt.pkgCacheFile_PkgIter,args) - def FindPkg(*args): return apply(_apt.pkgCacheFile_FindPkg,args) - def GetCache(*args): return apply(_apt.pkgCacheFile_GetCache,args) - def VS(*args): return apply(_apt.pkgCacheFile_VS,args) - def GetCandidateVer(*args): return apply(_apt.pkgCacheFile_GetCandidateVer,args) - def IsImportantDep(*args): return apply(_apt.pkgCacheFile_IsImportantDep,args) - def GetPolicy(*args): return apply(_apt.pkgCacheFile_GetPolicy,args) - def GetPkgPriority(*args): return apply(_apt.pkgCacheFile_GetPkgPriority,args) - def MarkKeep(*args): return apply(_apt.pkgCacheFile_MarkKeep,args) - def MarkDelete(*args): return apply(_apt.pkgCacheFile_MarkDelete,args) - def MarkInstall(*args): return apply(_apt.pkgCacheFile_MarkInstall,args) - def SetReInstall(*args): return apply(_apt.pkgCacheFile_SetReInstall,args) - def SetCandidateVersion(*args): return apply(_apt.pkgCacheFile_SetCandidateVersion,args) - def Update(*args): return apply(_apt.pkgCacheFile_Update,args) - def UsrSize(*args): return apply(_apt.pkgCacheFile_UsrSize,args) - def DebSize(*args): return apply(_apt.pkgCacheFile_DebSize,args) - def DelCount(*args): return apply(_apt.pkgCacheFile_DelCount,args) - def KeepCount(*args): return apply(_apt.pkgCacheFile_KeepCount,args) - def InstCount(*args): return apply(_apt.pkgCacheFile_InstCount,args) - def BrokenCount(*args): return apply(_apt.pkgCacheFile_BrokenCount,args) - def BadCount(*args): return apply(_apt.pkgCacheFile_BadCount,args) - def Init(*args): return apply(_apt.pkgCacheFile_Init,args) - def __repr__(self): - return "<C pkgCacheFile instance at %s>" % (self.this,) + def BuildGroupOrs(*args): return _apt.pkgCacheFile_BuildGroupOrs(*args) + def UpdateVerState(*args): return _apt.pkgCacheFile_UpdateVerState(*args) + def Head(*args): return _apt.pkgCacheFile_Head(*args) + def PkgIter(*args): return _apt.pkgCacheFile_PkgIter(*args) + def FindPkg(*args): return _apt.pkgCacheFile_FindPkg(*args) + def GetCache(*args): return _apt.pkgCacheFile_GetCache(*args) + def VS(*args): return _apt.pkgCacheFile_VS(*args) + def GetCandidateVer(*args): return _apt.pkgCacheFile_GetCandidateVer(*args) + def IsImportantDep(*args): return _apt.pkgCacheFile_IsImportantDep(*args) + def GetPolicy(*args): return _apt.pkgCacheFile_GetPolicy(*args) + def GetPkgPriority(*args): return _apt.pkgCacheFile_GetPkgPriority(*args) + def MarkKeep(*args): return _apt.pkgCacheFile_MarkKeep(*args) + def MarkDelete(*args): return _apt.pkgCacheFile_MarkDelete(*args) + def MarkInstall(*args): return _apt.pkgCacheFile_MarkInstall(*args) + def SetReInstall(*args): return _apt.pkgCacheFile_SetReInstall(*args) + def SetCandidateVersion(*args): return _apt.pkgCacheFile_SetCandidateVersion(*args) + def Update(*args): return _apt.pkgCacheFile_Update(*args) + def UsrSize(*args): return _apt.pkgCacheFile_UsrSize(*args) + def DebSize(*args): return _apt.pkgCacheFile_DebSize(*args) + def DelCount(*args): return _apt.pkgCacheFile_DelCount(*args) + def KeepCount(*args): return _apt.pkgCacheFile_KeepCount(*args) + def InstCount(*args): return _apt.pkgCacheFile_InstCount(*args) + def BrokenCount(*args): return _apt.pkgCacheFile_BrokenCount(*args) + def BadCount(*args): return _apt.pkgCacheFile_BadCount(*args) + def Init(*args): return _apt.pkgCacheFile_Init(*args) class pkgCacheFilePtr(pkgCacheFile): - def __init__(self,this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = pkgCacheFile + def __init__(self, this): + _swig_setattr(self, pkgCacheFile, 'this', this) + if not hasattr(self,"thisown"): _swig_setattr(self, pkgCacheFile, 'thisown', 0) + _swig_setattr(self, pkgCacheFile,self.__class__,pkgCacheFile) _apt.pkgCacheFile_swigregister(pkgCacheFilePtr) class pkgProblemResolver(_object): @@ -1115,30 +1090,31 @@ class pkgProblemResolver(_object): __setattr__ = lambda self, name, value: _swig_setattr(self, pkgProblemResolver, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, pkgProblemResolver, name) - def Protect(*args): return apply(_apt.pkgProblemResolver_Protect,args) - def Remove(*args): return apply(_apt.pkgProblemResolver_Remove,args) - def Clear(*args): return apply(_apt.pkgProblemResolver_Clear,args) - def Resolve(*args): return apply(_apt.pkgProblemResolver_Resolve,args) - def ResolveByKeep(*args): return apply(_apt.pkgProblemResolver_ResolveByKeep,args) - def InstallProtect(*args): return apply(_apt.pkgProblemResolver_InstallProtect,args) - def RemoveDepends(*args): return apply(_apt.pkgProblemResolver_RemoveDepends,args) - def __init__(self,*args): - self.this = apply(_apt.new_pkgProblemResolver,args) - self.thisown = 1 - def __del__(self, destroy= _apt.delete_pkgProblemResolver): + def __repr__(self): + return "<C pkgProblemResolver instance at %s>" % (self.this,) + def Protect(*args): return _apt.pkgProblemResolver_Protect(*args) + def Remove(*args): return _apt.pkgProblemResolver_Remove(*args) + def Clear(*args): return _apt.pkgProblemResolver_Clear(*args) + def Resolve(*args): return _apt.pkgProblemResolver_Resolve(*args) + def ResolveByKeep(*args): return _apt.pkgProblemResolver_ResolveByKeep(*args) + def InstallProtect(*args): return _apt.pkgProblemResolver_InstallProtect(*args) + def RemoveDepends(*args): return _apt.pkgProblemResolver_RemoveDepends(*args) + def __init__(self, *args): + _swig_setattr(self, pkgProblemResolver, 'this', _apt.new_pkgProblemResolver(*args)) + _swig_setattr(self, pkgProblemResolver, 'thisown', 1) + def __del__(self, destroy=_apt.delete_pkgProblemResolver): try: if self.thisown: destroy(self) except: pass - def __repr__(self): - return "<C pkgProblemResolver instance at %s>" % (self.this,) class pkgProblemResolverPtr(pkgProblemResolver): - def __init__(self,this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = pkgProblemResolver + def __init__(self, this): + _swig_setattr(self, pkgProblemResolver, 'this', this) + if not hasattr(self,"thisown"): _swig_setattr(self, pkgProblemResolver, 'thisown', 0) + _swig_setattr(self, pkgProblemResolver,self.__class__,pkgProblemResolver) _apt.pkgProblemResolver_swigregister(pkgProblemResolverPtr) + pkgDistUpgrade = _apt.pkgDistUpgrade pkgApplyStatus = _apt.pkgApplyStatus @@ -1150,124 +1126,125 @@ pkgAllUpgrade = _apt.pkgAllUpgrade pkgMinimizeUpgrade = _apt.pkgMinimizeUpgrade pkgPrioSortList = _apt.pkgPrioSortList - class pkgSystem(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, pkgSystem, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, pkgSystem, name) + def __init__(self): raise RuntimeError, "No constructor defined" + def __repr__(self): + return "<C pkgSystem instance at %s>" % (self.this,) __swig_getmethods__["GetSystem"] = lambda x: _apt.pkgSystem_GetSystem if _newclass:GetSystem = staticmethod(_apt.pkgSystem_GetSystem) __swig_getmethods__["Label"] = _apt.pkgSystem_Label_get if _newclass:Label = property(_apt.pkgSystem_Label_get) __swig_setmethods__["VS"] = _apt.pkgSystem_VS_set __swig_getmethods__["VS"] = _apt.pkgSystem_VS_get - if _newclass:VS = property(_apt.pkgSystem_VS_get,_apt.pkgSystem_VS_set) - def Lock(*args): return apply(_apt.pkgSystem_Lock,args) - def UnLock(*args): return apply(_apt.pkgSystem_UnLock,args) - def LockRead(*args): return apply(_apt.pkgSystem_LockRead,args) - def CacheBuilt(*args): return apply(_apt.pkgSystem_CacheBuilt,args) - def CreatePM(*args): return apply(_apt.pkgSystem_CreatePM,args) - def Initialize(*args): return apply(_apt.pkgSystem_Initialize,args) - def ArchiveSupported(*args): return apply(_apt.pkgSystem_ArchiveSupported,args) - def AddStatusFiles(*args): return apply(_apt.pkgSystem_AddStatusFiles,args) - def FindIndex(*args): return apply(_apt.pkgSystem_FindIndex,args) - def Score(*args): return apply(_apt.pkgSystem_Score,args) - def PreProcess(*args): return apply(_apt.pkgSystem_PreProcess,args) - def ProcessCache(*args): return apply(_apt.pkgSystem_ProcessCache,args) - def IgnoreDep(*args): return apply(_apt.pkgSystem_IgnoreDep,args) - def __del__(self, destroy= _apt.delete_pkgSystem): + if _newclass:VS = property(_apt.pkgSystem_VS_get, _apt.pkgSystem_VS_set) + def Lock(*args): return _apt.pkgSystem_Lock(*args) + def UnLock(*args): return _apt.pkgSystem_UnLock(*args) + def LockRead(*args): return _apt.pkgSystem_LockRead(*args) + def CacheBuilt(*args): return _apt.pkgSystem_CacheBuilt(*args) + def CreatePM(*args): return _apt.pkgSystem_CreatePM(*args) + def Initialize(*args): return _apt.pkgSystem_Initialize(*args) + def ArchiveSupported(*args): return _apt.pkgSystem_ArchiveSupported(*args) + def AddStatusFiles(*args): return _apt.pkgSystem_AddStatusFiles(*args) + def AddSourceFiles(*args): return _apt.pkgSystem_AddSourceFiles(*args) + def FindIndex(*args): return _apt.pkgSystem_FindIndex(*args) + def Score(*args): return _apt.pkgSystem_Score(*args) + def PreProcess(*args): return _apt.pkgSystem_PreProcess(*args) + def ProcessCache(*args): return _apt.pkgSystem_ProcessCache(*args) + def IgnoreDep(*args): return _apt.pkgSystem_IgnoreDep(*args) + def OptionsHash(*args): return _apt.pkgSystem_OptionsHash(*args) + def __del__(self, destroy=_apt.delete_pkgSystem): try: if self.thisown: destroy(self) except: pass - def __init__(self): raise RuntimeError, "No constructor defined" - def __repr__(self): - return "<C pkgSystem instance at %s>" % (self.this,) class pkgSystemPtr(pkgSystem): - def __init__(self,this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = pkgSystem + def __init__(self, this): + _swig_setattr(self, pkgSystem, 'this', this) + if not hasattr(self,"thisown"): _swig_setattr(self, pkgSystem, 'thisown', 0) + _swig_setattr(self, pkgSystem,self.__class__,pkgSystem) _apt.pkgSystem_swigregister(pkgSystemPtr) -pkgSystem_GetSystem = _apt.pkgSystem_GetSystem +pkgSystem_GetSystem = _apt.pkgSystem_GetSystem class Configuration(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, Configuration, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, Configuration, name) - def Find(*args): return apply(_apt.Configuration_Find,args) - def FindFile(*args): return apply(_apt.Configuration_FindFile,args) - def FindDir(*args): return apply(_apt.Configuration_FindDir,args) - def FindI(*args): return apply(_apt.Configuration_FindI,args) - def FindB(*args): return apply(_apt.Configuration_FindB,args) - def FindAny(*args): return apply(_apt.Configuration_FindAny,args) - def CndSet(*args): return apply(_apt.Configuration_CndSet,args) - def Set(*args): return apply(_apt.Configuration_Set,args) - def Exists(*args): return apply(_apt.Configuration_Exists,args) - def ExistsAny(*args): return apply(_apt.Configuration_ExistsAny,args) - def Clear(*args): return apply(_apt.Configuration_Clear,args) - def Tree(*args): return apply(_apt.Configuration_Tree,args) - def Dump(*args): return apply(_apt.Configuration_Dump,args) - def __init__(self,*args): - self.this = apply(_apt.new_Configuration,args) - self.thisown = 1 - def __del__(self, destroy= _apt.delete_Configuration): + def __repr__(self): + return "<C Configuration instance at %s>" % (self.this,) + def Find(*args): return _apt.Configuration_Find(*args) + def FindFile(*args): return _apt.Configuration_FindFile(*args) + def FindDir(*args): return _apt.Configuration_FindDir(*args) + def FindI(*args): return _apt.Configuration_FindI(*args) + def FindB(*args): return _apt.Configuration_FindB(*args) + def FindAny(*args): return _apt.Configuration_FindAny(*args) + def CndSet(*args): return _apt.Configuration_CndSet(*args) + def Set(*args): return _apt.Configuration_Set(*args) + def Exists(*args): return _apt.Configuration_Exists(*args) + def ExistsAny(*args): return _apt.Configuration_ExistsAny(*args) + def Clear(*args): return _apt.Configuration_Clear(*args) + def Tree(*args): return _apt.Configuration_Tree(*args) + def Dump(*args): return _apt.Configuration_Dump(*args) + def __init__(self, *args): + _swig_setattr(self, Configuration, 'this', _apt.new_Configuration(*args)) + _swig_setattr(self, Configuration, 'thisown', 1) + def __del__(self, destroy=_apt.delete_Configuration): try: if self.thisown: destroy(self) except: pass - def __repr__(self): - return "<C Configuration instance at %s>" % (self.this,) class ConfigurationPtr(Configuration): - def __init__(self,this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = Configuration + def __init__(self, this): + _swig_setattr(self, Configuration, 'this', this) + if not hasattr(self,"thisown"): _swig_setattr(self, Configuration, 'thisown', 0) + _swig_setattr(self, Configuration,self.__class__,Configuration) _apt.Configuration_swigregister(ConfigurationPtr) + ReadConfigFile = _apt.ReadConfigFile ReadConfigDir = _apt.ReadConfigDir - class ConfigurationItem(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, ConfigurationItem, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, ConfigurationItem, name) + def __repr__(self): + return "<C Configuration::Item instance at %s>" % (self.this,) __swig_setmethods__["Tag"] = _apt.ConfigurationItem_Tag_set __swig_getmethods__["Tag"] = _apt.ConfigurationItem_Tag_get - if _newclass:Tag = property(_apt.ConfigurationItem_Tag_get,_apt.ConfigurationItem_Tag_set) + if _newclass:Tag = property(_apt.ConfigurationItem_Tag_get, _apt.ConfigurationItem_Tag_set) __swig_setmethods__["Value"] = _apt.ConfigurationItem_Value_set __swig_getmethods__["Value"] = _apt.ConfigurationItem_Value_get - if _newclass:Value = property(_apt.ConfigurationItem_Value_get,_apt.ConfigurationItem_Value_set) + if _newclass:Value = property(_apt.ConfigurationItem_Value_get, _apt.ConfigurationItem_Value_set) __swig_setmethods__["Parent"] = _apt.ConfigurationItem_Parent_set __swig_getmethods__["Parent"] = _apt.ConfigurationItem_Parent_get - if _newclass:Parent = property(_apt.ConfigurationItem_Parent_get,_apt.ConfigurationItem_Parent_set) + if _newclass:Parent = property(_apt.ConfigurationItem_Parent_get, _apt.ConfigurationItem_Parent_set) __swig_setmethods__["Child"] = _apt.ConfigurationItem_Child_set __swig_getmethods__["Child"] = _apt.ConfigurationItem_Child_get - if _newclass:Child = property(_apt.ConfigurationItem_Child_get,_apt.ConfigurationItem_Child_set) + if _newclass:Child = property(_apt.ConfigurationItem_Child_get, _apt.ConfigurationItem_Child_set) __swig_setmethods__["Next"] = _apt.ConfigurationItem_Next_set __swig_getmethods__["Next"] = _apt.ConfigurationItem_Next_get - if _newclass:Next = property(_apt.ConfigurationItem_Next_get,_apt.ConfigurationItem_Next_set) - def FullTag(*args): return apply(_apt.ConfigurationItem_FullTag,args) - def __init__(self,*args): - self.this = apply(_apt.new_ConfigurationItem,args) - self.thisown = 1 - def __del__(self, destroy= _apt.delete_ConfigurationItem): + if _newclass:Next = property(_apt.ConfigurationItem_Next_get, _apt.ConfigurationItem_Next_set) + def FullTag(*args): return _apt.ConfigurationItem_FullTag(*args) + def __init__(self, *args): + _swig_setattr(self, ConfigurationItem, 'this', _apt.new_ConfigurationItem(*args)) + _swig_setattr(self, ConfigurationItem, 'thisown', 1) + def __del__(self, destroy=_apt.delete_ConfigurationItem): try: if self.thisown: destroy(self) except: pass - def __repr__(self): - return "<C ConfigurationItem instance at %s>" % (self.this,) class ConfigurationItemPtr(ConfigurationItem): - def __init__(self,this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ConfigurationItem + def __init__(self, this): + _swig_setattr(self, ConfigurationItem, 'this', this) + if not hasattr(self,"thisown"): _swig_setattr(self, ConfigurationItem, 'thisown', 0) + _swig_setattr(self, ConfigurationItem,self.__class__,ConfigurationItem) _apt.ConfigurationItem_swigregister(ConfigurationItemPtr) class OpProgress(_object): @@ -1275,25 +1252,25 @@ class OpProgress(_object): __setattr__ = lambda self, name, value: _swig_setattr(self, OpProgress, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, OpProgress, name) - def Progress(*args): return apply(_apt.OpProgress_Progress,args) - def SubProgress(*args): return apply(_apt.OpProgress_SubProgress,args) - def OverallProgress(*args): return apply(_apt.OpProgress_OverallProgress,args) - def Done(*args): return apply(_apt.OpProgress_Done,args) - def __init__(self,*args): - self.this = apply(_apt.new_OpProgress,args) - self.thisown = 1 - def __del__(self, destroy= _apt.delete_OpProgress): + def __repr__(self): + return "<C OpProgress instance at %s>" % (self.this,) + def Progress(*args): return _apt.OpProgress_Progress(*args) + def SubProgress(*args): return _apt.OpProgress_SubProgress(*args) + def OverallProgress(*args): return _apt.OpProgress_OverallProgress(*args) + def Done(*args): return _apt.OpProgress_Done(*args) + def __init__(self, *args): + _swig_setattr(self, OpProgress, 'this', _apt.new_OpProgress(*args)) + _swig_setattr(self, OpProgress, 'thisown', 1) + def __del__(self, destroy=_apt.delete_OpProgress): try: if self.thisown: destroy(self) except: pass - def __repr__(self): - return "<C OpProgress instance at %s>" % (self.this,) class OpProgressPtr(OpProgress): - def __init__(self,this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = OpProgress + def __init__(self, this): + _swig_setattr(self, OpProgress, 'this', this) + if not hasattr(self,"thisown"): _swig_setattr(self, OpProgress, 'thisown', 0) + _swig_setattr(self, OpProgress,self.__class__,OpProgress) _apt.OpProgress_swigregister(OpProgressPtr) class OpTextProgress(OpProgress): @@ -1303,22 +1280,22 @@ class OpTextProgress(OpProgress): __swig_getmethods__ = {} for _s in [OpProgress]: __swig_getmethods__.update(_s.__swig_getmethods__) __getattr__ = lambda self, name: _swig_getattr(self, OpTextProgress, name) - def Done(*args): return apply(_apt.OpTextProgress_Done,args) - def __init__(self,*args): - self.this = apply(_apt.new_OpTextProgress,args) - self.thisown = 1 - def __del__(self, destroy= _apt.delete_OpTextProgress): + def __repr__(self): + return "<C OpTextProgress instance at %s>" % (self.this,) + def Done(*args): return _apt.OpTextProgress_Done(*args) + def __init__(self, *args): + _swig_setattr(self, OpTextProgress, 'this', _apt.new_OpTextProgress(*args)) + _swig_setattr(self, OpTextProgress, 'thisown', 1) + def __del__(self, destroy=_apt.delete_OpTextProgress): try: if self.thisown: destroy(self) except: pass - def __repr__(self): - return "<C OpTextProgress instance at %s>" % (self.this,) class OpTextProgressPtr(OpTextProgress): - def __init__(self,this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = OpTextProgress + def __init__(self, this): + _swig_setattr(self, OpTextProgress, 'this', this) + if not hasattr(self,"thisown"): _swig_setattr(self, OpTextProgress, 'thisown', 0) + _swig_setattr(self, OpTextProgress,self.__class__,OpTextProgress) _apt.OpTextProgress_swigregister(OpTextProgressPtr) class pkgVersioningSystem(_object): @@ -1326,57 +1303,57 @@ class pkgVersioningSystem(_object): __setattr__ = lambda self, name, value: _swig_setattr(self, pkgVersioningSystem, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, pkgVersioningSystem, name) + def __init__(self): raise RuntimeError, "No constructor defined" + def __repr__(self): + return "<C pkgVersioningSystem instance at %s>" % (self.this,) __swig_getmethods__["GetVS"] = lambda x: _apt.pkgVersioningSystem_GetVS if _newclass:GetVS = staticmethod(_apt.pkgVersioningSystem_GetVS) __swig_getmethods__["Label"] = _apt.pkgVersioningSystem_Label_get if _newclass:Label = property(_apt.pkgVersioningSystem_Label_get) - def DoCmpVersion(*args): return apply(_apt.pkgVersioningSystem_DoCmpVersion,args) - def DoCmpVersionArch(*args): return apply(_apt.pkgVersioningSystem_DoCmpVersionArch,args) - def CmpVersionArch(*args): return apply(_apt.pkgVersioningSystem_CmpVersionArch,args) - def CheckDep(*args): return apply(_apt.pkgVersioningSystem_CheckDep,args) - def DoCmpReleaseVer(*args): return apply(_apt.pkgVersioningSystem_DoCmpReleaseVer,args) - def UpstreamVersion(*args): return apply(_apt.pkgVersioningSystem_UpstreamVersion,args) - def TestCompatibility(*args): return apply(_apt.pkgVersioningSystem_TestCompatibility,args) - def CmpVersion(*args): return apply(_apt.pkgVersioningSystem_CmpVersion,args) - def CmpReleaseVer(*args): return apply(_apt.pkgVersioningSystem_CmpReleaseVer,args) - def __del__(self, destroy= _apt.delete_pkgVersioningSystem): + def DoCmpVersion(*args): return _apt.pkgVersioningSystem_DoCmpVersion(*args) + def DoCmpVersionArch(*args): return _apt.pkgVersioningSystem_DoCmpVersionArch(*args) + def CmpVersionArch(*args): return _apt.pkgVersioningSystem_CmpVersionArch(*args) + def CheckDep(*args): return _apt.pkgVersioningSystem_CheckDep(*args) + def DoCmpReleaseVer(*args): return _apt.pkgVersioningSystem_DoCmpReleaseVer(*args) + def UpstreamVersion(*args): return _apt.pkgVersioningSystem_UpstreamVersion(*args) + def TestCompatibility(*args): return _apt.pkgVersioningSystem_TestCompatibility(*args) + def CmpVersion(*args): return _apt.pkgVersioningSystem_CmpVersion(*args) + def CmpReleaseVer(*args): return _apt.pkgVersioningSystem_CmpReleaseVer(*args) + def __del__(self, destroy=_apt.delete_pkgVersioningSystem): try: if self.thisown: destroy(self) except: pass - def __init__(self): raise RuntimeError, "No constructor defined" - def __repr__(self): - return "<C pkgVersioningSystem instance at %s>" % (self.this,) class pkgVersioningSystemPtr(pkgVersioningSystem): - def __init__(self,this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = pkgVersioningSystem + def __init__(self, this): + _swig_setattr(self, pkgVersioningSystem, 'this', this) + if not hasattr(self,"thisown"): _swig_setattr(self, pkgVersioningSystem, 'thisown', 0) + _swig_setattr(self, pkgVersioningSystem,self.__class__,pkgVersioningSystem) _apt.pkgVersioningSystem_swigregister(pkgVersioningSystemPtr) -pkgVersioningSystem_GetVS = _apt.pkgVersioningSystem_GetVS +pkgVersioningSystem_GetVS = _apt.pkgVersioningSystem_GetVS class pkgRecords(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, pkgRecords, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, pkgRecords, name) - def Lookup(*args): return apply(_apt.pkgRecords_Lookup,args) - def __init__(self,*args): - self.this = apply(_apt.new_pkgRecords,args) - self.thisown = 1 - def __del__(self, destroy= _apt.delete_pkgRecords): + def __repr__(self): + return "<C pkgRecords instance at %s>" % (self.this,) + def Lookup(*args): return _apt.pkgRecords_Lookup(*args) + def __init__(self, *args): + _swig_setattr(self, pkgRecords, 'this', _apt.new_pkgRecords(*args)) + _swig_setattr(self, pkgRecords, 'thisown', 1) + def __del__(self, destroy=_apt.delete_pkgRecords): try: if self.thisown: destroy(self) except: pass - def __repr__(self): - return "<C pkgRecords instance at %s>" % (self.this,) class pkgRecordsPtr(pkgRecords): - def __init__(self,this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = pkgRecords + def __init__(self, this): + _swig_setattr(self, pkgRecords, 'this', this) + if not hasattr(self,"thisown"): _swig_setattr(self, pkgRecords, 'thisown', 0) + _swig_setattr(self, pkgRecords,self.__class__,pkgRecords) _apt.pkgRecords_swigregister(pkgRecordsPtr) class pkgRecordsParser(_object): @@ -1384,28 +1361,29 @@ class pkgRecordsParser(_object): __setattr__ = lambda self, name, value: _swig_setattr(self, pkgRecordsParser, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, pkgRecordsParser, name) - def FileName(*args): return apply(_apt.pkgRecordsParser_FileName,args) - def MD5Hash(*args): return apply(_apt.pkgRecordsParser_MD5Hash,args) - def SHA1Hash(*args): return apply(_apt.pkgRecordsParser_SHA1Hash,args) - def SourcePkg(*args): return apply(_apt.pkgRecordsParser_SourcePkg,args) - def Maintainer(*args): return apply(_apt.pkgRecordsParser_Maintainer,args) - def ShortDesc(*args): return apply(_apt.pkgRecordsParser_ShortDesc,args) - def LongDesc(*args): return apply(_apt.pkgRecordsParser_LongDesc,args) - def Name(*args): return apply(_apt.pkgRecordsParser_Name,args) - def GetRec(*args): return apply(_apt.pkgRecordsParser_GetRec,args) - def __del__(self, destroy= _apt.delete_pkgRecordsParser): + def __init__(self): raise RuntimeError, "No constructor defined" + def __repr__(self): + return "<C pkgRecords::Parser instance at %s>" % (self.this,) + def FileName(*args): return _apt.pkgRecordsParser_FileName(*args) + def MD5Hash(*args): return _apt.pkgRecordsParser_MD5Hash(*args) + def SHA1Hash(*args): return _apt.pkgRecordsParser_SHA1Hash(*args) + def SourcePkg(*args): return _apt.pkgRecordsParser_SourcePkg(*args) + def Maintainer(*args): return _apt.pkgRecordsParser_Maintainer(*args) + def ShortDesc(*args): return _apt.pkgRecordsParser_ShortDesc(*args) + def LongDesc(*args): return _apt.pkgRecordsParser_LongDesc(*args) + def Name(*args): return _apt.pkgRecordsParser_Name(*args) + def GetRec(*args): return _apt.pkgRecordsParser_GetRec(*args) + def HasFile(*args): return _apt.pkgRecordsParser_HasFile(*args) + def __del__(self, destroy=_apt.delete_pkgRecordsParser): try: if self.thisown: destroy(self) except: pass - def __init__(self): raise RuntimeError, "No constructor defined" - def __repr__(self): - return "<C pkgRecordsParser instance at %s>" % (self.this,) class pkgRecordsParserPtr(pkgRecordsParser): - def __init__(self,this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = pkgRecordsParser + def __init__(self, this): + _swig_setattr(self, pkgRecordsParser, 'this', this) + if not hasattr(self,"thisown"): _swig_setattr(self, pkgRecordsParser, 'thisown', 0) + _swig_setattr(self, pkgRecordsParser,self.__class__,pkgRecordsParser) _apt.pkgRecordsParser_swigregister(pkgRecordsParserPtr) class pkgAcquireItem(_object): @@ -1413,6 +1391,9 @@ class pkgAcquireItem(_object): __setattr__ = lambda self, name, value: _swig_setattr(self, pkgAcquireItem, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, pkgAcquireItem, name) + def __init__(self): raise RuntimeError, "No constructor defined" + def __repr__(self): + return "<C pkgAcquire::Item instance at %s>" % (self.this,) __swig_getmethods__["DestFile"] = _apt.pkgAcquireItem_DestFile_get if _newclass:DestFile = property(_apt.pkgAcquireItem_DestFile_get) __swig_getmethods__["ErrorText"] = _apt.pkgAcquireItem_ErrorText_get @@ -1423,49 +1404,46 @@ class pkgAcquireItem(_object): StatError = _apt.pkgAcquireItem_StatError __swig_setmethods__["Status"] = _apt.pkgAcquireItem_Status_set __swig_getmethods__["Status"] = _apt.pkgAcquireItem_Status_get - if _newclass:Status = property(_apt.pkgAcquireItem_Status_get,_apt.pkgAcquireItem_Status_set) + if _newclass:Status = property(_apt.pkgAcquireItem_Status_get, _apt.pkgAcquireItem_Status_set) __swig_setmethods__["FileSize"] = _apt.pkgAcquireItem_FileSize_set __swig_getmethods__["FileSize"] = _apt.pkgAcquireItem_FileSize_get - if _newclass:FileSize = property(_apt.pkgAcquireItem_FileSize_get,_apt.pkgAcquireItem_FileSize_set) + if _newclass:FileSize = property(_apt.pkgAcquireItem_FileSize_get, _apt.pkgAcquireItem_FileSize_set) __swig_setmethods__["PartialSize"] = _apt.pkgAcquireItem_PartialSize_set __swig_getmethods__["PartialSize"] = _apt.pkgAcquireItem_PartialSize_get - if _newclass:PartialSize = property(_apt.pkgAcquireItem_PartialSize_get,_apt.pkgAcquireItem_PartialSize_set) + if _newclass:PartialSize = property(_apt.pkgAcquireItem_PartialSize_get, _apt.pkgAcquireItem_PartialSize_set) __swig_setmethods__["Mode"] = _apt.pkgAcquireItem_Mode_set __swig_getmethods__["Mode"] = _apt.pkgAcquireItem_Mode_get - if _newclass:Mode = property(_apt.pkgAcquireItem_Mode_get,_apt.pkgAcquireItem_Mode_set) + if _newclass:Mode = property(_apt.pkgAcquireItem_Mode_get, _apt.pkgAcquireItem_Mode_set) __swig_setmethods__["ID"] = _apt.pkgAcquireItem_ID_set __swig_getmethods__["ID"] = _apt.pkgAcquireItem_ID_get - if _newclass:ID = property(_apt.pkgAcquireItem_ID_get,_apt.pkgAcquireItem_ID_set) + if _newclass:ID = property(_apt.pkgAcquireItem_ID_get, _apt.pkgAcquireItem_ID_set) __swig_setmethods__["Complete"] = _apt.pkgAcquireItem_Complete_set __swig_getmethods__["Complete"] = _apt.pkgAcquireItem_Complete_get - if _newclass:Complete = property(_apt.pkgAcquireItem_Complete_get,_apt.pkgAcquireItem_Complete_set) + if _newclass:Complete = property(_apt.pkgAcquireItem_Complete_get, _apt.pkgAcquireItem_Complete_set) __swig_setmethods__["Local"] = _apt.pkgAcquireItem_Local_set __swig_getmethods__["Local"] = _apt.pkgAcquireItem_Local_get - if _newclass:Local = property(_apt.pkgAcquireItem_Local_get,_apt.pkgAcquireItem_Local_set) + if _newclass:Local = property(_apt.pkgAcquireItem_Local_get, _apt.pkgAcquireItem_Local_set) __swig_setmethods__["QueueCounter"] = _apt.pkgAcquireItem_QueueCounter_set __swig_getmethods__["QueueCounter"] = _apt.pkgAcquireItem_QueueCounter_get - if _newclass:QueueCounter = property(_apt.pkgAcquireItem_QueueCounter_get,_apt.pkgAcquireItem_QueueCounter_set) - def Failed(*args): return apply(_apt.pkgAcquireItem_Failed,args) - def Done(*args): return apply(_apt.pkgAcquireItem_Done,args) - def Start(*args): return apply(_apt.pkgAcquireItem_Start,args) - def Custom600Headers(*args): return apply(_apt.pkgAcquireItem_Custom600Headers,args) - def DescURI(*args): return apply(_apt.pkgAcquireItem_DescURI,args) - def Finished(*args): return apply(_apt.pkgAcquireItem_Finished,args) - def MD5Sum(*args): return apply(_apt.pkgAcquireItem_MD5Sum,args) - def GetOwner(*args): return apply(_apt.pkgAcquireItem_GetOwner,args) - def __del__(self, destroy= _apt.delete_pkgAcquireItem): + if _newclass:QueueCounter = property(_apt.pkgAcquireItem_QueueCounter_get, _apt.pkgAcquireItem_QueueCounter_set) + def Failed(*args): return _apt.pkgAcquireItem_Failed(*args) + def Done(*args): return _apt.pkgAcquireItem_Done(*args) + def Start(*args): return _apt.pkgAcquireItem_Start(*args) + def Custom600Headers(*args): return _apt.pkgAcquireItem_Custom600Headers(*args) + def DescURI(*args): return _apt.pkgAcquireItem_DescURI(*args) + def Finished(*args): return _apt.pkgAcquireItem_Finished(*args) + def MD5Sum(*args): return _apt.pkgAcquireItem_MD5Sum(*args) + def GetOwner(*args): return _apt.pkgAcquireItem_GetOwner(*args) + def __del__(self, destroy=_apt.delete_pkgAcquireItem): try: if self.thisown: destroy(self) except: pass - def __init__(self): raise RuntimeError, "No constructor defined" - def __repr__(self): - return "<C pkgAcquireItem instance at %s>" % (self.this,) class pkgAcquireItemPtr(pkgAcquireItem): - def __init__(self,this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = pkgAcquireItem + def __init__(self, this): + _swig_setattr(self, pkgAcquireItem, 'this', this) + if not hasattr(self,"thisown"): _swig_setattr(self, pkgAcquireItem, 'thisown', 0) + _swig_setattr(self, pkgAcquireItem,self.__class__,pkgAcquireItem) _apt.pkgAcquireItem_swigregister(pkgAcquireItemPtr) class pkgAcqIndex(pkgAcquireItem): @@ -1475,24 +1453,24 @@ class pkgAcqIndex(pkgAcquireItem): __swig_getmethods__ = {} for _s in [pkgAcquireItem]: __swig_getmethods__.update(_s.__swig_getmethods__) __getattr__ = lambda self, name: _swig_getattr(self, pkgAcqIndex, name) - def Done(*args): return apply(_apt.pkgAcqIndex_Done,args) - def Custom600Headers(*args): return apply(_apt.pkgAcqIndex_Custom600Headers,args) - def DescURI(*args): return apply(_apt.pkgAcqIndex_DescURI,args) - def __init__(self,*args): - self.this = apply(_apt.new_pkgAcqIndex,args) - self.thisown = 1 - def __del__(self, destroy= _apt.delete_pkgAcqIndex): + def __repr__(self): + return "<C pkgAcqIndex instance at %s>" % (self.this,) + def Done(*args): return _apt.pkgAcqIndex_Done(*args) + def Custom600Headers(*args): return _apt.pkgAcqIndex_Custom600Headers(*args) + def DescURI(*args): return _apt.pkgAcqIndex_DescURI(*args) + def __init__(self, *args): + _swig_setattr(self, pkgAcqIndex, 'this', _apt.new_pkgAcqIndex(*args)) + _swig_setattr(self, pkgAcqIndex, 'thisown', 1) + def __del__(self, destroy=_apt.delete_pkgAcqIndex): try: if self.thisown: destroy(self) except: pass - def __repr__(self): - return "<C pkgAcqIndex instance at %s>" % (self.this,) class pkgAcqIndexPtr(pkgAcqIndex): - def __init__(self,this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = pkgAcqIndex + def __init__(self, this): + _swig_setattr(self, pkgAcqIndex, 'this', this) + if not hasattr(self,"thisown"): _swig_setattr(self, pkgAcqIndex, 'thisown', 0) + _swig_setattr(self, pkgAcqIndex,self.__class__,pkgAcqIndex) _apt.pkgAcqIndex_swigregister(pkgAcqIndexPtr) class pkgAcqIndexRel(pkgAcquireItem): @@ -1502,25 +1480,25 @@ class pkgAcqIndexRel(pkgAcquireItem): __swig_getmethods__ = {} for _s in [pkgAcquireItem]: __swig_getmethods__.update(_s.__swig_getmethods__) __getattr__ = lambda self, name: _swig_getattr(self, pkgAcqIndexRel, name) - def Failed(*args): return apply(_apt.pkgAcqIndexRel_Failed,args) - def Done(*args): return apply(_apt.pkgAcqIndexRel_Done,args) - def Custom600Headers(*args): return apply(_apt.pkgAcqIndexRel_Custom600Headers,args) - def DescURI(*args): return apply(_apt.pkgAcqIndexRel_DescURI,args) - def __init__(self,*args): - self.this = apply(_apt.new_pkgAcqIndexRel,args) - self.thisown = 1 - def __del__(self, destroy= _apt.delete_pkgAcqIndexRel): + def __repr__(self): + return "<C pkgAcqIndexRel instance at %s>" % (self.this,) + def Failed(*args): return _apt.pkgAcqIndexRel_Failed(*args) + def Done(*args): return _apt.pkgAcqIndexRel_Done(*args) + def Custom600Headers(*args): return _apt.pkgAcqIndexRel_Custom600Headers(*args) + def DescURI(*args): return _apt.pkgAcqIndexRel_DescURI(*args) + def __init__(self, *args): + _swig_setattr(self, pkgAcqIndexRel, 'this', _apt.new_pkgAcqIndexRel(*args)) + _swig_setattr(self, pkgAcqIndexRel, 'thisown', 1) + def __del__(self, destroy=_apt.delete_pkgAcqIndexRel): try: if self.thisown: destroy(self) except: pass - def __repr__(self): - return "<C pkgAcqIndexRel instance at %s>" % (self.this,) class pkgAcqIndexRelPtr(pkgAcqIndexRel): - def __init__(self,this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = pkgAcqIndexRel + def __init__(self, this): + _swig_setattr(self, pkgAcqIndexRel, 'this', this) + if not hasattr(self,"thisown"): _swig_setattr(self, pkgAcqIndexRel, 'thisown', 0) + _swig_setattr(self, pkgAcqIndexRel,self.__class__,pkgAcqIndexRel) _apt.pkgAcqIndexRel_swigregister(pkgAcqIndexRelPtr) class pkgAcqArchive(pkgAcquireItem): @@ -1530,26 +1508,26 @@ class pkgAcqArchive(pkgAcquireItem): __swig_getmethods__ = {} for _s in [pkgAcquireItem]: __swig_getmethods__.update(_s.__swig_getmethods__) __getattr__ = lambda self, name: _swig_getattr(self, pkgAcqArchive, name) - def Failed(*args): return apply(_apt.pkgAcqArchive_Failed,args) - def Done(*args): return apply(_apt.pkgAcqArchive_Done,args) - def MD5Sum(*args): return apply(_apt.pkgAcqArchive_MD5Sum,args) - def DescURI(*args): return apply(_apt.pkgAcqArchive_DescURI,args) - def Finished(*args): return apply(_apt.pkgAcqArchive_Finished,args) - def __init__(self,*args): - self.this = apply(_apt.new_pkgAcqArchive,args) - self.thisown = 1 - def __del__(self, destroy= _apt.delete_pkgAcqArchive): + def __repr__(self): + return "<C pkgAcqArchive instance at %s>" % (self.this,) + def Failed(*args): return _apt.pkgAcqArchive_Failed(*args) + def Done(*args): return _apt.pkgAcqArchive_Done(*args) + def MD5Sum(*args): return _apt.pkgAcqArchive_MD5Sum(*args) + def DescURI(*args): return _apt.pkgAcqArchive_DescURI(*args) + def Finished(*args): return _apt.pkgAcqArchive_Finished(*args) + def __init__(self, *args): + _swig_setattr(self, pkgAcqArchive, 'this', _apt.new_pkgAcqArchive(*args)) + _swig_setattr(self, pkgAcqArchive, 'thisown', 1) + def __del__(self, destroy=_apt.delete_pkgAcqArchive): try: if self.thisown: destroy(self) except: pass - def __repr__(self): - return "<C pkgAcqArchive instance at %s>" % (self.this,) class pkgAcqArchivePtr(pkgAcqArchive): - def __init__(self,this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = pkgAcqArchive + def __init__(self, this): + _swig_setattr(self, pkgAcqArchive, 'this', this) + if not hasattr(self,"thisown"): _swig_setattr(self, pkgAcqArchive, 'thisown', 0) + _swig_setattr(self, pkgAcqArchive,self.__class__,pkgAcqArchive) _apt.pkgAcqArchive_swigregister(pkgAcqArchivePtr) class pkgAcqFile(pkgAcquireItem): @@ -1559,25 +1537,25 @@ class pkgAcqFile(pkgAcquireItem): __swig_getmethods__ = {} for _s in [pkgAcquireItem]: __swig_getmethods__.update(_s.__swig_getmethods__) __getattr__ = lambda self, name: _swig_getattr(self, pkgAcqFile, name) - def Failed(*args): return apply(_apt.pkgAcqFile_Failed,args) - def Done(*args): return apply(_apt.pkgAcqFile_Done,args) - def MD5Sum(*args): return apply(_apt.pkgAcqFile_MD5Sum,args) - def DescURI(*args): return apply(_apt.pkgAcqFile_DescURI,args) - def __init__(self,*args): - self.this = apply(_apt.new_pkgAcqFile,args) - self.thisown = 1 - def __del__(self, destroy= _apt.delete_pkgAcqFile): + def __repr__(self): + return "<C pkgAcqFile instance at %s>" % (self.this,) + def Failed(*args): return _apt.pkgAcqFile_Failed(*args) + def Done(*args): return _apt.pkgAcqFile_Done(*args) + def MD5Sum(*args): return _apt.pkgAcqFile_MD5Sum(*args) + def DescURI(*args): return _apt.pkgAcqFile_DescURI(*args) + def __init__(self, *args): + _swig_setattr(self, pkgAcqFile, 'this', _apt.new_pkgAcqFile(*args)) + _swig_setattr(self, pkgAcqFile, 'thisown', 1) + def __del__(self, destroy=_apt.delete_pkgAcqFile): try: if self.thisown: destroy(self) except: pass - def __repr__(self): - return "<C pkgAcqFile instance at %s>" % (self.this,) class pkgAcqFilePtr(pkgAcqFile): - def __init__(self,this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = pkgAcqFile + def __init__(self, this): + _swig_setattr(self, pkgAcqFile, 'this', this) + if not hasattr(self,"thisown"): _swig_setattr(self, pkgAcqFile, 'thisown', 0) + _swig_setattr(self, pkgAcqFile,self.__class__,pkgAcqFile) _apt.pkgAcqFile_swigregister(pkgAcqFilePtr) class pkgAcquire(_object): @@ -1585,36 +1563,36 @@ class pkgAcquire(_object): __setattr__ = lambda self, name, value: _swig_setattr(self, pkgAcquire, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, pkgAcquire, name) - def ItemsIter(*args): return apply(_apt.pkgAcquire_ItemsIter,args) - def GetConfig(*args): return apply(_apt.pkgAcquire_GetConfig,args) + def __repr__(self): + return "<C pkgAcquire instance at %s>" % (self.this,) + def ItemsIter(*args): return _apt.pkgAcquire_ItemsIter(*args) + def GetConfig(*args): return _apt.pkgAcquire_GetConfig(*args) Continue = _apt.pkgAcquire_Continue Failed = _apt.pkgAcquire_Failed Cancelled = _apt.pkgAcquire_Cancelled - def Run(*args): return apply(_apt.pkgAcquire_Run,args) - def Shutdown(*args): return apply(_apt.pkgAcquire_Shutdown,args) - def WorkersBegin(*args): return apply(_apt.pkgAcquire_WorkersBegin,args) - def WorkerStep(*args): return apply(_apt.pkgAcquire_WorkerStep,args) - def UriBegin(*args): return apply(_apt.pkgAcquire_UriBegin,args) - def UriEnd(*args): return apply(_apt.pkgAcquire_UriEnd,args) - def Clean(*args): return apply(_apt.pkgAcquire_Clean,args) - def TotalNeeded(*args): return apply(_apt.pkgAcquire_TotalNeeded,args) - def FetchNeeded(*args): return apply(_apt.pkgAcquire_FetchNeeded,args) - def PartialPresent(*args): return apply(_apt.pkgAcquire_PartialPresent,args) - def __init__(self,*args): - self.this = apply(_apt.new_pkgAcquire,args) - self.thisown = 1 - def __del__(self, destroy= _apt.delete_pkgAcquire): + def Run(*args): return _apt.pkgAcquire_Run(*args) + def Shutdown(*args): return _apt.pkgAcquire_Shutdown(*args) + def WorkersBegin(*args): return _apt.pkgAcquire_WorkersBegin(*args) + def WorkerStep(*args): return _apt.pkgAcquire_WorkerStep(*args) + def UriBegin(*args): return _apt.pkgAcquire_UriBegin(*args) + def UriEnd(*args): return _apt.pkgAcquire_UriEnd(*args) + def Clean(*args): return _apt.pkgAcquire_Clean(*args) + def TotalNeeded(*args): return _apt.pkgAcquire_TotalNeeded(*args) + def FetchNeeded(*args): return _apt.pkgAcquire_FetchNeeded(*args) + def PartialPresent(*args): return _apt.pkgAcquire_PartialPresent(*args) + def __init__(self, *args): + _swig_setattr(self, pkgAcquire, 'this', _apt.new_pkgAcquire(*args)) + _swig_setattr(self, pkgAcquire, 'thisown', 1) + def __del__(self, destroy=_apt.delete_pkgAcquire): try: if self.thisown: destroy(self) except: pass - def __repr__(self): - return "<C pkgAcquire instance at %s>" % (self.this,) class pkgAcquirePtr(pkgAcquire): - def __init__(self,this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = pkgAcquire + def __init__(self, this): + _swig_setattr(self, pkgAcquire, 'this', this) + if not hasattr(self,"thisown"): _swig_setattr(self, pkgAcquire, 'thisown', 0) + _swig_setattr(self, pkgAcquire,self.__class__,pkgAcquire) _apt.pkgAcquire_swigregister(pkgAcquirePtr) class pkgAcquireStatus(_object): @@ -1622,34 +1600,34 @@ class pkgAcquireStatus(_object): __setattr__ = lambda self, name, value: _swig_setattr(self, pkgAcquireStatus, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, pkgAcquireStatus, name) - __swig_setmethods__["Update"] = _apt.pkgAcquireStatus_Update_set - __swig_getmethods__["Update"] = _apt.pkgAcquireStatus_Update_get - if _newclass:Update = property(_apt.pkgAcquireStatus_Update_get,_apt.pkgAcquireStatus_Update_set) - __swig_setmethods__["MorePulses"] = _apt.pkgAcquireStatus_MorePulses_set - __swig_getmethods__["MorePulses"] = _apt.pkgAcquireStatus_MorePulses_get - if _newclass:MorePulses = property(_apt.pkgAcquireStatus_MorePulses_get,_apt.pkgAcquireStatus_MorePulses_set) - def Fetched(*args): return apply(_apt.pkgAcquireStatus_Fetched,args) - def MediaChange(*args): return apply(_apt.pkgAcquireStatus_MediaChange,args) - def IMSHit(*args): return apply(_apt.pkgAcquireStatus_IMSHit,args) - def Fetch(*args): return apply(_apt.pkgAcquireStatus_Fetch,args) - def Done(*args): return apply(_apt.pkgAcquireStatus_Done,args) - def Fail(*args): return apply(_apt.pkgAcquireStatus_Fail,args) - def Pulse(*args): return apply(_apt.pkgAcquireStatus_Pulse,args) - def Start(*args): return apply(_apt.pkgAcquireStatus_Start,args) - def Stop(*args): return apply(_apt.pkgAcquireStatus_Stop,args) - def __del__(self, destroy= _apt.delete_pkgAcquireStatus): - try: - if self.thisown: destroy(self) - except: pass def __init__(self): raise RuntimeError, "No constructor defined" def __repr__(self): return "<C pkgAcquireStatus instance at %s>" % (self.this,) + __swig_setmethods__["Update"] = _apt.pkgAcquireStatus_Update_set + __swig_getmethods__["Update"] = _apt.pkgAcquireStatus_Update_get + if _newclass:Update = property(_apt.pkgAcquireStatus_Update_get, _apt.pkgAcquireStatus_Update_set) + __swig_setmethods__["MorePulses"] = _apt.pkgAcquireStatus_MorePulses_set + __swig_getmethods__["MorePulses"] = _apt.pkgAcquireStatus_MorePulses_get + if _newclass:MorePulses = property(_apt.pkgAcquireStatus_MorePulses_get, _apt.pkgAcquireStatus_MorePulses_set) + def Fetched(*args): return _apt.pkgAcquireStatus_Fetched(*args) + def MediaChange(*args): return _apt.pkgAcquireStatus_MediaChange(*args) + def IMSHit(*args): return _apt.pkgAcquireStatus_IMSHit(*args) + def Fetch(*args): return _apt.pkgAcquireStatus_Fetch(*args) + def Done(*args): return _apt.pkgAcquireStatus_Done(*args) + def Fail(*args): return _apt.pkgAcquireStatus_Fail(*args) + def Pulse(*args): return _apt.pkgAcquireStatus_Pulse(*args) + def Start(*args): return _apt.pkgAcquireStatus_Start(*args) + def Stop(*args): return _apt.pkgAcquireStatus_Stop(*args) + def __del__(self, destroy=_apt.delete_pkgAcquireStatus): + try: + if self.thisown: destroy(self) + except: pass class pkgAcquireStatusPtr(pkgAcquireStatus): - def __init__(self,this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = pkgAcquireStatus + def __init__(self, this): + _swig_setattr(self, pkgAcquireStatus, 'this', this) + if not hasattr(self,"thisown"): _swig_setattr(self, pkgAcquireStatus, 'thisown', 0) + _swig_setattr(self, pkgAcquireStatus,self.__class__,pkgAcquireStatus) _apt.pkgAcquireStatus_swigregister(pkgAcquireStatusPtr) class pkgPackageManager(_object): @@ -1657,27 +1635,27 @@ class pkgPackageManager(_object): __setattr__ = lambda self, name, value: _swig_setattr(self, pkgPackageManager, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, pkgPackageManager, name) + def __repr__(self): + return "<C pkgPackageManager instance at %s>" % (self.this,) Completed = _apt.pkgPackageManager_Completed Failed = _apt.pkgPackageManager_Failed Incomplete = _apt.pkgPackageManager_Incomplete - def GetArchives(*args): return apply(_apt.pkgPackageManager_GetArchives,args) - def DoInstall(*args): return apply(_apt.pkgPackageManager_DoInstall,args) - def FixMissing(*args): return apply(_apt.pkgPackageManager_FixMissing,args) - def __init__(self,*args): - self.this = apply(_apt.new_pkgPackageManager,args) - self.thisown = 1 - def __del__(self, destroy= _apt.delete_pkgPackageManager): + def GetArchives(*args): return _apt.pkgPackageManager_GetArchives(*args) + def DoInstall(*args): return _apt.pkgPackageManager_DoInstall(*args) + def FixMissing(*args): return _apt.pkgPackageManager_FixMissing(*args) + def __init__(self, *args): + _swig_setattr(self, pkgPackageManager, 'this', _apt.new_pkgPackageManager(*args)) + _swig_setattr(self, pkgPackageManager, 'thisown', 1) + def __del__(self, destroy=_apt.delete_pkgPackageManager): try: if self.thisown: destroy(self) except: pass - def __repr__(self): - return "<C pkgPackageManager instance at %s>" % (self.this,) class pkgPackageManagerPtr(pkgPackageManager): - def __init__(self,this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = pkgPackageManager + def __init__(self, this): + _swig_setattr(self, pkgPackageManager, 'this', this) + if not hasattr(self,"thisown"): _swig_setattr(self, pkgPackageManager, 'thisown', 0) + _swig_setattr(self, pkgPackageManager,self.__class__,pkgPackageManager) _apt.pkgPackageManager_swigregister(pkgPackageManagerPtr) class pkgSourceList(_object): @@ -1685,34 +1663,34 @@ class pkgSourceList(_object): __setattr__ = lambda self, name, value: _swig_setattr(self, pkgSourceList, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, pkgSourceList, name) - def ReadMainList(*args): return apply(_apt.pkgSourceList_ReadMainList,args) - def Read(*args): return apply(_apt.pkgSourceList_Read,args) - def ReadVendors(*args): return apply(_apt.pkgSourceList_ReadVendors,args) - def Reset(*args): return apply(_apt.pkgSourceList_Reset,args) - def ReadAppend(*args): return apply(_apt.pkgSourceList_ReadAppend,args) - def ReadSourceDir(*args): return apply(_apt.pkgSourceList_ReadSourceDir,args) - def begin(*args): return apply(_apt.pkgSourceList_begin,args) - def end(*args): return apply(_apt.pkgSourceList_end,args) - def size(*args): return apply(_apt.pkgSourceList_size,args) - def empty(*args): return apply(_apt.pkgSourceList_empty,args) - def FindIndex(*args): return apply(_apt.pkgSourceList_FindIndex,args) - def GetIndexes(*args): return apply(_apt.pkgSourceList_GetIndexes,args) - def GetReleases(*args): return apply(_apt.pkgSourceList_GetReleases,args) - def __init__(self,*args): - self.this = apply(_apt.new_pkgSourceList,args) - self.thisown = 1 - def __del__(self, destroy= _apt.delete_pkgSourceList): + def __repr__(self): + return "<C pkgSourceList instance at %s>" % (self.this,) + def ReadMainList(*args): return _apt.pkgSourceList_ReadMainList(*args) + def Read(*args): return _apt.pkgSourceList_Read(*args) + def ReadVendors(*args): return _apt.pkgSourceList_ReadVendors(*args) + def Reset(*args): return _apt.pkgSourceList_Reset(*args) + def ReadAppend(*args): return _apt.pkgSourceList_ReadAppend(*args) + def ReadSourceDir(*args): return _apt.pkgSourceList_ReadSourceDir(*args) + def begin(*args): return _apt.pkgSourceList_begin(*args) + def end(*args): return _apt.pkgSourceList_end(*args) + def size(*args): return _apt.pkgSourceList_size(*args) + def empty(*args): return _apt.pkgSourceList_empty(*args) + def FindIndex(*args): return _apt.pkgSourceList_FindIndex(*args) + def GetIndexes(*args): return _apt.pkgSourceList_GetIndexes(*args) + def GetReleases(*args): return _apt.pkgSourceList_GetReleases(*args) + def __init__(self, *args): + _swig_setattr(self, pkgSourceList, 'this', _apt.new_pkgSourceList(*args)) + _swig_setattr(self, pkgSourceList, 'thisown', 1) + def __del__(self, destroy=_apt.delete_pkgSourceList): try: if self.thisown: destroy(self) except: pass - def __repr__(self): - return "<C pkgSourceList instance at %s>" % (self.this,) class pkgSourceListPtr(pkgSourceList): - def __init__(self,this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = pkgSourceList + def __init__(self, this): + _swig_setattr(self, pkgSourceList, 'this', this) + if not hasattr(self,"thisown"): _swig_setattr(self, pkgSourceList, 'thisown', 0) + _swig_setattr(self, pkgSourceList,self.__class__,pkgSourceList) _apt.pkgSourceList_swigregister(pkgSourceListPtr) class GlobalError(_object): @@ -1720,37 +1698,108 @@ class GlobalError(_object): __setattr__ = lambda self, name, value: _swig_setattr(self, GlobalError, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, GlobalError, name) - def PushState(*args): return apply(_apt.GlobalError_PushState,args) - def PopState(*args): return apply(_apt.GlobalError_PopState,args) - def PopBackState(*args): return apply(_apt.GlobalError_PopBackState,args) - def Errno(*args): return apply(_apt.GlobalError_Errno,args) - def WarningE(*args): return apply(_apt.GlobalError_WarningE,args) - def Error(*args): return apply(_apt.GlobalError_Error,args) - def Warning(*args): return apply(_apt.GlobalError_Warning,args) - def PendingError(*args): return apply(_apt.GlobalError_PendingError,args) - def empty(*args): return apply(_apt.GlobalError_empty,args) - def PopMessage(*args): return apply(_apt.GlobalError_PopMessage,args) - def Discard(*args): return apply(_apt.GlobalError_Discard,args) - def DumpErrors(*args): return apply(_apt.GlobalError_DumpErrors,args) - def __init__(self,*args): - self.this = apply(_apt.new_GlobalError,args) - self.thisown = 1 - def __del__(self, destroy= _apt.delete_GlobalError): + def __repr__(self): + return "<C GlobalError instance at %s>" % (self.this,) + def PushState(*args): return _apt.GlobalError_PushState(*args) + def PopState(*args): return _apt.GlobalError_PopState(*args) + def PopBackState(*args): return _apt.GlobalError_PopBackState(*args) + def Errno(*args): return _apt.GlobalError_Errno(*args) + def WarningE(*args): return _apt.GlobalError_WarningE(*args) + def Error(*args): return _apt.GlobalError_Error(*args) + def Warning(*args): return _apt.GlobalError_Warning(*args) + def PendingError(*args): return _apt.GlobalError_PendingError(*args) + def empty(*args): return _apt.GlobalError_empty(*args) + def PopMessage(*args): return _apt.GlobalError_PopMessage(*args) + def Discard(*args): return _apt.GlobalError_Discard(*args) + def DumpErrors(*args): return _apt.GlobalError_DumpErrors(*args) + def __init__(self, *args): + _swig_setattr(self, GlobalError, 'this', _apt.new_GlobalError(*args)) + _swig_setattr(self, GlobalError, 'thisown', 1) + def __del__(self, destroy=_apt.delete_GlobalError): try: if self.thisown: destroy(self) except: pass - def __repr__(self): - return "<C GlobalError instance at %s>" % (self.this,) class GlobalErrorPtr(GlobalError): - def __init__(self,this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = GlobalError + def __init__(self, this): + _swig_setattr(self, GlobalError, 'this', this) + if not hasattr(self,"thisown"): _swig_setattr(self, GlobalError, 'thisown', 0) + _swig_setattr(self, GlobalError,self.__class__,GlobalError) _apt.GlobalError_swigregister(GlobalErrorPtr) -_GetErrorObj = _apt._GetErrorObj +_GetErrorObj = _apt._GetErrorObj +class LuaCacheControl(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, LuaCacheControl, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, LuaCacheControl, name) + def __init__(self): raise RuntimeError, "No constructor defined" + def __repr__(self): + return "<C LuaCacheControl instance at %s>" % (self.this,) + def Open(*args): return _apt.LuaCacheControl_Open(*args) + def Close(*args): return _apt.LuaCacheControl_Close(*args) + def __del__(self, destroy=_apt.delete_LuaCacheControl): + try: + if self.thisown: destroy(self) + except: pass + +class LuaCacheControlPtr(LuaCacheControl): + def __init__(self, this): + _swig_setattr(self, LuaCacheControl, 'this', this) + if not hasattr(self,"thisown"): _swig_setattr(self, LuaCacheControl, 'thisown', 0) + _swig_setattr(self, LuaCacheControl,self.__class__,LuaCacheControl) +_apt.LuaCacheControl_swigregister(LuaCacheControlPtr) + +class Lua(_object): + __swig_setmethods__ = {} + __setattr__ = lambda self, name, value: _swig_setattr(self, Lua, name, value) + __swig_getmethods__ = {} + __getattr__ = lambda self, name: _swig_getattr(self, Lua, name) + def __repr__(self): + return "<C Lua instance at %s>" % (self.this,) + def RunInteractive(*args): return _apt.Lua_RunInteractive(*args) + def RunScript(*args): return _apt.Lua_RunScript(*args) + def RunScripts(*args): return _apt.Lua_RunScripts(*args) + def HasScripts(*args): return _apt.Lua_HasScripts(*args) + def ResetScript(*args): return _apt.Lua_ResetScript(*args) + def SetGlobal(*args): return _apt.Lua_SetGlobal(*args) + def ResetGlobals(*args): return _apt.Lua_ResetGlobals(*args) + def GetGlobalStr(*args): return _apt.Lua_GetGlobalStr(*args) + def GetGlobalStrList(*args): return _apt.Lua_GetGlobalStrList(*args) + def GetGlobalNum(*args): return _apt.Lua_GetGlobalNum(*args) + def GetGlobalBool(*args): return _apt.Lua_GetGlobalBool(*args) + def GetGlobalPtr(*args): return _apt.Lua_GetGlobalPtr(*args) + def GetGlobalPkg(*args): return _apt.Lua_GetGlobalPkg(*args) + def GetGlobalPkgList(*args): return _apt.Lua_GetGlobalPkgList(*args) + def SetDepCache(*args): return _apt.Lua_SetDepCache(*args) + def SetCache(*args): return _apt.Lua_SetCache(*args) + def SetCacheControl(*args): return _apt.Lua_SetCacheControl(*args) + def SetProblemResolver(*args): return _apt.Lua_SetProblemResolver(*args) + def SetDontFix(*args): return _apt.Lua_SetDontFix(*args) + def ResetCaches(*args): return _apt.Lua_ResetCaches(*args) + def GetDepCache(*args): return _apt.Lua_GetDepCache(*args) + def GetCache(*args): return _apt.Lua_GetCache(*args) + def GetCacheControl(*args): return _apt.Lua_GetCacheControl(*args) + def GetProblemResolver(*args): return _apt.Lua_GetProblemResolver(*args) + def GetDontFix(*args): return _apt.Lua_GetDontFix(*args) + def __init__(self, *args): + _swig_setattr(self, Lua, 'this', _apt.new_Lua(*args)) + _swig_setattr(self, Lua, 'thisown', 1) + def __del__(self, destroy=_apt.delete_Lua): + try: + if self.thisown: destroy(self) + except: pass + +class LuaPtr(Lua): + def __init__(self, this): + _swig_setattr(self, Lua, 'this', this) + if not hasattr(self,"thisown"): _swig_setattr(self, Lua, 'thisown', 0) + _swig_setattr(self, Lua,self.__class__,Lua) +_apt.Lua_swigregister(LuaPtr) + + +_GetLuaObj = _apt._GetLuaObj class pkgAcquireStatusDumb(pkgAcquireStatus): __swig_setmethods__ = {} for _s in [pkgAcquireStatus]: __swig_setmethods__.update(_s.__swig_setmethods__) @@ -1758,21 +1807,21 @@ class pkgAcquireStatusDumb(pkgAcquireStatus): __swig_getmethods__ = {} for _s in [pkgAcquireStatus]: __swig_getmethods__.update(_s.__swig_getmethods__) __getattr__ = lambda self, name: _swig_getattr(self, pkgAcquireStatusDumb, name) - def __init__(self,*args): - self.this = apply(_apt.new_pkgAcquireStatusDumb,args) - self.thisown = 1 - def __del__(self, destroy= _apt.delete_pkgAcquireStatusDumb): + def __repr__(self): + return "<C pkgAcquireStatusDumb instance at %s>" % (self.this,) + def __init__(self, *args): + _swig_setattr(self, pkgAcquireStatusDumb, 'this', _apt.new_pkgAcquireStatusDumb(*args)) + _swig_setattr(self, pkgAcquireStatusDumb, 'thisown', 1) + def __del__(self, destroy=_apt.delete_pkgAcquireStatusDumb): try: if self.thisown: destroy(self) except: pass - def __repr__(self): - return "<C pkgAcquireStatusDumb instance at %s>" % (self.this,) class pkgAcquireStatusDumbPtr(pkgAcquireStatusDumb): - def __init__(self,this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = pkgAcquireStatusDumb + def __init__(self, this): + _swig_setattr(self, pkgAcquireStatusDumb, 'this', this) + if not hasattr(self,"thisown"): _swig_setattr(self, pkgAcquireStatusDumb, 'thisown', 0) + _swig_setattr(self, pkgAcquireStatusDumb,self.__class__,pkgAcquireStatusDumb) _apt.pkgAcquireStatusDumb_swigregister(pkgAcquireStatusDumbPtr) class ROpPyProgress(OpProgress): @@ -1782,34 +1831,34 @@ class ROpPyProgress(OpProgress): __swig_getmethods__ = {} for _s in [OpProgress]: __swig_getmethods__.update(_s.__swig_getmethods__) __getattr__ = lambda self, name: _swig_getattr(self, ROpPyProgress, name) + def __repr__(self): + return "<C ROpPyProgress instance at %s>" % (self.this,) __swig_setmethods__["Op"] = _apt.ROpPyProgress_Op_set __swig_getmethods__["Op"] = _apt.ROpPyProgress_Op_get - if _newclass:Op = property(_apt.ROpPyProgress_Op_get,_apt.ROpPyProgress_Op_set) + if _newclass:Op = property(_apt.ROpPyProgress_Op_get, _apt.ROpPyProgress_Op_set) __swig_setmethods__["SubOp"] = _apt.ROpPyProgress_SubOp_set __swig_getmethods__["SubOp"] = _apt.ROpPyProgress_SubOp_get - if _newclass:SubOp = property(_apt.ROpPyProgress_SubOp_get,_apt.ROpPyProgress_SubOp_set) + if _newclass:SubOp = property(_apt.ROpPyProgress_SubOp_get, _apt.ROpPyProgress_SubOp_set) __swig_setmethods__["Percent"] = _apt.ROpPyProgress_Percent_set __swig_getmethods__["Percent"] = _apt.ROpPyProgress_Percent_get - if _newclass:Percent = property(_apt.ROpPyProgress_Percent_get,_apt.ROpPyProgress_Percent_set) + if _newclass:Percent = property(_apt.ROpPyProgress_Percent_get, _apt.ROpPyProgress_Percent_set) __swig_setmethods__["MajorChange"] = _apt.ROpPyProgress_MajorChange_set __swig_getmethods__["MajorChange"] = _apt.ROpPyProgress_MajorChange_get - if _newclass:MajorChange = property(_apt.ROpPyProgress_MajorChange_get,_apt.ROpPyProgress_MajorChange_set) - def CheckChange(*args): return apply(_apt.ROpPyProgress_CheckChange,args) - def __init__(self,*args): - self.this = apply(_apt.new_ROpPyProgress,args) - self.thisown = 1 - def __del__(self, destroy= _apt.delete_ROpPyProgress): + if _newclass:MajorChange = property(_apt.ROpPyProgress_MajorChange_get, _apt.ROpPyProgress_MajorChange_set) + def CheckChange(*args): return _apt.ROpPyProgress_CheckChange(*args) + def __init__(self, *args): + _swig_setattr(self, ROpPyProgress, 'this', _apt.new_ROpPyProgress(*args)) + _swig_setattr(self, ROpPyProgress, 'thisown', 1) + def __del__(self, destroy=_apt.delete_ROpPyProgress): try: if self.thisown: destroy(self) except: pass - def __repr__(self): - return "<C ROpPyProgress instance at %s>" % (self.this,) class ROpPyProgressPtr(ROpPyProgress): - def __init__(self,this): - self.this = this - if not hasattr(self,"thisown"): self.thisown = 0 - self.__class__ = ROpPyProgress + def __init__(self, this): + _swig_setattr(self, ROpPyProgress, 'this', this) + if not hasattr(self,"thisown"): _swig_setattr(self, ROpPyProgress, 'thisown', 0) + _swig_setattr(self, ROpPyProgress,self.__class__,ROpPyProgress) _apt.ROpPyProgress_swigregister(ROpPyProgressPtr) class OpPyProgress(ROpPyProgress): @@ -1819,4 +1868,3 @@ class OpPyProgress(ROpPyProgress): return "<C OpPyProgress instance at %s>" % self.this - diff --git a/apt/python/apt_wrap.cxx b/apt/python/apt_wrap.cxx index 8262fe4..b725f33 100644 --- a/apt/python/apt_wrap.cxx +++ b/apt/python/apt_wrap.cxx @@ -1,6 +1,6 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 1.3.16u-20030220-2048 + * Version 1.3.21 * * This file is not intended to be easily readable and contains a number of * coding conventions designed to improve portability and efficiency. Do not make @@ -14,17 +14,40 @@ template<class T> class SwigValueWrapper { T *tt; public: - inline SwigValueWrapper() : tt(0) { } - inline ~SwigValueWrapper() { if (tt) delete tt; } - inline SwigValueWrapper& operator=(const T& t) { tt = new T(t); return *this; } - inline operator T&() const { return *tt; } - inline T *operator&() { return tt; } + SwigValueWrapper() : tt(0) { } + SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } + SwigValueWrapper(const T& t) : tt(new T(t)) { } + ~SwigValueWrapper() { delete tt; } + SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } + operator T&() const { return *tt; } + T *operator&() { return tt; } +private: + SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); }; #endif #include "Python.h" +/*************************************************************** -*- c -*- + * python/precommon.swg + * + * Rename all exported symbols from common.swg, to avoid symbol + * clashes if multiple interpreters are included + * + ************************************************************************/ + +#define SWIG_TypeRegister SWIG_Python_TypeRegister +#define SWIG_TypeCheck SWIG_Python_TypeCheck +#define SWIG_TypeCast SWIG_Python_TypeCast +#define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast +#define SWIG_TypeName SWIG_Python_TypeName +#define SWIG_TypeQuery SWIG_Python_TypeQuery +#define SWIG_TypeClientData SWIG_Python_TypeClientData +#define SWIG_PackData SWIG_Python_PackData +#define SWIG_UnpackData SWIG_Python_UnpackData + + /*********************************************************************** * common.swg * @@ -42,33 +65,33 @@ public: #include <string.h> -#if defined(_WIN32) || defined(__WIN32__) -# if defined(_MSC_VER) -# if defined(STATIC_LINKED) -# define SWIGEXPORT(a) a -# define SWIGIMPORT(a) extern a -# else -# define SWIGEXPORT(a) __declspec(dllexport) a -# define SWIGIMPORT(a) extern a -# endif -# else -# if defined(__BORLANDC__) -# define SWIGEXPORT(a) a _export -# define SWIGIMPORT(a) a _export -# else -# define SWIGEXPORT(a) a -# define SWIGIMPORT(a) a -# endif -# endif +#if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) +# if defined(_MSC_VER) || defined(__GNUC__) +# if defined(STATIC_LINKED) +# define SWIGEXPORT(a) a +# define SWIGIMPORT(a) extern a +# else +# define SWIGEXPORT(a) __declspec(dllexport) a +# define SWIGIMPORT(a) extern a +# endif +# else +# if defined(__BORLANDC__) +# define SWIGEXPORT(a) a _export +# define SWIGIMPORT(a) a _export +# else +# define SWIGEXPORT(a) a +# define SWIGIMPORT(a) a +# endif +# endif #else -# define SWIGEXPORT(a) a -# define SWIGIMPORT(a) a +# define SWIGEXPORT(a) a +# define SWIGIMPORT(a) a #endif #ifdef SWIG_GLOBAL -#define SWIGRUNTIME(a) SWIGEXPORT(a) +# define SWIGRUNTIME(a) SWIGEXPORT(a) #else -#define SWIGRUNTIME(a) static a +# define SWIGRUNTIME(a) static a #endif #ifdef __cplusplus @@ -79,10 +102,10 @@ typedef void *(*swig_converter_func)(void *); typedef struct swig_type_info *(*swig_dycast_func)(void **); typedef struct swig_type_info { - const char *name; + const char *name; swig_converter_func converter; const char *str; - void *clientdata; + void *clientdata; swig_dycast_func dcast; struct swig_type_info *next; struct swig_type_info *prev; @@ -94,8 +117,11 @@ SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *); SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *); SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *); SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **); +SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *); SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *); SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *); +SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); +SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); #else @@ -103,15 +129,14 @@ static swig_type_info *swig_type_list = 0; /* Register a type mapping with the type-checking */ SWIGRUNTIME(swig_type_info *) -SWIG_TypeRegister(swig_type_info *ti) -{ +SWIG_TypeRegister(swig_type_info *ti) { swig_type_info *tc, *head, *ret, *next; /* Check to see if this type has already been registered */ tc = swig_type_list; while (tc) { if (strcmp(tc->name, ti->name) == 0) { /* Already exists in the table. Just add additional types to the list */ - if (tc->clientdata) ti->clientdata = tc->clientdata; + if (tc->clientdata) ti->clientdata = tc->clientdata; head = tc; next = tc->next; goto l1; @@ -126,7 +151,7 @@ SWIG_TypeRegister(swig_type_info *ti) swig_type_list = ti; /* Build linked lists */ - l1: + l1: ret = head; tc = ti + 1; /* Patch up the rest of the links */ @@ -136,14 +161,14 @@ SWIG_TypeRegister(swig_type_info *ti) head = tc; tc++; } + if (next) next->prev = head; head->next = next; return ret; } /* Check the typename */ SWIGRUNTIME(swig_type_info *) -SWIG_TypeCheck(char *c, swig_type_info *ty) -{ +SWIG_TypeCheck(char *c, swig_type_info *ty) { swig_type_info *s; if (!ty) return 0; /* Void pointer */ s = ty->next; /* First element always just a name */ @@ -153,12 +178,13 @@ SWIG_TypeCheck(char *c, swig_type_info *ty) /* Move s to the top of the linked list */ s->prev->next = s->next; if (s->next) { - s->next->prev = s->prev; + s->next->prev = s->prev; } /* Insert s as second element in the list */ s->next = ty->next; if (ty->next) ty->next->prev = s; ty->next = s; + s->prev = ty; return s; } s = s->next; @@ -168,25 +194,29 @@ SWIG_TypeCheck(char *c, swig_type_info *ty) /* Cast a pointer up an inheritance hierarchy */ SWIGRUNTIME(void *) -SWIG_TypeCast(swig_type_info *ty, void *ptr) -{ +SWIG_TypeCast(swig_type_info *ty, void *ptr) { if ((!ty) || (!ty->converter)) return ptr; return (*ty->converter)(ptr); } /* Dynamic pointer casting. Down an inheritance hierarchy */ SWIGRUNTIME(swig_type_info *) -SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) -{ +SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) { swig_type_info *lastty = ty; if (!ty || !ty->dcast) return ty; while (ty && (ty->dcast)) { - ty = (*ty->dcast)(ptr); - if (ty) lastty = ty; + ty = (*ty->dcast)(ptr); + if (ty) lastty = ty; } return lastty; } +/* Return the name associated with this type */ +SWIGRUNTIME(const char *) +SWIG_TypeName(const swig_type_info *ty) { + return ty->name; +} + /* Search for a swig_type_info structure */ SWIGRUNTIME(swig_type_info *) SWIG_TypeQuery(const char *name) { @@ -203,26 +233,64 @@ SWIG_TypeQuery(const char *name) { SWIGRUNTIME(void) SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { swig_type_info *tc, *equiv; - if (ti->clientdata) return; + if (ti->clientdata == clientdata) return; ti->clientdata = clientdata; equiv = ti->next; while (equiv) { if (!equiv->converter) { tc = swig_type_list; while (tc) { - if ((strcmp(tc->name, equiv->name) == 0)) - SWIG_TypeClientData(tc,clientdata); - tc = tc->prev; + if ((strcmp(tc->name, equiv->name) == 0)) + SWIG_TypeClientData(tc,clientdata); + tc = tc->prev; } } equiv = equiv->next; } } + +/* Pack binary data into a string */ +SWIGRUNTIME(char *) +SWIG_PackData(char *c, void *ptr, int sz) { + static char hex[17] = "0123456789abcdef"; + int i; + unsigned char *u = (unsigned char *) ptr; + register unsigned char uu; + for (i = 0; i < sz; i++,u++) { + uu = *u; + *(c++) = hex[(uu & 0xf0) >> 4]; + *(c++) = hex[uu & 0xf]; + } + return c; +} + +/* Unpack binary data from a string */ +SWIGRUNTIME(char *) +SWIG_UnpackData(char *c, void *ptr, int sz) { + register unsigned char uu = 0; + register int d; + unsigned char *u = (unsigned char *) ptr; + int i; + for (i = 0; i < sz; i++, u++) { + d = *(c++); + if ((d >= '0') && (d <= '9')) + uu = ((d - '0') << 4); + else if ((d >= 'a') && (d <= 'f')) + uu = ((d - ('a'-10)) << 4); + d = *(c++); + if ((d >= '0') && (d <= '9')) + uu |= (d - '0'); + else if ((d >= 'a') && (d <= 'f')) + uu |= (d - ('a'-10)); + *u = uu; + } + return c; +} + #endif #ifdef __cplusplus } - #endif /*********************************************************************** @@ -265,17 +333,37 @@ typedef struct swig_const_info { swig_type_info **ptype; } swig_const_info; +/* Common SWIG API */ +#define SWIG_ConvertPtr(obj, pp, type, flags) \ + SWIG_Python_ConvertPtr(obj, pp, type, flags) +#define SWIG_NewPointerObj(p, type, flags) \ + SWIG_Python_NewPointerObj(p, type, flags) +#define SWIG_MustGetPtr(p, type, argnum, flags) \ + SWIG_Python_MustGetPtr(p, type, argnum, flags) + +/* Python-specific SWIG API */ +#define SWIG_newvarlink() \ + SWIG_Python_newvarlink() +#define SWIG_addvarlink(p, name, get_attr, set_attr) \ + SWIG_Python_addvarlink(p, name, get_attr, set_attr) +#define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \ + SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) +#define SWIG_NewPackedObj(ptr, sz, type) \ + SWIG_Python_NewPackedObj(ptr, sz, type) +#define SWIG_InstallConstants(d, constants) \ + SWIG_Python_InstallConstants(d, constants) + #ifdef SWIG_NOINCLUDE -SWIGEXPORT(PyObject *) SWIG_newvarlink(); -SWIGEXPORT(void) SWIG_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); -SWIGEXPORT(int) SWIG_ConvertPtr(PyObject *, void **, swig_type_info *, int); -SWIGEXPORT(int) SWIG_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int); -SWIGEXPORT(char *) SWIG_PackData(char *c, void *, int); -SWIGEXPORT(char *) SWIG_UnpackData(char *c, void *, int); -SWIGEXPORT(PyObject *) SWIG_NewPointerObj(void *, swig_type_info *,int own); -SWIGEXPORT(PyObject *) SWIG_NewPackedObj(void *, int sz, swig_type_info *); -SWIGEXPORT(void) SWIG_InstallConstants(PyObject *d, swig_const_info constants[]); +SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int); +SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own); +SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int); +SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void); +SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); +SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int); +SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *); +SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]); + #else /* ----------------------------------------------------------------------------- @@ -342,7 +430,7 @@ swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { statichere PyTypeObject varlinktype = { PyObject_HEAD_INIT(0) 0, - (char *)"swigvarlink", /* Type name */ + (char *)"swigvarlink", /* Type name */ sizeof(swig_varlinkobject), /* Basic size */ 0, /* Itemsize */ 0, /* Deallocator */ @@ -358,7 +446,7 @@ statichere PyTypeObject varlinktype = { /* Create a variable linking object for use later */ SWIGRUNTIME(PyObject *) -SWIG_newvarlink(void) { +SWIG_Python_newvarlink(void) { swig_varlinkobject *result = 0; result = PyMem_NEW(swig_varlinkobject,1); varlinktype.ob_type = &PyType_Type; /* Patch varlinktype into a PyType */ @@ -370,8 +458,7 @@ SWIG_newvarlink(void) { } SWIGRUNTIME(void) -SWIG_addvarlink(PyObject *p, char *name, - PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { +SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { swig_varlinkobject *v; swig_globalvar *gv; v= (swig_varlinkobject *) p; @@ -384,49 +471,11 @@ SWIG_addvarlink(PyObject *p, char *name, v->vars = gv; } -/* Pack binary data into a string */ -SWIGRUNTIME(char *) -SWIG_PackData(char *c, void *ptr, int sz) { - static char hex[17] = "0123456789abcdef"; - int i; - unsigned char *u = (unsigned char *) ptr; - register unsigned char uu; - for (i = 0; i < sz; i++,u++) { - uu = *u; - *(c++) = hex[(uu & 0xf0) >> 4]; - *(c++) = hex[uu & 0xf]; - } - return c; -} - -/* Unpack binary data from a string */ -SWIGRUNTIME(char *) -SWIG_UnpackData(char *c, void *ptr, int sz) { - register unsigned char uu = 0; - register int d; - unsigned char *u = (unsigned char *) ptr; - int i; - for (i = 0; i < sz; i++, u++) { - d = *(c++); - if ((d >= '0') && (d <= '9')) - uu = ((d - '0') << 4); - else if ((d >= 'a') && (d <= 'f')) - uu = ((d - ('a'-10)) << 4); - d = *(c++); - if ((d >= '0') && (d <= '9')) - uu |= (d - '0'); - else if ((d >= 'a') && (d <= 'f')) - uu |= (d - ('a'-10)); - *u = uu; - } - return c; -} - /* Convert a pointer value */ SWIGRUNTIME(int) -SWIG_ConvertPtr(PyObject *obj, void **ptr, swig_type_info *ty, int flags) { +SWIG_Python_ConvertPtr(PyObject *obj, void **ptr, swig_type_info *ty, int flags) { swig_type_info *tc; - char *c; + char *c = 0; static PyObject *SWIG_this = 0; int newref = 0; PyObject *pyobj = 0; @@ -494,17 +543,17 @@ cobject: } if ((pyobj) && (flags & SWIG_POINTER_DISOWN)) { - PyObject *zero = PyInt_FromLong(0); - PyObject_SetAttrString(pyobj,(char*)"thisown",zero); - Py_DECREF(zero); + PyObject *zero = PyInt_FromLong(0); + PyObject_SetAttrString(pyobj,(char*)"thisown",zero); + Py_DECREF(zero); } return 0; type_error: if (flags & SWIG_POINTER_EXCEPTION) { - if (ty) { - char *temp = (char *) malloc(64+strlen(ty->name)); - sprintf(temp,"Type error. Expected %s", ty->name); + if (ty && c) { + char *temp = (char *) malloc(64+strlen(ty->name)+strlen(c)); + sprintf(temp,"Type error. Got %s, expected %s", c, ty->name); PyErr_SetString(PyExc_TypeError, temp); free((char *) temp); } else { @@ -514,11 +563,19 @@ type_error: return -1; } +/* Convert a pointer value, signal an exception on a type mismatch */ +SWIGRUNTIME(void *) +SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) { + void *result; + SWIG_Python_ConvertPtr(obj, &result, ty, flags | SWIG_POINTER_EXCEPTION); + return result; +} + /* Convert a packed value value */ SWIGRUNTIME(int) -SWIG_ConvertPacked(PyObject *obj, void *ptr, int sz, swig_type_info *ty, int flags) { +SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, int sz, swig_type_info *ty, int flags) { swig_type_info *tc; - char *c; + char *c = 0; if ((!obj) || (!PyString_Check(obj))) goto type_error; c = PyString_AsString(obj); @@ -535,9 +592,9 @@ SWIG_ConvertPacked(PyObject *obj, void *ptr, int sz, swig_type_info *ty, int fla type_error: if (flags) { - if (ty) { - char *temp = (char *) malloc(64+strlen(ty->name)); - sprintf(temp,"Type error. Expected %s", ty->name); + if (ty && c) { + char *temp = (char *) malloc(64+strlen(ty->name)+strlen(c)); + sprintf(temp,"Type error. Got %s, expected %s", c, ty->name); PyErr_SetString(PyExc_TypeError, temp); free((char *) temp); } else { @@ -549,7 +606,7 @@ type_error: /* Create a new pointer object */ SWIGRUNTIME(PyObject *) -SWIG_NewPointerObj(void *ptr, swig_type_info *type, int own) { +SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int own) { PyObject *robj; if (!ptr) { Py_INCREF(Py_None); @@ -576,9 +633,9 @@ SWIG_NewPointerObj(void *ptr, swig_type_info *type, int own) { Py_DECREF(args); if (inst) { if (own) { - PyObject *n = PyInt_FromLong(1); - PyObject_SetAttrString(inst,(char*)"thisown",n); - Py_DECREF(n); + PyObject *n = PyInt_FromLong(1); + PyObject_SetAttrString(inst,(char*)"thisown",n); + Py_DECREF(n); } robj = inst; } @@ -587,7 +644,7 @@ SWIG_NewPointerObj(void *ptr, swig_type_info *type, int own) { } SWIGRUNTIME(PyObject *) -SWIG_NewPackedObj(void *ptr, int sz, swig_type_info *type) { +SWIG_Python_NewPackedObj(void *ptr, int sz, swig_type_info *type) { char result[1024]; char *r = result; if ((2*sz + 1 + strlen(type->name)) > 1000) return 0; @@ -599,7 +656,7 @@ SWIG_NewPackedObj(void *ptr, int sz, swig_type_info *type) { /* Install Constants */ SWIGRUNTIME(void) -SWIG_InstallConstants(PyObject *d, swig_const_info constants[]) { +SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { int i; PyObject *obj; for (i = 0; constants[i].type; i++) { @@ -632,17 +689,15 @@ SWIG_InstallConstants(PyObject *d, swig_const_info constants[]) { #endif +/* Contract support */ + +#define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else + #ifdef __cplusplus } #endif - - - - - - /* -------- TYPES TABLE (BEGIN) -------- */ #define SWIGTYPE_p_PackageFile swig_types[0] @@ -666,64 +721,70 @@ SWIG_InstallConstants(PyObject *d, swig_const_info constants[]) { #define SWIGTYPE_p_Header swig_types[18] #define SWIGTYPE_p_pkgPolicy swig_types[19] #define SWIGTYPE_p_Policy swig_types[20] -#define SWIGTYPE_p_Configuration swig_types[21] -#define SWIGTYPE_p_pkgAcqIndexRel swig_types[22] -#define SWIGTYPE_p_pkgAcquire swig_types[23] -#define SWIGTYPE_p_map_ptrloc swig_types[24] -#define SWIGTYPE_p_Dependency swig_types[25] -#define SWIGTYPE_p_pkgCache__Dependency swig_types[26] -#define SWIGTYPE_p_GlobalError swig_types[27] -#define SWIGTYPE_p_pkgAcqIndex swig_types[28] -#define SWIGTYPE_p_StateCache swig_types[29] -#define SWIGTYPE_p_pkgDepCache__StateCache swig_types[30] -#define SWIGTYPE_p_Item swig_types[31] -#define SWIGTYPE_p_void swig_types[32] -#define SWIGTYPE_p_pkgAcquire__Item swig_types[33] -#define SWIGTYPE_p_MMap swig_types[34] -#define SWIGTYPE_p_PyObject swig_types[35] -#define SWIGTYPE_p_pkgRecords__Parser swig_types[36] -#define SWIGTYPE_p_p_pkgCache__Version swig_types[37] -#define SWIGTYPE_p_p_Version swig_types[38] -#define SWIGTYPE_p_pkgCache__Version swig_types[39] -#define SWIGTYPE_p_Version swig_types[40] -#define SWIGTYPE_p_std__vectorTpkgIndexFile_p_t swig_types[41] -#define SWIGTYPE_p_time_t swig_types[42] -#define SWIGTYPE_p_p_pkgIndexFile swig_types[43] -#define SWIGTYPE_p_pkgProblemResolver swig_types[44] -#define SWIGTYPE_p_pkgAcqArchive swig_types[45] -#define SWIGTYPE_p_p_char swig_types[46] -#define SWIGTYPE_p_pkgAcquireStatusDumb swig_types[47] -#define SWIGTYPE_p_pkgCacheFile swig_types[48] -#define SWIGTYPE_p_pkgAcquire__ItemDesc swig_types[49] -#define SWIGTYPE_p_pkgAcquireStatus swig_types[50] -#define SWIGTYPE_p_pkgDepCache swig_types[51] -#define SWIGTYPE_p_DynamicMMap__Pool swig_types[52] -#define SWIGTYPE_p_pkgPackageManager swig_types[53] -#define SWIGTYPE_p_OpTextProgress swig_types[54] -#define SWIGTYPE_p_OpProgress swig_types[55] -#define SWIGTYPE_p_ROpPyProgress swig_types[56] -#define SWIGTYPE_p_Provides swig_types[57] -#define SWIGTYPE_p_pkgCache__Provides swig_types[58] -#define SWIGTYPE_p_pkgRepository swig_types[59] -#define SWIGTYPE_p_std__ostream swig_types[60] -#define SWIGTYPE_p_pkgAcqFile swig_types[61] -#define SWIGTYPE_p_pkgSourceList swig_types[62] -#define SWIGTYPE_p_string swig_types[63] -#define SWIGTYPE_p_p_pkgVersioningSystem swig_types[64] -#define SWIGTYPE_p_pkgSystem swig_types[65] -#define SWIGTYPE_p_p_pkgSystem swig_types[66] -#define SWIGTYPE_p_pkgVersioningSystem swig_types[67] -#define SWIGTYPE_p_VerFile swig_types[68] -#define SWIGTYPE_p_pkgCache__VerFile swig_types[69] -#define SWIGTYPE_p_pkgAcquire__MethodConfig swig_types[70] -#define SWIGTYPE_p_pkgCache__Package swig_types[71] -#define SWIGTYPE_p_Package swig_types[72] -#define SWIGTYPE_p_unsigned_char swig_types[73] -#define SWIGTYPE_p_pkgRecords swig_types[74] -#define SWIGTYPE_p_pkgAcquire__Worker swig_types[75] -#define SWIGTYPE_p_pkgCache swig_types[76] -#define SWIGTYPE_p_pkgCache__StringItem swig_types[77] -static swig_type_info *swig_types[79]; +#define SWIGTYPE_p_Lua swig_types[21] +#define SWIGTYPE_p_Configuration swig_types[22] +#define SWIGTYPE_p_pkgAcqIndexRel swig_types[23] +#define SWIGTYPE_p_pkgAcquire swig_types[24] +#define SWIGTYPE_p_map_ptrloc swig_types[25] +#define SWIGTYPE_p_Dependency swig_types[26] +#define SWIGTYPE_p_pkgCache__Dependency swig_types[27] +#define SWIGTYPE_p_GlobalError swig_types[28] +#define SWIGTYPE_p_pkgAcqIndex swig_types[29] +#define SWIGTYPE_p_LuaCacheControl swig_types[30] +#define SWIGTYPE_p_std__vectorTpkgCache__Package_p_t swig_types[31] +#define SWIGTYPE_p_StateCache swig_types[32] +#define SWIGTYPE_p_pkgDepCache__StateCache swig_types[33] +#define SWIGTYPE_p_Item swig_types[34] +#define SWIGTYPE_p_void swig_types[35] +#define SWIGTYPE_p_pkgAcquire__Item swig_types[36] +#define SWIGTYPE_p_MMap swig_types[37] +#define SWIGTYPE_p_std__vectorTchar_const_p_t swig_types[38] +#define SWIGTYPE_p_lua_State swig_types[39] +#define SWIGTYPE_p_pkgRecords__Parser swig_types[40] +#define SWIGTYPE_p_p_pkgCache__Version swig_types[41] +#define SWIGTYPE_p_p_Version swig_types[42] +#define SWIGTYPE_p_pkgCache__Version swig_types[43] +#define SWIGTYPE_p_Version swig_types[44] +#define SWIGTYPE_p_std__vectorTpkgIndexFile_p_t swig_types[45] +#define SWIGTYPE_p_time_t swig_types[46] +#define SWIGTYPE_p_p_pkgIndexFile swig_types[47] +#define SWIGTYPE_p_pkgProblemResolver swig_types[48] +#define SWIGTYPE_p_pkgAcqArchive swig_types[49] +#define SWIGTYPE_p_std__vectorTstd__string_t swig_types[50] +#define SWIGTYPE_p_p_char swig_types[51] +#define SWIGTYPE_p_pkgAcquireStatusDumb swig_types[52] +#define SWIGTYPE_p_pkgCacheFile swig_types[53] +#define SWIGTYPE_p_pkgAcquire__ItemDesc swig_types[54] +#define SWIGTYPE_p_pkgAcquireStatus swig_types[55] +#define SWIGTYPE_lua_CFunction swig_types[56] +#define SWIGTYPE_p_pkgDepCache swig_types[57] +#define SWIGTYPE_p_DynamicMMap__Pool swig_types[58] +#define SWIGTYPE_p_pkgPackageManager swig_types[59] +#define SWIGTYPE_p_OpTextProgress swig_types[60] +#define SWIGTYPE_p_OpProgress swig_types[61] +#define SWIGTYPE_p_ROpPyProgress swig_types[62] +#define SWIGTYPE_p_Provides swig_types[63] +#define SWIGTYPE_p_pkgCache__Provides swig_types[64] +#define SWIGTYPE_p_pkgRepository swig_types[65] +#define SWIGTYPE_p_std__ostream swig_types[66] +#define SWIGTYPE_p_pkgAcqFile swig_types[67] +#define SWIGTYPE_p_pkgSourceList swig_types[68] +#define SWIGTYPE_p_string swig_types[69] +#define SWIGTYPE_p_p_pkgVersioningSystem swig_types[70] +#define SWIGTYPE_p_pkgSystem swig_types[71] +#define SWIGTYPE_p_p_pkgSystem swig_types[72] +#define SWIGTYPE_p_pkgVersioningSystem swig_types[73] +#define SWIGTYPE_p_VerFile swig_types[74] +#define SWIGTYPE_p_pkgCache__VerFile swig_types[75] +#define SWIGTYPE_p_pkgAcquire__MethodConfig swig_types[76] +#define SWIGTYPE_p_Package swig_types[77] +#define SWIGTYPE_p_pkgCache__Package swig_types[78] +#define SWIGTYPE_p_unsigned_char swig_types[79] +#define SWIGTYPE_p_pkgRecords swig_types[80] +#define SWIGTYPE_p_pkgAcquire__Worker swig_types[81] +#define SWIGTYPE_p_pkgCache swig_types[82] +#define SWIGTYPE_p_pkgCache__StringItem swig_types[83] +static swig_type_info *swig_types[85]; /* -------- TYPES TABLE (END) -------- */ @@ -748,7 +809,7 @@ static swig_type_info *swig_types[79]; #define SWIG_UnknownError 99 -static void _SWIG_exception(int code, const char *msg) { +static void SWIG_exception_(int code, const char *msg) { switch(code) { case SWIG_MemoryError: PyErr_SetString(PyExc_MemoryError,msg); @@ -786,7 +847,7 @@ static void _SWIG_exception(int code, const char *msg) { } } -#define SWIG_exception(a,b) { _SWIG_exception(a,b); SWIG_fail; } +#define SWIG_exception(a,b) { SWIG_exception_(a,b); SWIG_fail; } #include <string> @@ -798,13 +859,15 @@ PyObject* SwigInt_FromBool(bool b) { return PyInt_FromLong(b ? 1L : 0L); } double SwigNumber_Check(PyObject* o) { - return PyFloat_Check(o) || PyInt_Check(o); + return PyFloat_Check(o) || PyInt_Check(o) || PyLong_Check(o); } double SwigNumber_AsDouble(PyObject* o) { - return (PyFloat_Check(o) ? PyFloat_AsDouble(o) : double(PyInt_AsLong(o))); + return PyFloat_Check(o) ? PyFloat_AsDouble(o) + : (PyInt_Check(o) ? double(PyInt_AsLong(o)) + : double(PyLong_AsLong(o))); } PyObject* SwigString_FromString(const std::string& s) { - return PyString_FromString(s.c_str()); + return PyString_FromStringAndSize(s.data(),s.size()); } std::string SwigString_AsString(PyObject* o) { return std::string(PyString_AsString(o)); @@ -833,6 +896,7 @@ std::string SwigString_AsString(PyObject* o) { #include <apt-pkg/packagemanager.h> #include <apt-pkg/sourcelist.h> #include <apt-pkg/contrib/error.h> +#include <apt-pkg/luaiface.h> #include <string> #include <time.h> @@ -998,6 +1062,20 @@ static PyObject *_wrap__error_get() { } +static int _wrap__lua_set(PyObject *_val) { + PyErr_SetString(PyExc_TypeError,"Variable _lua is read-only."); + return 1; +} + + +static PyObject *_wrap__lua_get() { + PyObject *pyobj; + + pyobj = SWIG_NewPointerObj((void *) _lua, SWIGTYPE_p_Lua, 0); + return pyobj; +} + + static int _wrap_pkgVersion_set(PyObject *_val) { PyErr_SetString(PyExc_TypeError,"Variable pkgVersion is read-only."); return 1; @@ -1058,10 +1136,13 @@ static PyObject *_wrap_pkgInitConfig(PyObject *self, PyObject *args) { PyObject *resultobj; Configuration *arg1 = 0 ; bool result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgInitConfig",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg1 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } result = (bool)pkgInitConfig(*arg1); resultobj = PyInt_FromLong((long)result); @@ -1076,12 +1157,18 @@ static PyObject *_wrap_pkgInitSystem(PyObject *self, PyObject *args) { Configuration *arg1 = 0 ; pkgSystem **arg2 = 0 ; bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgInitSystem",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg1 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_p_pkgSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } result = (bool)pkgInitSystem(*arg1,*arg2); resultobj = PyInt_FromLong((long)result); @@ -1095,8 +1182,8 @@ static PyObject *_wrap_pkgCache_HeaderP_set(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache *arg1 = (pkgCache *) 0 ; pkgCache::Header *arg2 = (pkgCache::Header *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCache_HeaderP_set",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -1114,7 +1201,7 @@ static PyObject *_wrap_pkgCache_HeaderP_get(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache *arg1 = (pkgCache *) 0 ; pkgCache::Header *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCache_HeaderP_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -1131,8 +1218,8 @@ static PyObject *_wrap_pkgCache_PkgP_set(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache *arg1 = (pkgCache *) 0 ; pkgCache::Package *arg2 = (pkgCache::Package *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCache_PkgP_set",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -1150,7 +1237,7 @@ static PyObject *_wrap_pkgCache_PkgP_get(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache *arg1 = (pkgCache *) 0 ; pkgCache::Package *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCache_PkgP_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -1167,8 +1254,8 @@ static PyObject *_wrap_pkgCache_VerFileP_set(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache *arg1 = (pkgCache *) 0 ; pkgCache::VerFile *arg2 = (pkgCache::VerFile *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCache_VerFileP_set",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -1186,7 +1273,7 @@ static PyObject *_wrap_pkgCache_VerFileP_get(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache *arg1 = (pkgCache *) 0 ; pkgCache::VerFile *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCache_VerFileP_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -1203,8 +1290,8 @@ static PyObject *_wrap_pkgCache_PkgFileP_set(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache *arg1 = (pkgCache *) 0 ; pkgCache::PackageFile *arg2 = (pkgCache::PackageFile *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCache_PkgFileP_set",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -1222,7 +1309,7 @@ static PyObject *_wrap_pkgCache_PkgFileP_get(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache *arg1 = (pkgCache *) 0 ; pkgCache::PackageFile *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCache_PkgFileP_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -1239,8 +1326,8 @@ static PyObject *_wrap_pkgCache_VerP_set(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache *arg1 = (pkgCache *) 0 ; pkgCache::Version *arg2 = (pkgCache::Version *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCache_VerP_set",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -1258,7 +1345,7 @@ static PyObject *_wrap_pkgCache_VerP_get(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache *arg1 = (pkgCache *) 0 ; pkgCache::Version *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCache_VerP_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -1275,8 +1362,8 @@ static PyObject *_wrap_pkgCache_ProvideP_set(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache *arg1 = (pkgCache *) 0 ; pkgCache::Provides *arg2 = (pkgCache::Provides *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCache_ProvideP_set",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -1294,7 +1381,7 @@ static PyObject *_wrap_pkgCache_ProvideP_get(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache *arg1 = (pkgCache *) 0 ; pkgCache::Provides *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCache_ProvideP_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -1311,8 +1398,8 @@ static PyObject *_wrap_pkgCache_DepP_set(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache *arg1 = (pkgCache *) 0 ; pkgCache::Dependency *arg2 = (pkgCache::Dependency *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCache_DepP_set",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -1330,7 +1417,7 @@ static PyObject *_wrap_pkgCache_DepP_get(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache *arg1 = (pkgCache *) 0 ; pkgCache::Dependency *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCache_DepP_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -1347,8 +1434,8 @@ static PyObject *_wrap_pkgCache_StringItemP_set(PyObject *self, PyObject *args) PyObject *resultobj; pkgCache *arg1 = (pkgCache *) 0 ; pkgCache::StringItem *arg2 = (pkgCache::StringItem *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCache_StringItemP_set",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -1366,7 +1453,7 @@ static PyObject *_wrap_pkgCache_StringItemP_get(PyObject *self, PyObject *args) PyObject *resultobj; pkgCache *arg1 = (pkgCache *) 0 ; pkgCache::StringItem *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCache_StringItemP_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -1383,14 +1470,18 @@ static PyObject *_wrap_pkgCache_StrP_set(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache *arg1 = (pkgCache *) 0 ; char *arg2 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Os:pkgCache_StrP_set",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; { if (arg1->StrP) delete [] arg1->StrP; - arg1->StrP = (char *) (new char[strlen(arg2)+1]); - strcpy((char *) arg1->StrP,arg2); + if (arg2) { + arg1->StrP = (char *) (new char[strlen(arg2)+1]); + strcpy((char *) arg1->StrP,arg2); + } else { + arg1->StrP = 0; + } } Py_INCREF(Py_None); resultobj = Py_None; return resultobj; @@ -1403,7 +1494,7 @@ static PyObject *_wrap_pkgCache_StrP_get(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache *arg1 = (pkgCache *) 0 ; char *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCache_StrP_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -1420,7 +1511,7 @@ static PyObject *_wrap_pkgCache_ReMap(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache *arg1 = (pkgCache *) 0 ; bool result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCache_ReMap",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -1437,7 +1528,7 @@ static PyObject *_wrap_pkgCache_Sync(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache *arg1 = (pkgCache *) 0 ; bool result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCache_Sync",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -1454,7 +1545,7 @@ static PyObject *_wrap_pkgCache_GetMap(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache *arg1 = (pkgCache *) 0 ; MMap *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCache_GetMap",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -1474,7 +1565,7 @@ static PyObject *_wrap_pkgCache_DataEnd(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache *arg1 = (pkgCache *) 0 ; void *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCache_DataEnd",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -1492,14 +1583,15 @@ static PyObject *_wrap_pkgCache_Hash__SWIG_0(PyObject *self, PyObject *args) { pkgCache *arg1 = (pkgCache *) 0 ; string arg2 ; unsigned long result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCache_Hash",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; { if (PyString_Check(obj1)) - arg2 = std::string(PyString_AsString(obj1)); + arg2 = std::string(PyString_AsString(obj1), + PyString_Size(obj1)); else SWIG_exception(SWIG_TypeError, "string expected"); } @@ -1517,7 +1609,7 @@ static PyObject *_wrap_pkgCache_Hash__SWIG_1(PyObject *self, PyObject *args) { pkgCache *arg1 = (pkgCache *) 0 ; char *arg2 ; unsigned long result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Os:pkgCache_Hash",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -1546,7 +1638,7 @@ static PyObject *_wrap_pkgCache_Hash(PyObject *self, PyObject *args) { if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_pkgCache, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -1566,7 +1658,7 @@ static PyObject *_wrap_pkgCache_Hash(PyObject *self, PyObject *args) { if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_pkgCache, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -1590,8 +1682,8 @@ static PyObject *_wrap_pkgCache_Priority(PyObject *self, PyObject *args) { pkgCache *arg1 = (pkgCache *) 0 ; unsigned char arg2 ; char *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCache_Priority",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -1611,14 +1703,15 @@ static PyObject *_wrap_pkgCache_FindPkg(PyObject *self, PyObject *args) { pkgCache *arg1 = (pkgCache *) 0 ; string arg2 ; pkgCache::PkgIterator result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCache_FindPkg",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; { if (PyString_Check(obj1)) - arg2 = std::string(PyString_AsString(obj1)); + arg2 = std::string(PyString_AsString(obj1), + PyString_Size(obj1)); else SWIG_exception(SWIG_TypeError, "string expected"); } @@ -1640,7 +1733,7 @@ static PyObject *_wrap_pkgCache_FindPackage(PyObject *self, PyObject *args) { pkgCache *arg1 = (pkgCache *) 0 ; char *arg2 ; pkgCache::Package *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Os:pkgCache_FindPackage",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -1657,7 +1750,7 @@ static PyObject *_wrap_pkgCache_Head(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache *arg1 = (pkgCache *) 0 ; pkgCache::Header *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCache_Head",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -1677,7 +1770,7 @@ static PyObject *_wrap_pkgCache_PkgIter(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache *arg1 = (pkgCache *) 0 ; pkgCache::PkgIterator result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCache_PkgIter",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -1698,7 +1791,7 @@ static PyObject *_wrap_pkgCache_FileIter(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache *arg1 = (pkgCache *) 0 ; pkgCache::PkgFileIterator result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCache_FileIter",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -1719,8 +1812,8 @@ static PyObject *_wrap_pkgCache_VS_set(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache *arg1 = (pkgCache *) 0 ; pkgVersioningSystem *arg2 = (pkgVersioningSystem *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCache_VS_set",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -1738,7 +1831,7 @@ static PyObject *_wrap_pkgCache_VS_get(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache *arg1 = (pkgCache *) 0 ; pkgVersioningSystem *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCache_VS_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -1755,7 +1848,7 @@ static PyObject *_wrap_pkgCache_CompTypeDeb(PyObject *self, PyObject *args) { PyObject *resultobj; unsigned char arg1 ; char *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCache_CompTypeDeb",&obj0)) goto fail; arg1 = (unsigned char) PyInt_AsLong(obj0); @@ -1773,7 +1866,7 @@ static PyObject *_wrap_pkgCache_CompType(PyObject *self, PyObject *args) { PyObject *resultobj; unsigned char arg1 ; char *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCache_CompType",&obj0)) goto fail; arg1 = (unsigned char) PyInt_AsLong(obj0); @@ -1791,7 +1884,7 @@ static PyObject *_wrap_pkgCache_DepType(PyObject *self, PyObject *args) { PyObject *resultobj; unsigned char arg1 ; char *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCache_DepType",&obj0)) goto fail; arg1 = (unsigned char) PyInt_AsLong(obj0); @@ -1810,13 +1903,13 @@ static PyObject *_wrap_new_pkgCache(PyObject *self, PyObject *args) { MMap *arg1 = (MMap *) 0 ; bool arg2 = (bool) true ; pkgCache *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O|O:new_pkgCache",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_MMap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if (obj1) { - arg2 = (bool) PyInt_AsLong(obj1); + arg2 = PyInt_AsLong(obj1) ? true : false; if (PyErr_Occurred()) SWIG_fail; } result = (pkgCache *)new pkgCache(arg1,arg2); @@ -1831,7 +1924,7 @@ static PyObject *_wrap_new_pkgCache(PyObject *self, PyObject *args) { static PyObject *_wrap_delete_pkgCache(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache *arg1 = (pkgCache *) 0 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:delete_pkgCache",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -1855,8 +1948,8 @@ static PyObject *_wrap_pkgCacheHeader_Signature_set(PyObject *self, PyObject *ar PyObject *resultobj; pkgCache::Header *arg1 = (pkgCache::Header *) 0 ; unsigned long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCacheHeader_Signature_set",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Header,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -1875,7 +1968,7 @@ static PyObject *_wrap_pkgCacheHeader_Signature_get(PyObject *self, PyObject *ar PyObject *resultobj; pkgCache::Header *arg1 = (pkgCache::Header *) 0 ; unsigned long result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheHeader_Signature_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Header,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -1892,7 +1985,7 @@ static PyObject *_wrap_pkgCacheHeader_MajorVersion_set(PyObject *self, PyObject PyObject *resultobj; pkgCache::Header *arg1 = (pkgCache::Header *) 0 ; short arg2 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Oh:pkgCacheHeader_MajorVersion_set",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Header,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -1909,7 +2002,7 @@ static PyObject *_wrap_pkgCacheHeader_MajorVersion_get(PyObject *self, PyObject PyObject *resultobj; pkgCache::Header *arg1 = (pkgCache::Header *) 0 ; short result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheHeader_MajorVersion_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Header,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -1926,7 +2019,7 @@ static PyObject *_wrap_pkgCacheHeader_MinorVersion_set(PyObject *self, PyObject PyObject *resultobj; pkgCache::Header *arg1 = (pkgCache::Header *) 0 ; short arg2 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Oh:pkgCacheHeader_MinorVersion_set",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Header,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -1943,7 +2036,7 @@ static PyObject *_wrap_pkgCacheHeader_MinorVersion_get(PyObject *self, PyObject PyObject *resultobj; pkgCache::Header *arg1 = (pkgCache::Header *) 0 ; short result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheHeader_MinorVersion_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Header,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -1960,12 +2053,12 @@ static PyObject *_wrap_pkgCacheHeader_Dirty_set(PyObject *self, PyObject *args) PyObject *resultobj; pkgCache::Header *arg1 = (pkgCache::Header *) 0 ; bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCacheHeader_Dirty_set",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Header,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - arg2 = (bool) PyInt_AsLong(obj1); + arg2 = PyInt_AsLong(obj1) ? true : false; if (PyErr_Occurred()) SWIG_fail; if (arg1) (arg1)->Dirty = arg2; @@ -1980,7 +2073,7 @@ static PyObject *_wrap_pkgCacheHeader_Dirty_get(PyObject *self, PyObject *args) PyObject *resultobj; pkgCache::Header *arg1 = (pkgCache::Header *) 0 ; bool result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheHeader_Dirty_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Header,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -1997,12 +2090,12 @@ static PyObject *_wrap_pkgCacheHeader_HasFileDeps_set(PyObject *self, PyObject * PyObject *resultobj; pkgCache::Header *arg1 = (pkgCache::Header *) 0 ; bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCacheHeader_HasFileDeps_set",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Header,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - arg2 = (bool) PyInt_AsLong(obj1); + arg2 = PyInt_AsLong(obj1) ? true : false; if (PyErr_Occurred()) SWIG_fail; if (arg1) (arg1)->HasFileDeps = arg2; @@ -2017,7 +2110,7 @@ static PyObject *_wrap_pkgCacheHeader_HasFileDeps_get(PyObject *self, PyObject * PyObject *resultobj; pkgCache::Header *arg1 = (pkgCache::Header *) 0 ; bool result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheHeader_HasFileDeps_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Header,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -2030,12 +2123,49 @@ static PyObject *_wrap_pkgCacheHeader_HasFileDeps_get(PyObject *self, PyObject * } +static PyObject *_wrap_pkgCacheHeader_OptionsHash_set(PyObject *self, PyObject *args) { + PyObject *resultobj; + pkgCache::Header *arg1 = (pkgCache::Header *) 0 ; + unsigned long arg2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:pkgCacheHeader_OptionsHash_set",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Header,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + arg2 = (unsigned long) PyInt_AsLong(obj1); + if (PyErr_Occurred()) SWIG_fail; + if (arg1) (arg1)->OptionsHash = arg2; + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_pkgCacheHeader_OptionsHash_get(PyObject *self, PyObject *args) { + PyObject *resultobj; + pkgCache::Header *arg1 = (pkgCache::Header *) 0 ; + unsigned long result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheHeader_OptionsHash_get",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Header,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (unsigned long) ((arg1)->OptionsHash); + + resultobj = PyInt_FromLong((long)result); + return resultobj; + fail: + return NULL; +} + + static PyObject *_wrap_pkgCacheHeader_HeaderSz_set(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache::Header *arg1 = (pkgCache::Header *) 0 ; unsigned short arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCacheHeader_HeaderSz_set",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Header,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -2054,7 +2184,7 @@ static PyObject *_wrap_pkgCacheHeader_HeaderSz_get(PyObject *self, PyObject *arg PyObject *resultobj; pkgCache::Header *arg1 = (pkgCache::Header *) 0 ; unsigned short result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheHeader_HeaderSz_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Header,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -2071,8 +2201,8 @@ static PyObject *_wrap_pkgCacheHeader_PackageSz_set(PyObject *self, PyObject *ar PyObject *resultobj; pkgCache::Header *arg1 = (pkgCache::Header *) 0 ; unsigned short arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCacheHeader_PackageSz_set",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Header,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -2091,7 +2221,7 @@ static PyObject *_wrap_pkgCacheHeader_PackageSz_get(PyObject *self, PyObject *ar PyObject *resultobj; pkgCache::Header *arg1 = (pkgCache::Header *) 0 ; unsigned short result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheHeader_PackageSz_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Header,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -2108,8 +2238,8 @@ static PyObject *_wrap_pkgCacheHeader_PackageFileSz_set(PyObject *self, PyObject PyObject *resultobj; pkgCache::Header *arg1 = (pkgCache::Header *) 0 ; unsigned short arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCacheHeader_PackageFileSz_set",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Header,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -2128,7 +2258,7 @@ static PyObject *_wrap_pkgCacheHeader_PackageFileSz_get(PyObject *self, PyObject PyObject *resultobj; pkgCache::Header *arg1 = (pkgCache::Header *) 0 ; unsigned short result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheHeader_PackageFileSz_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Header,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -2145,8 +2275,8 @@ static PyObject *_wrap_pkgCacheHeader_VersionSz_set(PyObject *self, PyObject *ar PyObject *resultobj; pkgCache::Header *arg1 = (pkgCache::Header *) 0 ; unsigned short arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCacheHeader_VersionSz_set",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Header,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -2165,7 +2295,7 @@ static PyObject *_wrap_pkgCacheHeader_VersionSz_get(PyObject *self, PyObject *ar PyObject *resultobj; pkgCache::Header *arg1 = (pkgCache::Header *) 0 ; unsigned short result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheHeader_VersionSz_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Header,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -2182,8 +2312,8 @@ static PyObject *_wrap_pkgCacheHeader_DependencySz_set(PyObject *self, PyObject PyObject *resultobj; pkgCache::Header *arg1 = (pkgCache::Header *) 0 ; unsigned short arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCacheHeader_DependencySz_set",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Header,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -2202,7 +2332,7 @@ static PyObject *_wrap_pkgCacheHeader_DependencySz_get(PyObject *self, PyObject PyObject *resultobj; pkgCache::Header *arg1 = (pkgCache::Header *) 0 ; unsigned short result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheHeader_DependencySz_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Header,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -2219,8 +2349,8 @@ static PyObject *_wrap_pkgCacheHeader_ProvidesSz_set(PyObject *self, PyObject *a PyObject *resultobj; pkgCache::Header *arg1 = (pkgCache::Header *) 0 ; unsigned short arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCacheHeader_ProvidesSz_set",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Header,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -2239,7 +2369,7 @@ static PyObject *_wrap_pkgCacheHeader_ProvidesSz_get(PyObject *self, PyObject *a PyObject *resultobj; pkgCache::Header *arg1 = (pkgCache::Header *) 0 ; unsigned short result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheHeader_ProvidesSz_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Header,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -2256,8 +2386,8 @@ static PyObject *_wrap_pkgCacheHeader_VerFileSz_set(PyObject *self, PyObject *ar PyObject *resultobj; pkgCache::Header *arg1 = (pkgCache::Header *) 0 ; unsigned short arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCacheHeader_VerFileSz_set",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Header,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -2276,7 +2406,7 @@ static PyObject *_wrap_pkgCacheHeader_VerFileSz_get(PyObject *self, PyObject *ar PyObject *resultobj; pkgCache::Header *arg1 = (pkgCache::Header *) 0 ; unsigned short result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheHeader_VerFileSz_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Header,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -2293,8 +2423,8 @@ static PyObject *_wrap_pkgCacheHeader_PackageCount_set(PyObject *self, PyObject PyObject *resultobj; pkgCache::Header *arg1 = (pkgCache::Header *) 0 ; unsigned long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCacheHeader_PackageCount_set",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Header,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -2313,7 +2443,7 @@ static PyObject *_wrap_pkgCacheHeader_PackageCount_get(PyObject *self, PyObject PyObject *resultobj; pkgCache::Header *arg1 = (pkgCache::Header *) 0 ; unsigned long result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheHeader_PackageCount_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Header,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -2330,8 +2460,8 @@ static PyObject *_wrap_pkgCacheHeader_VersionCount_set(PyObject *self, PyObject PyObject *resultobj; pkgCache::Header *arg1 = (pkgCache::Header *) 0 ; unsigned long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCacheHeader_VersionCount_set",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Header,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -2350,7 +2480,7 @@ static PyObject *_wrap_pkgCacheHeader_VersionCount_get(PyObject *self, PyObject PyObject *resultobj; pkgCache::Header *arg1 = (pkgCache::Header *) 0 ; unsigned long result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheHeader_VersionCount_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Header,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -2367,8 +2497,8 @@ static PyObject *_wrap_pkgCacheHeader_DependsCount_set(PyObject *self, PyObject PyObject *resultobj; pkgCache::Header *arg1 = (pkgCache::Header *) 0 ; unsigned long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCacheHeader_DependsCount_set",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Header,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -2387,7 +2517,7 @@ static PyObject *_wrap_pkgCacheHeader_DependsCount_get(PyObject *self, PyObject PyObject *resultobj; pkgCache::Header *arg1 = (pkgCache::Header *) 0 ; unsigned long result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheHeader_DependsCount_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Header,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -2404,8 +2534,8 @@ static PyObject *_wrap_pkgCacheHeader_PackageFileCount_set(PyObject *self, PyObj PyObject *resultobj; pkgCache::Header *arg1 = (pkgCache::Header *) 0 ; unsigned long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCacheHeader_PackageFileCount_set",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Header,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -2424,7 +2554,7 @@ static PyObject *_wrap_pkgCacheHeader_PackageFileCount_get(PyObject *self, PyObj PyObject *resultobj; pkgCache::Header *arg1 = (pkgCache::Header *) 0 ; unsigned long result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheHeader_PackageFileCount_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Header,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -2441,8 +2571,8 @@ static PyObject *_wrap_pkgCacheHeader_VerFileCount_set(PyObject *self, PyObject PyObject *resultobj; pkgCache::Header *arg1 = (pkgCache::Header *) 0 ; unsigned long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCacheHeader_VerFileCount_set",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Header,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -2461,7 +2591,7 @@ static PyObject *_wrap_pkgCacheHeader_VerFileCount_get(PyObject *self, PyObject PyObject *resultobj; pkgCache::Header *arg1 = (pkgCache::Header *) 0 ; unsigned long result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheHeader_VerFileCount_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Header,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -2478,8 +2608,8 @@ static PyObject *_wrap_pkgCacheHeader_ProvidesCount_set(PyObject *self, PyObject PyObject *resultobj; pkgCache::Header *arg1 = (pkgCache::Header *) 0 ; unsigned long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCacheHeader_ProvidesCount_set",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Header,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -2498,7 +2628,7 @@ static PyObject *_wrap_pkgCacheHeader_ProvidesCount_get(PyObject *self, PyObject PyObject *resultobj; pkgCache::Header *arg1 = (pkgCache::Header *) 0 ; unsigned long result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheHeader_ProvidesCount_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Header,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -2515,7 +2645,7 @@ static PyObject *_wrap_pkgCacheHeader_FileList_set(PyObject *self, PyObject *arg PyObject *resultobj; pkgCache::Header *arg1 = (pkgCache::Header *) 0 ; map_ptrloc arg2 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Oi:pkgCacheHeader_FileList_set",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Header,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -2532,7 +2662,7 @@ static PyObject *_wrap_pkgCacheHeader_FileList_get(PyObject *self, PyObject *arg PyObject *resultobj; pkgCache::Header *arg1 = (pkgCache::Header *) 0 ; map_ptrloc result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheHeader_FileList_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Header,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -2549,7 +2679,7 @@ static PyObject *_wrap_pkgCacheHeader_StringList_set(PyObject *self, PyObject *a PyObject *resultobj; pkgCache::Header *arg1 = (pkgCache::Header *) 0 ; map_ptrloc arg2 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Oi:pkgCacheHeader_StringList_set",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Header,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -2566,7 +2696,7 @@ static PyObject *_wrap_pkgCacheHeader_StringList_get(PyObject *self, PyObject *a PyObject *resultobj; pkgCache::Header *arg1 = (pkgCache::Header *) 0 ; map_ptrloc result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheHeader_StringList_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Header,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -2583,7 +2713,7 @@ static PyObject *_wrap_pkgCacheHeader_VerSysName_set(PyObject *self, PyObject *a PyObject *resultobj; pkgCache::Header *arg1 = (pkgCache::Header *) 0 ; map_ptrloc arg2 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Oi:pkgCacheHeader_VerSysName_set",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Header,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -2600,7 +2730,7 @@ static PyObject *_wrap_pkgCacheHeader_VerSysName_get(PyObject *self, PyObject *a PyObject *resultobj; pkgCache::Header *arg1 = (pkgCache::Header *) 0 ; map_ptrloc result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheHeader_VerSysName_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Header,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -2617,7 +2747,7 @@ static PyObject *_wrap_pkgCacheHeader_Architecture_set(PyObject *self, PyObject PyObject *resultobj; pkgCache::Header *arg1 = (pkgCache::Header *) 0 ; map_ptrloc arg2 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Oi:pkgCacheHeader_Architecture_set",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Header,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -2634,7 +2764,7 @@ static PyObject *_wrap_pkgCacheHeader_Architecture_get(PyObject *self, PyObject PyObject *resultobj; pkgCache::Header *arg1 = (pkgCache::Header *) 0 ; map_ptrloc result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheHeader_Architecture_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Header,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -2651,8 +2781,8 @@ static PyObject *_wrap_pkgCacheHeader_MaxVerFileSize_set(PyObject *self, PyObjec PyObject *resultobj; pkgCache::Header *arg1 = (pkgCache::Header *) 0 ; unsigned long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCacheHeader_MaxVerFileSize_set",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Header,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -2671,7 +2801,7 @@ static PyObject *_wrap_pkgCacheHeader_MaxVerFileSize_get(PyObject *self, PyObjec PyObject *resultobj; pkgCache::Header *arg1 = (pkgCache::Header *) 0 ; unsigned long result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheHeader_MaxVerFileSize_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Header,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -2688,8 +2818,8 @@ static PyObject *_wrap_pkgCacheHeader_Pools_set(PyObject *self, PyObject *args) PyObject *resultobj; pkgCache::Header *arg1 = (pkgCache::Header *) 0 ; DynamicMMap::Pool *arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCacheHeader_Pools_set",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Header,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -2710,7 +2840,7 @@ static PyObject *_wrap_pkgCacheHeader_Pools_get(PyObject *self, PyObject *args) PyObject *resultobj; pkgCache::Header *arg1 = (pkgCache::Header *) 0 ; DynamicMMap::Pool *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheHeader_Pools_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Header,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -2727,8 +2857,8 @@ static PyObject *_wrap_pkgCacheHeader_HashTable_set(PyObject *self, PyObject *ar PyObject *resultobj; pkgCache::Header *arg1 = (pkgCache::Header *) 0 ; map_ptrloc *arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCacheHeader_HashTable_set",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Header,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -2749,7 +2879,7 @@ static PyObject *_wrap_pkgCacheHeader_HashTable_get(PyObject *self, PyObject *ar PyObject *resultobj; pkgCache::Header *arg1 = (pkgCache::Header *) 0 ; map_ptrloc *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheHeader_HashTable_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Header,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -2767,12 +2897,15 @@ static PyObject *_wrap_pkgCacheHeader_CheckSizes(PyObject *self, PyObject *args) pkgCache::Header *arg1 = (pkgCache::Header *) 0 ; Header *arg2 = 0 ; bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCacheHeader_CheckSizes",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Header,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_Header,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } result = (bool)((pkgCache::Header const *)arg1)->CheckSizes(*arg2); resultobj = PyInt_FromLong((long)result); @@ -2799,7 +2932,7 @@ static PyObject *_wrap_new_pkgCacheHeader(PyObject *self, PyObject *args) { static PyObject *_wrap_delete_pkgCacheHeader(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache::Header *arg1 = (pkgCache::Header *) 0 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:delete_pkgCacheHeader",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Header,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -2823,7 +2956,7 @@ static PyObject *_wrap_pkgCachePackage_Name_set(PyObject *self, PyObject *args) PyObject *resultobj; pkgCache::Package *arg1 = (pkgCache::Package *) 0 ; map_ptrloc arg2 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Oi:pkgCachePackage_Name_set",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Package,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -2840,7 +2973,7 @@ static PyObject *_wrap_pkgCachePackage_Name_get(PyObject *self, PyObject *args) PyObject *resultobj; pkgCache::Package *arg1 = (pkgCache::Package *) 0 ; map_ptrloc result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePackage_Name_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Package,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -2857,7 +2990,7 @@ static PyObject *_wrap_pkgCachePackage_VersionList_set(PyObject *self, PyObject PyObject *resultobj; pkgCache::Package *arg1 = (pkgCache::Package *) 0 ; map_ptrloc arg2 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Oi:pkgCachePackage_VersionList_set",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Package,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -2874,7 +3007,7 @@ static PyObject *_wrap_pkgCachePackage_VersionList_get(PyObject *self, PyObject PyObject *resultobj; pkgCache::Package *arg1 = (pkgCache::Package *) 0 ; map_ptrloc result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePackage_VersionList_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Package,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -2891,7 +3024,7 @@ static PyObject *_wrap_pkgCachePackage_CurrentVer_set(PyObject *self, PyObject * PyObject *resultobj; pkgCache::Package *arg1 = (pkgCache::Package *) 0 ; map_ptrloc arg2 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Oi:pkgCachePackage_CurrentVer_set",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Package,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -2908,7 +3041,7 @@ static PyObject *_wrap_pkgCachePackage_CurrentVer_get(PyObject *self, PyObject * PyObject *resultobj; pkgCache::Package *arg1 = (pkgCache::Package *) 0 ; map_ptrloc result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePackage_CurrentVer_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Package,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -2925,7 +3058,7 @@ static PyObject *_wrap_pkgCachePackage_Section_set(PyObject *self, PyObject *arg PyObject *resultobj; pkgCache::Package *arg1 = (pkgCache::Package *) 0 ; map_ptrloc arg2 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Oi:pkgCachePackage_Section_set",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Package,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -2942,7 +3075,7 @@ static PyObject *_wrap_pkgCachePackage_Section_get(PyObject *self, PyObject *arg PyObject *resultobj; pkgCache::Package *arg1 = (pkgCache::Package *) 0 ; map_ptrloc result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePackage_Section_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Package,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -2959,7 +3092,7 @@ static PyObject *_wrap_pkgCachePackage_NextPackage_set(PyObject *self, PyObject PyObject *resultobj; pkgCache::Package *arg1 = (pkgCache::Package *) 0 ; map_ptrloc arg2 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Oi:pkgCachePackage_NextPackage_set",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Package,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -2976,7 +3109,7 @@ static PyObject *_wrap_pkgCachePackage_NextPackage_get(PyObject *self, PyObject PyObject *resultobj; pkgCache::Package *arg1 = (pkgCache::Package *) 0 ; map_ptrloc result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePackage_NextPackage_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Package,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -2993,7 +3126,7 @@ static PyObject *_wrap_pkgCachePackage_RevDepends_set(PyObject *self, PyObject * PyObject *resultobj; pkgCache::Package *arg1 = (pkgCache::Package *) 0 ; map_ptrloc arg2 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Oi:pkgCachePackage_RevDepends_set",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Package,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -3010,7 +3143,7 @@ static PyObject *_wrap_pkgCachePackage_RevDepends_get(PyObject *self, PyObject * PyObject *resultobj; pkgCache::Package *arg1 = (pkgCache::Package *) 0 ; map_ptrloc result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePackage_RevDepends_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Package,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -3027,7 +3160,7 @@ static PyObject *_wrap_pkgCachePackage_ProvidesList_set(PyObject *self, PyObject PyObject *resultobj; pkgCache::Package *arg1 = (pkgCache::Package *) 0 ; map_ptrloc arg2 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Oi:pkgCachePackage_ProvidesList_set",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Package,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -3044,7 +3177,7 @@ static PyObject *_wrap_pkgCachePackage_ProvidesList_get(PyObject *self, PyObject PyObject *resultobj; pkgCache::Package *arg1 = (pkgCache::Package *) 0 ; map_ptrloc result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePackage_ProvidesList_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Package,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -3061,8 +3194,8 @@ static PyObject *_wrap_pkgCachePackage_SelectedState_set(PyObject *self, PyObjec PyObject *resultobj; pkgCache::Package *arg1 = (pkgCache::Package *) 0 ; unsigned char arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCachePackage_SelectedState_set",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Package,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -3081,7 +3214,7 @@ static PyObject *_wrap_pkgCachePackage_SelectedState_get(PyObject *self, PyObjec PyObject *resultobj; pkgCache::Package *arg1 = (pkgCache::Package *) 0 ; unsigned char result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePackage_SelectedState_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Package,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -3098,8 +3231,8 @@ static PyObject *_wrap_pkgCachePackage_InstState_set(PyObject *self, PyObject *a PyObject *resultobj; pkgCache::Package *arg1 = (pkgCache::Package *) 0 ; unsigned char arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCachePackage_InstState_set",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Package,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -3118,7 +3251,7 @@ static PyObject *_wrap_pkgCachePackage_InstState_get(PyObject *self, PyObject *a PyObject *resultobj; pkgCache::Package *arg1 = (pkgCache::Package *) 0 ; unsigned char result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePackage_InstState_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Package,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -3135,8 +3268,8 @@ static PyObject *_wrap_pkgCachePackage_CurrentState_set(PyObject *self, PyObject PyObject *resultobj; pkgCache::Package *arg1 = (pkgCache::Package *) 0 ; unsigned char arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCachePackage_CurrentState_set",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Package,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -3155,7 +3288,7 @@ static PyObject *_wrap_pkgCachePackage_CurrentState_get(PyObject *self, PyObject PyObject *resultobj; pkgCache::Package *arg1 = (pkgCache::Package *) 0 ; unsigned char result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePackage_CurrentState_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Package,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -3172,8 +3305,8 @@ static PyObject *_wrap_pkgCachePackage_ID_set(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache::Package *arg1 = (pkgCache::Package *) 0 ; unsigned short arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCachePackage_ID_set",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Package,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -3192,7 +3325,7 @@ static PyObject *_wrap_pkgCachePackage_ID_get(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache::Package *arg1 = (pkgCache::Package *) 0 ; unsigned short result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePackage_ID_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Package,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -3209,8 +3342,8 @@ static PyObject *_wrap_pkgCachePackage_Flags_set(PyObject *self, PyObject *args) PyObject *resultobj; pkgCache::Package *arg1 = (pkgCache::Package *) 0 ; unsigned long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCachePackage_Flags_set",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Package,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -3229,7 +3362,7 @@ static PyObject *_wrap_pkgCachePackage_Flags_get(PyObject *self, PyObject *args) PyObject *resultobj; pkgCache::Package *arg1 = (pkgCache::Package *) 0 ; unsigned long result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePackage_Flags_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Package,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -3259,7 +3392,7 @@ static PyObject *_wrap_new_pkgCachePackage(PyObject *self, PyObject *args) { static PyObject *_wrap_delete_pkgCachePackage(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache::Package *arg1 = (pkgCache::Package *) 0 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:delete_pkgCachePackage",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Package,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -3283,7 +3416,7 @@ static PyObject *_wrap_pkgCachePackageFile_FileName_set(PyObject *self, PyObject PyObject *resultobj; pkgCache::PackageFile *arg1 = (pkgCache::PackageFile *) 0 ; map_ptrloc arg2 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Oi:pkgCachePackageFile_FileName_set",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PackageFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -3300,7 +3433,7 @@ static PyObject *_wrap_pkgCachePackageFile_FileName_get(PyObject *self, PyObject PyObject *resultobj; pkgCache::PackageFile *arg1 = (pkgCache::PackageFile *) 0 ; map_ptrloc result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePackageFile_FileName_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PackageFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -3317,7 +3450,7 @@ static PyObject *_wrap_pkgCachePackageFile_Archive_set(PyObject *self, PyObject PyObject *resultobj; pkgCache::PackageFile *arg1 = (pkgCache::PackageFile *) 0 ; map_ptrloc arg2 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Oi:pkgCachePackageFile_Archive_set",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PackageFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -3334,7 +3467,7 @@ static PyObject *_wrap_pkgCachePackageFile_Archive_get(PyObject *self, PyObject PyObject *resultobj; pkgCache::PackageFile *arg1 = (pkgCache::PackageFile *) 0 ; map_ptrloc result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePackageFile_Archive_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PackageFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -3351,7 +3484,7 @@ static PyObject *_wrap_pkgCachePackageFile_Component_set(PyObject *self, PyObjec PyObject *resultobj; pkgCache::PackageFile *arg1 = (pkgCache::PackageFile *) 0 ; map_ptrloc arg2 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Oi:pkgCachePackageFile_Component_set",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PackageFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -3368,7 +3501,7 @@ static PyObject *_wrap_pkgCachePackageFile_Component_get(PyObject *self, PyObjec PyObject *resultobj; pkgCache::PackageFile *arg1 = (pkgCache::PackageFile *) 0 ; map_ptrloc result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePackageFile_Component_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PackageFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -3385,7 +3518,7 @@ static PyObject *_wrap_pkgCachePackageFile_Version_set(PyObject *self, PyObject PyObject *resultobj; pkgCache::PackageFile *arg1 = (pkgCache::PackageFile *) 0 ; map_ptrloc arg2 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Oi:pkgCachePackageFile_Version_set",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PackageFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -3402,7 +3535,7 @@ static PyObject *_wrap_pkgCachePackageFile_Version_get(PyObject *self, PyObject PyObject *resultobj; pkgCache::PackageFile *arg1 = (pkgCache::PackageFile *) 0 ; map_ptrloc result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePackageFile_Version_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PackageFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -3419,7 +3552,7 @@ static PyObject *_wrap_pkgCachePackageFile_Origin_set(PyObject *self, PyObject * PyObject *resultobj; pkgCache::PackageFile *arg1 = (pkgCache::PackageFile *) 0 ; map_ptrloc arg2 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Oi:pkgCachePackageFile_Origin_set",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PackageFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -3436,7 +3569,7 @@ static PyObject *_wrap_pkgCachePackageFile_Origin_get(PyObject *self, PyObject * PyObject *resultobj; pkgCache::PackageFile *arg1 = (pkgCache::PackageFile *) 0 ; map_ptrloc result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePackageFile_Origin_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PackageFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -3453,7 +3586,7 @@ static PyObject *_wrap_pkgCachePackageFile_Label_set(PyObject *self, PyObject *a PyObject *resultobj; pkgCache::PackageFile *arg1 = (pkgCache::PackageFile *) 0 ; map_ptrloc arg2 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Oi:pkgCachePackageFile_Label_set",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PackageFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -3470,7 +3603,7 @@ static PyObject *_wrap_pkgCachePackageFile_Label_get(PyObject *self, PyObject *a PyObject *resultobj; pkgCache::PackageFile *arg1 = (pkgCache::PackageFile *) 0 ; map_ptrloc result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePackageFile_Label_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PackageFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -3487,7 +3620,7 @@ static PyObject *_wrap_pkgCachePackageFile_Architecture_set(PyObject *self, PyOb PyObject *resultobj; pkgCache::PackageFile *arg1 = (pkgCache::PackageFile *) 0 ; map_ptrloc arg2 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Oi:pkgCachePackageFile_Architecture_set",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PackageFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -3504,7 +3637,7 @@ static PyObject *_wrap_pkgCachePackageFile_Architecture_get(PyObject *self, PyOb PyObject *resultobj; pkgCache::PackageFile *arg1 = (pkgCache::PackageFile *) 0 ; map_ptrloc result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePackageFile_Architecture_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PackageFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -3521,7 +3654,7 @@ static PyObject *_wrap_pkgCachePackageFile_Site_set(PyObject *self, PyObject *ar PyObject *resultobj; pkgCache::PackageFile *arg1 = (pkgCache::PackageFile *) 0 ; map_ptrloc arg2 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Oi:pkgCachePackageFile_Site_set",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PackageFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -3538,7 +3671,7 @@ static PyObject *_wrap_pkgCachePackageFile_Site_get(PyObject *self, PyObject *ar PyObject *resultobj; pkgCache::PackageFile *arg1 = (pkgCache::PackageFile *) 0 ; map_ptrloc result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePackageFile_Site_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PackageFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -3555,7 +3688,7 @@ static PyObject *_wrap_pkgCachePackageFile_IndexType_set(PyObject *self, PyObjec PyObject *resultobj; pkgCache::PackageFile *arg1 = (pkgCache::PackageFile *) 0 ; map_ptrloc arg2 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Oi:pkgCachePackageFile_IndexType_set",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PackageFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -3572,7 +3705,7 @@ static PyObject *_wrap_pkgCachePackageFile_IndexType_get(PyObject *self, PyObjec PyObject *resultobj; pkgCache::PackageFile *arg1 = (pkgCache::PackageFile *) 0 ; map_ptrloc result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePackageFile_IndexType_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PackageFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -3589,8 +3722,8 @@ static PyObject *_wrap_pkgCachePackageFile_Size_set(PyObject *self, PyObject *ar PyObject *resultobj; pkgCache::PackageFile *arg1 = (pkgCache::PackageFile *) 0 ; unsigned long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCachePackageFile_Size_set",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PackageFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -3609,7 +3742,7 @@ static PyObject *_wrap_pkgCachePackageFile_Size_get(PyObject *self, PyObject *ar PyObject *resultobj; pkgCache::PackageFile *arg1 = (pkgCache::PackageFile *) 0 ; unsigned long result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePackageFile_Size_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PackageFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -3626,8 +3759,8 @@ static PyObject *_wrap_pkgCachePackageFile_Flags_set(PyObject *self, PyObject *a PyObject *resultobj; pkgCache::PackageFile *arg1 = (pkgCache::PackageFile *) 0 ; unsigned long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCachePackageFile_Flags_set",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PackageFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -3646,7 +3779,7 @@ static PyObject *_wrap_pkgCachePackageFile_Flags_get(PyObject *self, PyObject *a PyObject *resultobj; pkgCache::PackageFile *arg1 = (pkgCache::PackageFile *) 0 ; unsigned long result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePackageFile_Flags_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PackageFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -3663,7 +3796,7 @@ static PyObject *_wrap_pkgCachePackageFile_NextFile_set(PyObject *self, PyObject PyObject *resultobj; pkgCache::PackageFile *arg1 = (pkgCache::PackageFile *) 0 ; map_ptrloc arg2 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Oi:pkgCachePackageFile_NextFile_set",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PackageFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -3680,7 +3813,7 @@ static PyObject *_wrap_pkgCachePackageFile_NextFile_get(PyObject *self, PyObject PyObject *resultobj; pkgCache::PackageFile *arg1 = (pkgCache::PackageFile *) 0 ; map_ptrloc result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePackageFile_NextFile_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PackageFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -3697,8 +3830,8 @@ static PyObject *_wrap_pkgCachePackageFile_ID_set(PyObject *self, PyObject *args PyObject *resultobj; pkgCache::PackageFile *arg1 = (pkgCache::PackageFile *) 0 ; unsigned short arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCachePackageFile_ID_set",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PackageFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -3717,7 +3850,7 @@ static PyObject *_wrap_pkgCachePackageFile_ID_get(PyObject *self, PyObject *args PyObject *resultobj; pkgCache::PackageFile *arg1 = (pkgCache::PackageFile *) 0 ; unsigned short result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePackageFile_ID_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PackageFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -3735,8 +3868,8 @@ static PyObject *_wrap_pkgCachePackageFile_mtime_set(PyObject *self, PyObject *a pkgCache::PackageFile *arg1 = (pkgCache::PackageFile *) 0 ; time_t arg2 ; time_t *argp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCachePackageFile_mtime_set",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PackageFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -3755,7 +3888,7 @@ static PyObject *_wrap_pkgCachePackageFile_mtime_get(PyObject *self, PyObject *a PyObject *resultobj; pkgCache::PackageFile *arg1 = (pkgCache::PackageFile *) 0 ; time_t result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePackageFile_mtime_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PackageFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -3789,7 +3922,7 @@ static PyObject *_wrap_new_pkgCachePackageFile(PyObject *self, PyObject *args) { static PyObject *_wrap_delete_pkgCachePackageFile(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache::PackageFile *arg1 = (pkgCache::PackageFile *) 0 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:delete_pkgCachePackageFile",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PackageFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -3813,7 +3946,7 @@ static PyObject *_wrap_pkgCacheVerFile_File_set(PyObject *self, PyObject *args) PyObject *resultobj; pkgCache::VerFile *arg1 = (pkgCache::VerFile *) 0 ; map_ptrloc arg2 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Oi:pkgCacheVerFile_File_set",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -3830,7 +3963,7 @@ static PyObject *_wrap_pkgCacheVerFile_File_get(PyObject *self, PyObject *args) PyObject *resultobj; pkgCache::VerFile *arg1 = (pkgCache::VerFile *) 0 ; map_ptrloc result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheVerFile_File_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -3847,7 +3980,7 @@ static PyObject *_wrap_pkgCacheVerFile_NextFile_set(PyObject *self, PyObject *ar PyObject *resultobj; pkgCache::VerFile *arg1 = (pkgCache::VerFile *) 0 ; map_ptrloc arg2 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Oi:pkgCacheVerFile_NextFile_set",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -3864,7 +3997,7 @@ static PyObject *_wrap_pkgCacheVerFile_NextFile_get(PyObject *self, PyObject *ar PyObject *resultobj; pkgCache::VerFile *arg1 = (pkgCache::VerFile *) 0 ; map_ptrloc result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheVerFile_NextFile_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -3881,7 +4014,7 @@ static PyObject *_wrap_pkgCacheVerFile_Offset_set(PyObject *self, PyObject *args PyObject *resultobj; pkgCache::VerFile *arg1 = (pkgCache::VerFile *) 0 ; map_ptrloc arg2 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Oi:pkgCacheVerFile_Offset_set",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -3898,7 +4031,7 @@ static PyObject *_wrap_pkgCacheVerFile_Offset_get(PyObject *self, PyObject *args PyObject *resultobj; pkgCache::VerFile *arg1 = (pkgCache::VerFile *) 0 ; map_ptrloc result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheVerFile_Offset_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -3915,8 +4048,8 @@ static PyObject *_wrap_pkgCacheVerFile_Size_set(PyObject *self, PyObject *args) PyObject *resultobj; pkgCache::VerFile *arg1 = (pkgCache::VerFile *) 0 ; unsigned short arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCacheVerFile_Size_set",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -3935,7 +4068,7 @@ static PyObject *_wrap_pkgCacheVerFile_Size_get(PyObject *self, PyObject *args) PyObject *resultobj; pkgCache::VerFile *arg1 = (pkgCache::VerFile *) 0 ; unsigned short result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheVerFile_Size_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -3965,7 +4098,7 @@ static PyObject *_wrap_new_pkgCacheVerFile(PyObject *self, PyObject *args) { static PyObject *_wrap_delete_pkgCacheVerFile(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache::VerFile *arg1 = (pkgCache::VerFile *) 0 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:delete_pkgCacheVerFile",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -3989,7 +4122,7 @@ static PyObject *_wrap_pkgCacheVersion_VerStr_set(PyObject *self, PyObject *args PyObject *resultobj; pkgCache::Version *arg1 = (pkgCache::Version *) 0 ; map_ptrloc arg2 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Oi:pkgCacheVersion_VerStr_set",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Version,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -4006,7 +4139,7 @@ static PyObject *_wrap_pkgCacheVersion_VerStr_get(PyObject *self, PyObject *args PyObject *resultobj; pkgCache::Version *arg1 = (pkgCache::Version *) 0 ; map_ptrloc result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheVersion_VerStr_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Version,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -4023,7 +4156,7 @@ static PyObject *_wrap_pkgCacheVersion_Section_set(PyObject *self, PyObject *arg PyObject *resultobj; pkgCache::Version *arg1 = (pkgCache::Version *) 0 ; map_ptrloc arg2 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Oi:pkgCacheVersion_Section_set",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Version,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -4040,7 +4173,7 @@ static PyObject *_wrap_pkgCacheVersion_Section_get(PyObject *self, PyObject *arg PyObject *resultobj; pkgCache::Version *arg1 = (pkgCache::Version *) 0 ; map_ptrloc result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheVersion_Section_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Version,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -4057,7 +4190,7 @@ static PyObject *_wrap_pkgCacheVersion_Arch_set(PyObject *self, PyObject *args) PyObject *resultobj; pkgCache::Version *arg1 = (pkgCache::Version *) 0 ; map_ptrloc arg2 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Oi:pkgCacheVersion_Arch_set",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Version,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -4074,7 +4207,7 @@ static PyObject *_wrap_pkgCacheVersion_Arch_get(PyObject *self, PyObject *args) PyObject *resultobj; pkgCache::Version *arg1 = (pkgCache::Version *) 0 ; map_ptrloc result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheVersion_Arch_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Version,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -4091,7 +4224,7 @@ static PyObject *_wrap_pkgCacheVersion_FileList_set(PyObject *self, PyObject *ar PyObject *resultobj; pkgCache::Version *arg1 = (pkgCache::Version *) 0 ; map_ptrloc arg2 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Oi:pkgCacheVersion_FileList_set",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Version,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -4108,7 +4241,7 @@ static PyObject *_wrap_pkgCacheVersion_FileList_get(PyObject *self, PyObject *ar PyObject *resultobj; pkgCache::Version *arg1 = (pkgCache::Version *) 0 ; map_ptrloc result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheVersion_FileList_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Version,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -4125,7 +4258,7 @@ static PyObject *_wrap_pkgCacheVersion_NextVer_set(PyObject *self, PyObject *arg PyObject *resultobj; pkgCache::Version *arg1 = (pkgCache::Version *) 0 ; map_ptrloc arg2 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Oi:pkgCacheVersion_NextVer_set",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Version,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -4142,7 +4275,7 @@ static PyObject *_wrap_pkgCacheVersion_NextVer_get(PyObject *self, PyObject *arg PyObject *resultobj; pkgCache::Version *arg1 = (pkgCache::Version *) 0 ; map_ptrloc result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheVersion_NextVer_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Version,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -4159,7 +4292,7 @@ static PyObject *_wrap_pkgCacheVersion_DependsList_set(PyObject *self, PyObject PyObject *resultobj; pkgCache::Version *arg1 = (pkgCache::Version *) 0 ; map_ptrloc arg2 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Oi:pkgCacheVersion_DependsList_set",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Version,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -4176,7 +4309,7 @@ static PyObject *_wrap_pkgCacheVersion_DependsList_get(PyObject *self, PyObject PyObject *resultobj; pkgCache::Version *arg1 = (pkgCache::Version *) 0 ; map_ptrloc result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheVersion_DependsList_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Version,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -4193,7 +4326,7 @@ static PyObject *_wrap_pkgCacheVersion_ParentPkg_set(PyObject *self, PyObject *a PyObject *resultobj; pkgCache::Version *arg1 = (pkgCache::Version *) 0 ; map_ptrloc arg2 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Oi:pkgCacheVersion_ParentPkg_set",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Version,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -4210,7 +4343,7 @@ static PyObject *_wrap_pkgCacheVersion_ParentPkg_get(PyObject *self, PyObject *a PyObject *resultobj; pkgCache::Version *arg1 = (pkgCache::Version *) 0 ; map_ptrloc result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheVersion_ParentPkg_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Version,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -4227,7 +4360,7 @@ static PyObject *_wrap_pkgCacheVersion_ProvidesList_set(PyObject *self, PyObject PyObject *resultobj; pkgCache::Version *arg1 = (pkgCache::Version *) 0 ; map_ptrloc arg2 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Oi:pkgCacheVersion_ProvidesList_set",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Version,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -4244,7 +4377,7 @@ static PyObject *_wrap_pkgCacheVersion_ProvidesList_get(PyObject *self, PyObject PyObject *resultobj; pkgCache::Version *arg1 = (pkgCache::Version *) 0 ; map_ptrloc result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheVersion_ProvidesList_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Version,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -4261,7 +4394,7 @@ static PyObject *_wrap_pkgCacheVersion_Size_set(PyObject *self, PyObject *args) PyObject *resultobj; pkgCache::Version *arg1 = (pkgCache::Version *) 0 ; map_ptrloc arg2 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Oi:pkgCacheVersion_Size_set",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Version,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -4278,7 +4411,7 @@ static PyObject *_wrap_pkgCacheVersion_Size_get(PyObject *self, PyObject *args) PyObject *resultobj; pkgCache::Version *arg1 = (pkgCache::Version *) 0 ; map_ptrloc result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheVersion_Size_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Version,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -4295,7 +4428,7 @@ static PyObject *_wrap_pkgCacheVersion_InstalledSize_set(PyObject *self, PyObjec PyObject *resultobj; pkgCache::Version *arg1 = (pkgCache::Version *) 0 ; map_ptrloc arg2 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Oi:pkgCacheVersion_InstalledSize_set",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Version,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -4312,7 +4445,7 @@ static PyObject *_wrap_pkgCacheVersion_InstalledSize_get(PyObject *self, PyObjec PyObject *resultobj; pkgCache::Version *arg1 = (pkgCache::Version *) 0 ; map_ptrloc result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheVersion_InstalledSize_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Version,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -4329,8 +4462,8 @@ static PyObject *_wrap_pkgCacheVersion_Hash_set(PyObject *self, PyObject *args) PyObject *resultobj; pkgCache::Version *arg1 = (pkgCache::Version *) 0 ; unsigned short arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCacheVersion_Hash_set",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Version,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -4349,7 +4482,7 @@ static PyObject *_wrap_pkgCacheVersion_Hash_get(PyObject *self, PyObject *args) PyObject *resultobj; pkgCache::Version *arg1 = (pkgCache::Version *) 0 ; unsigned short result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheVersion_Hash_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Version,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -4366,8 +4499,8 @@ static PyObject *_wrap_pkgCacheVersion_ID_set(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache::Version *arg1 = (pkgCache::Version *) 0 ; unsigned short arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCacheVersion_ID_set",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Version,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -4386,7 +4519,7 @@ static PyObject *_wrap_pkgCacheVersion_ID_get(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache::Version *arg1 = (pkgCache::Version *) 0 ; unsigned short result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheVersion_ID_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Version,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -4403,8 +4536,8 @@ static PyObject *_wrap_pkgCacheVersion_Priority_set(PyObject *self, PyObject *ar PyObject *resultobj; pkgCache::Version *arg1 = (pkgCache::Version *) 0 ; unsigned char arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCacheVersion_Priority_set",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Version,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -4423,7 +4556,7 @@ static PyObject *_wrap_pkgCacheVersion_Priority_get(PyObject *self, PyObject *ar PyObject *resultobj; pkgCache::Version *arg1 = (pkgCache::Version *) 0 ; unsigned char result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheVersion_Priority_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Version,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -4453,7 +4586,7 @@ static PyObject *_wrap_new_pkgCacheVersion(PyObject *self, PyObject *args) { static PyObject *_wrap_delete_pkgCacheVersion(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache::Version *arg1 = (pkgCache::Version *) 0 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:delete_pkgCacheVersion",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Version,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -4477,7 +4610,7 @@ static PyObject *_wrap_pkgCacheDependency_Version_set(PyObject *self, PyObject * PyObject *resultobj; pkgCache::Dependency *arg1 = (pkgCache::Dependency *) 0 ; map_ptrloc arg2 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Oi:pkgCacheDependency_Version_set",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Dependency,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -4494,7 +4627,7 @@ static PyObject *_wrap_pkgCacheDependency_Version_get(PyObject *self, PyObject * PyObject *resultobj; pkgCache::Dependency *arg1 = (pkgCache::Dependency *) 0 ; map_ptrloc result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheDependency_Version_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Dependency,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -4511,7 +4644,7 @@ static PyObject *_wrap_pkgCacheDependency_Package_set(PyObject *self, PyObject * PyObject *resultobj; pkgCache::Dependency *arg1 = (pkgCache::Dependency *) 0 ; map_ptrloc arg2 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Oi:pkgCacheDependency_Package_set",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Dependency,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -4528,7 +4661,7 @@ static PyObject *_wrap_pkgCacheDependency_Package_get(PyObject *self, PyObject * PyObject *resultobj; pkgCache::Dependency *arg1 = (pkgCache::Dependency *) 0 ; map_ptrloc result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheDependency_Package_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Dependency,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -4545,7 +4678,7 @@ static PyObject *_wrap_pkgCacheDependency_NextDepends_set(PyObject *self, PyObje PyObject *resultobj; pkgCache::Dependency *arg1 = (pkgCache::Dependency *) 0 ; map_ptrloc arg2 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Oi:pkgCacheDependency_NextDepends_set",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Dependency,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -4562,7 +4695,7 @@ static PyObject *_wrap_pkgCacheDependency_NextDepends_get(PyObject *self, PyObje PyObject *resultobj; pkgCache::Dependency *arg1 = (pkgCache::Dependency *) 0 ; map_ptrloc result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheDependency_NextDepends_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Dependency,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -4579,7 +4712,7 @@ static PyObject *_wrap_pkgCacheDependency_NextRevDepends_set(PyObject *self, PyO PyObject *resultobj; pkgCache::Dependency *arg1 = (pkgCache::Dependency *) 0 ; map_ptrloc arg2 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Oi:pkgCacheDependency_NextRevDepends_set",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Dependency,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -4596,7 +4729,7 @@ static PyObject *_wrap_pkgCacheDependency_NextRevDepends_get(PyObject *self, PyO PyObject *resultobj; pkgCache::Dependency *arg1 = (pkgCache::Dependency *) 0 ; map_ptrloc result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheDependency_NextRevDepends_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Dependency,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -4613,7 +4746,7 @@ static PyObject *_wrap_pkgCacheDependency_ParentVer_set(PyObject *self, PyObject PyObject *resultobj; pkgCache::Dependency *arg1 = (pkgCache::Dependency *) 0 ; map_ptrloc arg2 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Oi:pkgCacheDependency_ParentVer_set",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Dependency,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -4630,7 +4763,7 @@ static PyObject *_wrap_pkgCacheDependency_ParentVer_get(PyObject *self, PyObject PyObject *resultobj; pkgCache::Dependency *arg1 = (pkgCache::Dependency *) 0 ; map_ptrloc result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheDependency_ParentVer_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Dependency,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -4647,7 +4780,7 @@ static PyObject *_wrap_pkgCacheDependency_ID_set(PyObject *self, PyObject *args) PyObject *resultobj; pkgCache::Dependency *arg1 = (pkgCache::Dependency *) 0 ; map_ptrloc arg2 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Oi:pkgCacheDependency_ID_set",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Dependency,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -4664,7 +4797,7 @@ static PyObject *_wrap_pkgCacheDependency_ID_get(PyObject *self, PyObject *args) PyObject *resultobj; pkgCache::Dependency *arg1 = (pkgCache::Dependency *) 0 ; map_ptrloc result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheDependency_ID_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Dependency,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -4681,8 +4814,8 @@ static PyObject *_wrap_pkgCacheDependency_Type_set(PyObject *self, PyObject *arg PyObject *resultobj; pkgCache::Dependency *arg1 = (pkgCache::Dependency *) 0 ; unsigned char arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCacheDependency_Type_set",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Dependency,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -4701,7 +4834,7 @@ static PyObject *_wrap_pkgCacheDependency_Type_get(PyObject *self, PyObject *arg PyObject *resultobj; pkgCache::Dependency *arg1 = (pkgCache::Dependency *) 0 ; unsigned char result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheDependency_Type_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Dependency,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -4718,8 +4851,8 @@ static PyObject *_wrap_pkgCacheDependency_CompareOp_set(PyObject *self, PyObject PyObject *resultobj; pkgCache::Dependency *arg1 = (pkgCache::Dependency *) 0 ; unsigned char arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCacheDependency_CompareOp_set",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Dependency,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -4738,7 +4871,7 @@ static PyObject *_wrap_pkgCacheDependency_CompareOp_get(PyObject *self, PyObject PyObject *resultobj; pkgCache::Dependency *arg1 = (pkgCache::Dependency *) 0 ; unsigned char result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheDependency_CompareOp_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Dependency,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -4768,7 +4901,7 @@ static PyObject *_wrap_new_pkgCacheDependency(PyObject *self, PyObject *args) { static PyObject *_wrap_delete_pkgCacheDependency(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache::Dependency *arg1 = (pkgCache::Dependency *) 0 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:delete_pkgCacheDependency",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Dependency,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -4792,7 +4925,7 @@ static PyObject *_wrap_pkgCacheProvides_ParentPkg_set(PyObject *self, PyObject * PyObject *resultobj; pkgCache::Provides *arg1 = (pkgCache::Provides *) 0 ; map_ptrloc arg2 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Oi:pkgCacheProvides_ParentPkg_set",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Provides,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -4809,7 +4942,7 @@ static PyObject *_wrap_pkgCacheProvides_ParentPkg_get(PyObject *self, PyObject * PyObject *resultobj; pkgCache::Provides *arg1 = (pkgCache::Provides *) 0 ; map_ptrloc result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheProvides_ParentPkg_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Provides,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -4826,7 +4959,7 @@ static PyObject *_wrap_pkgCacheProvides_Version_set(PyObject *self, PyObject *ar PyObject *resultobj; pkgCache::Provides *arg1 = (pkgCache::Provides *) 0 ; map_ptrloc arg2 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Oi:pkgCacheProvides_Version_set",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Provides,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -4843,7 +4976,7 @@ static PyObject *_wrap_pkgCacheProvides_Version_get(PyObject *self, PyObject *ar PyObject *resultobj; pkgCache::Provides *arg1 = (pkgCache::Provides *) 0 ; map_ptrloc result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheProvides_Version_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Provides,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -4860,7 +4993,7 @@ static PyObject *_wrap_pkgCacheProvides_ProvideVersion_set(PyObject *self, PyObj PyObject *resultobj; pkgCache::Provides *arg1 = (pkgCache::Provides *) 0 ; map_ptrloc arg2 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Oi:pkgCacheProvides_ProvideVersion_set",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Provides,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -4877,7 +5010,7 @@ static PyObject *_wrap_pkgCacheProvides_ProvideVersion_get(PyObject *self, PyObj PyObject *resultobj; pkgCache::Provides *arg1 = (pkgCache::Provides *) 0 ; map_ptrloc result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheProvides_ProvideVersion_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Provides,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -4894,7 +5027,7 @@ static PyObject *_wrap_pkgCacheProvides_NextProvides_set(PyObject *self, PyObjec PyObject *resultobj; pkgCache::Provides *arg1 = (pkgCache::Provides *) 0 ; map_ptrloc arg2 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Oi:pkgCacheProvides_NextProvides_set",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Provides,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -4911,7 +5044,7 @@ static PyObject *_wrap_pkgCacheProvides_NextProvides_get(PyObject *self, PyObjec PyObject *resultobj; pkgCache::Provides *arg1 = (pkgCache::Provides *) 0 ; map_ptrloc result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheProvides_NextProvides_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Provides,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -4928,7 +5061,7 @@ static PyObject *_wrap_pkgCacheProvides_NextPkgProv_set(PyObject *self, PyObject PyObject *resultobj; pkgCache::Provides *arg1 = (pkgCache::Provides *) 0 ; map_ptrloc arg2 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Oi:pkgCacheProvides_NextPkgProv_set",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Provides,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -4945,7 +5078,7 @@ static PyObject *_wrap_pkgCacheProvides_NextPkgProv_get(PyObject *self, PyObject PyObject *resultobj; pkgCache::Provides *arg1 = (pkgCache::Provides *) 0 ; map_ptrloc result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheProvides_NextPkgProv_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Provides,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -4975,7 +5108,7 @@ static PyObject *_wrap_new_pkgCacheProvides(PyObject *self, PyObject *args) { static PyObject *_wrap_delete_pkgCacheProvides(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache::Provides *arg1 = (pkgCache::Provides *) 0 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:delete_pkgCacheProvides",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__Provides,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -4999,7 +5132,7 @@ static PyObject *_wrap_pkgCacheStringItem_String_set(PyObject *self, PyObject *a PyObject *resultobj; pkgCache::StringItem *arg1 = (pkgCache::StringItem *) 0 ; map_ptrloc arg2 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Oi:pkgCacheStringItem_String_set",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__StringItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -5016,7 +5149,7 @@ static PyObject *_wrap_pkgCacheStringItem_String_get(PyObject *self, PyObject *a PyObject *resultobj; pkgCache::StringItem *arg1 = (pkgCache::StringItem *) 0 ; map_ptrloc result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheStringItem_String_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__StringItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -5033,7 +5166,7 @@ static PyObject *_wrap_pkgCacheStringItem_NextItem_set(PyObject *self, PyObject PyObject *resultobj; pkgCache::StringItem *arg1 = (pkgCache::StringItem *) 0 ; map_ptrloc arg2 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Oi:pkgCacheStringItem_NextItem_set",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__StringItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -5050,7 +5183,7 @@ static PyObject *_wrap_pkgCacheStringItem_NextItem_get(PyObject *self, PyObject PyObject *resultobj; pkgCache::StringItem *arg1 = (pkgCache::StringItem *) 0 ; map_ptrloc result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheStringItem_NextItem_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__StringItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -5080,7 +5213,7 @@ static PyObject *_wrap_new_pkgCacheStringItem(PyObject *self, PyObject *args) { static PyObject *_wrap_delete_pkgCacheStringItem(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache::StringItem *arg1 = (pkgCache::StringItem *) 0 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:delete_pkgCacheStringItem",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__StringItem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -5104,12 +5237,15 @@ static PyObject *_wrap_pkgDepCache_BuildGroupOrs(PyObject *self, PyObject *args) PyObject *resultobj; pkgDepCache *arg1 = (pkgDepCache *) 0 ; VerIterator *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgDepCache_BuildGroupOrs",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgDepCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_VerIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } (arg1)->BuildGroupOrs((VerIterator const &)*arg2); Py_INCREF(Py_None); resultobj = Py_None; @@ -5124,8 +5260,8 @@ static PyObject *_wrap_pkgDepCache_UpdateVerState(PyObject *self, PyObject *args pkgDepCache *arg1 = (pkgDepCache *) 0 ; PkgIterator arg2 ; PkgIterator *argp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgDepCache_UpdateVerState",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgDepCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -5144,7 +5280,7 @@ static PyObject *_wrap_pkgDepCache_Head(PyObject *self, PyObject *args) { PyObject *resultobj; pkgDepCache *arg1 = (pkgDepCache *) 0 ; Header *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgDepCache_Head",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgDepCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -5164,7 +5300,7 @@ static PyObject *_wrap_pkgDepCache_PkgIter(PyObject *self, PyObject *args) { PyObject *resultobj; pkgDepCache *arg1 = (pkgDepCache *) 0 ; PkgIterator result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgDepCache_PkgIter",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgDepCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -5187,16 +5323,17 @@ static PyObject *_wrap_pkgDepCache_FindPkg(PyObject *self, PyObject *args) { string *arg2 = 0 ; PkgIterator result; std::string temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgDepCache_FindPkg",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgDepCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; { if (PyString_Check(obj1)) { - temp2 = std::string(PyString_AsString(obj1)); + temp2 = std::string(PyString_AsString(obj1), + PyString_Size(obj1)); arg2 = &temp2; - }else { + } else { SWIG_exception(SWIG_TypeError, "string expected"); } } @@ -5217,7 +5354,7 @@ static PyObject *_wrap_pkgDepCache_GetCache(PyObject *self, PyObject *args) { PyObject *resultobj; pkgDepCache *arg1 = (pkgDepCache *) 0 ; pkgCache *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgDepCache_GetCache",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgDepCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -5237,7 +5374,7 @@ static PyObject *_wrap_pkgDepCache_VS(PyObject *self, PyObject *args) { PyObject *resultobj; pkgDepCache *arg1 = (pkgDepCache *) 0 ; pkgVersioningSystem *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgDepCache_VS",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgDepCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -5259,8 +5396,8 @@ static PyObject *_wrap_pkgDepCache_GetCandidateVer(PyObject *self, PyObject *arg PkgIterator arg2 ; VerIterator result; PkgIterator *argp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgDepCache_GetCandidateVer",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgDepCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -5285,8 +5422,8 @@ static PyObject *_wrap_pkgDepCache_IsImportantDep(PyObject *self, PyObject *args DepIterator arg2 ; bool result; DepIterator *argp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgDepCache_IsImportantDep",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgDepCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -5305,7 +5442,7 @@ static PyObject *_wrap_pkgDepCache_GetPolicy(PyObject *self, PyObject *args) { PyObject *resultobj; pkgDepCache *arg1 = (pkgDepCache *) 0 ; Policy *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgDepCache_GetPolicy",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgDepCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -5326,12 +5463,15 @@ static PyObject *_wrap_pkgDepCache_GetPkgPriority(PyObject *self, PyObject *args pkgDepCache *arg1 = (pkgDepCache *) 0 ; pkgCache::PkgIterator *arg2 = 0 ; short result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgDepCache_GetPkgPriority",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgDepCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_pkgCache__PkgIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } result = (short)(arg1)->GetPkgPriority((pkgCache::PkgIterator const &)*arg2); resultobj = PyInt_FromLong((long)result); @@ -5346,12 +5486,15 @@ static PyObject *_wrap_pkgDepCache___getitem____SWIG_0(PyObject *self, PyObject pkgDepCache *arg1 = (pkgDepCache *) 0 ; PkgIterator *arg2 = 0 ; StateCache *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgDepCache___getitem__",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgDepCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_PkgIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } { StateCache &_result_ref = (arg1)->operator []((PkgIterator const &)*arg2); result = (StateCache *) &_result_ref; @@ -5369,12 +5512,15 @@ static PyObject *_wrap_pkgDepCache___getitem____SWIG_1(PyObject *self, PyObject pkgDepCache *arg1 = (pkgDepCache *) 0 ; DepIterator *arg2 = 0 ; unsigned char *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgDepCache___getitem__",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgDepCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_DepIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } { unsigned char &_result_ref = (arg1)->operator []((DepIterator const &)*arg2); result = (unsigned char *) &_result_ref; @@ -5403,7 +5549,7 @@ static PyObject *_wrap_pkgDepCache___getitem__(PyObject *self, PyObject *args) { if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_pkgDepCache, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -5413,7 +5559,7 @@ static PyObject *_wrap_pkgDepCache___getitem__(PyObject *self, PyObject *args) { if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_PkgIterator, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -5429,7 +5575,7 @@ static PyObject *_wrap_pkgDepCache___getitem__(PyObject *self, PyObject *args) { if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_pkgDepCache, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -5439,7 +5585,7 @@ static PyObject *_wrap_pkgDepCache___getitem__(PyObject *self, PyObject *args) { if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_DepIterator, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -5459,15 +5605,18 @@ static PyObject *_wrap_pkgDepCache_MarkKeep(PyObject *self, PyObject *args) { pkgDepCache *arg1 = (pkgDepCache *) 0 ; PkgIterator *arg2 = 0 ; bool arg3 = (bool) false ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO|O:pkgDepCache_MarkKeep",&obj0,&obj1,&obj2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgDepCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_PkgIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } if (obj2) { - arg3 = (bool) PyInt_AsLong(obj2); + arg3 = PyInt_AsLong(obj2) ? true : false; if (PyErr_Occurred()) SWIG_fail; } (arg1)->MarkKeep((PkgIterator const &)*arg2,arg3); @@ -5484,15 +5633,18 @@ static PyObject *_wrap_pkgDepCache_MarkDelete(PyObject *self, PyObject *args) { pkgDepCache *arg1 = (pkgDepCache *) 0 ; PkgIterator *arg2 = 0 ; bool arg3 = (bool) false ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO|O:pkgDepCache_MarkDelete",&obj0,&obj1,&obj2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgDepCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_PkgIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } if (obj2) { - arg3 = (bool) PyInt_AsLong(obj2); + arg3 = PyInt_AsLong(obj2) ? true : false; if (PyErr_Occurred()) SWIG_fail; } (arg1)->MarkDelete((PkgIterator const &)*arg2,arg3); @@ -5510,16 +5662,19 @@ static PyObject *_wrap_pkgDepCache_MarkInstall(PyObject *self, PyObject *args) { PkgIterator *arg2 = 0 ; bool arg3 = (bool) true ; unsigned long arg4 = (unsigned long) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO|OO:pkgDepCache_MarkInstall",&obj0,&obj1,&obj2,&obj3)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgDepCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_PkgIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } if (obj2) { - arg3 = (bool) PyInt_AsLong(obj2); + arg3 = PyInt_AsLong(obj2) ? true : false; if (PyErr_Occurred()) SWIG_fail; } if (obj3) { @@ -5540,14 +5695,17 @@ static PyObject *_wrap_pkgDepCache_SetReInstall(PyObject *self, PyObject *args) pkgDepCache *arg1 = (pkgDepCache *) 0 ; PkgIterator *arg2 = 0 ; bool arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OOO:pkgDepCache_SetReInstall",&obj0,&obj1,&obj2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgDepCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_PkgIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - arg3 = (bool) PyInt_AsLong(obj2); + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } + arg3 = PyInt_AsLong(obj2) ? true : false; if (PyErr_Occurred()) SWIG_fail; (arg1)->SetReInstall((PkgIterator const &)*arg2,arg3); @@ -5563,8 +5721,8 @@ static PyObject *_wrap_pkgDepCache_SetCandidateVersion(PyObject *self, PyObject pkgDepCache *arg1 = (pkgDepCache *) 0 ; VerIterator arg2 ; VerIterator *argp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgDepCache_SetCandidateVersion",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgDepCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -5583,8 +5741,8 @@ static PyObject *_wrap_pkgDepCache_Update(PyObject *self, PyObject *args) { PyObject *resultobj; pkgDepCache *arg1 = (pkgDepCache *) 0 ; OpProgress *arg2 = (OpProgress *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O|O:pkgDepCache_Update",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgDepCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -5604,7 +5762,7 @@ static PyObject *_wrap_pkgDepCache_UsrSize(PyObject *self, PyObject *args) { PyObject *resultobj; pkgDepCache *arg1 = (pkgDepCache *) 0 ; double result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgDepCache_UsrSize",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgDepCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -5621,7 +5779,7 @@ static PyObject *_wrap_pkgDepCache_DebSize(PyObject *self, PyObject *args) { PyObject *resultobj; pkgDepCache *arg1 = (pkgDepCache *) 0 ; double result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgDepCache_DebSize",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgDepCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -5638,7 +5796,7 @@ static PyObject *_wrap_pkgDepCache_DelCount(PyObject *self, PyObject *args) { PyObject *resultobj; pkgDepCache *arg1 = (pkgDepCache *) 0 ; unsigned long result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgDepCache_DelCount",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgDepCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -5655,7 +5813,7 @@ static PyObject *_wrap_pkgDepCache_KeepCount(PyObject *self, PyObject *args) { PyObject *resultobj; pkgDepCache *arg1 = (pkgDepCache *) 0 ; unsigned long result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgDepCache_KeepCount",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgDepCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -5672,7 +5830,7 @@ static PyObject *_wrap_pkgDepCache_InstCount(PyObject *self, PyObject *args) { PyObject *resultobj; pkgDepCache *arg1 = (pkgDepCache *) 0 ; unsigned long result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgDepCache_InstCount",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgDepCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -5689,7 +5847,7 @@ static PyObject *_wrap_pkgDepCache_BrokenCount(PyObject *self, PyObject *args) { PyObject *resultobj; pkgDepCache *arg1 = (pkgDepCache *) 0 ; unsigned long result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgDepCache_BrokenCount",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgDepCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -5706,7 +5864,7 @@ static PyObject *_wrap_pkgDepCache_BadCount(PyObject *self, PyObject *args) { PyObject *resultobj; pkgDepCache *arg1 = (pkgDepCache *) 0 ; unsigned long result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgDepCache_BadCount",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgDepCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -5724,8 +5882,8 @@ static PyObject *_wrap_pkgDepCache_Init(PyObject *self, PyObject *args) { pkgDepCache *arg1 = (pkgDepCache *) 0 ; OpProgress *arg2 = (OpProgress *) 0 ; bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgDepCache_Init",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgDepCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -5744,8 +5902,8 @@ static PyObject *_wrap_new_pkgDepCache(PyObject *self, PyObject *args) { pkgCache *arg1 = (pkgCache *) 0 ; Policy *arg2 = (Policy *) 0 ; pkgDepCache *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O|O:new_pkgDepCache",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -5764,7 +5922,7 @@ static PyObject *_wrap_new_pkgDepCache(PyObject *self, PyObject *args) { static PyObject *_wrap_delete_pkgDepCache(PyObject *self, PyObject *args) { PyObject *resultobj; pkgDepCache *arg1 = (pkgDepCache *) 0 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:delete_pkgDepCache",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgDepCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -5788,7 +5946,7 @@ static PyObject *_wrap_pkgDepCacheStateCache_CandVersion_get(PyObject *self, PyO PyObject *resultobj; pkgDepCache::StateCache *arg1 = (pkgDepCache::StateCache *) 0 ; char *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgDepCacheStateCache_CandVersion_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgDepCache__StateCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -5805,7 +5963,7 @@ static PyObject *_wrap_pkgDepCacheStateCache_CurVersion_get(PyObject *self, PyOb PyObject *resultobj; pkgDepCache::StateCache *arg1 = (pkgDepCache::StateCache *) 0 ; char *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgDepCacheStateCache_CurVersion_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgDepCache__StateCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -5822,8 +5980,8 @@ static PyObject *_wrap_pkgDepCacheStateCache_CandidateVer_set(PyObject *self, Py PyObject *resultobj; pkgDepCache::StateCache *arg1 = (pkgDepCache::StateCache *) 0 ; Version *arg2 = (Version *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgDepCacheStateCache_CandidateVer_set",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgDepCache__StateCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -5841,7 +5999,7 @@ static PyObject *_wrap_pkgDepCacheStateCache_CandidateVer_get(PyObject *self, Py PyObject *resultobj; pkgDepCache::StateCache *arg1 = (pkgDepCache::StateCache *) 0 ; Version *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgDepCacheStateCache_CandidateVer_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgDepCache__StateCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -5858,8 +6016,8 @@ static PyObject *_wrap_pkgDepCacheStateCache_InstallVer_set(PyObject *self, PyOb PyObject *resultobj; pkgDepCache::StateCache *arg1 = (pkgDepCache::StateCache *) 0 ; Version *arg2 = (Version *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgDepCacheStateCache_InstallVer_set",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgDepCache__StateCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -5877,7 +6035,7 @@ static PyObject *_wrap_pkgDepCacheStateCache_InstallVer_get(PyObject *self, PyOb PyObject *resultobj; pkgDepCache::StateCache *arg1 = (pkgDepCache::StateCache *) 0 ; Version *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgDepCacheStateCache_InstallVer_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgDepCache__StateCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -5894,8 +6052,8 @@ static PyObject *_wrap_pkgDepCacheStateCache_Flags_set(PyObject *self, PyObject PyObject *resultobj; pkgDepCache::StateCache *arg1 = (pkgDepCache::StateCache *) 0 ; unsigned short arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgDepCacheStateCache_Flags_set",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgDepCache__StateCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -5914,7 +6072,7 @@ static PyObject *_wrap_pkgDepCacheStateCache_Flags_get(PyObject *self, PyObject PyObject *resultobj; pkgDepCache::StateCache *arg1 = (pkgDepCache::StateCache *) 0 ; unsigned short result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgDepCacheStateCache_Flags_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgDepCache__StateCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -5931,8 +6089,8 @@ static PyObject *_wrap_pkgDepCacheStateCache_iFlags_set(PyObject *self, PyObject PyObject *resultobj; pkgDepCache::StateCache *arg1 = (pkgDepCache::StateCache *) 0 ; unsigned short arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgDepCacheStateCache_iFlags_set",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgDepCache__StateCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -5951,7 +6109,7 @@ static PyObject *_wrap_pkgDepCacheStateCache_iFlags_get(PyObject *self, PyObject PyObject *resultobj; pkgDepCache::StateCache *arg1 = (pkgDepCache::StateCache *) 0 ; unsigned short result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgDepCacheStateCache_iFlags_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgDepCache__StateCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -5968,7 +6126,7 @@ static PyObject *_wrap_pkgDepCacheStateCache_Status_set(PyObject *self, PyObject PyObject *resultobj; pkgDepCache::StateCache *arg1 = (pkgDepCache::StateCache *) 0 ; signed char arg2 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Ob:pkgDepCacheStateCache_Status_set",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgDepCache__StateCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -5985,7 +6143,7 @@ static PyObject *_wrap_pkgDepCacheStateCache_Status_get(PyObject *self, PyObject PyObject *resultobj; pkgDepCache::StateCache *arg1 = (pkgDepCache::StateCache *) 0 ; signed char result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgDepCacheStateCache_Status_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgDepCache__StateCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -6002,8 +6160,8 @@ static PyObject *_wrap_pkgDepCacheStateCache_Mode_set(PyObject *self, PyObject * PyObject *resultobj; pkgDepCache::StateCache *arg1 = (pkgDepCache::StateCache *) 0 ; unsigned char arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgDepCacheStateCache_Mode_set",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgDepCache__StateCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -6022,7 +6180,7 @@ static PyObject *_wrap_pkgDepCacheStateCache_Mode_get(PyObject *self, PyObject * PyObject *resultobj; pkgDepCache::StateCache *arg1 = (pkgDepCache::StateCache *) 0 ; unsigned char result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgDepCacheStateCache_Mode_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgDepCache__StateCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -6039,8 +6197,8 @@ static PyObject *_wrap_pkgDepCacheStateCache_DepState_set(PyObject *self, PyObje PyObject *resultobj; pkgDepCache::StateCache *arg1 = (pkgDepCache::StateCache *) 0 ; unsigned char arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgDepCacheStateCache_DepState_set",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgDepCache__StateCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -6059,7 +6217,7 @@ static PyObject *_wrap_pkgDepCacheStateCache_DepState_get(PyObject *self, PyObje PyObject *resultobj; pkgDepCache::StateCache *arg1 = (pkgDepCache::StateCache *) 0 ; unsigned char result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgDepCacheStateCache_DepState_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgDepCache__StateCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -6077,7 +6235,7 @@ static PyObject *_wrap_pkgDepCacheStateCache_StripEpoch(PyObject *self, PyObject pkgDepCache::StateCache *arg1 = (pkgDepCache::StateCache *) 0 ; char *arg2 ; char *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Os:pkgDepCacheStateCache_StripEpoch",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgDepCache__StateCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -6096,15 +6254,18 @@ static PyObject *_wrap_pkgDepCacheStateCache_Update(PyObject *self, PyObject *ar PkgIterator arg2 ; pkgCache *arg3 = 0 ; PkgIterator *argp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OOO:pkgDepCacheStateCache_Update",&obj0,&obj1,&obj2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgDepCache__StateCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_PkgIterator,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; arg2 = *argp2; if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_pkgCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg3 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } (arg1)->Update(arg2,*arg3); Py_INCREF(Py_None); resultobj = Py_None; @@ -6118,7 +6279,7 @@ static PyObject *_wrap_pkgDepCacheStateCache_NewInstall(PyObject *self, PyObject PyObject *resultobj; pkgDepCache::StateCache *arg1 = (pkgDepCache::StateCache *) 0 ; bool result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgDepCacheStateCache_NewInstall",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgDepCache__StateCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -6135,7 +6296,7 @@ static PyObject *_wrap_pkgDepCacheStateCache_Delete(PyObject *self, PyObject *ar PyObject *resultobj; pkgDepCache::StateCache *arg1 = (pkgDepCache::StateCache *) 0 ; bool result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgDepCacheStateCache_Delete",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgDepCache__StateCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -6152,7 +6313,7 @@ static PyObject *_wrap_pkgDepCacheStateCache_Keep(PyObject *self, PyObject *args PyObject *resultobj; pkgDepCache::StateCache *arg1 = (pkgDepCache::StateCache *) 0 ; bool result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgDepCacheStateCache_Keep",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgDepCache__StateCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -6169,7 +6330,7 @@ static PyObject *_wrap_pkgDepCacheStateCache_Upgrade(PyObject *self, PyObject *a PyObject *resultobj; pkgDepCache::StateCache *arg1 = (pkgDepCache::StateCache *) 0 ; bool result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgDepCacheStateCache_Upgrade",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgDepCache__StateCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -6186,7 +6347,7 @@ static PyObject *_wrap_pkgDepCacheStateCache_Upgradable(PyObject *self, PyObject PyObject *resultobj; pkgDepCache::StateCache *arg1 = (pkgDepCache::StateCache *) 0 ; bool result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgDepCacheStateCache_Upgradable",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgDepCache__StateCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -6203,7 +6364,7 @@ static PyObject *_wrap_pkgDepCacheStateCache_Downgrade(PyObject *self, PyObject PyObject *resultobj; pkgDepCache::StateCache *arg1 = (pkgDepCache::StateCache *) 0 ; bool result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgDepCacheStateCache_Downgrade",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgDepCache__StateCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -6220,7 +6381,7 @@ static PyObject *_wrap_pkgDepCacheStateCache_Held(PyObject *self, PyObject *args PyObject *resultobj; pkgDepCache::StateCache *arg1 = (pkgDepCache::StateCache *) 0 ; bool result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgDepCacheStateCache_Held",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgDepCache__StateCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -6237,7 +6398,7 @@ static PyObject *_wrap_pkgDepCacheStateCache_NowBroken(PyObject *self, PyObject PyObject *resultobj; pkgDepCache::StateCache *arg1 = (pkgDepCache::StateCache *) 0 ; bool result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgDepCacheStateCache_NowBroken",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgDepCache__StateCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -6254,7 +6415,7 @@ static PyObject *_wrap_pkgDepCacheStateCache_InstBroken(PyObject *self, PyObject PyObject *resultobj; pkgDepCache::StateCache *arg1 = (pkgDepCache::StateCache *) 0 ; bool result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgDepCacheStateCache_InstBroken",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgDepCache__StateCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -6271,7 +6432,7 @@ static PyObject *_wrap_pkgDepCacheStateCache_Install(PyObject *self, PyObject *a PyObject *resultobj; pkgDepCache::StateCache *arg1 = (pkgDepCache::StateCache *) 0 ; bool result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgDepCacheStateCache_Install",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgDepCache__StateCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -6289,12 +6450,15 @@ static PyObject *_wrap_pkgDepCacheStateCache_InstVerIter(PyObject *self, PyObjec pkgDepCache::StateCache *arg1 = (pkgDepCache::StateCache *) 0 ; pkgCache *arg2 = 0 ; VerIterator result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgDepCacheStateCache_InstVerIter",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgDepCache__StateCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_pkgCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } result = (arg1)->InstVerIter(*arg2); { @@ -6313,12 +6477,15 @@ static PyObject *_wrap_pkgDepCacheStateCache_CandidateVerIter(PyObject *self, Py pkgDepCache::StateCache *arg1 = (pkgDepCache::StateCache *) 0 ; pkgCache *arg2 = 0 ; VerIterator result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgDepCacheStateCache_CandidateVerIter",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgDepCache__StateCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_pkgCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } result = (arg1)->CandidateVerIter(*arg2); { @@ -6349,7 +6516,7 @@ static PyObject *_wrap_new_pkgDepCacheStateCache(PyObject *self, PyObject *args) static PyObject *_wrap_delete_pkgDepCacheStateCache(PyObject *self, PyObject *args) { PyObject *resultobj; pkgDepCache::StateCache *arg1 = (pkgDepCache::StateCache *) 0 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:delete_pkgDepCacheStateCache",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgDepCache__StateCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -6373,7 +6540,7 @@ static PyObject *_wrap_pkgCachePkgIterator___nonzero__(PyObject *self, PyObject PyObject *resultobj; pkgCache::PkgIterator *arg1 = (pkgCache::PkgIterator *) 0 ; bool result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePkgIterator___nonzero__",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -6390,7 +6557,7 @@ static PyObject *_wrap_pkgCachePkgIterator_next(PyObject *self, PyObject *args) PyObject *resultobj; pkgCache::PkgIterator *arg1 = (pkgCache::PkgIterator *) 0 ; pkgCache::PkgIterator *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePkgIterator_next",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -6411,7 +6578,7 @@ static PyObject *_wrap_pkgCachePkgIterator___iter__(PyObject *self, PyObject *ar PyObject *resultobj; pkgCache::PkgIterator *arg1 = (pkgCache::PkgIterator *) 0 ; pkgCache::PkgIterator *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePkgIterator___iter__",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -6428,7 +6595,7 @@ static PyObject *_wrap_pkgCachePkgIterator_end(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache::PkgIterator *arg1 = (pkgCache::PkgIterator *) 0 ; bool result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePkgIterator_end",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -6446,12 +6613,15 @@ static PyObject *_wrap_pkgCachePkgIterator___eq__(PyObject *self, PyObject *args pkgCache::PkgIterator *arg1 = (pkgCache::PkgIterator *) 0 ; PkgIterator *arg2 = 0 ; bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCachePkgIterator___eq__",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_PkgIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } result = (bool)((pkgCache::PkgIterator const *)arg1)->operator ==((PkgIterator const &)*arg2); resultobj = PyInt_FromLong((long)result); @@ -6466,12 +6636,15 @@ static PyObject *_wrap_pkgCachePkgIterator___ne__(PyObject *self, PyObject *args pkgCache::PkgIterator *arg1 = (pkgCache::PkgIterator *) 0 ; PkgIterator *arg2 = 0 ; bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCachePkgIterator___ne__",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_PkgIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } result = (bool)((pkgCache::PkgIterator const *)arg1)->operator !=((PkgIterator const &)*arg2); resultobj = PyInt_FromLong((long)result); @@ -6485,7 +6658,7 @@ static PyObject *_wrap_pkgCachePkgIterator___deref____SWIG_0(PyObject *self, PyO PyObject *resultobj; pkgCache::PkgIterator *arg1 = (pkgCache::PkgIterator *) 0 ; Package *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePkgIterator___deref__",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -6502,7 +6675,7 @@ static PyObject *_wrap_pkgCachePkgIterator___deref____SWIG_1(PyObject *self, PyO PyObject *resultobj; pkgCache::PkgIterator *arg1 = (pkgCache::PkgIterator *) 0 ; Package *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePkgIterator___deref__",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -6531,7 +6704,7 @@ static PyObject *_wrap_pkgCachePkgIterator___deref__(PyObject *self, PyObject *a if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_pkgCache__PkgIterator, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -6546,7 +6719,7 @@ static PyObject *_wrap_pkgCachePkgIterator___deref__(PyObject *self, PyObject *a if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_pkgCache__PkgIterator, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -6564,7 +6737,7 @@ static PyObject *_wrap_pkgCachePkgIterator___mul__(PyObject *self, PyObject *arg PyObject *resultobj; pkgCache::PkgIterator *arg1 = (pkgCache::PkgIterator *) 0 ; Package *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePkgIterator___mul__",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -6584,7 +6757,7 @@ static PyObject *_wrap_pkgCachePkgIterator_Package(PyObject *self, PyObject *arg PyObject *resultobj; pkgCache::PkgIterator *arg1 = (pkgCache::PkgIterator *) 0 ; Package *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePkgIterator_Package",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -6601,7 +6774,7 @@ static PyObject *_wrap_pkgCachePkgIterator_Cache(PyObject *self, PyObject *args) PyObject *resultobj; pkgCache::PkgIterator *arg1 = (pkgCache::PkgIterator *) 0 ; pkgCache *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePkgIterator_Cache",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -6618,7 +6791,7 @@ static PyObject *_wrap_pkgCachePkgIterator_Name(PyObject *self, PyObject *args) PyObject *resultobj; pkgCache::PkgIterator *arg1 = (pkgCache::PkgIterator *) 0 ; char *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePkgIterator_Name",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -6635,7 +6808,7 @@ static PyObject *_wrap_pkgCachePkgIterator_Section(PyObject *self, PyObject *arg PyObject *resultobj; pkgCache::PkgIterator *arg1 = (pkgCache::PkgIterator *) 0 ; char *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePkgIterator_Section",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -6652,7 +6825,7 @@ static PyObject *_wrap_pkgCachePkgIterator_Purge(PyObject *self, PyObject *args) PyObject *resultobj; pkgCache::PkgIterator *arg1 = (pkgCache::PkgIterator *) 0 ; bool result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePkgIterator_Purge",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -6669,7 +6842,7 @@ static PyObject *_wrap_pkgCachePkgIterator_VersionList(PyObject *self, PyObject PyObject *resultobj; pkgCache::PkgIterator *arg1 = (pkgCache::PkgIterator *) 0 ; VerIterator result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePkgIterator_VersionList",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -6690,7 +6863,7 @@ static PyObject *_wrap_pkgCachePkgIterator_CurrentVer(PyObject *self, PyObject * PyObject *resultobj; pkgCache::PkgIterator *arg1 = (pkgCache::PkgIterator *) 0 ; VerIterator result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePkgIterator_CurrentVer",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -6711,7 +6884,7 @@ static PyObject *_wrap_pkgCachePkgIterator_RevDependsList(PyObject *self, PyObje PyObject *resultobj; pkgCache::PkgIterator *arg1 = (pkgCache::PkgIterator *) 0 ; DepIterator result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePkgIterator_RevDependsList",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -6732,7 +6905,7 @@ static PyObject *_wrap_pkgCachePkgIterator_ProvidesList(PyObject *self, PyObject PyObject *resultobj; pkgCache::PkgIterator *arg1 = (pkgCache::PkgIterator *) 0 ; SwigValueWrapper< PrvIterator > result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePkgIterator_ProvidesList",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -6753,7 +6926,7 @@ static PyObject *_wrap_pkgCachePkgIterator_Index(PyObject *self, PyObject *args) PyObject *resultobj; pkgCache::PkgIterator *arg1 = (pkgCache::PkgIterator *) 0 ; unsigned long result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePkgIterator_Index",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -6770,7 +6943,7 @@ static PyObject *_wrap_pkgCachePkgIterator_State(PyObject *self, PyObject *args) PyObject *resultobj; pkgCache::PkgIterator *arg1 = (pkgCache::PkgIterator *) 0 ; int result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePkgIterator_State",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -6788,11 +6961,14 @@ static PyObject *_wrap_new_pkgCachePkgIterator__SWIG_0(PyObject *self, PyObject pkgCache *arg1 = 0 ; Package *arg2 = (Package *) 0 ; pkgCache::PkgIterator *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:new_pkgCachePkgIterator",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg1 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_Package,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; result = (pkgCache::PkgIterator *)new pkgCache::PkgIterator(*arg1,arg2); @@ -6836,7 +7012,7 @@ static PyObject *_wrap_new_pkgCachePkgIterator(PyObject *self, PyObject *args) { if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_pkgCache, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -6846,7 +7022,7 @@ static PyObject *_wrap_new_pkgCachePkgIterator(PyObject *self, PyObject *args) { if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_Package, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -6861,28 +7037,11 @@ static PyObject *_wrap_new_pkgCachePkgIterator(PyObject *self, PyObject *args) { } -static PyObject *_wrap_pkgCachePkgIterator_NextPackage_set(PyObject *self, PyObject *args) { - PyObject *resultobj; - pkgCache::PkgIterator *arg1 = (pkgCache::PkgIterator *) 0 ; - map_ptrloc arg2 ; - PyObject * obj0 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"Oi:pkgCachePkgIterator_NextPackage_set",&obj0,&arg2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - if (arg1) (*arg1)->NextPackage = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - static PyObject *_wrap_pkgCachePkgIterator_NextPackage_get(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache::PkgIterator *arg1 = (pkgCache::PkgIterator *) 0 ; map_ptrloc result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePkgIterator_NextPackage_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -6895,28 +7054,11 @@ static PyObject *_wrap_pkgCachePkgIterator_NextPackage_get(PyObject *self, PyObj } -static PyObject *_wrap_pkgCachePkgIterator_RevDepends_set(PyObject *self, PyObject *args) { - PyObject *resultobj; - pkgCache::PkgIterator *arg1 = (pkgCache::PkgIterator *) 0 ; - map_ptrloc arg2 ; - PyObject * obj0 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"Oi:pkgCachePkgIterator_RevDepends_set",&obj0,&arg2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - if (arg1) (*arg1)->RevDepends = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - static PyObject *_wrap_pkgCachePkgIterator_RevDepends_get(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache::PkgIterator *arg1 = (pkgCache::PkgIterator *) 0 ; map_ptrloc result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePkgIterator_RevDepends_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -6929,31 +7071,11 @@ static PyObject *_wrap_pkgCachePkgIterator_RevDepends_get(PyObject *self, PyObje } -static PyObject *_wrap_pkgCachePkgIterator_SelectedState_set(PyObject *self, PyObject *args) { - PyObject *resultobj; - pkgCache::PkgIterator *arg1 = (pkgCache::PkgIterator *) 0 ; - unsigned char arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:pkgCachePkgIterator_SelectedState_set",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - arg2 = (unsigned char) PyInt_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (*arg1)->SelectedState = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - static PyObject *_wrap_pkgCachePkgIterator_SelectedState_get(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache::PkgIterator *arg1 = (pkgCache::PkgIterator *) 0 ; unsigned char result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePkgIterator_SelectedState_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -6966,31 +7088,11 @@ static PyObject *_wrap_pkgCachePkgIterator_SelectedState_get(PyObject *self, PyO } -static PyObject *_wrap_pkgCachePkgIterator_InstState_set(PyObject *self, PyObject *args) { - PyObject *resultobj; - pkgCache::PkgIterator *arg1 = (pkgCache::PkgIterator *) 0 ; - unsigned char arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:pkgCachePkgIterator_InstState_set",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - arg2 = (unsigned char) PyInt_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (*arg1)->InstState = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - static PyObject *_wrap_pkgCachePkgIterator_InstState_get(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache::PkgIterator *arg1 = (pkgCache::PkgIterator *) 0 ; unsigned char result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePkgIterator_InstState_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -7003,31 +7105,11 @@ static PyObject *_wrap_pkgCachePkgIterator_InstState_get(PyObject *self, PyObjec } -static PyObject *_wrap_pkgCachePkgIterator_CurrentState_set(PyObject *self, PyObject *args) { - PyObject *resultobj; - pkgCache::PkgIterator *arg1 = (pkgCache::PkgIterator *) 0 ; - unsigned char arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:pkgCachePkgIterator_CurrentState_set",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - arg2 = (unsigned char) PyInt_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (*arg1)->CurrentState = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - static PyObject *_wrap_pkgCachePkgIterator_CurrentState_get(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache::PkgIterator *arg1 = (pkgCache::PkgIterator *) 0 ; unsigned char result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePkgIterator_CurrentState_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -7040,31 +7122,11 @@ static PyObject *_wrap_pkgCachePkgIterator_CurrentState_get(PyObject *self, PyOb } -static PyObject *_wrap_pkgCachePkgIterator_ID_set(PyObject *self, PyObject *args) { - PyObject *resultobj; - pkgCache::PkgIterator *arg1 = (pkgCache::PkgIterator *) 0 ; - unsigned short arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:pkgCachePkgIterator_ID_set",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - arg2 = (unsigned short) PyInt_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (*arg1)->ID = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - static PyObject *_wrap_pkgCachePkgIterator_ID_get(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache::PkgIterator *arg1 = (pkgCache::PkgIterator *) 0 ; unsigned short result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePkgIterator_ID_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -7077,31 +7139,11 @@ static PyObject *_wrap_pkgCachePkgIterator_ID_get(PyObject *self, PyObject *args } -static PyObject *_wrap_pkgCachePkgIterator_Flags_set(PyObject *self, PyObject *args) { - PyObject *resultobj; - pkgCache::PkgIterator *arg1 = (pkgCache::PkgIterator *) 0 ; - unsigned long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:pkgCachePkgIterator_Flags_set",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - arg2 = (unsigned long) PyInt_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (*arg1)->Flags = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - static PyObject *_wrap_pkgCachePkgIterator_Flags_get(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache::PkgIterator *arg1 = (pkgCache::PkgIterator *) 0 ; unsigned long result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePkgIterator_Flags_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -7117,7 +7159,7 @@ static PyObject *_wrap_pkgCachePkgIterator_Flags_get(PyObject *self, PyObject *a static PyObject *_wrap_delete_pkgCachePkgIterator(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache::PkgIterator *arg1 = (pkgCache::PkgIterator *) 0 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:delete_pkgCachePkgIterator",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -7141,7 +7183,7 @@ static PyObject *_wrap_pkgCacheVerIterator___nonzero__(PyObject *self, PyObject PyObject *resultobj; pkgCache::VerIterator *arg1 = (pkgCache::VerIterator *) 0 ; bool result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheVerIterator___nonzero__",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -7158,7 +7200,7 @@ static PyObject *_wrap_pkgCacheVerIterator_next(PyObject *self, PyObject *args) PyObject *resultobj; pkgCache::VerIterator *arg1 = (pkgCache::VerIterator *) 0 ; pkgCache::VerIterator *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheVerIterator_next",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -7179,7 +7221,7 @@ static PyObject *_wrap_pkgCacheVerIterator___iter__(PyObject *self, PyObject *ar PyObject *resultobj; pkgCache::VerIterator *arg1 = (pkgCache::VerIterator *) 0 ; pkgCache::VerIterator *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheVerIterator___iter__",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -7196,7 +7238,7 @@ static PyObject *_wrap_pkgCacheVerIterator_end(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache::VerIterator *arg1 = (pkgCache::VerIterator *) 0 ; bool result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheVerIterator_end",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -7213,12 +7255,15 @@ static PyObject *_wrap_pkgCacheVerIterator_assign(PyObject *self, PyObject *args PyObject *resultobj; pkgCache::VerIterator *arg1 = (pkgCache::VerIterator *) 0 ; VerIterator *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCacheVerIterator_assign",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_VerIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } (arg1)->operator =((VerIterator const &)*arg2); Py_INCREF(Py_None); resultobj = Py_None; @@ -7233,12 +7278,15 @@ static PyObject *_wrap_pkgCacheVerIterator___eq__(PyObject *self, PyObject *args pkgCache::VerIterator *arg1 = (pkgCache::VerIterator *) 0 ; VerIterator *arg2 = 0 ; bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCacheVerIterator___eq__",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_VerIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } result = (bool)((pkgCache::VerIterator const *)arg1)->operator ==((VerIterator const &)*arg2); resultobj = PyInt_FromLong((long)result); @@ -7253,12 +7301,15 @@ static PyObject *_wrap_pkgCacheVerIterator___ne__(PyObject *self, PyObject *args pkgCache::VerIterator *arg1 = (pkgCache::VerIterator *) 0 ; VerIterator *arg2 = 0 ; bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCacheVerIterator___ne__",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_VerIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } result = (bool)((pkgCache::VerIterator const *)arg1)->operator !=((VerIterator const &)*arg2); resultobj = PyInt_FromLong((long)result); @@ -7273,12 +7324,15 @@ static PyObject *_wrap_pkgCacheVerIterator_CompareVer(PyObject *self, PyObject * pkgCache::VerIterator *arg1 = (pkgCache::VerIterator *) 0 ; VerIterator *arg2 = 0 ; int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCacheVerIterator_CompareVer",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_VerIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } result = (int)((pkgCache::VerIterator const *)arg1)->CompareVer((VerIterator const &)*arg2); resultobj = PyInt_FromLong((long)result); @@ -7292,7 +7346,7 @@ static PyObject *_wrap_pkgCacheVerIterator___deref____SWIG_0(PyObject *self, PyO PyObject *resultobj; pkgCache::VerIterator *arg1 = (pkgCache::VerIterator *) 0 ; Version *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheVerIterator___deref__",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -7309,7 +7363,7 @@ static PyObject *_wrap_pkgCacheVerIterator___deref____SWIG_1(PyObject *self, PyO PyObject *resultobj; pkgCache::VerIterator *arg1 = (pkgCache::VerIterator *) 0 ; Version *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheVerIterator___deref__",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -7338,7 +7392,7 @@ static PyObject *_wrap_pkgCacheVerIterator___deref__(PyObject *self, PyObject *a if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_pkgCache__VerIterator, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -7353,7 +7407,7 @@ static PyObject *_wrap_pkgCacheVerIterator___deref__(PyObject *self, PyObject *a if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_pkgCache__VerIterator, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -7371,7 +7425,7 @@ static PyObject *_wrap_pkgCacheVerIterator___mul____SWIG_0(PyObject *self, PyObj PyObject *resultobj; pkgCache::VerIterator *arg1 = (pkgCache::VerIterator *) 0 ; Version *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheVerIterator___mul__",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -7391,7 +7445,7 @@ static PyObject *_wrap_pkgCacheVerIterator___mul____SWIG_1(PyObject *self, PyObj PyObject *resultobj; pkgCache::VerIterator *arg1 = (pkgCache::VerIterator *) 0 ; Version *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheVerIterator___mul__",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -7423,7 +7477,7 @@ static PyObject *_wrap_pkgCacheVerIterator___mul__(PyObject *self, PyObject *arg if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_pkgCache__VerIterator, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -7438,7 +7492,7 @@ static PyObject *_wrap_pkgCacheVerIterator___mul__(PyObject *self, PyObject *arg if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_pkgCache__VerIterator, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -7456,7 +7510,7 @@ static PyObject *_wrap_pkgCacheVerIterator_Version(PyObject *self, PyObject *arg PyObject *resultobj; pkgCache::VerIterator *arg1 = (pkgCache::VerIterator *) 0 ; Version *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheVerIterator_Version",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -7473,7 +7527,7 @@ static PyObject *_wrap_pkgCacheVerIterator_Cache(PyObject *self, PyObject *args) PyObject *resultobj; pkgCache::VerIterator *arg1 = (pkgCache::VerIterator *) 0 ; pkgCache *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheVerIterator_Cache",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -7490,7 +7544,7 @@ static PyObject *_wrap_pkgCacheVerIterator_VerStr(PyObject *self, PyObject *args PyObject *resultobj; pkgCache::VerIterator *arg1 = (pkgCache::VerIterator *) 0 ; char *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheVerIterator_VerStr",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -7507,7 +7561,7 @@ static PyObject *_wrap_pkgCacheVerIterator_Section(PyObject *self, PyObject *arg PyObject *resultobj; pkgCache::VerIterator *arg1 = (pkgCache::VerIterator *) 0 ; char *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheVerIterator_Section",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -7524,7 +7578,7 @@ static PyObject *_wrap_pkgCacheVerIterator_Arch(PyObject *self, PyObject *args) PyObject *resultobj; pkgCache::VerIterator *arg1 = (pkgCache::VerIterator *) 0 ; char *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheVerIterator_Arch",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -7541,7 +7595,7 @@ static PyObject *_wrap_pkgCacheVerIterator_ParentPkg(PyObject *self, PyObject *a PyObject *resultobj; pkgCache::VerIterator *arg1 = (pkgCache::VerIterator *) 0 ; PkgIterator result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheVerIterator_ParentPkg",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -7562,7 +7616,7 @@ static PyObject *_wrap_pkgCacheVerIterator_DependsList(PyObject *self, PyObject PyObject *resultobj; pkgCache::VerIterator *arg1 = (pkgCache::VerIterator *) 0 ; DepIterator result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheVerIterator_DependsList",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -7583,7 +7637,7 @@ static PyObject *_wrap_pkgCacheVerIterator_ProvidesList(PyObject *self, PyObject PyObject *resultobj; pkgCache::VerIterator *arg1 = (pkgCache::VerIterator *) 0 ; SwigValueWrapper< PrvIterator > result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheVerIterator_ProvidesList",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -7604,7 +7658,7 @@ static PyObject *_wrap_pkgCacheVerIterator_FileList(PyObject *self, PyObject *ar PyObject *resultobj; pkgCache::VerIterator *arg1 = (pkgCache::VerIterator *) 0 ; VerFileIterator result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheVerIterator_FileList",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -7625,7 +7679,7 @@ static PyObject *_wrap_pkgCacheVerIterator_Index(PyObject *self, PyObject *args) PyObject *resultobj; pkgCache::VerIterator *arg1 = (pkgCache::VerIterator *) 0 ; unsigned long result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheVerIterator_Index",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -7642,7 +7696,7 @@ static PyObject *_wrap_pkgCacheVerIterator_Downloadable(PyObject *self, PyObject PyObject *resultobj; pkgCache::VerIterator *arg1 = (pkgCache::VerIterator *) 0 ; bool result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheVerIterator_Downloadable",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -7659,7 +7713,7 @@ static PyObject *_wrap_pkgCacheVerIterator_PriorityType(PyObject *self, PyObject PyObject *resultobj; pkgCache::VerIterator *arg1 = (pkgCache::VerIterator *) 0 ; char *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheVerIterator_PriorityType",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -7676,14 +7730,14 @@ static PyObject *_wrap_pkgCacheVerIterator_RelStr(PyObject *self, PyObject *args PyObject *resultobj; pkgCache::VerIterator *arg1 = (pkgCache::VerIterator *) 0 ; string result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheVerIterator_RelStr",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; result = (arg1)->RelStr(); { - resultobj = PyString_FromString((&result)->c_str()); + resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); } return resultobj; fail: @@ -7695,7 +7749,7 @@ static PyObject *_wrap_pkgCacheVerIterator_Automatic(PyObject *self, PyObject *a PyObject *resultobj; pkgCache::VerIterator *arg1 = (pkgCache::VerIterator *) 0 ; bool result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheVerIterator_Automatic",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -7712,7 +7766,7 @@ static PyObject *_wrap_pkgCacheVerIterator_NewestFile(PyObject *self, PyObject * PyObject *resultobj; pkgCache::VerIterator *arg1 = (pkgCache::VerIterator *) 0 ; VerFileIterator result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheVerIterator_NewestFile",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -7748,11 +7802,14 @@ static PyObject *_wrap_new_pkgCacheVerIterator__SWIG_1(PyObject *self, PyObject pkgCache *arg1 = 0 ; Version *arg2 = (Version *) 0 ; pkgCache::VerIterator *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O|O:new_pkgCacheVerIterator",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg1 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } if (obj1) { if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_Version,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; } @@ -7784,7 +7841,7 @@ static PyObject *_wrap_new_pkgCacheVerIterator(PyObject *self, PyObject *args) { if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_pkgCache, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -7797,7 +7854,7 @@ static PyObject *_wrap_new_pkgCacheVerIterator(PyObject *self, PyObject *args) { if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_Version, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -7812,28 +7869,11 @@ static PyObject *_wrap_new_pkgCacheVerIterator(PyObject *self, PyObject *args) { } -static PyObject *_wrap_pkgCacheVerIterator_NextVer_set(PyObject *self, PyObject *args) { - PyObject *resultobj; - pkgCache::VerIterator *arg1 = (pkgCache::VerIterator *) 0 ; - map_ptrloc arg2 ; - PyObject * obj0 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"Oi:pkgCacheVerIterator_NextVer_set",&obj0,&arg2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - if (arg1) (*arg1)->NextVer = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - static PyObject *_wrap_pkgCacheVerIterator_NextVer_get(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache::VerIterator *arg1 = (pkgCache::VerIterator *) 0 ; map_ptrloc result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheVerIterator_NextVer_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -7846,28 +7886,11 @@ static PyObject *_wrap_pkgCacheVerIterator_NextVer_get(PyObject *self, PyObject } -static PyObject *_wrap_pkgCacheVerIterator_Size_set(PyObject *self, PyObject *args) { - PyObject *resultobj; - pkgCache::VerIterator *arg1 = (pkgCache::VerIterator *) 0 ; - map_ptrloc arg2 ; - PyObject * obj0 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"Oi:pkgCacheVerIterator_Size_set",&obj0,&arg2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - if (arg1) (*arg1)->Size = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - static PyObject *_wrap_pkgCacheVerIterator_Size_get(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache::VerIterator *arg1 = (pkgCache::VerIterator *) 0 ; map_ptrloc result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheVerIterator_Size_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -7880,28 +7903,11 @@ static PyObject *_wrap_pkgCacheVerIterator_Size_get(PyObject *self, PyObject *ar } -static PyObject *_wrap_pkgCacheVerIterator_InstalledSize_set(PyObject *self, PyObject *args) { - PyObject *resultobj; - pkgCache::VerIterator *arg1 = (pkgCache::VerIterator *) 0 ; - map_ptrloc arg2 ; - PyObject * obj0 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"Oi:pkgCacheVerIterator_InstalledSize_set",&obj0,&arg2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - if (arg1) (*arg1)->InstalledSize = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - static PyObject *_wrap_pkgCacheVerIterator_InstalledSize_get(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache::VerIterator *arg1 = (pkgCache::VerIterator *) 0 ; map_ptrloc result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheVerIterator_InstalledSize_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -7914,31 +7920,11 @@ static PyObject *_wrap_pkgCacheVerIterator_InstalledSize_get(PyObject *self, PyO } -static PyObject *_wrap_pkgCacheVerIterator_Hash_set(PyObject *self, PyObject *args) { - PyObject *resultobj; - pkgCache::VerIterator *arg1 = (pkgCache::VerIterator *) 0 ; - unsigned short arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:pkgCacheVerIterator_Hash_set",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - arg2 = (unsigned short) PyInt_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (*arg1)->Hash = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - static PyObject *_wrap_pkgCacheVerIterator_Hash_get(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache::VerIterator *arg1 = (pkgCache::VerIterator *) 0 ; unsigned short result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheVerIterator_Hash_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -7951,31 +7937,11 @@ static PyObject *_wrap_pkgCacheVerIterator_Hash_get(PyObject *self, PyObject *ar } -static PyObject *_wrap_pkgCacheVerIterator_ID_set(PyObject *self, PyObject *args) { - PyObject *resultobj; - pkgCache::VerIterator *arg1 = (pkgCache::VerIterator *) 0 ; - unsigned short arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:pkgCacheVerIterator_ID_set",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - arg2 = (unsigned short) PyInt_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (*arg1)->ID = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - static PyObject *_wrap_pkgCacheVerIterator_ID_get(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache::VerIterator *arg1 = (pkgCache::VerIterator *) 0 ; unsigned short result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheVerIterator_ID_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -7988,31 +7954,11 @@ static PyObject *_wrap_pkgCacheVerIterator_ID_get(PyObject *self, PyObject *args } -static PyObject *_wrap_pkgCacheVerIterator_Priority_set(PyObject *self, PyObject *args) { - PyObject *resultobj; - pkgCache::VerIterator *arg1 = (pkgCache::VerIterator *) 0 ; - unsigned char arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:pkgCacheVerIterator_Priority_set",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - arg2 = (unsigned char) PyInt_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (*arg1)->Priority = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - static PyObject *_wrap_pkgCacheVerIterator_Priority_get(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache::VerIterator *arg1 = (pkgCache::VerIterator *) 0 ; unsigned char result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheVerIterator_Priority_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -8028,7 +7974,7 @@ static PyObject *_wrap_pkgCacheVerIterator_Priority_get(PyObject *self, PyObject static PyObject *_wrap_delete_pkgCacheVerIterator(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache::VerIterator *arg1 = (pkgCache::VerIterator *) 0 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:delete_pkgCacheVerIterator",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -8052,7 +7998,7 @@ static PyObject *_wrap_pkgCacheDepIterator___nonzero__(PyObject *self, PyObject PyObject *resultobj; pkgCache::DepIterator *arg1 = (pkgCache::DepIterator *) 0 ; bool result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheDepIterator___nonzero__",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__DepIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -8069,7 +8015,7 @@ static PyObject *_wrap_pkgCacheDepIterator_next(PyObject *self, PyObject *args) PyObject *resultobj; pkgCache::DepIterator *arg1 = (pkgCache::DepIterator *) 0 ; pkgCache::DepIterator *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheDepIterator_next",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__DepIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -8090,7 +8036,7 @@ static PyObject *_wrap_pkgCacheDepIterator___iter__(PyObject *self, PyObject *ar PyObject *resultobj; pkgCache::DepIterator *arg1 = (pkgCache::DepIterator *) 0 ; pkgCache::DepIterator *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheDepIterator___iter__",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__DepIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -8107,7 +8053,7 @@ static PyObject *_wrap_pkgCacheDepIterator_end(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache::DepIterator *arg1 = (pkgCache::DepIterator *) 0 ; bool result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheDepIterator_end",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__DepIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -8125,12 +8071,15 @@ static PyObject *_wrap_pkgCacheDepIterator___eq__(PyObject *self, PyObject *args pkgCache::DepIterator *arg1 = (pkgCache::DepIterator *) 0 ; DepIterator *arg2 = 0 ; bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCacheDepIterator___eq__",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__DepIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_DepIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } result = (bool)((pkgCache::DepIterator const *)arg1)->operator ==((DepIterator const &)*arg2); resultobj = PyInt_FromLong((long)result); @@ -8145,12 +8094,15 @@ static PyObject *_wrap_pkgCacheDepIterator___ne__(PyObject *self, PyObject *args pkgCache::DepIterator *arg1 = (pkgCache::DepIterator *) 0 ; DepIterator *arg2 = 0 ; bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCacheDepIterator___ne__",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__DepIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_DepIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } result = (bool)((pkgCache::DepIterator const *)arg1)->operator !=((DepIterator const &)*arg2); resultobj = PyInt_FromLong((long)result); @@ -8164,7 +8116,7 @@ static PyObject *_wrap_pkgCacheDepIterator___deref____SWIG_0(PyObject *self, PyO PyObject *resultobj; pkgCache::DepIterator *arg1 = (pkgCache::DepIterator *) 0 ; Dependency *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheDepIterator___deref__",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__DepIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -8181,7 +8133,7 @@ static PyObject *_wrap_pkgCacheDepIterator___deref____SWIG_1(PyObject *self, PyO PyObject *resultobj; pkgCache::DepIterator *arg1 = (pkgCache::DepIterator *) 0 ; Dependency *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheDepIterator___deref__",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__DepIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -8210,7 +8162,7 @@ static PyObject *_wrap_pkgCacheDepIterator___deref__(PyObject *self, PyObject *a if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_pkgCache__DepIterator, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -8225,7 +8177,7 @@ static PyObject *_wrap_pkgCacheDepIterator___deref__(PyObject *self, PyObject *a if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_pkgCache__DepIterator, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -8243,7 +8195,7 @@ static PyObject *_wrap_pkgCacheDepIterator___mul____SWIG_0(PyObject *self, PyObj PyObject *resultobj; pkgCache::DepIterator *arg1 = (pkgCache::DepIterator *) 0 ; Dependency *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheDepIterator___mul__",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__DepIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -8263,7 +8215,7 @@ static PyObject *_wrap_pkgCacheDepIterator___mul____SWIG_1(PyObject *self, PyObj PyObject *resultobj; pkgCache::DepIterator *arg1 = (pkgCache::DepIterator *) 0 ; Dependency *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheDepIterator___mul__",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__DepIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -8295,7 +8247,7 @@ static PyObject *_wrap_pkgCacheDepIterator___mul__(PyObject *self, PyObject *arg if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_pkgCache__DepIterator, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -8310,7 +8262,7 @@ static PyObject *_wrap_pkgCacheDepIterator___mul__(PyObject *self, PyObject *arg if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_pkgCache__DepIterator, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -8328,7 +8280,7 @@ static PyObject *_wrap_pkgCacheDepIterator_Dependency(PyObject *self, PyObject * PyObject *resultobj; pkgCache::DepIterator *arg1 = (pkgCache::DepIterator *) 0 ; Dependency *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheDepIterator_Dependency",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__DepIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -8345,7 +8297,7 @@ static PyObject *_wrap_pkgCacheDepIterator_Cache(PyObject *self, PyObject *args) PyObject *resultobj; pkgCache::DepIterator *arg1 = (pkgCache::DepIterator *) 0 ; pkgCache *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheDepIterator_Cache",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__DepIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -8362,7 +8314,7 @@ static PyObject *_wrap_pkgCacheDepIterator_TargetVer(PyObject *self, PyObject *a PyObject *resultobj; pkgCache::DepIterator *arg1 = (pkgCache::DepIterator *) 0 ; char *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheDepIterator_TargetVer",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__DepIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -8379,7 +8331,7 @@ static PyObject *_wrap_pkgCacheDepIterator_TargetPkg(PyObject *self, PyObject *a PyObject *resultobj; pkgCache::DepIterator *arg1 = (pkgCache::DepIterator *) 0 ; PkgIterator result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheDepIterator_TargetPkg",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__DepIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -8400,7 +8352,7 @@ static PyObject *_wrap_pkgCacheDepIterator_SmartTargetPkg__SWIG_0(PyObject *self PyObject *resultobj; pkgCache::DepIterator *arg1 = (pkgCache::DepIterator *) 0 ; PkgIterator result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheDepIterator_SmartTargetPkg",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__DepIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -8421,7 +8373,7 @@ static PyObject *_wrap_pkgCacheDepIterator_ParentVer(PyObject *self, PyObject *a PyObject *resultobj; pkgCache::DepIterator *arg1 = (pkgCache::DepIterator *) 0 ; VerIterator result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheDepIterator_ParentVer",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__DepIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -8442,7 +8394,7 @@ static PyObject *_wrap_pkgCacheDepIterator_ParentPkg(PyObject *self, PyObject *a PyObject *resultobj; pkgCache::DepIterator *arg1 = (pkgCache::DepIterator *) 0 ; PkgIterator result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheDepIterator_ParentPkg",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__DepIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -8463,7 +8415,7 @@ static PyObject *_wrap_pkgCacheDepIterator_Reverse(PyObject *self, PyObject *arg PyObject *resultobj; pkgCache::DepIterator *arg1 = (pkgCache::DepIterator *) 0 ; bool result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheDepIterator_Reverse",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__DepIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -8480,7 +8432,7 @@ static PyObject *_wrap_pkgCacheDepIterator_Index(PyObject *self, PyObject *args) PyObject *resultobj; pkgCache::DepIterator *arg1 = (pkgCache::DepIterator *) 0 ; unsigned long result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheDepIterator_Index",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__DepIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -8497,7 +8449,7 @@ static PyObject *_wrap_pkgCacheDepIterator_IsCritical(PyObject *self, PyObject * PyObject *resultobj; pkgCache::DepIterator *arg1 = (pkgCache::DepIterator *) 0 ; bool result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheDepIterator_IsCritical",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__DepIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -8515,14 +8467,20 @@ static PyObject *_wrap_pkgCacheDepIterator_GlobOr(PyObject *self, PyObject *args pkgCache::DepIterator *arg1 = (pkgCache::DepIterator *) 0 ; DepIterator *arg2 = 0 ; DepIterator *arg3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OOO:pkgCacheDepIterator_GlobOr",&obj0,&obj1,&obj2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__DepIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_DepIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_DepIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg3 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } (arg1)->GlobOr(*arg2,*arg3); Py_INCREF(Py_None); resultobj = Py_None; @@ -8536,7 +8494,7 @@ static PyObject *_wrap_pkgCacheDepIterator_AllTargets(PyObject *self, PyObject * PyObject *resultobj; pkgCache::DepIterator *arg1 = (pkgCache::DepIterator *) 0 ; Version **result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheDepIterator_AllTargets",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__DepIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -8554,12 +8512,15 @@ static PyObject *_wrap_pkgCacheDepIterator_SmartTargetPkg__SWIG_1(PyObject *self pkgCache::DepIterator *arg1 = (pkgCache::DepIterator *) 0 ; PkgIterator *arg2 = 0 ; bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCacheDepIterator_SmartTargetPkg",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__DepIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_PkgIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } result = (bool)(arg1)->SmartTargetPkg(*arg2); resultobj = PyInt_FromLong((long)result); @@ -8585,7 +8546,7 @@ static PyObject *_wrap_pkgCacheDepIterator_SmartTargetPkg(PyObject *self, PyObje if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_pkgCache__DepIterator, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -8600,7 +8561,7 @@ static PyObject *_wrap_pkgCacheDepIterator_SmartTargetPkg(PyObject *self, PyObje if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_pkgCache__DepIterator, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -8610,7 +8571,7 @@ static PyObject *_wrap_pkgCacheDepIterator_SmartTargetPkg(PyObject *self, PyObje if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_PkgIterator, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -8629,7 +8590,7 @@ static PyObject *_wrap_pkgCacheDepIterator_CompType(PyObject *self, PyObject *ar PyObject *resultobj; pkgCache::DepIterator *arg1 = (pkgCache::DepIterator *) 0 ; char *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheDepIterator_CompType",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__DepIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -8646,7 +8607,7 @@ static PyObject *_wrap_pkgCacheDepIterator_DepType(PyObject *self, PyObject *arg PyObject *resultobj; pkgCache::DepIterator *arg1 = (pkgCache::DepIterator *) 0 ; char *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheDepIterator_DepType",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__DepIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -8665,12 +8626,15 @@ static PyObject *_wrap_new_pkgCacheDepIterator__SWIG_0(PyObject *self, PyObject Dependency *arg2 = (Dependency *) 0 ; Version *arg3 = (Version *) 0 ; pkgCache::DepIterator *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO|O:new_pkgCacheDepIterator",&obj0,&obj1,&obj2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg1 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_Dependency,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if (obj2) { if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_Version,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -8690,12 +8654,15 @@ static PyObject *_wrap_new_pkgCacheDepIterator__SWIG_1(PyObject *self, PyObject Dependency *arg2 = (Dependency *) 0 ; Package *arg3 = (Package *) 0 ; pkgCache::DepIterator *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OOO:new_pkgCacheDepIterator",&obj0,&obj1,&obj2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg1 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_Dependency,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_Package,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; result = (pkgCache::DepIterator *)new pkgCache::DepIterator(*arg1,arg2,arg3); @@ -8740,7 +8707,7 @@ static PyObject *_wrap_new_pkgCacheDepIterator(PyObject *self, PyObject *args) { if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_pkgCache, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -8750,7 +8717,7 @@ static PyObject *_wrap_new_pkgCacheDepIterator(PyObject *self, PyObject *args) { if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_Dependency, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -8763,7 +8730,7 @@ static PyObject *_wrap_new_pkgCacheDepIterator(PyObject *self, PyObject *args) { if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_Version, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -8780,7 +8747,7 @@ static PyObject *_wrap_new_pkgCacheDepIterator(PyObject *self, PyObject *args) { if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_pkgCache, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -8790,7 +8757,7 @@ static PyObject *_wrap_new_pkgCacheDepIterator(PyObject *self, PyObject *args) { if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_Dependency, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -8800,7 +8767,7 @@ static PyObject *_wrap_new_pkgCacheDepIterator(PyObject *self, PyObject *args) { if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_Package, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -8816,28 +8783,11 @@ static PyObject *_wrap_new_pkgCacheDepIterator(PyObject *self, PyObject *args) { } -static PyObject *_wrap_pkgCacheDepIterator_Version_set(PyObject *self, PyObject *args) { - PyObject *resultobj; - pkgCache::DepIterator *arg1 = (pkgCache::DepIterator *) 0 ; - map_ptrloc arg2 ; - PyObject * obj0 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"Oi:pkgCacheDepIterator_Version_set",&obj0,&arg2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__DepIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - if (arg1) (*arg1)->Version = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - static PyObject *_wrap_pkgCacheDepIterator_Version_get(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache::DepIterator *arg1 = (pkgCache::DepIterator *) 0 ; map_ptrloc result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheDepIterator_Version_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__DepIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -8850,28 +8800,11 @@ static PyObject *_wrap_pkgCacheDepIterator_Version_get(PyObject *self, PyObject } -static PyObject *_wrap_pkgCacheDepIterator_Package_set(PyObject *self, PyObject *args) { - PyObject *resultobj; - pkgCache::DepIterator *arg1 = (pkgCache::DepIterator *) 0 ; - map_ptrloc arg2 ; - PyObject * obj0 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"Oi:pkgCacheDepIterator_Package_set",&obj0,&arg2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__DepIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - if (arg1) (*arg1)->Package = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - static PyObject *_wrap_pkgCacheDepIterator_Package_get(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache::DepIterator *arg1 = (pkgCache::DepIterator *) 0 ; map_ptrloc result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheDepIterator_Package_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__DepIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -8884,28 +8817,11 @@ static PyObject *_wrap_pkgCacheDepIterator_Package_get(PyObject *self, PyObject } -static PyObject *_wrap_pkgCacheDepIterator_NextDepends_set(PyObject *self, PyObject *args) { - PyObject *resultobj; - pkgCache::DepIterator *arg1 = (pkgCache::DepIterator *) 0 ; - map_ptrloc arg2 ; - PyObject * obj0 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"Oi:pkgCacheDepIterator_NextDepends_set",&obj0,&arg2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__DepIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - if (arg1) (*arg1)->NextDepends = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - static PyObject *_wrap_pkgCacheDepIterator_NextDepends_get(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache::DepIterator *arg1 = (pkgCache::DepIterator *) 0 ; map_ptrloc result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheDepIterator_NextDepends_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__DepIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -8918,28 +8834,11 @@ static PyObject *_wrap_pkgCacheDepIterator_NextDepends_get(PyObject *self, PyObj } -static PyObject *_wrap_pkgCacheDepIterator_NextRevDepends_set(PyObject *self, PyObject *args) { - PyObject *resultobj; - pkgCache::DepIterator *arg1 = (pkgCache::DepIterator *) 0 ; - map_ptrloc arg2 ; - PyObject * obj0 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"Oi:pkgCacheDepIterator_NextRevDepends_set",&obj0,&arg2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__DepIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - if (arg1) (*arg1)->NextRevDepends = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - static PyObject *_wrap_pkgCacheDepIterator_NextRevDepends_get(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache::DepIterator *arg1 = (pkgCache::DepIterator *) 0 ; map_ptrloc result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheDepIterator_NextRevDepends_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__DepIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -8952,28 +8851,11 @@ static PyObject *_wrap_pkgCacheDepIterator_NextRevDepends_get(PyObject *self, Py } -static PyObject *_wrap_pkgCacheDepIterator_ID_set(PyObject *self, PyObject *args) { - PyObject *resultobj; - pkgCache::DepIterator *arg1 = (pkgCache::DepIterator *) 0 ; - map_ptrloc arg2 ; - PyObject * obj0 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"Oi:pkgCacheDepIterator_ID_set",&obj0,&arg2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__DepIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - if (arg1) (*arg1)->ID = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - static PyObject *_wrap_pkgCacheDepIterator_ID_get(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache::DepIterator *arg1 = (pkgCache::DepIterator *) 0 ; map_ptrloc result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheDepIterator_ID_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__DepIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -8986,31 +8868,11 @@ static PyObject *_wrap_pkgCacheDepIterator_ID_get(PyObject *self, PyObject *args } -static PyObject *_wrap_pkgCacheDepIterator_Type_set(PyObject *self, PyObject *args) { - PyObject *resultobj; - pkgCache::DepIterator *arg1 = (pkgCache::DepIterator *) 0 ; - unsigned char arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:pkgCacheDepIterator_Type_set",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__DepIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - arg2 = (unsigned char) PyInt_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (*arg1)->Type = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - static PyObject *_wrap_pkgCacheDepIterator_Type_get(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache::DepIterator *arg1 = (pkgCache::DepIterator *) 0 ; unsigned char result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheDepIterator_Type_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__DepIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -9023,31 +8885,11 @@ static PyObject *_wrap_pkgCacheDepIterator_Type_get(PyObject *self, PyObject *ar } -static PyObject *_wrap_pkgCacheDepIterator_CompareOp_set(PyObject *self, PyObject *args) { - PyObject *resultobj; - pkgCache::DepIterator *arg1 = (pkgCache::DepIterator *) 0 ; - unsigned char arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:pkgCacheDepIterator_CompareOp_set",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__DepIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - arg2 = (unsigned char) PyInt_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (*arg1)->CompareOp = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - static PyObject *_wrap_pkgCacheDepIterator_CompareOp_get(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache::DepIterator *arg1 = (pkgCache::DepIterator *) 0 ; unsigned char result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheDepIterator_CompareOp_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__DepIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -9063,7 +8905,7 @@ static PyObject *_wrap_pkgCacheDepIterator_CompareOp_get(PyObject *self, PyObjec static PyObject *_wrap_delete_pkgCacheDepIterator(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache::DepIterator *arg1 = (pkgCache::DepIterator *) 0 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:delete_pkgCacheDepIterator",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__DepIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -9087,7 +8929,7 @@ static PyObject *_wrap_pkgCachePrvIterator___nonzero__(PyObject *self, PyObject PyObject *resultobj; pkgCache::PrvIterator *arg1 = (pkgCache::PrvIterator *) 0 ; bool result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePrvIterator___nonzero__",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PrvIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -9104,7 +8946,7 @@ static PyObject *_wrap_pkgCachePrvIterator_next(PyObject *self, PyObject *args) PyObject *resultobj; pkgCache::PrvIterator *arg1 = (pkgCache::PrvIterator *) 0 ; pkgCache::PrvIterator *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePrvIterator_next",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PrvIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -9125,7 +8967,7 @@ static PyObject *_wrap_pkgCachePrvIterator___iter__(PyObject *self, PyObject *ar PyObject *resultobj; pkgCache::PrvIterator *arg1 = (pkgCache::PrvIterator *) 0 ; pkgCache::PrvIterator *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePrvIterator___iter__",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PrvIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -9142,7 +8984,7 @@ static PyObject *_wrap_pkgCachePrvIterator_end(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache::PrvIterator *arg1 = (pkgCache::PrvIterator *) 0 ; bool result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePrvIterator_end",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PrvIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -9160,12 +9002,15 @@ static PyObject *_wrap_pkgCachePrvIterator___eq__(PyObject *self, PyObject *args pkgCache::PrvIterator *arg1 = (pkgCache::PrvIterator *) 0 ; PrvIterator *arg2 = 0 ; bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCachePrvIterator___eq__",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PrvIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_PrvIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } result = (bool)((pkgCache::PrvIterator const *)arg1)->operator ==((PrvIterator const &)*arg2); resultobj = PyInt_FromLong((long)result); @@ -9180,12 +9025,15 @@ static PyObject *_wrap_pkgCachePrvIterator___ne__(PyObject *self, PyObject *args pkgCache::PrvIterator *arg1 = (pkgCache::PrvIterator *) 0 ; PrvIterator *arg2 = 0 ; bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCachePrvIterator___ne__",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PrvIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_PrvIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } result = (bool)((pkgCache::PrvIterator const *)arg1)->operator !=((PrvIterator const &)*arg2); resultobj = PyInt_FromLong((long)result); @@ -9199,7 +9047,7 @@ static PyObject *_wrap_pkgCachePrvIterator___deref____SWIG_0(PyObject *self, PyO PyObject *resultobj; pkgCache::PrvIterator *arg1 = (pkgCache::PrvIterator *) 0 ; Provides *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePrvIterator___deref__",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PrvIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -9216,7 +9064,7 @@ static PyObject *_wrap_pkgCachePrvIterator___deref____SWIG_1(PyObject *self, PyO PyObject *resultobj; pkgCache::PrvIterator *arg1 = (pkgCache::PrvIterator *) 0 ; Provides *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePrvIterator___deref__",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PrvIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -9245,7 +9093,7 @@ static PyObject *_wrap_pkgCachePrvIterator___deref__(PyObject *self, PyObject *a if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_pkgCache__PrvIterator, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -9260,7 +9108,7 @@ static PyObject *_wrap_pkgCachePrvIterator___deref__(PyObject *self, PyObject *a if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_pkgCache__PrvIterator, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -9278,7 +9126,7 @@ static PyObject *_wrap_pkgCachePrvIterator___mul____SWIG_0(PyObject *self, PyObj PyObject *resultobj; pkgCache::PrvIterator *arg1 = (pkgCache::PrvIterator *) 0 ; Provides *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePrvIterator___mul__",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PrvIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -9298,7 +9146,7 @@ static PyObject *_wrap_pkgCachePrvIterator___mul____SWIG_1(PyObject *self, PyObj PyObject *resultobj; pkgCache::PrvIterator *arg1 = (pkgCache::PrvIterator *) 0 ; Provides *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePrvIterator___mul__",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PrvIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -9330,7 +9178,7 @@ static PyObject *_wrap_pkgCachePrvIterator___mul__(PyObject *self, PyObject *arg if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_pkgCache__PrvIterator, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -9345,7 +9193,7 @@ static PyObject *_wrap_pkgCachePrvIterator___mul__(PyObject *self, PyObject *arg if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_pkgCache__PrvIterator, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -9363,7 +9211,7 @@ static PyObject *_wrap_pkgCachePrvIterator_Provides(PyObject *self, PyObject *ar PyObject *resultobj; pkgCache::PrvIterator *arg1 = (pkgCache::PrvIterator *) 0 ; Provides *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePrvIterator_Provides",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PrvIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -9380,7 +9228,7 @@ static PyObject *_wrap_pkgCachePrvIterator_Cache(PyObject *self, PyObject *args) PyObject *resultobj; pkgCache::PrvIterator *arg1 = (pkgCache::PrvIterator *) 0 ; pkgCache *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePrvIterator_Cache",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PrvIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -9397,7 +9245,7 @@ static PyObject *_wrap_pkgCachePrvIterator_Name(PyObject *self, PyObject *args) PyObject *resultobj; pkgCache::PrvIterator *arg1 = (pkgCache::PrvIterator *) 0 ; char *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePrvIterator_Name",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PrvIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -9414,7 +9262,7 @@ static PyObject *_wrap_pkgCachePrvIterator_ProvideVersion(PyObject *self, PyObje PyObject *resultobj; pkgCache::PrvIterator *arg1 = (pkgCache::PrvIterator *) 0 ; char *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePrvIterator_ProvideVersion",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PrvIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -9431,7 +9279,7 @@ static PyObject *_wrap_pkgCachePrvIterator_ParentPkg(PyObject *self, PyObject *a PyObject *resultobj; pkgCache::PrvIterator *arg1 = (pkgCache::PrvIterator *) 0 ; PkgIterator result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePrvIterator_ParentPkg",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PrvIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -9452,7 +9300,7 @@ static PyObject *_wrap_pkgCachePrvIterator_OwnerVer(PyObject *self, PyObject *ar PyObject *resultobj; pkgCache::PrvIterator *arg1 = (pkgCache::PrvIterator *) 0 ; VerIterator result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePrvIterator_OwnerVer",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PrvIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -9473,7 +9321,7 @@ static PyObject *_wrap_pkgCachePrvIterator_OwnerPkg(PyObject *self, PyObject *ar PyObject *resultobj; pkgCache::PrvIterator *arg1 = (pkgCache::PrvIterator *) 0 ; PkgIterator result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePrvIterator_OwnerPkg",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PrvIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -9494,7 +9342,7 @@ static PyObject *_wrap_pkgCachePrvIterator_Index(PyObject *self, PyObject *args) PyObject *resultobj; pkgCache::PrvIterator *arg1 = (pkgCache::PrvIterator *) 0 ; unsigned long result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePrvIterator_Index",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PrvIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -9513,12 +9361,15 @@ static PyObject *_wrap_new_pkgCachePrvIterator__SWIG_0(PyObject *self, PyObject Provides *arg2 = (Provides *) 0 ; Version *arg3 = (Version *) 0 ; pkgCache::PrvIterator *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OOO:new_pkgCachePrvIterator",&obj0,&obj1,&obj2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg1 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_Provides,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_Version,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; result = (pkgCache::PrvIterator *)new pkgCache::PrvIterator(*arg1,arg2,arg3); @@ -9536,12 +9387,15 @@ static PyObject *_wrap_new_pkgCachePrvIterator__SWIG_1(PyObject *self, PyObject Provides *arg2 = (Provides *) 0 ; Package *arg3 = (Package *) 0 ; pkgCache::PrvIterator *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OOO:new_pkgCachePrvIterator",&obj0,&obj1,&obj2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg1 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_Provides,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_Package,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; result = (pkgCache::PrvIterator *)new pkgCache::PrvIterator(*arg1,arg2,arg3); @@ -9569,7 +9423,7 @@ static PyObject *_wrap_new_pkgCachePrvIterator(PyObject *self, PyObject *args) { if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_pkgCache, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -9579,7 +9433,7 @@ static PyObject *_wrap_new_pkgCachePrvIterator(PyObject *self, PyObject *args) { if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_Provides, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -9589,7 +9443,7 @@ static PyObject *_wrap_new_pkgCachePrvIterator(PyObject *self, PyObject *args) { if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_Version, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -9606,7 +9460,7 @@ static PyObject *_wrap_new_pkgCachePrvIterator(PyObject *self, PyObject *args) { if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_pkgCache, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -9616,7 +9470,7 @@ static PyObject *_wrap_new_pkgCachePrvIterator(PyObject *self, PyObject *args) { if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_Provides, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -9626,7 +9480,7 @@ static PyObject *_wrap_new_pkgCachePrvIterator(PyObject *self, PyObject *args) { if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_Package, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -9642,28 +9496,11 @@ static PyObject *_wrap_new_pkgCachePrvIterator(PyObject *self, PyObject *args) { } -static PyObject *_wrap_pkgCachePrvIterator_Version_set(PyObject *self, PyObject *args) { - PyObject *resultobj; - pkgCache::PrvIterator *arg1 = (pkgCache::PrvIterator *) 0 ; - map_ptrloc arg2 ; - PyObject * obj0 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"Oi:pkgCachePrvIterator_Version_set",&obj0,&arg2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PrvIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - if (arg1) (*arg1)->Version = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - static PyObject *_wrap_pkgCachePrvIterator_Version_get(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache::PrvIterator *arg1 = (pkgCache::PrvIterator *) 0 ; map_ptrloc result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePrvIterator_Version_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PrvIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -9676,28 +9513,11 @@ static PyObject *_wrap_pkgCachePrvIterator_Version_get(PyObject *self, PyObject } -static PyObject *_wrap_pkgCachePrvIterator_NextProvides_set(PyObject *self, PyObject *args) { - PyObject *resultobj; - pkgCache::PrvIterator *arg1 = (pkgCache::PrvIterator *) 0 ; - map_ptrloc arg2 ; - PyObject * obj0 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"Oi:pkgCachePrvIterator_NextProvides_set",&obj0,&arg2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PrvIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - if (arg1) (*arg1)->NextProvides = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - static PyObject *_wrap_pkgCachePrvIterator_NextProvides_get(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache::PrvIterator *arg1 = (pkgCache::PrvIterator *) 0 ; map_ptrloc result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePrvIterator_NextProvides_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PrvIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -9710,28 +9530,11 @@ static PyObject *_wrap_pkgCachePrvIterator_NextProvides_get(PyObject *self, PyOb } -static PyObject *_wrap_pkgCachePrvIterator_NextPkgProv_set(PyObject *self, PyObject *args) { - PyObject *resultobj; - pkgCache::PrvIterator *arg1 = (pkgCache::PrvIterator *) 0 ; - map_ptrloc arg2 ; - PyObject * obj0 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"Oi:pkgCachePrvIterator_NextPkgProv_set",&obj0,&arg2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PrvIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - if (arg1) (*arg1)->NextPkgProv = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - static PyObject *_wrap_pkgCachePrvIterator_NextPkgProv_get(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache::PrvIterator *arg1 = (pkgCache::PrvIterator *) 0 ; map_ptrloc result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePrvIterator_NextPkgProv_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PrvIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -9747,7 +9550,7 @@ static PyObject *_wrap_pkgCachePrvIterator_NextPkgProv_get(PyObject *self, PyObj static PyObject *_wrap_delete_pkgCachePrvIterator(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache::PrvIterator *arg1 = (pkgCache::PrvIterator *) 0 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:delete_pkgCachePrvIterator",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PrvIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -9771,7 +9574,7 @@ static PyObject *_wrap_pkgCachePkgFileIterator___nonzero__(PyObject *self, PyObj PyObject *resultobj; pkgCache::PkgFileIterator *arg1 = (pkgCache::PkgFileIterator *) 0 ; bool result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePkgFileIterator___nonzero__",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgFileIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -9788,7 +9591,7 @@ static PyObject *_wrap_pkgCachePkgFileIterator_next(PyObject *self, PyObject *ar PyObject *resultobj; pkgCache::PkgFileIterator *arg1 = (pkgCache::PkgFileIterator *) 0 ; pkgCache::PkgFileIterator *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePkgFileIterator_next",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgFileIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -9809,7 +9612,7 @@ static PyObject *_wrap_pkgCachePkgFileIterator___iter__(PyObject *self, PyObject PyObject *resultobj; pkgCache::PkgFileIterator *arg1 = (pkgCache::PkgFileIterator *) 0 ; pkgCache::PkgFileIterator *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePkgFileIterator___iter__",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgFileIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -9826,7 +9629,7 @@ static PyObject *_wrap_pkgCachePkgFileIterator_end(PyObject *self, PyObject *arg PyObject *resultobj; pkgCache::PkgFileIterator *arg1 = (pkgCache::PkgFileIterator *) 0 ; bool result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePkgFileIterator_end",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgFileIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -9844,12 +9647,15 @@ static PyObject *_wrap_pkgCachePkgFileIterator___eq__(PyObject *self, PyObject * pkgCache::PkgFileIterator *arg1 = (pkgCache::PkgFileIterator *) 0 ; PkgFileIterator *arg2 = 0 ; bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCachePkgFileIterator___eq__",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgFileIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_PkgFileIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } result = (bool)((pkgCache::PkgFileIterator const *)arg1)->operator ==((PkgFileIterator const &)*arg2); resultobj = PyInt_FromLong((long)result); @@ -9864,12 +9670,15 @@ static PyObject *_wrap_pkgCachePkgFileIterator___ne__(PyObject *self, PyObject * pkgCache::PkgFileIterator *arg1 = (pkgCache::PkgFileIterator *) 0 ; PkgFileIterator *arg2 = 0 ; bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCachePkgFileIterator___ne__",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgFileIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_PkgFileIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } result = (bool)((pkgCache::PkgFileIterator const *)arg1)->operator !=((PkgFileIterator const &)*arg2); resultobj = PyInt_FromLong((long)result); @@ -9883,7 +9692,7 @@ static PyObject *_wrap_pkgCachePkgFileIterator___deref____SWIG_0(PyObject *self, PyObject *resultobj; pkgCache::PkgFileIterator *arg1 = (pkgCache::PkgFileIterator *) 0 ; PackageFile *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePkgFileIterator___deref__",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgFileIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -9900,7 +9709,7 @@ static PyObject *_wrap_pkgCachePkgFileIterator___deref____SWIG_1(PyObject *self, PyObject *resultobj; pkgCache::PkgFileIterator *arg1 = (pkgCache::PkgFileIterator *) 0 ; PackageFile *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePkgFileIterator___deref__",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgFileIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -9929,7 +9738,7 @@ static PyObject *_wrap_pkgCachePkgFileIterator___deref__(PyObject *self, PyObjec if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_pkgCache__PkgFileIterator, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -9944,7 +9753,7 @@ static PyObject *_wrap_pkgCachePkgFileIterator___deref__(PyObject *self, PyObjec if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_pkgCache__PkgFileIterator, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -9962,7 +9771,7 @@ static PyObject *_wrap_pkgCachePkgFileIterator___mul__(PyObject *self, PyObject PyObject *resultobj; pkgCache::PkgFileIterator *arg1 = (pkgCache::PkgFileIterator *) 0 ; PackageFile *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePkgFileIterator___mul__",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgFileIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -9982,7 +9791,7 @@ static PyObject *_wrap_pkgCachePkgFileIterator_PackageFile(PyObject *self, PyObj PyObject *resultobj; pkgCache::PkgFileIterator *arg1 = (pkgCache::PkgFileIterator *) 0 ; PackageFile *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePkgFileIterator_PackageFile",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgFileIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -9999,7 +9808,7 @@ static PyObject *_wrap_pkgCachePkgFileIterator_Cache(PyObject *self, PyObject *a PyObject *resultobj; pkgCache::PkgFileIterator *arg1 = (pkgCache::PkgFileIterator *) 0 ; pkgCache *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePkgFileIterator_Cache",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgFileIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -10016,7 +9825,7 @@ static PyObject *_wrap_pkgCachePkgFileIterator_FileName(PyObject *self, PyObject PyObject *resultobj; pkgCache::PkgFileIterator *arg1 = (pkgCache::PkgFileIterator *) 0 ; char *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePkgFileIterator_FileName",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgFileIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -10033,7 +9842,7 @@ static PyObject *_wrap_pkgCachePkgFileIterator_Archive(PyObject *self, PyObject PyObject *resultobj; pkgCache::PkgFileIterator *arg1 = (pkgCache::PkgFileIterator *) 0 ; char *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePkgFileIterator_Archive",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgFileIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -10050,7 +9859,7 @@ static PyObject *_wrap_pkgCachePkgFileIterator_Component(PyObject *self, PyObjec PyObject *resultobj; pkgCache::PkgFileIterator *arg1 = (pkgCache::PkgFileIterator *) 0 ; char *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePkgFileIterator_Component",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgFileIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -10067,7 +9876,7 @@ static PyObject *_wrap_pkgCachePkgFileIterator_Version(PyObject *self, PyObject PyObject *resultobj; pkgCache::PkgFileIterator *arg1 = (pkgCache::PkgFileIterator *) 0 ; char *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePkgFileIterator_Version",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgFileIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -10084,7 +9893,7 @@ static PyObject *_wrap_pkgCachePkgFileIterator_Origin(PyObject *self, PyObject * PyObject *resultobj; pkgCache::PkgFileIterator *arg1 = (pkgCache::PkgFileIterator *) 0 ; char *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePkgFileIterator_Origin",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgFileIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -10101,7 +9910,7 @@ static PyObject *_wrap_pkgCachePkgFileIterator_Label(PyObject *self, PyObject *a PyObject *resultobj; pkgCache::PkgFileIterator *arg1 = (pkgCache::PkgFileIterator *) 0 ; char *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePkgFileIterator_Label",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgFileIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -10118,7 +9927,7 @@ static PyObject *_wrap_pkgCachePkgFileIterator_Site(PyObject *self, PyObject *ar PyObject *resultobj; pkgCache::PkgFileIterator *arg1 = (pkgCache::PkgFileIterator *) 0 ; char *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePkgFileIterator_Site",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgFileIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -10135,7 +9944,7 @@ static PyObject *_wrap_pkgCachePkgFileIterator_Architecture(PyObject *self, PyOb PyObject *resultobj; pkgCache::PkgFileIterator *arg1 = (pkgCache::PkgFileIterator *) 0 ; char *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePkgFileIterator_Architecture",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgFileIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -10152,7 +9961,7 @@ static PyObject *_wrap_pkgCachePkgFileIterator_IndexType(PyObject *self, PyObjec PyObject *resultobj; pkgCache::PkgFileIterator *arg1 = (pkgCache::PkgFileIterator *) 0 ; char *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePkgFileIterator_IndexType",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgFileIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -10169,7 +9978,7 @@ static PyObject *_wrap_pkgCachePkgFileIterator_Index(PyObject *self, PyObject *a PyObject *resultobj; pkgCache::PkgFileIterator *arg1 = (pkgCache::PkgFileIterator *) 0 ; unsigned long result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePkgFileIterator_Index",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgFileIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -10186,7 +9995,7 @@ static PyObject *_wrap_pkgCachePkgFileIterator_IsOk(PyObject *self, PyObject *ar PyObject *resultobj; pkgCache::PkgFileIterator *arg1 = (pkgCache::PkgFileIterator *) 0 ; bool result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePkgFileIterator_IsOk",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgFileIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -10203,14 +10012,14 @@ static PyObject *_wrap_pkgCachePkgFileIterator_RelStr(PyObject *self, PyObject * PyObject *resultobj; pkgCache::PkgFileIterator *arg1 = (pkgCache::PkgFileIterator *) 0 ; string result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePkgFileIterator_RelStr",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgFileIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; result = (arg1)->RelStr(); { - resultobj = PyString_FromString((&result)->c_str()); + resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); } return resultobj; fail: @@ -10236,10 +10045,13 @@ static PyObject *_wrap_new_pkgCachePkgFileIterator__SWIG_1(PyObject *self, PyObj PyObject *resultobj; pkgCache *arg1 = 0 ; pkgCache::PkgFileIterator *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:new_pkgCachePkgFileIterator",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg1 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } result = (pkgCache::PkgFileIterator *)new pkgCache::PkgFileIterator(*arg1); resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_pkgCache__PkgFileIterator, 1); @@ -10254,11 +10066,14 @@ static PyObject *_wrap_new_pkgCachePkgFileIterator__SWIG_2(PyObject *self, PyObj pkgCache *arg1 = 0 ; PackageFile *arg2 = (PackageFile *) 0 ; pkgCache::PkgFileIterator *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:new_pkgCachePkgFileIterator",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg1 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_PackageFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; result = (pkgCache::PkgFileIterator *)new pkgCache::PkgFileIterator(*arg1,arg2); @@ -10288,7 +10103,7 @@ static PyObject *_wrap_new_pkgCachePkgFileIterator(PyObject *self, PyObject *arg if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_pkgCache, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -10303,7 +10118,7 @@ static PyObject *_wrap_new_pkgCachePkgFileIterator(PyObject *self, PyObject *arg if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_pkgCache, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -10313,7 +10128,7 @@ static PyObject *_wrap_new_pkgCachePkgFileIterator(PyObject *self, PyObject *arg if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_PackageFile, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -10328,31 +10143,11 @@ static PyObject *_wrap_new_pkgCachePkgFileIterator(PyObject *self, PyObject *arg } -static PyObject *_wrap_pkgCachePkgFileIterator_Size_set(PyObject *self, PyObject *args) { - PyObject *resultobj; - pkgCache::PkgFileIterator *arg1 = (pkgCache::PkgFileIterator *) 0 ; - unsigned long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:pkgCachePkgFileIterator_Size_set",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgFileIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - arg2 = (unsigned long) PyInt_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (*arg1)->Size = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - static PyObject *_wrap_pkgCachePkgFileIterator_Size_get(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache::PkgFileIterator *arg1 = (pkgCache::PkgFileIterator *) 0 ; unsigned long result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePkgFileIterator_Size_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgFileIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -10365,31 +10160,11 @@ static PyObject *_wrap_pkgCachePkgFileIterator_Size_get(PyObject *self, PyObject } -static PyObject *_wrap_pkgCachePkgFileIterator_Flags_set(PyObject *self, PyObject *args) { - PyObject *resultobj; - pkgCache::PkgFileIterator *arg1 = (pkgCache::PkgFileIterator *) 0 ; - unsigned long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:pkgCachePkgFileIterator_Flags_set",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgFileIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - arg2 = (unsigned long) PyInt_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (*arg1)->Flags = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - static PyObject *_wrap_pkgCachePkgFileIterator_Flags_get(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache::PkgFileIterator *arg1 = (pkgCache::PkgFileIterator *) 0 ; unsigned long result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePkgFileIterator_Flags_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgFileIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -10402,28 +10177,11 @@ static PyObject *_wrap_pkgCachePkgFileIterator_Flags_get(PyObject *self, PyObjec } -static PyObject *_wrap_pkgCachePkgFileIterator_NextFile_set(PyObject *self, PyObject *args) { - PyObject *resultobj; - pkgCache::PkgFileIterator *arg1 = (pkgCache::PkgFileIterator *) 0 ; - map_ptrloc arg2 ; - PyObject * obj0 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"Oi:pkgCachePkgFileIterator_NextFile_set",&obj0,&arg2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgFileIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - if (arg1) (*arg1)->NextFile = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - static PyObject *_wrap_pkgCachePkgFileIterator_NextFile_get(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache::PkgFileIterator *arg1 = (pkgCache::PkgFileIterator *) 0 ; map_ptrloc result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePkgFileIterator_NextFile_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgFileIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -10436,31 +10194,11 @@ static PyObject *_wrap_pkgCachePkgFileIterator_NextFile_get(PyObject *self, PyOb } -static PyObject *_wrap_pkgCachePkgFileIterator_ID_set(PyObject *self, PyObject *args) { - PyObject *resultobj; - pkgCache::PkgFileIterator *arg1 = (pkgCache::PkgFileIterator *) 0 ; - unsigned short arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:pkgCachePkgFileIterator_ID_set",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgFileIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - arg2 = (unsigned short) PyInt_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (*arg1)->ID = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - static PyObject *_wrap_pkgCachePkgFileIterator_ID_get(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache::PkgFileIterator *arg1 = (pkgCache::PkgFileIterator *) 0 ; unsigned short result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePkgFileIterator_ID_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgFileIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -10473,32 +10211,11 @@ static PyObject *_wrap_pkgCachePkgFileIterator_ID_get(PyObject *self, PyObject * } -static PyObject *_wrap_pkgCachePkgFileIterator_mtime_set(PyObject *self, PyObject *args) { - PyObject *resultobj; - pkgCache::PkgFileIterator *arg1 = (pkgCache::PkgFileIterator *) 0 ; - time_t arg2 ; - time_t *argp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:pkgCachePkgFileIterator_mtime_set",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgFileIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_time_t,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; - arg2 = *argp2; - if (arg1) (*arg1)->mtime = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - static PyObject *_wrap_pkgCachePkgFileIterator_mtime_get(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache::PkgFileIterator *arg1 = (pkgCache::PkgFileIterator *) 0 ; time_t result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCachePkgFileIterator_mtime_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgFileIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -10518,7 +10235,7 @@ static PyObject *_wrap_pkgCachePkgFileIterator_mtime_get(PyObject *self, PyObjec static PyObject *_wrap_delete_pkgCachePkgFileIterator(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache::PkgFileIterator *arg1 = (pkgCache::PkgFileIterator *) 0 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:delete_pkgCachePkgFileIterator",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__PkgFileIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -10542,7 +10259,7 @@ static PyObject *_wrap_pkgCacheVerFileIterator___nonzero__(PyObject *self, PyObj PyObject *resultobj; pkgCache::VerFileIterator *arg1 = (pkgCache::VerFileIterator *) 0 ; bool result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheVerFileIterator___nonzero__",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerFileIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -10559,7 +10276,7 @@ static PyObject *_wrap_pkgCacheVerFileIterator_next(PyObject *self, PyObject *ar PyObject *resultobj; pkgCache::VerFileIterator *arg1 = (pkgCache::VerFileIterator *) 0 ; pkgCache::VerFileIterator *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheVerFileIterator_next",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerFileIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -10580,7 +10297,7 @@ static PyObject *_wrap_pkgCacheVerFileIterator___iter__(PyObject *self, PyObject PyObject *resultobj; pkgCache::VerFileIterator *arg1 = (pkgCache::VerFileIterator *) 0 ; pkgCache::VerFileIterator *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheVerFileIterator___iter__",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerFileIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -10597,7 +10314,7 @@ static PyObject *_wrap_pkgCacheVerFileIterator_end(PyObject *self, PyObject *arg PyObject *resultobj; pkgCache::VerFileIterator *arg1 = (pkgCache::VerFileIterator *) 0 ; bool result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheVerFileIterator_end",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerFileIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -10615,12 +10332,15 @@ static PyObject *_wrap_pkgCacheVerFileIterator___eq__(PyObject *self, PyObject * pkgCache::VerFileIterator *arg1 = (pkgCache::VerFileIterator *) 0 ; VerFileIterator *arg2 = 0 ; bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCacheVerFileIterator___eq__",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerFileIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_VerFileIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } result = (bool)((pkgCache::VerFileIterator const *)arg1)->operator ==((VerFileIterator const &)*arg2); resultobj = PyInt_FromLong((long)result); @@ -10635,12 +10355,15 @@ static PyObject *_wrap_pkgCacheVerFileIterator___ne__(PyObject *self, PyObject * pkgCache::VerFileIterator *arg1 = (pkgCache::VerFileIterator *) 0 ; VerFileIterator *arg2 = 0 ; bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCacheVerFileIterator___ne__",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerFileIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_VerFileIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } result = (bool)((pkgCache::VerFileIterator const *)arg1)->operator !=((VerFileIterator const &)*arg2); resultobj = PyInt_FromLong((long)result); @@ -10654,7 +10377,7 @@ static PyObject *_wrap_pkgCacheVerFileIterator___deref____SWIG_0(PyObject *self, PyObject *resultobj; pkgCache::VerFileIterator *arg1 = (pkgCache::VerFileIterator *) 0 ; VerFile *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheVerFileIterator___deref__",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerFileIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -10671,7 +10394,7 @@ static PyObject *_wrap_pkgCacheVerFileIterator___deref____SWIG_1(PyObject *self, PyObject *resultobj; pkgCache::VerFileIterator *arg1 = (pkgCache::VerFileIterator *) 0 ; VerFile *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheVerFileIterator___deref__",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerFileIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -10700,7 +10423,7 @@ static PyObject *_wrap_pkgCacheVerFileIterator___deref__(PyObject *self, PyObjec if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_pkgCache__VerFileIterator, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -10715,7 +10438,7 @@ static PyObject *_wrap_pkgCacheVerFileIterator___deref__(PyObject *self, PyObjec if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_pkgCache__VerFileIterator, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -10733,7 +10456,7 @@ static PyObject *_wrap_pkgCacheVerFileIterator___mul__(PyObject *self, PyObject PyObject *resultobj; pkgCache::VerFileIterator *arg1 = (pkgCache::VerFileIterator *) 0 ; VerFile *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheVerFileIterator___mul__",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerFileIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -10753,7 +10476,7 @@ static PyObject *_wrap_pkgCacheVerFileIterator_VerFile(PyObject *self, PyObject PyObject *resultobj; pkgCache::VerFileIterator *arg1 = (pkgCache::VerFileIterator *) 0 ; VerFile *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheVerFileIterator_VerFile",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerFileIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -10770,7 +10493,7 @@ static PyObject *_wrap_pkgCacheVerFileIterator_Cache(PyObject *self, PyObject *a PyObject *resultobj; pkgCache::VerFileIterator *arg1 = (pkgCache::VerFileIterator *) 0 ; pkgCache *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheVerFileIterator_Cache",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerFileIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -10787,7 +10510,7 @@ static PyObject *_wrap_pkgCacheVerFileIterator_File(PyObject *self, PyObject *ar PyObject *resultobj; pkgCache::VerFileIterator *arg1 = (pkgCache::VerFileIterator *) 0 ; PkgFileIterator result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheVerFileIterator_File",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerFileIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -10808,7 +10531,7 @@ static PyObject *_wrap_pkgCacheVerFileIterator_Index(PyObject *self, PyObject *a PyObject *resultobj; pkgCache::VerFileIterator *arg1 = (pkgCache::VerFileIterator *) 0 ; unsigned long result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheVerFileIterator_Index",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerFileIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -10840,11 +10563,14 @@ static PyObject *_wrap_new_pkgCacheVerFileIterator__SWIG_1(PyObject *self, PyObj pkgCache *arg1 = 0 ; VerFile *arg2 = (VerFile *) 0 ; pkgCache::VerFileIterator *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:new_pkgCacheVerFileIterator",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg1 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_VerFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; result = (pkgCache::VerFileIterator *)new pkgCache::VerFileIterator(*arg1,arg2); @@ -10874,7 +10600,7 @@ static PyObject *_wrap_new_pkgCacheVerFileIterator(PyObject *self, PyObject *arg if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_pkgCache, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -10884,7 +10610,7 @@ static PyObject *_wrap_new_pkgCacheVerFileIterator(PyObject *self, PyObject *arg if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_VerFile, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -10899,28 +10625,11 @@ static PyObject *_wrap_new_pkgCacheVerFileIterator(PyObject *self, PyObject *arg } -static PyObject *_wrap_pkgCacheVerFileIterator_NextFile_set(PyObject *self, PyObject *args) { - PyObject *resultobj; - pkgCache::VerFileIterator *arg1 = (pkgCache::VerFileIterator *) 0 ; - map_ptrloc arg2 ; - PyObject * obj0 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"Oi:pkgCacheVerFileIterator_NextFile_set",&obj0,&arg2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerFileIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - if (arg1) (*arg1)->NextFile = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - static PyObject *_wrap_pkgCacheVerFileIterator_NextFile_get(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache::VerFileIterator *arg1 = (pkgCache::VerFileIterator *) 0 ; map_ptrloc result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheVerFileIterator_NextFile_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerFileIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -10933,28 +10642,11 @@ static PyObject *_wrap_pkgCacheVerFileIterator_NextFile_get(PyObject *self, PyOb } -static PyObject *_wrap_pkgCacheVerFileIterator_Offset_set(PyObject *self, PyObject *args) { - PyObject *resultobj; - pkgCache::VerFileIterator *arg1 = (pkgCache::VerFileIterator *) 0 ; - map_ptrloc arg2 ; - PyObject * obj0 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"Oi:pkgCacheVerFileIterator_Offset_set",&obj0,&arg2)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerFileIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - if (arg1) (*arg1)->Offset = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - static PyObject *_wrap_pkgCacheVerFileIterator_Offset_get(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache::VerFileIterator *arg1 = (pkgCache::VerFileIterator *) 0 ; map_ptrloc result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheVerFileIterator_Offset_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerFileIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -10967,31 +10659,11 @@ static PyObject *_wrap_pkgCacheVerFileIterator_Offset_get(PyObject *self, PyObje } -static PyObject *_wrap_pkgCacheVerFileIterator_Size_set(PyObject *self, PyObject *args) { - PyObject *resultobj; - pkgCache::VerFileIterator *arg1 = (pkgCache::VerFileIterator *) 0 ; - unsigned short arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - - if(!PyArg_ParseTuple(args,(char *)"OO:pkgCacheVerFileIterator_Size_set",&obj0,&obj1)) goto fail; - if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerFileIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - arg2 = (unsigned short) PyInt_AsLong(obj1); - if (PyErr_Occurred()) SWIG_fail; - if (arg1) (*arg1)->Size = arg2; - - Py_INCREF(Py_None); resultobj = Py_None; - return resultobj; - fail: - return NULL; -} - - static PyObject *_wrap_pkgCacheVerFileIterator_Size_get(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache::VerFileIterator *arg1 = (pkgCache::VerFileIterator *) 0 ; unsigned short result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheVerFileIterator_Size_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerFileIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -11007,7 +10679,7 @@ static PyObject *_wrap_pkgCacheVerFileIterator_Size_get(PyObject *self, PyObject static PyObject *_wrap_delete_pkgCacheVerFileIterator(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache::VerFileIterator *arg1 = (pkgCache::VerFileIterator *) 0 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:delete_pkgCacheVerFileIterator",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache__VerFileIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -11031,8 +10703,8 @@ static PyObject *_wrap_pkgCacheFile_Policy_set(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCacheFile *arg1 = (pkgCacheFile *) 0 ; pkgPolicy *arg2 = (pkgPolicy *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCacheFile_Policy_set",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCacheFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -11050,7 +10722,7 @@ static PyObject *_wrap_pkgCacheFile_Policy_get(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCacheFile *arg1 = (pkgCacheFile *) 0 ; pkgPolicy *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheFile_Policy_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCacheFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -11067,7 +10739,7 @@ static PyObject *_wrap_pkgCacheFile_pkgCache(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCacheFile *arg1 = (pkgCacheFile *) 0 ; pkgCache *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheFile_pkgCache",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCacheFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -11084,7 +10756,7 @@ static PyObject *_wrap_pkgCacheFile_pkgDepCache(PyObject *self, PyObject *args) PyObject *resultobj; pkgCacheFile *arg1 = (pkgCacheFile *) 0 ; pkgDepCache *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheFile_pkgDepCache",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCacheFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -11101,7 +10773,7 @@ static PyObject *_wrap_pkgCacheFile___deref__(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCacheFile *arg1 = (pkgCacheFile *) 0 ; pkgDepCache *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheFile___deref__",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCacheFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -11118,7 +10790,7 @@ static PyObject *_wrap_pkgCacheFile___mul__(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCacheFile *arg1 = (pkgCacheFile *) 0 ; pkgDepCache *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheFile___mul__",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCacheFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -11139,12 +10811,15 @@ static PyObject *_wrap_pkgCacheFile___getitem____SWIG_0(PyObject *self, PyObject pkgCacheFile *arg1 = (pkgCacheFile *) 0 ; pkgCache::PkgIterator *arg2 = 0 ; pkgDepCache::StateCache *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCacheFile___getitem__",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCacheFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_pkgCache__PkgIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } { pkgDepCache::StateCache &_result_ref = (arg1)->operator []((pkgCache::PkgIterator const &)*arg2); result = (pkgDepCache::StateCache *) &_result_ref; @@ -11162,12 +10837,15 @@ static PyObject *_wrap_pkgCacheFile___getitem____SWIG_1(PyObject *self, PyObject pkgCacheFile *arg1 = (pkgCacheFile *) 0 ; pkgCache::DepIterator *arg2 = 0 ; unsigned char *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCacheFile___getitem__",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCacheFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_pkgCache__DepIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } { unsigned char &_result_ref = (arg1)->operator []((pkgCache::DepIterator const &)*arg2); result = (unsigned char *) &_result_ref; @@ -11196,7 +10874,7 @@ static PyObject *_wrap_pkgCacheFile___getitem__(PyObject *self, PyObject *args) if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_pkgCacheFile, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -11206,7 +10884,7 @@ static PyObject *_wrap_pkgCacheFile___getitem__(PyObject *self, PyObject *args) if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_pkgCache__PkgIterator, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -11222,7 +10900,7 @@ static PyObject *_wrap_pkgCacheFile___getitem__(PyObject *self, PyObject *args) if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_pkgCacheFile, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -11232,7 +10910,7 @@ static PyObject *_wrap_pkgCacheFile___getitem__(PyObject *self, PyObject *args) if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_pkgCache__DepIterator, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -11253,15 +10931,18 @@ static PyObject *_wrap_pkgCacheFile_BuildCaches(PyObject *self, PyObject *args) OpProgress *arg2 = 0 ; bool arg3 = (bool) true ; bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO|O:pkgCacheFile_BuildCaches",&obj0,&obj1,&obj2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCacheFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_OpProgress,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } if (obj2) { - arg3 = (bool) PyInt_AsLong(obj2); + arg3 = PyInt_AsLong(obj2) ? true : false; if (PyErr_Occurred()) SWIG_fail; } result = (bool)(arg1)->BuildCaches(*arg2,arg3); @@ -11279,15 +10960,18 @@ static PyObject *_wrap_pkgCacheFile_Open(PyObject *self, PyObject *args) { OpProgress *arg2 = 0 ; bool arg3 = (bool) true ; bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO|O:pkgCacheFile_Open",&obj0,&obj1,&obj2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCacheFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_OpProgress,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } if (obj2) { - arg3 = (bool) PyInt_AsLong(obj2); + arg3 = PyInt_AsLong(obj2) ? true : false; if (PyErr_Occurred()) SWIG_fail; } result = (bool)(arg1)->Open(*arg2,arg3); @@ -11302,7 +10986,7 @@ static PyObject *_wrap_pkgCacheFile_Open(PyObject *self, PyObject *args) { static PyObject *_wrap_pkgCacheFile_Close(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCacheFile *arg1 = (pkgCacheFile *) 0 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheFile_Close",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCacheFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -11332,7 +11016,7 @@ static PyObject *_wrap_new_pkgCacheFile(PyObject *self, PyObject *args) { static PyObject *_wrap_delete_pkgCacheFile(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCacheFile *arg1 = (pkgCacheFile *) 0 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:delete_pkgCacheFile",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCacheFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -11349,12 +11033,15 @@ static PyObject *_wrap_pkgCacheFile_BuildGroupOrs(PyObject *self, PyObject *args PyObject *resultobj; pkgCacheFile *arg1 = (pkgCacheFile *) 0 ; VerIterator *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCacheFile_BuildGroupOrs",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCacheFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_VerIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } (*arg1)->BuildGroupOrs((VerIterator const &)*arg2); Py_INCREF(Py_None); resultobj = Py_None; @@ -11369,8 +11056,8 @@ static PyObject *_wrap_pkgCacheFile_UpdateVerState(PyObject *self, PyObject *arg pkgCacheFile *arg1 = (pkgCacheFile *) 0 ; PkgIterator arg2 ; PkgIterator *argp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCacheFile_UpdateVerState",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCacheFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -11389,7 +11076,7 @@ static PyObject *_wrap_pkgCacheFile_Head(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCacheFile *arg1 = (pkgCacheFile *) 0 ; Header *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheFile_Head",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCacheFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -11409,7 +11096,7 @@ static PyObject *_wrap_pkgCacheFile_PkgIter(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCacheFile *arg1 = (pkgCacheFile *) 0 ; PkgIterator result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheFile_PkgIter",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCacheFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -11432,16 +11119,17 @@ static PyObject *_wrap_pkgCacheFile_FindPkg(PyObject *self, PyObject *args) { string *arg2 = 0 ; PkgIterator result; std::string temp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCacheFile_FindPkg",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCacheFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; { if (PyString_Check(obj1)) { - temp2 = std::string(PyString_AsString(obj1)); + temp2 = std::string(PyString_AsString(obj1), + PyString_Size(obj1)); arg2 = &temp2; - }else { + } else { SWIG_exception(SWIG_TypeError, "string expected"); } } @@ -11462,7 +11150,7 @@ static PyObject *_wrap_pkgCacheFile_GetCache(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCacheFile *arg1 = (pkgCacheFile *) 0 ; pkgCache *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheFile_GetCache",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCacheFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -11482,7 +11170,7 @@ static PyObject *_wrap_pkgCacheFile_VS(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCacheFile *arg1 = (pkgCacheFile *) 0 ; pkgVersioningSystem *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheFile_VS",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCacheFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -11504,8 +11192,8 @@ static PyObject *_wrap_pkgCacheFile_GetCandidateVer(PyObject *self, PyObject *ar PkgIterator arg2 ; VerIterator result; PkgIterator *argp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCacheFile_GetCandidateVer",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCacheFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -11530,8 +11218,8 @@ static PyObject *_wrap_pkgCacheFile_IsImportantDep(PyObject *self, PyObject *arg DepIterator arg2 ; bool result; DepIterator *argp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCacheFile_IsImportantDep",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCacheFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -11550,7 +11238,7 @@ static PyObject *_wrap_pkgCacheFile_GetPolicy(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCacheFile *arg1 = (pkgCacheFile *) 0 ; Policy *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheFile_GetPolicy",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCacheFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -11571,12 +11259,15 @@ static PyObject *_wrap_pkgCacheFile_GetPkgPriority(PyObject *self, PyObject *arg pkgCacheFile *arg1 = (pkgCacheFile *) 0 ; pkgCache::PkgIterator *arg2 = 0 ; short result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCacheFile_GetPkgPriority",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCacheFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_pkgCache__PkgIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } result = (short)(*arg1)->GetPkgPriority((pkgCache::PkgIterator const &)*arg2); resultobj = PyInt_FromLong((long)result); @@ -11591,15 +11282,18 @@ static PyObject *_wrap_pkgCacheFile_MarkKeep(PyObject *self, PyObject *args) { pkgCacheFile *arg1 = (pkgCacheFile *) 0 ; PkgIterator *arg2 = 0 ; bool arg3 = (bool) false ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO|O:pkgCacheFile_MarkKeep",&obj0,&obj1,&obj2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCacheFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_PkgIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } if (obj2) { - arg3 = (bool) PyInt_AsLong(obj2); + arg3 = PyInt_AsLong(obj2) ? true : false; if (PyErr_Occurred()) SWIG_fail; } (*arg1)->MarkKeep((PkgIterator const &)*arg2,arg3); @@ -11616,15 +11310,18 @@ static PyObject *_wrap_pkgCacheFile_MarkDelete(PyObject *self, PyObject *args) { pkgCacheFile *arg1 = (pkgCacheFile *) 0 ; PkgIterator *arg2 = 0 ; bool arg3 = (bool) false ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO|O:pkgCacheFile_MarkDelete",&obj0,&obj1,&obj2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCacheFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_PkgIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } if (obj2) { - arg3 = (bool) PyInt_AsLong(obj2); + arg3 = PyInt_AsLong(obj2) ? true : false; if (PyErr_Occurred()) SWIG_fail; } (*arg1)->MarkDelete((PkgIterator const &)*arg2,arg3); @@ -11642,16 +11339,19 @@ static PyObject *_wrap_pkgCacheFile_MarkInstall(PyObject *self, PyObject *args) PkgIterator *arg2 = 0 ; bool arg3 = (bool) true ; unsigned long arg4 = (unsigned long) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO|OO:pkgCacheFile_MarkInstall",&obj0,&obj1,&obj2,&obj3)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCacheFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_PkgIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } if (obj2) { - arg3 = (bool) PyInt_AsLong(obj2); + arg3 = PyInt_AsLong(obj2) ? true : false; if (PyErr_Occurred()) SWIG_fail; } if (obj3) { @@ -11672,14 +11372,17 @@ static PyObject *_wrap_pkgCacheFile_SetReInstall(PyObject *self, PyObject *args) pkgCacheFile *arg1 = (pkgCacheFile *) 0 ; PkgIterator *arg2 = 0 ; bool arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OOO:pkgCacheFile_SetReInstall",&obj0,&obj1,&obj2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCacheFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_PkgIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - arg3 = (bool) PyInt_AsLong(obj2); + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } + arg3 = PyInt_AsLong(obj2) ? true : false; if (PyErr_Occurred()) SWIG_fail; (*arg1)->SetReInstall((PkgIterator const &)*arg2,arg3); @@ -11695,8 +11398,8 @@ static PyObject *_wrap_pkgCacheFile_SetCandidateVersion(PyObject *self, PyObject pkgCacheFile *arg1 = (pkgCacheFile *) 0 ; VerIterator arg2 ; VerIterator *argp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCacheFile_SetCandidateVersion",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCacheFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -11715,8 +11418,8 @@ static PyObject *_wrap_pkgCacheFile_Update(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCacheFile *arg1 = (pkgCacheFile *) 0 ; OpProgress *arg2 = (OpProgress *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O|O:pkgCacheFile_Update",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCacheFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -11736,7 +11439,7 @@ static PyObject *_wrap_pkgCacheFile_UsrSize(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCacheFile *arg1 = (pkgCacheFile *) 0 ; double result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheFile_UsrSize",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCacheFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -11753,7 +11456,7 @@ static PyObject *_wrap_pkgCacheFile_DebSize(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCacheFile *arg1 = (pkgCacheFile *) 0 ; double result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheFile_DebSize",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCacheFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -11770,7 +11473,7 @@ static PyObject *_wrap_pkgCacheFile_DelCount(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCacheFile *arg1 = (pkgCacheFile *) 0 ; unsigned long result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheFile_DelCount",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCacheFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -11787,7 +11490,7 @@ static PyObject *_wrap_pkgCacheFile_KeepCount(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCacheFile *arg1 = (pkgCacheFile *) 0 ; unsigned long result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheFile_KeepCount",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCacheFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -11804,7 +11507,7 @@ static PyObject *_wrap_pkgCacheFile_InstCount(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCacheFile *arg1 = (pkgCacheFile *) 0 ; unsigned long result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheFile_InstCount",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCacheFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -11821,7 +11524,7 @@ static PyObject *_wrap_pkgCacheFile_BrokenCount(PyObject *self, PyObject *args) PyObject *resultobj; pkgCacheFile *arg1 = (pkgCacheFile *) 0 ; unsigned long result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheFile_BrokenCount",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCacheFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -11838,7 +11541,7 @@ static PyObject *_wrap_pkgCacheFile_BadCount(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCacheFile *arg1 = (pkgCacheFile *) 0 ; unsigned long result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgCacheFile_BadCount",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCacheFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -11856,8 +11559,8 @@ static PyObject *_wrap_pkgCacheFile_Init(PyObject *self, PyObject *args) { pkgCacheFile *arg1 = (pkgCacheFile *) 0 ; OpProgress *arg2 = (OpProgress *) 0 ; bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgCacheFile_Init",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCacheFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -11883,8 +11586,8 @@ static PyObject *_wrap_pkgProblemResolver_Protect(PyObject *self, PyObject *args pkgProblemResolver *arg1 = (pkgProblemResolver *) 0 ; pkgCache::PkgIterator arg2 ; pkgCache::PkgIterator *argp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgProblemResolver_Protect",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgProblemResolver,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -11904,8 +11607,8 @@ static PyObject *_wrap_pkgProblemResolver_Remove(PyObject *self, PyObject *args) pkgProblemResolver *arg1 = (pkgProblemResolver *) 0 ; pkgCache::PkgIterator arg2 ; pkgCache::PkgIterator *argp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgProblemResolver_Remove",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgProblemResolver,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -11925,8 +11628,8 @@ static PyObject *_wrap_pkgProblemResolver_Clear(PyObject *self, PyObject *args) pkgProblemResolver *arg1 = (pkgProblemResolver *) 0 ; pkgCache::PkgIterator arg2 ; pkgCache::PkgIterator *argp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgProblemResolver_Clear",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgProblemResolver,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -11946,13 +11649,13 @@ static PyObject *_wrap_pkgProblemResolver_Resolve(PyObject *self, PyObject *args pkgProblemResolver *arg1 = (pkgProblemResolver *) 0 ; bool arg2 = (bool) false ; bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O|O:pkgProblemResolver_Resolve",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgProblemResolver,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if (obj1) { - arg2 = (bool) PyInt_AsLong(obj1); + arg2 = PyInt_AsLong(obj1) ? true : false; if (PyErr_Occurred()) SWIG_fail; } result = (bool)(arg1)->Resolve(arg2); @@ -11968,7 +11671,7 @@ static PyObject *_wrap_pkgProblemResolver_ResolveByKeep(PyObject *self, PyObject PyObject *resultobj; pkgProblemResolver *arg1 = (pkgProblemResolver *) 0 ; bool result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgProblemResolver_ResolveByKeep",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgProblemResolver,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -11984,7 +11687,7 @@ static PyObject *_wrap_pkgProblemResolver_ResolveByKeep(PyObject *self, PyObject static PyObject *_wrap_pkgProblemResolver_InstallProtect(PyObject *self, PyObject *args) { PyObject *resultobj; pkgProblemResolver *arg1 = (pkgProblemResolver *) 0 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgProblemResolver_InstallProtect",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgProblemResolver,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -12001,7 +11704,7 @@ static PyObject *_wrap_pkgProblemResolver_RemoveDepends(PyObject *self, PyObject PyObject *resultobj; pkgProblemResolver *arg1 = (pkgProblemResolver *) 0 ; bool result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgProblemResolver_RemoveDepends",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgProblemResolver,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -12018,7 +11721,7 @@ static PyObject *_wrap_new_pkgProblemResolver(PyObject *self, PyObject *args) { PyObject *resultobj; pkgDepCache *arg1 = (pkgDepCache *) 0 ; pkgProblemResolver *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:new_pkgProblemResolver",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgDepCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -12034,7 +11737,7 @@ static PyObject *_wrap_new_pkgProblemResolver(PyObject *self, PyObject *args) { static PyObject *_wrap_delete_pkgProblemResolver(PyObject *self, PyObject *args) { PyObject *resultobj; pkgProblemResolver *arg1 = (pkgProblemResolver *) 0 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:delete_pkgProblemResolver",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgProblemResolver,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -12058,10 +11761,13 @@ static PyObject *_wrap_pkgDistUpgrade(PyObject *self, PyObject *args) { PyObject *resultobj; pkgDepCache *arg1 = 0 ; bool result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgDistUpgrade",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgDepCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg1 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } result = (bool)pkgDistUpgrade(*arg1); resultobj = PyInt_FromLong((long)result); @@ -12075,10 +11781,13 @@ static PyObject *_wrap_pkgApplyStatus(PyObject *self, PyObject *args) { PyObject *resultobj; pkgDepCache *arg1 = 0 ; bool result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgApplyStatus",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgDepCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg1 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } result = (bool)pkgApplyStatus(*arg1); resultobj = PyInt_FromLong((long)result); @@ -12092,10 +11801,13 @@ static PyObject *_wrap_pkgFixBroken(PyObject *self, PyObject *args) { PyObject *resultobj; pkgDepCache *arg1 = 0 ; bool result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgFixBroken",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgDepCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg1 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } result = (bool)pkgFixBroken(*arg1); resultobj = PyInt_FromLong((long)result); @@ -12109,10 +11821,13 @@ static PyObject *_wrap_pkgAllUpgrade(PyObject *self, PyObject *args) { PyObject *resultobj; pkgDepCache *arg1 = 0 ; bool result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgAllUpgrade",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgDepCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg1 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } result = (bool)pkgAllUpgrade(*arg1); resultobj = PyInt_FromLong((long)result); @@ -12126,10 +11841,13 @@ static PyObject *_wrap_pkgMinimizeUpgrade(PyObject *self, PyObject *args) { PyObject *resultobj; pkgDepCache *arg1 = 0 ; bool result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgMinimizeUpgrade",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgDepCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg1 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } result = (bool)pkgMinimizeUpgrade(*arg1); resultobj = PyInt_FromLong((long)result); @@ -12143,11 +11861,14 @@ static PyObject *_wrap_pkgPrioSortList(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache *arg1 = 0 ; pkgCache::Version **arg2 = (pkgCache::Version **) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgPrioSortList",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg1 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_p_pkgCache__Version,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; pkgPrioSortList(*arg1,arg2); @@ -12219,7 +11940,7 @@ static PyObject *_wrap_pkgSystem_Label_get(PyObject *self, PyObject *args) { PyObject *resultobj; pkgSystem *arg1 = (pkgSystem *) 0 ; char *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgSystem_Label_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -12236,8 +11957,8 @@ static PyObject *_wrap_pkgSystem_VS_set(PyObject *self, PyObject *args) { PyObject *resultobj; pkgSystem *arg1 = (pkgSystem *) 0 ; pkgVersioningSystem *arg2 = (pkgVersioningSystem *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgSystem_VS_set",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -12255,7 +11976,7 @@ static PyObject *_wrap_pkgSystem_VS_get(PyObject *self, PyObject *args) { PyObject *resultobj; pkgSystem *arg1 = (pkgSystem *) 0 ; pkgVersioningSystem *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgSystem_VS_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -12272,7 +11993,7 @@ static PyObject *_wrap_pkgSystem_Lock(PyObject *self, PyObject *args) { PyObject *resultobj; pkgSystem *arg1 = (pkgSystem *) 0 ; bool result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgSystem_Lock",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -12290,13 +12011,13 @@ static PyObject *_wrap_pkgSystem_UnLock(PyObject *self, PyObject *args) { pkgSystem *arg1 = (pkgSystem *) 0 ; bool arg2 = (bool) false ; bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O|O:pkgSystem_UnLock",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if (obj1) { - arg2 = (bool) PyInt_AsLong(obj1); + arg2 = PyInt_AsLong(obj1) ? true : false; if (PyErr_Occurred()) SWIG_fail; } result = (bool)(arg1)->UnLock(arg2); @@ -12312,7 +12033,7 @@ static PyObject *_wrap_pkgSystem_LockRead(PyObject *self, PyObject *args) { PyObject *resultobj; pkgSystem *arg1 = (pkgSystem *) 0 ; bool result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgSystem_LockRead",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -12328,7 +12049,7 @@ static PyObject *_wrap_pkgSystem_LockRead(PyObject *self, PyObject *args) { static PyObject *_wrap_pkgSystem_CacheBuilt(PyObject *self, PyObject *args) { PyObject *resultobj; pkgSystem *arg1 = (pkgSystem *) 0 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgSystem_CacheBuilt",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -12346,8 +12067,8 @@ static PyObject *_wrap_pkgSystem_CreatePM(PyObject *self, PyObject *args) { pkgSystem *arg1 = (pkgSystem *) 0 ; pkgDepCache *arg2 = (pkgDepCache *) 0 ; pkgPackageManager *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgSystem_CreatePM",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -12366,12 +12087,15 @@ static PyObject *_wrap_pkgSystem_Initialize(PyObject *self, PyObject *args) { pkgSystem *arg1 = (pkgSystem *) 0 ; Configuration *arg2 = 0 ; bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgSystem_Initialize",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } result = (bool)(arg1)->Initialize(*arg2); resultobj = PyInt_FromLong((long)result); @@ -12386,7 +12110,7 @@ static PyObject *_wrap_pkgSystem_ArchiveSupported(PyObject *self, PyObject *args pkgSystem *arg1 = (pkgSystem *) 0 ; char *arg2 ; bool result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Os:pkgSystem_ArchiveSupported",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -12404,12 +12128,15 @@ static PyObject *_wrap_pkgSystem_AddStatusFiles(PyObject *self, PyObject *args) pkgSystem *arg1 = (pkgSystem *) 0 ; std::vector<pkgIndexFile * > *arg2 = 0 ; bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgSystem_AddStatusFiles",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_std__vectorTpkgIndexFile_p_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } result = (bool)(arg1)->AddStatusFiles(*arg2); resultobj = PyInt_FromLong((long)result); @@ -12419,6 +12146,29 @@ static PyObject *_wrap_pkgSystem_AddStatusFiles(PyObject *self, PyObject *args) } +static PyObject *_wrap_pkgSystem_AddSourceFiles(PyObject *self, PyObject *args) { + PyObject *resultobj; + pkgSystem *arg1 = (pkgSystem *) 0 ; + std::vector<pkgIndexFile * > *arg2 = 0 ; + bool result; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:pkgSystem_AddSourceFiles",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_std__vectorTpkgIndexFile_p_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } + result = (bool)(arg1)->AddSourceFiles(*arg2); + + resultobj = PyInt_FromLong((long)result); + return resultobj; + fail: + return NULL; +} + + static PyObject *_wrap_pkgSystem_FindIndex(PyObject *self, PyObject *args) { PyObject *resultobj; pkgSystem *arg1 = (pkgSystem *) 0 ; @@ -12426,15 +12176,18 @@ static PyObject *_wrap_pkgSystem_FindIndex(PyObject *self, PyObject *args) { pkgIndexFile **arg3 = 0 ; bool result; pkgCache::PkgFileIterator *argp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OOO:pkgSystem_FindIndex",&obj0,&obj1,&obj2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_pkgCache__PkgFileIterator,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; arg2 = *argp2; if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_p_pkgIndexFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg3 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } result = (bool)((pkgSystem const *)arg1)->FindIndex(arg2,*arg3); resultobj = PyInt_FromLong((long)result); @@ -12449,12 +12202,15 @@ static PyObject *_wrap_pkgSystem_Score(PyObject *self, PyObject *args) { pkgSystem *arg1 = (pkgSystem *) 0 ; Configuration *arg2 = 0 ; int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgSystem_Score",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } result = (int)(arg1)->Score((Configuration const &)*arg2); resultobj = PyInt_FromLong((long)result); @@ -12471,16 +12227,19 @@ static PyObject *_wrap_pkgSystem_PreProcess(PyObject *self, PyObject *args) { pkgIndexFile **arg3 = (pkgIndexFile **) 0 ; OpProgress *arg4 = 0 ; bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OOOO:pkgSystem_PreProcess",&obj0,&obj1,&obj2,&obj3)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_p_pkgIndexFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_p_pkgIndexFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_OpProgress,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg4 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } result = (bool)(arg1)->PreProcess(arg2,arg3,*arg4); resultobj = PyInt_FromLong((long)result); @@ -12496,14 +12255,20 @@ static PyObject *_wrap_pkgSystem_ProcessCache(PyObject *self, PyObject *args) { pkgDepCache *arg2 = 0 ; pkgProblemResolver *arg3 = 0 ; bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OOO:pkgSystem_ProcessCache",&obj0,&obj1,&obj2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_pkgDepCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_pkgProblemResolver,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg3 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } result = (bool)(arg1)->ProcessCache(*arg2,*arg3); resultobj = PyInt_FromLong((long)result); @@ -12519,14 +12284,20 @@ static PyObject *_wrap_pkgSystem_IgnoreDep(PyObject *self, PyObject *args) { pkgVersioningSystem *arg2 = 0 ; pkgCache::DepIterator *arg3 = 0 ; bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OOO:pkgSystem_IgnoreDep",&obj0,&obj1,&obj2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_pkgVersioningSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_pkgCache__DepIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg3 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } result = (bool)(arg1)->IgnoreDep(*arg2,*arg3); resultobj = PyInt_FromLong((long)result); @@ -12536,10 +12307,27 @@ static PyObject *_wrap_pkgSystem_IgnoreDep(PyObject *self, PyObject *args) { } +static PyObject *_wrap_pkgSystem_OptionsHash(PyObject *self, PyObject *args) { + PyObject *resultobj; + pkgSystem *arg1 = (pkgSystem *) 0 ; + unsigned long result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:pkgSystem_OptionsHash",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (unsigned long)((pkgSystem const *)arg1)->OptionsHash(); + + resultobj = PyInt_FromLong((long)result); + return resultobj; + fail: + return NULL; +} + + static PyObject *_wrap_delete_pkgSystem(PyObject *self, PyObject *args) { PyObject *resultobj; pkgSystem *arg1 = (pkgSystem *) 0 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:delete_pkgSystem",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -12586,14 +12374,14 @@ static PyObject *_wrap_Configuration_Find__SWIG_0(PyObject *self, PyObject *args char *arg2 ; char *arg3 = (char *) 0 ; string result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Os|s:Configuration_Find",&obj0,&arg2,&arg3)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; result = ((Configuration const *)arg1)->Find((char const *)arg2,(char const *)arg3); { - resultobj = PyString_FromString((&result)->c_str()); + resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); } return resultobj; fail: @@ -12607,21 +12395,22 @@ static PyObject *_wrap_Configuration_Find__SWIG_1(PyObject *self, PyObject *args string arg2 ; char *arg3 = (char *) 0 ; string result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO|s:Configuration_Find",&obj0,&obj1,&arg3)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; { if (PyString_Check(obj1)) - arg2 = std::string(PyString_AsString(obj1)); + arg2 = std::string(PyString_AsString(obj1), + PyString_Size(obj1)); else SWIG_exception(SWIG_TypeError, "string expected"); } result = ((Configuration const *)arg1)->Find(arg2,(char const *)arg3); { - resultobj = PyString_FromString((&result)->c_str()); + resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); } return resultobj; fail: @@ -12645,7 +12434,7 @@ static PyObject *_wrap_Configuration_Find(PyObject *self, PyObject *args) { if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_Configuration, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -12673,7 +12462,7 @@ static PyObject *_wrap_Configuration_Find(PyObject *self, PyObject *args) { if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_Configuration, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -12706,14 +12495,14 @@ static PyObject *_wrap_Configuration_FindFile(PyObject *self, PyObject *args) { char *arg2 ; char *arg3 = (char *) 0 ; string result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Os|s:Configuration_FindFile",&obj0,&arg2,&arg3)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; result = ((Configuration const *)arg1)->FindFile((char const *)arg2,(char const *)arg3); { - resultobj = PyString_FromString((&result)->c_str()); + resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); } return resultobj; fail: @@ -12727,14 +12516,14 @@ static PyObject *_wrap_Configuration_FindDir(PyObject *self, PyObject *args) { char *arg2 ; char *arg3 = (char *) 0 ; string result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Os|s:Configuration_FindDir",&obj0,&arg2,&arg3)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; result = ((Configuration const *)arg1)->FindDir((char const *)arg2,(char const *)arg3); { - resultobj = PyString_FromString((&result)->c_str()); + resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); } return resultobj; fail: @@ -12748,7 +12537,7 @@ static PyObject *_wrap_Configuration_FindI__SWIG_0(PyObject *self, PyObject *arg char *arg2 ; int arg3 = (int) 0 ; int result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Os|i:Configuration_FindI",&obj0,&arg2,&arg3)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -12767,14 +12556,15 @@ static PyObject *_wrap_Configuration_FindI__SWIG_1(PyObject *self, PyObject *arg string arg2 ; int arg3 = (int) 0 ; int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO|i:Configuration_FindI",&obj0,&obj1,&arg3)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; { if (PyString_Check(obj1)) - arg2 = std::string(PyString_AsString(obj1)); + arg2 = std::string(PyString_AsString(obj1), + PyString_Size(obj1)); else SWIG_exception(SWIG_TypeError, "string expected"); } @@ -12803,7 +12593,7 @@ static PyObject *_wrap_Configuration_FindI(PyObject *self, PyObject *args) { if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_Configuration, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -12831,7 +12621,7 @@ static PyObject *_wrap_Configuration_FindI(PyObject *self, PyObject *args) { if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_Configuration, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -12864,13 +12654,13 @@ static PyObject *_wrap_Configuration_FindB__SWIG_0(PyObject *self, PyObject *arg char *arg2 ; bool arg3 = (bool) false ; bool result; - PyObject * obj0 = 0 ; - PyObject * obj2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj2 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Os|O:Configuration_FindB",&obj0,&arg2,&obj2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if (obj2) { - arg3 = (bool) PyInt_AsLong(obj2); + arg3 = PyInt_AsLong(obj2) ? true : false; if (PyErr_Occurred()) SWIG_fail; } result = (bool)((Configuration const *)arg1)->FindB((char const *)arg2,arg3); @@ -12888,20 +12678,21 @@ static PyObject *_wrap_Configuration_FindB__SWIG_1(PyObject *self, PyObject *arg string arg2 ; bool arg3 = (bool) false ; bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO|O:Configuration_FindB",&obj0,&obj1,&obj2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; { if (PyString_Check(obj1)) - arg2 = std::string(PyString_AsString(obj1)); + arg2 = std::string(PyString_AsString(obj1), + PyString_Size(obj1)); else SWIG_exception(SWIG_TypeError, "string expected"); } if (obj2) { - arg3 = (bool) PyInt_AsLong(obj2); + arg3 = PyInt_AsLong(obj2) ? true : false; if (PyErr_Occurred()) SWIG_fail; } result = (bool)((Configuration const *)arg1)->FindB(arg2,arg3); @@ -12929,7 +12720,7 @@ static PyObject *_wrap_Configuration_FindB(PyObject *self, PyObject *args) { if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_Configuration, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -12957,7 +12748,7 @@ static PyObject *_wrap_Configuration_FindB(PyObject *self, PyObject *args) { if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_Configuration, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -12990,14 +12781,14 @@ static PyObject *_wrap_Configuration_FindAny(PyObject *self, PyObject *args) { char *arg2 ; char *arg3 = (char *) 0 ; string result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Os|s:Configuration_FindAny",&obj0,&arg2,&arg3)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; result = ((Configuration const *)arg1)->FindAny((char const *)arg2,(char const *)arg3); { - resultobj = PyString_FromString((&result)->c_str()); + resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); } return resultobj; fail: @@ -13010,21 +12801,23 @@ static PyObject *_wrap_Configuration_Set__SWIG_0(PyObject *self, PyObject *args) Configuration *arg1 = (Configuration *) 0 ; string arg2 ; string arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OOO:Configuration_Set",&obj0,&obj1,&obj2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; { if (PyString_Check(obj1)) - arg2 = std::string(PyString_AsString(obj1)); + arg2 = std::string(PyString_AsString(obj1), + PyString_Size(obj1)); else SWIG_exception(SWIG_TypeError, "string expected"); } { if (PyString_Check(obj2)) - arg3 = std::string(PyString_AsString(obj2)); + arg3 = std::string(PyString_AsString(obj2), + PyString_Size(obj2)); else SWIG_exception(SWIG_TypeError, "string expected"); } @@ -13042,14 +12835,15 @@ static PyObject *_wrap_Configuration_CndSet(PyObject *self, PyObject *args) { Configuration *arg1 = (Configuration *) 0 ; char *arg2 ; string arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj2 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OsO:Configuration_CndSet",&obj0,&arg2,&obj2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; { if (PyString_Check(obj2)) - arg3 = std::string(PyString_AsString(obj2)); + arg3 = std::string(PyString_AsString(obj2), + PyString_Size(obj2)); else SWIG_exception(SWIG_TypeError, "string expected"); } @@ -13067,14 +12861,15 @@ static PyObject *_wrap_Configuration_Set__SWIG_1(PyObject *self, PyObject *args) Configuration *arg1 = (Configuration *) 0 ; char *arg2 ; string arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj2 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OsO:Configuration_Set",&obj0,&arg2,&obj2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; { if (PyString_Check(obj2)) - arg3 = std::string(PyString_AsString(obj2)); + arg3 = std::string(PyString_AsString(obj2), + PyString_Size(obj2)); else SWIG_exception(SWIG_TypeError, "string expected"); } @@ -13092,7 +12887,7 @@ static PyObject *_wrap_Configuration_Set__SWIG_2(PyObject *self, PyObject *args) Configuration *arg1 = (Configuration *) 0 ; char *arg2 ; int arg3 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Osi:Configuration_Set",&obj0,&arg2,&arg3)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -13121,7 +12916,7 @@ static PyObject *_wrap_Configuration_Set(PyObject *self, PyObject *args) { if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_Configuration, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -13146,7 +12941,7 @@ static PyObject *_wrap_Configuration_Set(PyObject *self, PyObject *args) { if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_Configuration, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -13171,7 +12966,7 @@ static PyObject *_wrap_Configuration_Set(PyObject *self, PyObject *args) { if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_Configuration, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -13200,14 +12995,15 @@ static PyObject *_wrap_Configuration_Exists__SWIG_0(PyObject *self, PyObject *ar Configuration *arg1 = (Configuration *) 0 ; string arg2 ; bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:Configuration_Exists",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; { if (PyString_Check(obj1)) - arg2 = std::string(PyString_AsString(obj1)); + arg2 = std::string(PyString_AsString(obj1), + PyString_Size(obj1)); else SWIG_exception(SWIG_TypeError, "string expected"); } @@ -13225,7 +13021,7 @@ static PyObject *_wrap_Configuration_Exists__SWIG_1(PyObject *self, PyObject *ar Configuration *arg1 = (Configuration *) 0 ; char *arg2 ; bool result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Os:Configuration_Exists",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -13254,7 +13050,7 @@ static PyObject *_wrap_Configuration_Exists(PyObject *self, PyObject *args) { if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_Configuration, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -13274,7 +13070,7 @@ static PyObject *_wrap_Configuration_Exists(PyObject *self, PyObject *args) { if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_Configuration, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -13298,7 +13094,7 @@ static PyObject *_wrap_Configuration_ExistsAny(PyObject *self, PyObject *args) { Configuration *arg1 = (Configuration *) 0 ; char *arg2 ; bool result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Os:Configuration_ExistsAny",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -13315,14 +13111,15 @@ static PyObject *_wrap_Configuration_Clear(PyObject *self, PyObject *args) { PyObject *resultobj; Configuration *arg1 = (Configuration *) 0 ; string arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:Configuration_Clear",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; { if (PyString_Check(obj1)) - arg2 = std::string(PyString_AsString(obj1)); + arg2 = std::string(PyString_AsString(obj1), + PyString_Size(obj1)); else SWIG_exception(SWIG_TypeError, "string expected"); } @@ -13340,7 +13137,7 @@ static PyObject *_wrap_Configuration_Tree(PyObject *self, PyObject *args) { Configuration *arg1 = (Configuration *) 0 ; char *arg2 ; Item *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Os:Configuration_Tree",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -13356,7 +13153,7 @@ static PyObject *_wrap_Configuration_Tree(PyObject *self, PyObject *args) { static PyObject *_wrap_Configuration_Dump__SWIG_0(PyObject *self, PyObject *args) { PyObject *resultobj; Configuration *arg1 = (Configuration *) 0 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:Configuration_Dump",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -13373,12 +13170,15 @@ static PyObject *_wrap_Configuration_Dump__SWIG_1(PyObject *self, PyObject *args PyObject *resultobj; Configuration *arg1 = (Configuration *) 0 ; std::ostream *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:Configuration_Dump",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_std__ostream,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } (arg1)->Dump(*arg2); Py_INCREF(Py_None); resultobj = Py_None; @@ -13404,7 +13204,7 @@ static PyObject *_wrap_Configuration_Dump(PyObject *self, PyObject *args) { if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_Configuration, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -13419,7 +13219,7 @@ static PyObject *_wrap_Configuration_Dump(PyObject *self, PyObject *args) { if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_Configuration, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -13429,7 +13229,7 @@ static PyObject *_wrap_Configuration_Dump(PyObject *self, PyObject *args) { if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_std__ostream, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -13448,10 +13248,13 @@ static PyObject *_wrap_new_Configuration__SWIG_0(PyObject *self, PyObject *args) PyObject *resultobj; Configuration *arg1 = 0 ; Configuration *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:new_Configuration",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg1 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } result = (Configuration *)new Configuration(*arg1); resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_Configuration, 1); @@ -13465,7 +13268,7 @@ static PyObject *_wrap_new_Configuration__SWIG_1(PyObject *self, PyObject *args) PyObject *resultobj; Item *arg1 = (Item *) 0 ; Configuration *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:new_Configuration",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Item,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -13511,7 +13314,7 @@ static PyObject *_wrap_new_Configuration(PyObject *self, PyObject *args) { if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_Item, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -13526,7 +13329,7 @@ static PyObject *_wrap_new_Configuration(PyObject *self, PyObject *args) { if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_Configuration, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -13543,7 +13346,7 @@ static PyObject *_wrap_new_Configuration(PyObject *self, PyObject *args) { static PyObject *_wrap_delete_Configuration(PyObject *self, PyObject *args) { PyObject *resultobj; Configuration *arg1 = (Configuration *) 0 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:delete_Configuration",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -13591,21 +13394,25 @@ static PyObject *_wrap_ReadConfigFile(PyObject *self, PyObject *args) { bool arg3 = (bool) false ; unsigned int arg4 = (unsigned int) 0 ; bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO|OO:ReadConfigFile",&obj0,&obj1,&obj2,&obj3)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg1 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } { if (PyString_Check(obj1)) - arg2 = std::string(PyString_AsString(obj1)); + arg2 = std::string(PyString_AsString(obj1), + PyString_Size(obj1)); else SWIG_exception(SWIG_TypeError, "string expected"); } if (obj2) { - arg3 = (bool) PyInt_AsLong(obj2); + arg3 = PyInt_AsLong(obj2) ? true : false; if (PyErr_Occurred()) SWIG_fail; } if (obj3) { @@ -13628,21 +13435,25 @@ static PyObject *_wrap_ReadConfigDir(PyObject *self, PyObject *args) { bool arg3 = (bool) false ; unsigned int arg4 = (unsigned int) 0 ; bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO|OO:ReadConfigDir",&obj0,&obj1,&obj2,&obj3)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg1 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } { if (PyString_Check(obj1)) - arg2 = std::string(PyString_AsString(obj1)); + arg2 = std::string(PyString_AsString(obj1), + PyString_Size(obj1)); else SWIG_exception(SWIG_TypeError, "string expected"); } if (obj2) { - arg3 = (bool) PyInt_AsLong(obj2); + arg3 = PyInt_AsLong(obj2) ? true : false; if (PyErr_Occurred()) SWIG_fail; } if (obj3) { @@ -13662,7 +13473,7 @@ static PyObject *_wrap_ConfigurationItem_Tag_set(PyObject *self, PyObject *args) PyObject *resultobj; Configuration::Item *arg1 = (Configuration::Item *) 0 ; char *arg2 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Os:ConfigurationItem_Tag_set",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Configuration__Item,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -13679,7 +13490,7 @@ static PyObject *_wrap_ConfigurationItem_Tag_get(PyObject *self, PyObject *args) PyObject *resultobj; Configuration::Item *arg1 = (Configuration::Item *) 0 ; char *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:ConfigurationItem_Tag_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Configuration__Item,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -13696,7 +13507,7 @@ static PyObject *_wrap_ConfigurationItem_Value_set(PyObject *self, PyObject *arg PyObject *resultobj; Configuration::Item *arg1 = (Configuration::Item *) 0 ; char *arg2 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Os:ConfigurationItem_Value_set",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Configuration__Item,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -13713,7 +13524,7 @@ static PyObject *_wrap_ConfigurationItem_Value_get(PyObject *self, PyObject *arg PyObject *resultobj; Configuration::Item *arg1 = (Configuration::Item *) 0 ; char *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:ConfigurationItem_Value_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Configuration__Item,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -13730,8 +13541,8 @@ static PyObject *_wrap_ConfigurationItem_Parent_set(PyObject *self, PyObject *ar PyObject *resultobj; Configuration::Item *arg1 = (Configuration::Item *) 0 ; Item *arg2 = (Item *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:ConfigurationItem_Parent_set",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Configuration__Item,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -13749,7 +13560,7 @@ static PyObject *_wrap_ConfigurationItem_Parent_get(PyObject *self, PyObject *ar PyObject *resultobj; Configuration::Item *arg1 = (Configuration::Item *) 0 ; Item *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:ConfigurationItem_Parent_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Configuration__Item,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -13766,8 +13577,8 @@ static PyObject *_wrap_ConfigurationItem_Child_set(PyObject *self, PyObject *arg PyObject *resultobj; Configuration::Item *arg1 = (Configuration::Item *) 0 ; Item *arg2 = (Item *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:ConfigurationItem_Child_set",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Configuration__Item,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -13785,7 +13596,7 @@ static PyObject *_wrap_ConfigurationItem_Child_get(PyObject *self, PyObject *arg PyObject *resultobj; Configuration::Item *arg1 = (Configuration::Item *) 0 ; Item *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:ConfigurationItem_Child_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Configuration__Item,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -13802,8 +13613,8 @@ static PyObject *_wrap_ConfigurationItem_Next_set(PyObject *self, PyObject *args PyObject *resultobj; Configuration::Item *arg1 = (Configuration::Item *) 0 ; Item *arg2 = (Item *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:ConfigurationItem_Next_set",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Configuration__Item,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -13821,7 +13632,7 @@ static PyObject *_wrap_ConfigurationItem_Next_get(PyObject *self, PyObject *args PyObject *resultobj; Configuration::Item *arg1 = (Configuration::Item *) 0 ; Item *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:ConfigurationItem_Next_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Configuration__Item,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -13839,8 +13650,8 @@ static PyObject *_wrap_ConfigurationItem_FullTag(PyObject *self, PyObject *args) Configuration::Item *arg1 = (Configuration::Item *) 0 ; Item *arg2 = (Item *) 0 ; string result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O|O:ConfigurationItem_FullTag",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Configuration__Item,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -13850,7 +13661,7 @@ static PyObject *_wrap_ConfigurationItem_FullTag(PyObject *self, PyObject *args) result = ((Configuration::Item const *)arg1)->FullTag((Item const *)arg2); { - resultobj = PyString_FromString((&result)->c_str()); + resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); } return resultobj; fail: @@ -13875,7 +13686,7 @@ static PyObject *_wrap_new_ConfigurationItem(PyObject *self, PyObject *args) { static PyObject *_wrap_delete_ConfigurationItem(PyObject *self, PyObject *args) { PyObject *resultobj; Configuration::Item *arg1 = (Configuration::Item *) 0 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:delete_ConfigurationItem",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Configuration__Item,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -13899,8 +13710,8 @@ static PyObject *_wrap_OpProgress_Progress(PyObject *self, PyObject *args) { PyObject *resultobj; OpProgress *arg1 = (OpProgress *) 0 ; unsigned long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:OpProgress_Progress",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_OpProgress,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -13919,8 +13730,8 @@ static PyObject *_wrap_OpProgress_SubProgress__SWIG_0(PyObject *self, PyObject * PyObject *resultobj; OpProgress *arg1 = (OpProgress *) 0 ; unsigned long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:OpProgress_SubProgress",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_OpProgress,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -13940,9 +13751,9 @@ static PyObject *_wrap_OpProgress_SubProgress__SWIG_1(PyObject *self, PyObject * OpProgress *arg1 = (OpProgress *) 0 ; unsigned long arg2 ; string arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OOO:OpProgress_SubProgress",&obj0,&obj1,&obj2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_OpProgress,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -13950,7 +13761,8 @@ static PyObject *_wrap_OpProgress_SubProgress__SWIG_1(PyObject *self, PyObject * if (PyErr_Occurred()) SWIG_fail; { if (PyString_Check(obj2)) - arg3 = std::string(PyString_AsString(obj2)); + arg3 = std::string(PyString_AsString(obj2), + PyString_Size(obj2)); else SWIG_exception(SWIG_TypeError, "string expected"); } @@ -13979,7 +13791,7 @@ static PyObject *_wrap_OpProgress_SubProgress(PyObject *self, PyObject *args) { if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_OpProgress, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -13999,7 +13811,7 @@ static PyObject *_wrap_OpProgress_SubProgress(PyObject *self, PyObject *args) { if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_OpProgress, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -14030,11 +13842,11 @@ static PyObject *_wrap_OpProgress_OverallProgress(PyObject *self, PyObject *args unsigned long arg3 ; unsigned long arg4 ; string arg5 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OOOOO:OpProgress_OverallProgress",&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_OpProgress,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -14046,7 +13858,8 @@ static PyObject *_wrap_OpProgress_OverallProgress(PyObject *self, PyObject *args if (PyErr_Occurred()) SWIG_fail; { if (PyString_Check(obj4)) - arg5 = std::string(PyString_AsString(obj4)); + arg5 = std::string(PyString_AsString(obj4), + PyString_Size(obj4)); else SWIG_exception(SWIG_TypeError, "string expected"); } @@ -14062,7 +13875,7 @@ static PyObject *_wrap_OpProgress_OverallProgress(PyObject *self, PyObject *args static PyObject *_wrap_OpProgress_Done(PyObject *self, PyObject *args) { PyObject *resultobj; OpProgress *arg1 = (OpProgress *) 0 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:OpProgress_Done",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_OpProgress,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -14092,7 +13905,7 @@ static PyObject *_wrap_new_OpProgress(PyObject *self, PyObject *args) { static PyObject *_wrap_delete_OpProgress(PyObject *self, PyObject *args) { PyObject *resultobj; OpProgress *arg1 = (OpProgress *) 0 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:delete_OpProgress",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_OpProgress,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -14115,7 +13928,7 @@ static PyObject * OpProgress_swigregister(PyObject *self, PyObject *args) { static PyObject *_wrap_OpTextProgress_Done(PyObject *self, PyObject *args) { PyObject *resultobj; OpTextProgress *arg1 = (OpTextProgress *) 0 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:OpTextProgress_Done",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_OpTextProgress,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -14132,11 +13945,11 @@ static PyObject *_wrap_new_OpTextProgress__SWIG_0(PyObject *self, PyObject *args PyObject *resultobj; bool arg1 = (bool) false ; OpTextProgress *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"|O:new_OpTextProgress",&obj0)) goto fail; if (obj0) { - arg1 = (bool) PyInt_AsLong(obj0); + arg1 = PyInt_AsLong(obj0) ? true : false; if (PyErr_Occurred()) SWIG_fail; } result = (OpTextProgress *)new OpTextProgress(arg1); @@ -14152,10 +13965,13 @@ static PyObject *_wrap_new_OpTextProgress__SWIG_1(PyObject *self, PyObject *args PyObject *resultobj; Configuration *arg1 = 0 ; OpTextProgress *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:new_OpTextProgress",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Configuration,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg1 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } result = (OpTextProgress *)new OpTextProgress(*arg1); resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_OpTextProgress, 1); @@ -14193,7 +14009,7 @@ static PyObject *_wrap_new_OpTextProgress(PyObject *self, PyObject *args) { if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_Configuration, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -14210,7 +14026,7 @@ static PyObject *_wrap_new_OpTextProgress(PyObject *self, PyObject *args) { static PyObject *_wrap_delete_OpTextProgress(PyObject *self, PyObject *args) { PyObject *resultobj; OpTextProgress *arg1 = (OpTextProgress *) 0 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:delete_OpTextProgress",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_OpTextProgress,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -14291,7 +14107,7 @@ static PyObject *_wrap_pkgVersioningSystem_Label_get(PyObject *self, PyObject *a PyObject *resultobj; pkgVersioningSystem *arg1 = (pkgVersioningSystem *) 0 ; char *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgVersioningSystem_Label_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgVersioningSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -14312,7 +14128,7 @@ static PyObject *_wrap_pkgVersioningSystem_DoCmpVersion(PyObject *self, PyObject char *arg4 ; char *arg5 ; int result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Ossss:pkgVersioningSystem_DoCmpVersion",&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgVersioningSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -14337,7 +14153,7 @@ static PyObject *_wrap_pkgVersioningSystem_DoCmpVersionArch(PyObject *self, PyOb char *arg8 ; char *arg9 ; int result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Ossssssss:pkgVersioningSystem_DoCmpVersionArch",&obj0,&arg2,&arg3,&arg4,&arg5,&arg6,&arg7,&arg8,&arg9)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgVersioningSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -14358,21 +14174,23 @@ static PyObject *_wrap_pkgVersioningSystem_CmpVersionArch(PyObject *self, PyObje char *arg4 ; char *arg5 ; int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OOOss:pkgVersioningSystem_CmpVersionArch",&obj0,&obj1,&obj2,&arg4,&arg5)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgVersioningSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; { if (PyString_Check(obj1)) - arg2 = std::string(PyString_AsString(obj1)); + arg2 = std::string(PyString_AsString(obj1), + PyString_Size(obj1)); else SWIG_exception(SWIG_TypeError, "string expected"); } { if (PyString_Check(obj2)) - arg3 = std::string(PyString_AsString(obj2)); + arg3 = std::string(PyString_AsString(obj2), + PyString_Size(obj2)); else SWIG_exception(SWIG_TypeError, "string expected"); } @@ -14392,8 +14210,8 @@ static PyObject *_wrap_pkgVersioningSystem_CheckDep__SWIG_0(PyObject *self, PyOb pkgCache::DepIterator arg3 ; bool result; pkgCache::DepIterator *argp3 ; - PyObject * obj0 = 0 ; - PyObject * obj2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj2 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OsO:pkgVersioningSystem_CheckDep",&obj0,&arg2,&obj2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgVersioningSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -14415,7 +14233,7 @@ static PyObject *_wrap_pkgVersioningSystem_CheckDep__SWIG_1(PyObject *self, PyOb int arg3 ; char *arg4 ; bool result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Osis:pkgVersioningSystem_CheckDep",&obj0,&arg2,&arg3,&arg4)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgVersioningSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -14444,7 +14262,7 @@ static PyObject *_wrap_pkgVersioningSystem_CheckDep(PyObject *self, PyObject *ar if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_pkgVersioningSystem, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -14458,7 +14276,7 @@ static PyObject *_wrap_pkgVersioningSystem_CheckDep(PyObject *self, PyObject *ar if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_pkgCache__DepIterator, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -14475,7 +14293,7 @@ static PyObject *_wrap_pkgVersioningSystem_CheckDep(PyObject *self, PyObject *ar if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_pkgVersioningSystem, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -14512,7 +14330,7 @@ static PyObject *_wrap_pkgVersioningSystem_DoCmpReleaseVer(PyObject *self, PyObj char *arg4 ; char *arg5 ; int result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Ossss:pkgVersioningSystem_DoCmpReleaseVer",&obj0,&arg2,&arg3,&arg4,&arg5)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgVersioningSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -14530,14 +14348,14 @@ static PyObject *_wrap_pkgVersioningSystem_UpstreamVersion(PyObject *self, PyObj pkgVersioningSystem *arg1 = (pkgVersioningSystem *) 0 ; char *arg2 ; string result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Os:pkgVersioningSystem_UpstreamVersion",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgVersioningSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; result = (arg1)->UpstreamVersion((char const *)arg2); { - resultobj = PyString_FromString((&result)->c_str()); + resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); } return resultobj; fail: @@ -14550,12 +14368,15 @@ static PyObject *_wrap_pkgVersioningSystem_TestCompatibility(PyObject *self, PyO pkgVersioningSystem *arg1 = (pkgVersioningSystem *) 0 ; pkgVersioningSystem *arg2 = 0 ; bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgVersioningSystem_TestCompatibility",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgVersioningSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_pkgVersioningSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } result = (bool)(arg1)->TestCompatibility((pkgVersioningSystem const &)*arg2); resultobj = PyInt_FromLong((long)result); @@ -14572,7 +14393,7 @@ static PyObject *_wrap_pkgVersioningSystem_CmpVersion__SWIG_0(PyObject *self, Py char *arg3 ; char *arg4 ; int result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Osss:pkgVersioningSystem_CmpVersion",&obj0,&arg2,&arg3,&arg4)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgVersioningSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -14591,14 +14412,15 @@ static PyObject *_wrap_pkgVersioningSystem_CmpVersion__SWIG_1(PyObject *self, Py string arg2 ; char *arg3 ; int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OOs:pkgVersioningSystem_CmpVersion",&obj0,&obj1,&arg3)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgVersioningSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; { if (PyString_Check(obj1)) - arg2 = std::string(PyString_AsString(obj1)); + arg2 = std::string(PyString_AsString(obj1), + PyString_Size(obj1)); else SWIG_exception(SWIG_TypeError, "string expected"); } @@ -14617,21 +14439,23 @@ static PyObject *_wrap_pkgVersioningSystem_CmpVersion__SWIG_2(PyObject *self, Py string arg2 ; string arg3 ; int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OOO:pkgVersioningSystem_CmpVersion",&obj0,&obj1,&obj2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgVersioningSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; { if (PyString_Check(obj1)) - arg2 = std::string(PyString_AsString(obj1)); + arg2 = std::string(PyString_AsString(obj1), + PyString_Size(obj1)); else SWIG_exception(SWIG_TypeError, "string expected"); } { if (PyString_Check(obj2)) - arg3 = std::string(PyString_AsString(obj2)); + arg3 = std::string(PyString_AsString(obj2), + PyString_Size(obj2)); else SWIG_exception(SWIG_TypeError, "string expected"); } @@ -14651,14 +14475,15 @@ static PyObject *_wrap_pkgVersioningSystem_CmpVersion__SWIG_3(PyObject *self, Py char *arg3 ; char *arg4 ; int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OOss:pkgVersioningSystem_CmpVersion",&obj0,&obj1,&arg3,&arg4)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgVersioningSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; { if (PyString_Check(obj1)) - arg2 = std::string(PyString_AsString(obj1)); + arg2 = std::string(PyString_AsString(obj1), + PyString_Size(obj1)); else SWIG_exception(SWIG_TypeError, "string expected"); } @@ -14687,7 +14512,7 @@ static PyObject *_wrap_pkgVersioningSystem_CmpVersion(PyObject *self, PyObject * if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_pkgVersioningSystem, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -14712,7 +14537,7 @@ static PyObject *_wrap_pkgVersioningSystem_CmpVersion(PyObject *self, PyObject * if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_pkgVersioningSystem, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -14737,7 +14562,7 @@ static PyObject *_wrap_pkgVersioningSystem_CmpVersion(PyObject *self, PyObject * if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_pkgVersioningSystem, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -14767,7 +14592,7 @@ static PyObject *_wrap_pkgVersioningSystem_CmpVersion(PyObject *self, PyObject * if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_pkgVersioningSystem, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -14803,7 +14628,7 @@ static PyObject *_wrap_pkgVersioningSystem_CmpReleaseVer__SWIG_0(PyObject *self, char *arg3 ; char *arg4 ; int result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Osss:pkgVersioningSystem_CmpReleaseVer",&obj0,&arg2,&arg3,&arg4)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgVersioningSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -14822,14 +14647,15 @@ static PyObject *_wrap_pkgVersioningSystem_CmpReleaseVer__SWIG_1(PyObject *self, string arg2 ; char *arg3 ; int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OOs:pkgVersioningSystem_CmpReleaseVer",&obj0,&obj1,&arg3)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgVersioningSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; { if (PyString_Check(obj1)) - arg2 = std::string(PyString_AsString(obj1)); + arg2 = std::string(PyString_AsString(obj1), + PyString_Size(obj1)); else SWIG_exception(SWIG_TypeError, "string expected"); } @@ -14848,21 +14674,23 @@ static PyObject *_wrap_pkgVersioningSystem_CmpReleaseVer__SWIG_2(PyObject *self, string arg2 ; string arg3 ; int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OOO:pkgVersioningSystem_CmpReleaseVer",&obj0,&obj1,&obj2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgVersioningSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; { if (PyString_Check(obj1)) - arg2 = std::string(PyString_AsString(obj1)); + arg2 = std::string(PyString_AsString(obj1), + PyString_Size(obj1)); else SWIG_exception(SWIG_TypeError, "string expected"); } { if (PyString_Check(obj2)) - arg3 = std::string(PyString_AsString(obj2)); + arg3 = std::string(PyString_AsString(obj2), + PyString_Size(obj2)); else SWIG_exception(SWIG_TypeError, "string expected"); } @@ -14882,14 +14710,15 @@ static PyObject *_wrap_pkgVersioningSystem_CmpReleaseVer__SWIG_3(PyObject *self, char *arg3 ; char *arg4 ; int result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OOss:pkgVersioningSystem_CmpReleaseVer",&obj0,&obj1,&arg3,&arg4)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgVersioningSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; { if (PyString_Check(obj1)) - arg2 = std::string(PyString_AsString(obj1)); + arg2 = std::string(PyString_AsString(obj1), + PyString_Size(obj1)); else SWIG_exception(SWIG_TypeError, "string expected"); } @@ -14918,7 +14747,7 @@ static PyObject *_wrap_pkgVersioningSystem_CmpReleaseVer(PyObject *self, PyObjec if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_pkgVersioningSystem, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -14943,7 +14772,7 @@ static PyObject *_wrap_pkgVersioningSystem_CmpReleaseVer(PyObject *self, PyObjec if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_pkgVersioningSystem, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -14968,7 +14797,7 @@ static PyObject *_wrap_pkgVersioningSystem_CmpReleaseVer(PyObject *self, PyObjec if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_pkgVersioningSystem, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -14998,7 +14827,7 @@ static PyObject *_wrap_pkgVersioningSystem_CmpReleaseVer(PyObject *self, PyObjec if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_pkgVersioningSystem, 0) == -1) { _v = 0; PyErr_Clear(); - }else { + } else { _v = 1; } } @@ -15030,7 +14859,7 @@ static PyObject *_wrap_pkgVersioningSystem_CmpReleaseVer(PyObject *self, PyObjec static PyObject *_wrap_delete_pkgVersioningSystem(PyObject *self, PyObject *args) { PyObject *resultobj; pkgVersioningSystem *arg1 = (pkgVersioningSystem *) 0 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:delete_pkgVersioningSystem",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgVersioningSystem,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -15055,12 +14884,15 @@ static PyObject *_wrap_pkgRecords_Lookup(PyObject *self, PyObject *args) { pkgRecords *arg1 = (pkgRecords *) 0 ; pkgCache::VerFileIterator *arg2 = 0 ; pkgRecords::Parser *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgRecords_Lookup",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgRecords,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_pkgCache__VerFileIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } { pkgRecords::Parser &_result_ref = (arg1)->Lookup((pkgCache::VerFileIterator const &)*arg2); result = (pkgRecords::Parser *) &_result_ref; @@ -15077,10 +14909,13 @@ static PyObject *_wrap_new_pkgRecords(PyObject *self, PyObject *args) { PyObject *resultobj; pkgCache *arg1 = 0 ; pkgRecords *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:new_pkgRecords",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg1 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } result = (pkgRecords *)new pkgRecords(*arg1); resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_pkgRecords, 1); @@ -15093,7 +14928,7 @@ static PyObject *_wrap_new_pkgRecords(PyObject *self, PyObject *args) { static PyObject *_wrap_delete_pkgRecords(PyObject *self, PyObject *args) { PyObject *resultobj; pkgRecords *arg1 = (pkgRecords *) 0 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:delete_pkgRecords",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgRecords,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -15117,14 +14952,14 @@ static PyObject *_wrap_pkgRecordsParser_FileName(PyObject *self, PyObject *args) PyObject *resultobj; pkgRecords::Parser *arg1 = (pkgRecords::Parser *) 0 ; string result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgRecordsParser_FileName",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgRecords__Parser,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; result = (arg1)->FileName(); { - resultobj = PyString_FromString((&result)->c_str()); + resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); } return resultobj; fail: @@ -15136,14 +14971,14 @@ static PyObject *_wrap_pkgRecordsParser_MD5Hash(PyObject *self, PyObject *args) PyObject *resultobj; pkgRecords::Parser *arg1 = (pkgRecords::Parser *) 0 ; string result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgRecordsParser_MD5Hash",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgRecords__Parser,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; result = (arg1)->MD5Hash(); { - resultobj = PyString_FromString((&result)->c_str()); + resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); } return resultobj; fail: @@ -15155,14 +14990,14 @@ static PyObject *_wrap_pkgRecordsParser_SHA1Hash(PyObject *self, PyObject *args) PyObject *resultobj; pkgRecords::Parser *arg1 = (pkgRecords::Parser *) 0 ; string result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgRecordsParser_SHA1Hash",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgRecords__Parser,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; result = (arg1)->SHA1Hash(); { - resultobj = PyString_FromString((&result)->c_str()); + resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); } return resultobj; fail: @@ -15174,14 +15009,14 @@ static PyObject *_wrap_pkgRecordsParser_SourcePkg(PyObject *self, PyObject *args PyObject *resultobj; pkgRecords::Parser *arg1 = (pkgRecords::Parser *) 0 ; string result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgRecordsParser_SourcePkg",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgRecords__Parser,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; result = (arg1)->SourcePkg(); { - resultobj = PyString_FromString((&result)->c_str()); + resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); } return resultobj; fail: @@ -15193,14 +15028,14 @@ static PyObject *_wrap_pkgRecordsParser_Maintainer(PyObject *self, PyObject *arg PyObject *resultobj; pkgRecords::Parser *arg1 = (pkgRecords::Parser *) 0 ; string result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgRecordsParser_Maintainer",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgRecords__Parser,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; result = (arg1)->Maintainer(); { - resultobj = PyString_FromString((&result)->c_str()); + resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); } return resultobj; fail: @@ -15212,14 +15047,14 @@ static PyObject *_wrap_pkgRecordsParser_ShortDesc(PyObject *self, PyObject *args PyObject *resultobj; pkgRecords::Parser *arg1 = (pkgRecords::Parser *) 0 ; string result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgRecordsParser_ShortDesc",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgRecords__Parser,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; result = (arg1)->ShortDesc(); { - resultobj = PyString_FromString((&result)->c_str()); + resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); } return resultobj; fail: @@ -15231,14 +15066,14 @@ static PyObject *_wrap_pkgRecordsParser_LongDesc(PyObject *self, PyObject *args) PyObject *resultobj; pkgRecords::Parser *arg1 = (pkgRecords::Parser *) 0 ; string result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgRecordsParser_LongDesc",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgRecords__Parser,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; result = (arg1)->LongDesc(); { - resultobj = PyString_FromString((&result)->c_str()); + resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); } return resultobj; fail: @@ -15250,14 +15085,14 @@ static PyObject *_wrap_pkgRecordsParser_Name(PyObject *self, PyObject *args) { PyObject *resultobj; pkgRecords::Parser *arg1 = (pkgRecords::Parser *) 0 ; string result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgRecordsParser_Name",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgRecords__Parser,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; result = (arg1)->Name(); { - resultobj = PyString_FromString((&result)->c_str()); + resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); } return resultobj; fail: @@ -15270,14 +15105,20 @@ static PyObject *_wrap_pkgRecordsParser_GetRec(PyObject *self, PyObject *args) { pkgRecords::Parser *arg1 = (pkgRecords::Parser *) 0 ; char **arg2 = 0 ; char **arg3 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OOO:pkgRecordsParser_GetRec",&obj0,&obj1,&obj2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgRecords__Parser,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_p_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_p_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg3 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } (arg1)->GetRec((char const *&)*arg2,(char const *&)*arg3); Py_INCREF(Py_None); resultobj = Py_None; @@ -15287,10 +15128,28 @@ static PyObject *_wrap_pkgRecordsParser_GetRec(PyObject *self, PyObject *args) { } +static PyObject *_wrap_pkgRecordsParser_HasFile(PyObject *self, PyObject *args) { + PyObject *resultobj; + pkgRecords::Parser *arg1 = (pkgRecords::Parser *) 0 ; + char *arg2 ; + bool result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"Os:pkgRecordsParser_HasFile",&obj0,&arg2)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgRecords__Parser,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (bool)(arg1)->HasFile((char const *)arg2); + + resultobj = PyInt_FromLong((long)result); + return resultobj; + fail: + return NULL; +} + + static PyObject *_wrap_delete_pkgRecordsParser(PyObject *self, PyObject *args) { PyObject *resultobj; pkgRecords::Parser *arg1 = (pkgRecords::Parser *) 0 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:delete_pkgRecordsParser",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgRecords__Parser,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -15314,7 +15173,7 @@ static PyObject *_wrap_pkgAcquireItem_DestFile_get(PyObject *self, PyObject *arg PyObject *resultobj; pkgAcquire::Item *arg1 = (pkgAcquire::Item *) 0 ; char *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgAcquireItem_DestFile_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcquire__Item,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -15331,7 +15190,7 @@ static PyObject *_wrap_pkgAcquireItem_ErrorText_get(PyObject *self, PyObject *ar PyObject *resultobj; pkgAcquire::Item *arg1 = (pkgAcquire::Item *) 0 ; char *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgAcquireItem_ErrorText_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcquire__Item,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -15348,7 +15207,7 @@ static PyObject *_wrap_pkgAcquireItem_Status_set(PyObject *self, PyObject *args) PyObject *resultobj; pkgAcquire::Item *arg1 = (pkgAcquire::Item *) 0 ; int arg2 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Oi:pkgAcquireItem_Status_set",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcquire__Item,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -15365,7 +15224,7 @@ static PyObject *_wrap_pkgAcquireItem_Status_get(PyObject *self, PyObject *args) PyObject *resultobj; pkgAcquire::Item *arg1 = (pkgAcquire::Item *) 0 ; int result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgAcquireItem_Status_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcquire__Item,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -15382,8 +15241,8 @@ static PyObject *_wrap_pkgAcquireItem_FileSize_set(PyObject *self, PyObject *arg PyObject *resultobj; pkgAcquire::Item *arg1 = (pkgAcquire::Item *) 0 ; unsigned long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgAcquireItem_FileSize_set",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcquire__Item,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -15402,7 +15261,7 @@ static PyObject *_wrap_pkgAcquireItem_FileSize_get(PyObject *self, PyObject *arg PyObject *resultobj; pkgAcquire::Item *arg1 = (pkgAcquire::Item *) 0 ; unsigned long result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgAcquireItem_FileSize_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcquire__Item,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -15419,8 +15278,8 @@ static PyObject *_wrap_pkgAcquireItem_PartialSize_set(PyObject *self, PyObject * PyObject *resultobj; pkgAcquire::Item *arg1 = (pkgAcquire::Item *) 0 ; unsigned long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgAcquireItem_PartialSize_set",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcquire__Item,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -15439,7 +15298,7 @@ static PyObject *_wrap_pkgAcquireItem_PartialSize_get(PyObject *self, PyObject * PyObject *resultobj; pkgAcquire::Item *arg1 = (pkgAcquire::Item *) 0 ; unsigned long result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgAcquireItem_PartialSize_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcquire__Item,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -15456,13 +15315,17 @@ static PyObject *_wrap_pkgAcquireItem_Mode_set(PyObject *self, PyObject *args) { PyObject *resultobj; pkgAcquire::Item *arg1 = (pkgAcquire::Item *) 0 ; char *arg2 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Os:pkgAcquireItem_Mode_set",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcquire__Item,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; { - arg1->Mode = (char const *) (new char[strlen(arg2)+1]); - strcpy((char *) arg1->Mode,arg2); + if (arg2) { + arg1->Mode = (char const *) (new char[strlen(arg2)+1]); + strcpy((char *) arg1->Mode,arg2); + } else { + arg1->Mode = 0; + } } Py_INCREF(Py_None); resultobj = Py_None; return resultobj; @@ -15475,7 +15338,7 @@ static PyObject *_wrap_pkgAcquireItem_Mode_get(PyObject *self, PyObject *args) { PyObject *resultobj; pkgAcquire::Item *arg1 = (pkgAcquire::Item *) 0 ; char *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgAcquireItem_Mode_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcquire__Item,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -15492,8 +15355,8 @@ static PyObject *_wrap_pkgAcquireItem_ID_set(PyObject *self, PyObject *args) { PyObject *resultobj; pkgAcquire::Item *arg1 = (pkgAcquire::Item *) 0 ; unsigned long arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgAcquireItem_ID_set",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcquire__Item,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -15512,7 +15375,7 @@ static PyObject *_wrap_pkgAcquireItem_ID_get(PyObject *self, PyObject *args) { PyObject *resultobj; pkgAcquire::Item *arg1 = (pkgAcquire::Item *) 0 ; unsigned long result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgAcquireItem_ID_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcquire__Item,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -15529,12 +15392,12 @@ static PyObject *_wrap_pkgAcquireItem_Complete_set(PyObject *self, PyObject *arg PyObject *resultobj; pkgAcquire::Item *arg1 = (pkgAcquire::Item *) 0 ; bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgAcquireItem_Complete_set",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcquire__Item,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - arg2 = (bool) PyInt_AsLong(obj1); + arg2 = PyInt_AsLong(obj1) ? true : false; if (PyErr_Occurred()) SWIG_fail; if (arg1) (arg1)->Complete = arg2; @@ -15549,7 +15412,7 @@ static PyObject *_wrap_pkgAcquireItem_Complete_get(PyObject *self, PyObject *arg PyObject *resultobj; pkgAcquire::Item *arg1 = (pkgAcquire::Item *) 0 ; bool result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgAcquireItem_Complete_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcquire__Item,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -15566,12 +15429,12 @@ static PyObject *_wrap_pkgAcquireItem_Local_set(PyObject *self, PyObject *args) PyObject *resultobj; pkgAcquire::Item *arg1 = (pkgAcquire::Item *) 0 ; bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgAcquireItem_Local_set",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcquire__Item,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - arg2 = (bool) PyInt_AsLong(obj1); + arg2 = PyInt_AsLong(obj1) ? true : false; if (PyErr_Occurred()) SWIG_fail; if (arg1) (arg1)->Local = arg2; @@ -15586,7 +15449,7 @@ static PyObject *_wrap_pkgAcquireItem_Local_get(PyObject *self, PyObject *args) PyObject *resultobj; pkgAcquire::Item *arg1 = (pkgAcquire::Item *) 0 ; bool result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgAcquireItem_Local_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcquire__Item,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -15603,8 +15466,8 @@ static PyObject *_wrap_pkgAcquireItem_QueueCounter_set(PyObject *self, PyObject PyObject *resultobj; pkgAcquire::Item *arg1 = (pkgAcquire::Item *) 0 ; unsigned int arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgAcquireItem_QueueCounter_set",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcquire__Item,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -15623,7 +15486,7 @@ static PyObject *_wrap_pkgAcquireItem_QueueCounter_get(PyObject *self, PyObject PyObject *resultobj; pkgAcquire::Item *arg1 = (pkgAcquire::Item *) 0 ; unsigned int result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgAcquireItem_QueueCounter_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcquire__Item,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -15641,15 +15504,16 @@ static PyObject *_wrap_pkgAcquireItem_Failed(PyObject *self, PyObject *args) { pkgAcquire::Item *arg1 = (pkgAcquire::Item *) 0 ; string arg2 ; pkgAcquire::MethodConfig *arg3 = (pkgAcquire::MethodConfig *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OOO:pkgAcquireItem_Failed",&obj0,&obj1,&obj2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcquire__Item,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; { if (PyString_Check(obj1)) - arg2 = std::string(PyString_AsString(obj1)); + arg2 = std::string(PyString_AsString(obj1), + PyString_Size(obj1)); else SWIG_exception(SWIG_TypeError, "string expected"); } @@ -15670,17 +15534,18 @@ static PyObject *_wrap_pkgAcquireItem_Done(PyObject *self, PyObject *args) { unsigned long arg3 ; string arg4 ; pkgAcquire::MethodConfig *arg5 = (pkgAcquire::MethodConfig *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OOOOO:pkgAcquireItem_Done",&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcquire__Item,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; { if (PyString_Check(obj1)) - arg2 = std::string(PyString_AsString(obj1)); + arg2 = std::string(PyString_AsString(obj1), + PyString_Size(obj1)); else SWIG_exception(SWIG_TypeError, "string expected"); } @@ -15688,7 +15553,8 @@ static PyObject *_wrap_pkgAcquireItem_Done(PyObject *self, PyObject *args) { if (PyErr_Occurred()) SWIG_fail; { if (PyString_Check(obj3)) - arg4 = std::string(PyString_AsString(obj3)); + arg4 = std::string(PyString_AsString(obj3), + PyString_Size(obj3)); else SWIG_exception(SWIG_TypeError, "string expected"); } @@ -15707,15 +15573,16 @@ static PyObject *_wrap_pkgAcquireItem_Start(PyObject *self, PyObject *args) { pkgAcquire::Item *arg1 = (pkgAcquire::Item *) 0 ; string arg2 ; unsigned long arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OOO:pkgAcquireItem_Start",&obj0,&obj1,&obj2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcquire__Item,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; { if (PyString_Check(obj1)) - arg2 = std::string(PyString_AsString(obj1)); + arg2 = std::string(PyString_AsString(obj1), + PyString_Size(obj1)); else SWIG_exception(SWIG_TypeError, "string expected"); } @@ -15734,14 +15601,14 @@ static PyObject *_wrap_pkgAcquireItem_Custom600Headers(PyObject *self, PyObject PyObject *resultobj; pkgAcquire::Item *arg1 = (pkgAcquire::Item *) 0 ; string result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgAcquireItem_Custom600Headers",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcquire__Item,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; result = (arg1)->Custom600Headers(); { - resultobj = PyString_FromString((&result)->c_str()); + resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); } return resultobj; fail: @@ -15753,14 +15620,14 @@ static PyObject *_wrap_pkgAcquireItem_DescURI(PyObject *self, PyObject *args) { PyObject *resultobj; pkgAcquire::Item *arg1 = (pkgAcquire::Item *) 0 ; string result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgAcquireItem_DescURI",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcquire__Item,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; result = (arg1)->DescURI(); { - resultobj = PyString_FromString((&result)->c_str()); + resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); } return resultobj; fail: @@ -15771,7 +15638,7 @@ static PyObject *_wrap_pkgAcquireItem_DescURI(PyObject *self, PyObject *args) { static PyObject *_wrap_pkgAcquireItem_Finished(PyObject *self, PyObject *args) { PyObject *resultobj; pkgAcquire::Item *arg1 = (pkgAcquire::Item *) 0 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgAcquireItem_Finished",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcquire__Item,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -15788,14 +15655,14 @@ static PyObject *_wrap_pkgAcquireItem_MD5Sum(PyObject *self, PyObject *args) { PyObject *resultobj; pkgAcquire::Item *arg1 = (pkgAcquire::Item *) 0 ; string result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgAcquireItem_MD5Sum",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcquire__Item,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; result = (arg1)->MD5Sum(); { - resultobj = PyString_FromString((&result)->c_str()); + resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); } return resultobj; fail: @@ -15807,7 +15674,7 @@ static PyObject *_wrap_pkgAcquireItem_GetOwner(PyObject *self, PyObject *args) { PyObject *resultobj; pkgAcquire::Item *arg1 = (pkgAcquire::Item *) 0 ; pkgAcquire *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgAcquireItem_GetOwner",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcquire__Item,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -15823,7 +15690,7 @@ static PyObject *_wrap_pkgAcquireItem_GetOwner(PyObject *self, PyObject *args) { static PyObject *_wrap_delete_pkgAcquireItem(PyObject *self, PyObject *args) { PyObject *resultobj; pkgAcquire::Item *arg1 = (pkgAcquire::Item *) 0 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:delete_pkgAcquireItem",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcquire__Item,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -15850,17 +15717,18 @@ static PyObject *_wrap_pkgAcqIndex_Done(PyObject *self, PyObject *args) { unsigned long arg3 ; string arg4 ; pkgAcquire::MethodConfig *arg5 = (pkgAcquire::MethodConfig *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OOOOO:pkgAcqIndex_Done",&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcqIndex,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; { if (PyString_Check(obj1)) - arg2 = std::string(PyString_AsString(obj1)); + arg2 = std::string(PyString_AsString(obj1), + PyString_Size(obj1)); else SWIG_exception(SWIG_TypeError, "string expected"); } @@ -15868,7 +15736,8 @@ static PyObject *_wrap_pkgAcqIndex_Done(PyObject *self, PyObject *args) { if (PyErr_Occurred()) SWIG_fail; { if (PyString_Check(obj3)) - arg4 = std::string(PyString_AsString(obj3)); + arg4 = std::string(PyString_AsString(obj3), + PyString_Size(obj3)); else SWIG_exception(SWIG_TypeError, "string expected"); } @@ -15886,14 +15755,14 @@ static PyObject *_wrap_pkgAcqIndex_Custom600Headers(PyObject *self, PyObject *ar PyObject *resultobj; pkgAcqIndex *arg1 = (pkgAcqIndex *) 0 ; string result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgAcqIndex_Custom600Headers",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcqIndex,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; result = (arg1)->Custom600Headers(); { - resultobj = PyString_FromString((&result)->c_str()); + resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); } return resultobj; fail: @@ -15905,14 +15774,14 @@ static PyObject *_wrap_pkgAcqIndex_DescURI(PyObject *self, PyObject *args) { PyObject *resultobj; pkgAcqIndex *arg1 = (pkgAcqIndex *) 0 ; string result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgAcqIndex_DescURI",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcqIndex,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; result = (arg1)->DescURI(); { - resultobj = PyString_FromString((&result)->c_str()); + resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); } return resultobj; fail: @@ -15928,30 +15797,33 @@ static PyObject *_wrap_new_pkgAcqIndex(PyObject *self, PyObject *args) { string arg4 ; string arg5 ; pkgAcqIndex *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OOOOO:new_pkgAcqIndex",&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcquire,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_pkgRepository,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; { if (PyString_Check(obj2)) - arg3 = std::string(PyString_AsString(obj2)); + arg3 = std::string(PyString_AsString(obj2), + PyString_Size(obj2)); else SWIG_exception(SWIG_TypeError, "string expected"); } { if (PyString_Check(obj3)) - arg4 = std::string(PyString_AsString(obj3)); + arg4 = std::string(PyString_AsString(obj3), + PyString_Size(obj3)); else SWIG_exception(SWIG_TypeError, "string expected"); } { if (PyString_Check(obj4)) - arg5 = std::string(PyString_AsString(obj4)); + arg5 = std::string(PyString_AsString(obj4), + PyString_Size(obj4)); else SWIG_exception(SWIG_TypeError, "string expected"); } @@ -15967,7 +15839,7 @@ static PyObject *_wrap_new_pkgAcqIndex(PyObject *self, PyObject *args) { static PyObject *_wrap_delete_pkgAcqIndex(PyObject *self, PyObject *args) { PyObject *resultobj; pkgAcqIndex *arg1 = (pkgAcqIndex *) 0 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:delete_pkgAcqIndex",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcqIndex,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -15992,15 +15864,16 @@ static PyObject *_wrap_pkgAcqIndexRel_Failed(PyObject *self, PyObject *args) { pkgAcqIndexRel *arg1 = (pkgAcqIndexRel *) 0 ; string arg2 ; pkgAcquire::MethodConfig *arg3 = (pkgAcquire::MethodConfig *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OOO:pkgAcqIndexRel_Failed",&obj0,&obj1,&obj2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcqIndexRel,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; { if (PyString_Check(obj1)) - arg2 = std::string(PyString_AsString(obj1)); + arg2 = std::string(PyString_AsString(obj1), + PyString_Size(obj1)); else SWIG_exception(SWIG_TypeError, "string expected"); } @@ -16021,17 +15894,18 @@ static PyObject *_wrap_pkgAcqIndexRel_Done(PyObject *self, PyObject *args) { unsigned long arg3 ; string arg4 ; pkgAcquire::MethodConfig *arg5 = (pkgAcquire::MethodConfig *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OOOOO:pkgAcqIndexRel_Done",&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcqIndexRel,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; { if (PyString_Check(obj1)) - arg2 = std::string(PyString_AsString(obj1)); + arg2 = std::string(PyString_AsString(obj1), + PyString_Size(obj1)); else SWIG_exception(SWIG_TypeError, "string expected"); } @@ -16039,7 +15913,8 @@ static PyObject *_wrap_pkgAcqIndexRel_Done(PyObject *self, PyObject *args) { if (PyErr_Occurred()) SWIG_fail; { if (PyString_Check(obj3)) - arg4 = std::string(PyString_AsString(obj3)); + arg4 = std::string(PyString_AsString(obj3), + PyString_Size(obj3)); else SWIG_exception(SWIG_TypeError, "string expected"); } @@ -16057,14 +15932,14 @@ static PyObject *_wrap_pkgAcqIndexRel_Custom600Headers(PyObject *self, PyObject PyObject *resultobj; pkgAcqIndexRel *arg1 = (pkgAcqIndexRel *) 0 ; string result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgAcqIndexRel_Custom600Headers",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcqIndexRel,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; result = (arg1)->Custom600Headers(); { - resultobj = PyString_FromString((&result)->c_str()); + resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); } return resultobj; fail: @@ -16076,14 +15951,14 @@ static PyObject *_wrap_pkgAcqIndexRel_DescURI(PyObject *self, PyObject *args) { PyObject *resultobj; pkgAcqIndexRel *arg1 = (pkgAcqIndexRel *) 0 ; string result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgAcqIndexRel_DescURI",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcqIndexRel,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; result = (arg1)->DescURI(); { - resultobj = PyString_FromString((&result)->c_str()); + resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); } return resultobj; fail: @@ -16100,36 +15975,39 @@ static PyObject *_wrap_new_pkgAcqIndexRel(PyObject *self, PyObject *args) { string arg5 ; bool arg6 = (bool) false ; pkgAcqIndexRel *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OOOOO|O:new_pkgAcqIndexRel",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcquire,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_pkgRepository,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; { if (PyString_Check(obj2)) - arg3 = std::string(PyString_AsString(obj2)); + arg3 = std::string(PyString_AsString(obj2), + PyString_Size(obj2)); else SWIG_exception(SWIG_TypeError, "string expected"); } { if (PyString_Check(obj3)) - arg4 = std::string(PyString_AsString(obj3)); + arg4 = std::string(PyString_AsString(obj3), + PyString_Size(obj3)); else SWIG_exception(SWIG_TypeError, "string expected"); } { if (PyString_Check(obj4)) - arg5 = std::string(PyString_AsString(obj4)); + arg5 = std::string(PyString_AsString(obj4), + PyString_Size(obj4)); else SWIG_exception(SWIG_TypeError, "string expected"); } if (obj5) { - arg6 = (bool) PyInt_AsLong(obj5); + arg6 = PyInt_AsLong(obj5) ? true : false; if (PyErr_Occurred()) SWIG_fail; } result = (pkgAcqIndexRel *)new pkgAcqIndexRel(arg1,arg2,arg3,arg4,arg5,arg6); @@ -16144,7 +16022,7 @@ static PyObject *_wrap_new_pkgAcqIndexRel(PyObject *self, PyObject *args) { static PyObject *_wrap_delete_pkgAcqIndexRel(PyObject *self, PyObject *args) { PyObject *resultobj; pkgAcqIndexRel *arg1 = (pkgAcqIndexRel *) 0 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:delete_pkgAcqIndexRel",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcqIndexRel,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -16169,15 +16047,16 @@ static PyObject *_wrap_pkgAcqArchive_Failed(PyObject *self, PyObject *args) { pkgAcqArchive *arg1 = (pkgAcqArchive *) 0 ; string arg2 ; pkgAcquire::MethodConfig *arg3 = (pkgAcquire::MethodConfig *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OOO:pkgAcqArchive_Failed",&obj0,&obj1,&obj2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcqArchive,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; { if (PyString_Check(obj1)) - arg2 = std::string(PyString_AsString(obj1)); + arg2 = std::string(PyString_AsString(obj1), + PyString_Size(obj1)); else SWIG_exception(SWIG_TypeError, "string expected"); } @@ -16198,17 +16077,18 @@ static PyObject *_wrap_pkgAcqArchive_Done(PyObject *self, PyObject *args) { unsigned long arg3 ; string arg4 ; pkgAcquire::MethodConfig *arg5 = (pkgAcquire::MethodConfig *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OOOOO:pkgAcqArchive_Done",&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcqArchive,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; { if (PyString_Check(obj1)) - arg2 = std::string(PyString_AsString(obj1)); + arg2 = std::string(PyString_AsString(obj1), + PyString_Size(obj1)); else SWIG_exception(SWIG_TypeError, "string expected"); } @@ -16216,7 +16096,8 @@ static PyObject *_wrap_pkgAcqArchive_Done(PyObject *self, PyObject *args) { if (PyErr_Occurred()) SWIG_fail; { if (PyString_Check(obj3)) - arg4 = std::string(PyString_AsString(obj3)); + arg4 = std::string(PyString_AsString(obj3), + PyString_Size(obj3)); else SWIG_exception(SWIG_TypeError, "string expected"); } @@ -16234,14 +16115,14 @@ static PyObject *_wrap_pkgAcqArchive_MD5Sum(PyObject *self, PyObject *args) { PyObject *resultobj; pkgAcqArchive *arg1 = (pkgAcqArchive *) 0 ; string result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgAcqArchive_MD5Sum",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcqArchive,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; result = (arg1)->MD5Sum(); { - resultobj = PyString_FromString((&result)->c_str()); + resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); } return resultobj; fail: @@ -16253,14 +16134,14 @@ static PyObject *_wrap_pkgAcqArchive_DescURI(PyObject *self, PyObject *args) { PyObject *resultobj; pkgAcqArchive *arg1 = (pkgAcqArchive *) 0 ; string result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgAcqArchive_DescURI",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcqArchive,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; result = (arg1)->DescURI(); { - resultobj = PyString_FromString((&result)->c_str()); + resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); } return resultobj; fail: @@ -16271,7 +16152,7 @@ static PyObject *_wrap_pkgAcqArchive_DescURI(PyObject *self, PyObject *args) { static PyObject *_wrap_pkgAcqArchive_Finished(PyObject *self, PyObject *args) { PyObject *resultobj; pkgAcqArchive *arg1 = (pkgAcqArchive *) 0 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgAcqArchive_Finished",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcqArchive,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -16292,18 +16173,24 @@ static PyObject *_wrap_new_pkgAcqArchive(PyObject *self, PyObject *args) { pkgCache::VerIterator *arg4 = 0 ; string *arg5 = 0 ; pkgAcqArchive *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OOOOO:new_pkgAcqArchive",&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcquire,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_pkgSourceList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_pkgRecords,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_pkgCache__VerIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg4 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } if ((SWIG_ConvertPtr(obj4,(void **) &arg5, SWIGTYPE_p_string,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg5 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } result = (pkgAcqArchive *)new pkgAcqArchive(arg1,arg2,arg3,(pkgCache::VerIterator const &)*arg4,*arg5); resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_pkgAcqArchive, 1); @@ -16316,7 +16203,7 @@ static PyObject *_wrap_new_pkgAcqArchive(PyObject *self, PyObject *args) { static PyObject *_wrap_delete_pkgAcqArchive(PyObject *self, PyObject *args) { PyObject *resultobj; pkgAcqArchive *arg1 = (pkgAcqArchive *) 0 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:delete_pkgAcqArchive",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcqArchive,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -16341,15 +16228,16 @@ static PyObject *_wrap_pkgAcqFile_Failed(PyObject *self, PyObject *args) { pkgAcqFile *arg1 = (pkgAcqFile *) 0 ; string arg2 ; pkgAcquire::MethodConfig *arg3 = (pkgAcquire::MethodConfig *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OOO:pkgAcqFile_Failed",&obj0,&obj1,&obj2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcqFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; { if (PyString_Check(obj1)) - arg2 = std::string(PyString_AsString(obj1)); + arg2 = std::string(PyString_AsString(obj1), + PyString_Size(obj1)); else SWIG_exception(SWIG_TypeError, "string expected"); } @@ -16370,17 +16258,18 @@ static PyObject *_wrap_pkgAcqFile_Done(PyObject *self, PyObject *args) { unsigned long arg3 ; string arg4 ; pkgAcquire::MethodConfig *arg5 = (pkgAcquire::MethodConfig *) 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OOOOO:pkgAcqFile_Done",&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcqFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; { if (PyString_Check(obj1)) - arg2 = std::string(PyString_AsString(obj1)); + arg2 = std::string(PyString_AsString(obj1), + PyString_Size(obj1)); else SWIG_exception(SWIG_TypeError, "string expected"); } @@ -16388,7 +16277,8 @@ static PyObject *_wrap_pkgAcqFile_Done(PyObject *self, PyObject *args) { if (PyErr_Occurred()) SWIG_fail; { if (PyString_Check(obj3)) - arg4 = std::string(PyString_AsString(obj3)); + arg4 = std::string(PyString_AsString(obj3), + PyString_Size(obj3)); else SWIG_exception(SWIG_TypeError, "string expected"); } @@ -16406,14 +16296,14 @@ static PyObject *_wrap_pkgAcqFile_MD5Sum(PyObject *self, PyObject *args) { PyObject *resultobj; pkgAcqFile *arg1 = (pkgAcqFile *) 0 ; string result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgAcqFile_MD5Sum",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcqFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; result = (arg1)->MD5Sum(); { - resultobj = PyString_FromString((&result)->c_str()); + resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); } return resultobj; fail: @@ -16425,14 +16315,14 @@ static PyObject *_wrap_pkgAcqFile_DescURI(PyObject *self, PyObject *args) { PyObject *resultobj; pkgAcqFile *arg1 = (pkgAcqFile *) 0 ; string result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgAcqFile_DescURI",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcqFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; result = (arg1)->DescURI(); { - resultobj = PyString_FromString((&result)->c_str()); + resultobj = PyString_FromStringAndSize((&result)->data(),(&result)->size()); } return resultobj; fail: @@ -16449,24 +16339,26 @@ static PyObject *_wrap_new_pkgAcqFile(PyObject *self, PyObject *args) { string arg5 ; string arg6 ; pkgAcqFile *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; - PyObject * obj4 = 0 ; - PyObject * obj5 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + PyObject * obj5 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OOOOOO:new_pkgAcqFile",&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcquire,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; { if (PyString_Check(obj1)) - arg2 = std::string(PyString_AsString(obj1)); + arg2 = std::string(PyString_AsString(obj1), + PyString_Size(obj1)); else SWIG_exception(SWIG_TypeError, "string expected"); } { if (PyString_Check(obj2)) - arg3 = std::string(PyString_AsString(obj2)); + arg3 = std::string(PyString_AsString(obj2), + PyString_Size(obj2)); else SWIG_exception(SWIG_TypeError, "string expected"); } @@ -16474,13 +16366,15 @@ static PyObject *_wrap_new_pkgAcqFile(PyObject *self, PyObject *args) { if (PyErr_Occurred()) SWIG_fail; { if (PyString_Check(obj4)) - arg5 = std::string(PyString_AsString(obj4)); + arg5 = std::string(PyString_AsString(obj4), + PyString_Size(obj4)); else SWIG_exception(SWIG_TypeError, "string expected"); } { if (PyString_Check(obj5)) - arg6 = std::string(PyString_AsString(obj5)); + arg6 = std::string(PyString_AsString(obj5), + PyString_Size(obj5)); else SWIG_exception(SWIG_TypeError, "string expected"); } @@ -16496,7 +16390,7 @@ static PyObject *_wrap_new_pkgAcqFile(PyObject *self, PyObject *args) { static PyObject *_wrap_delete_pkgAcqFile(PyObject *self, PyObject *args) { PyObject *resultobj; pkgAcqFile *arg1 = (pkgAcqFile *) 0 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:delete_pkgAcqFile",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcqFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -16520,7 +16414,7 @@ static PyObject *_wrap_pkgAcquire_ItemsIter(PyObject *self, PyObject *args) { PyObject *resultobj; pkgAcquire *arg1 = (pkgAcquire *) 0 ; PyObject *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgAcquire_ItemsIter",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcquire,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -16538,14 +16432,15 @@ static PyObject *_wrap_pkgAcquire_GetConfig(PyObject *self, PyObject *args) { pkgAcquire *arg1 = (pkgAcquire *) 0 ; string arg2 ; pkgAcquire::MethodConfig *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgAcquire_GetConfig",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcquire,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; { if (PyString_Check(obj1)) - arg2 = std::string(PyString_AsString(obj1)); + arg2 = std::string(PyString_AsString(obj1), + PyString_Size(obj1)); else SWIG_exception(SWIG_TypeError, "string expected"); } @@ -16562,7 +16457,7 @@ static PyObject *_wrap_pkgAcquire_Run(PyObject *self, PyObject *args) { PyObject *resultobj; pkgAcquire *arg1 = (pkgAcquire *) 0 ; int result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgAcquire_Run",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcquire,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -16578,7 +16473,7 @@ static PyObject *_wrap_pkgAcquire_Run(PyObject *self, PyObject *args) { static PyObject *_wrap_pkgAcquire_Shutdown(PyObject *self, PyObject *args) { PyObject *resultobj; pkgAcquire *arg1 = (pkgAcquire *) 0 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgAcquire_Shutdown",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcquire,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -16595,7 +16490,7 @@ static PyObject *_wrap_pkgAcquire_WorkersBegin(PyObject *self, PyObject *args) { PyObject *resultobj; pkgAcquire *arg1 = (pkgAcquire *) 0 ; pkgAcquire::Worker *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgAcquire_WorkersBegin",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcquire,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -16613,8 +16508,8 @@ static PyObject *_wrap_pkgAcquire_WorkerStep(PyObject *self, PyObject *args) { pkgAcquire *arg1 = (pkgAcquire *) 0 ; pkgAcquire::Worker *arg2 = (pkgAcquire::Worker *) 0 ; pkgAcquire::Worker *result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgAcquire_WorkerStep",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcquire,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -16632,7 +16527,7 @@ static PyObject *_wrap_pkgAcquire_UriBegin(PyObject *self, PyObject *args) { PyObject *resultobj; pkgAcquire *arg1 = (pkgAcquire *) 0 ; SwigValueWrapper< pkgAcquire::UriIterator > result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgAcquire_UriBegin",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcquire,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -16653,7 +16548,7 @@ static PyObject *_wrap_pkgAcquire_UriEnd(PyObject *self, PyObject *args) { PyObject *resultobj; pkgAcquire *arg1 = (pkgAcquire *) 0 ; SwigValueWrapper< pkgAcquire::UriIterator > result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgAcquire_UriEnd",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcquire,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -16675,14 +16570,15 @@ static PyObject *_wrap_pkgAcquire_Clean(PyObject *self, PyObject *args) { pkgAcquire *arg1 = (pkgAcquire *) 0 ; string arg2 ; bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgAcquire_Clean",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcquire,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; { if (PyString_Check(obj1)) - arg2 = std::string(PyString_AsString(obj1)); + arg2 = std::string(PyString_AsString(obj1), + PyString_Size(obj1)); else SWIG_exception(SWIG_TypeError, "string expected"); } @@ -16699,7 +16595,7 @@ static PyObject *_wrap_pkgAcquire_TotalNeeded(PyObject *self, PyObject *args) { PyObject *resultobj; pkgAcquire *arg1 = (pkgAcquire *) 0 ; double result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgAcquire_TotalNeeded",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcquire,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -16716,7 +16612,7 @@ static PyObject *_wrap_pkgAcquire_FetchNeeded(PyObject *self, PyObject *args) { PyObject *resultobj; pkgAcquire *arg1 = (pkgAcquire *) 0 ; double result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgAcquire_FetchNeeded",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcquire,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -16733,7 +16629,7 @@ static PyObject *_wrap_pkgAcquire_PartialPresent(PyObject *self, PyObject *args) PyObject *resultobj; pkgAcquire *arg1 = (pkgAcquire *) 0 ; double result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgAcquire_PartialPresent",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcquire,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -16750,7 +16646,7 @@ static PyObject *_wrap_new_pkgAcquire(PyObject *self, PyObject *args) { PyObject *resultobj; pkgAcquireStatus *arg1 = (pkgAcquireStatus *) 0 ; pkgAcquire *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"|O:new_pkgAcquire",&obj0)) goto fail; if (obj0) { @@ -16768,7 +16664,7 @@ static PyObject *_wrap_new_pkgAcquire(PyObject *self, PyObject *args) { static PyObject *_wrap_delete_pkgAcquire(PyObject *self, PyObject *args) { PyObject *resultobj; pkgAcquire *arg1 = (pkgAcquire *) 0 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:delete_pkgAcquire",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcquire,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -16792,12 +16688,12 @@ static PyObject *_wrap_pkgAcquireStatus_Update_set(PyObject *self, PyObject *arg PyObject *resultobj; pkgAcquireStatus *arg1 = (pkgAcquireStatus *) 0 ; bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgAcquireStatus_Update_set",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcquireStatus,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - arg2 = (bool) PyInt_AsLong(obj1); + arg2 = PyInt_AsLong(obj1) ? true : false; if (PyErr_Occurred()) SWIG_fail; if (arg1) (arg1)->Update = arg2; @@ -16812,7 +16708,7 @@ static PyObject *_wrap_pkgAcquireStatus_Update_get(PyObject *self, PyObject *arg PyObject *resultobj; pkgAcquireStatus *arg1 = (pkgAcquireStatus *) 0 ; bool result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgAcquireStatus_Update_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcquireStatus,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -16829,12 +16725,12 @@ static PyObject *_wrap_pkgAcquireStatus_MorePulses_set(PyObject *self, PyObject PyObject *resultobj; pkgAcquireStatus *arg1 = (pkgAcquireStatus *) 0 ; bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgAcquireStatus_MorePulses_set",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcquireStatus,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - arg2 = (bool) PyInt_AsLong(obj1); + arg2 = PyInt_AsLong(obj1) ? true : false; if (PyErr_Occurred()) SWIG_fail; if (arg1) (arg1)->MorePulses = arg2; @@ -16849,7 +16745,7 @@ static PyObject *_wrap_pkgAcquireStatus_MorePulses_get(PyObject *self, PyObject PyObject *resultobj; pkgAcquireStatus *arg1 = (pkgAcquireStatus *) 0 ; bool result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgAcquireStatus_MorePulses_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcquireStatus,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -16867,9 +16763,9 @@ static PyObject *_wrap_pkgAcquireStatus_Fetched(PyObject *self, PyObject *args) pkgAcquireStatus *arg1 = (pkgAcquireStatus *) 0 ; unsigned long arg2 ; unsigned long arg3 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OOO:pkgAcquireStatus_Fetched",&obj0,&obj1,&obj2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcquireStatus,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -16892,21 +16788,23 @@ static PyObject *_wrap_pkgAcquireStatus_MediaChange(PyObject *self, PyObject *ar string arg2 ; string arg3 ; bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OOO:pkgAcquireStatus_MediaChange",&obj0,&obj1,&obj2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcquireStatus,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; { if (PyString_Check(obj1)) - arg2 = std::string(PyString_AsString(obj1)); + arg2 = std::string(PyString_AsString(obj1), + PyString_Size(obj1)); else SWIG_exception(SWIG_TypeError, "string expected"); } { if (PyString_Check(obj2)) - arg3 = std::string(PyString_AsString(obj2)); + arg3 = std::string(PyString_AsString(obj2), + PyString_Size(obj2)); else SWIG_exception(SWIG_TypeError, "string expected"); } @@ -16923,12 +16821,15 @@ static PyObject *_wrap_pkgAcquireStatus_IMSHit(PyObject *self, PyObject *args) { PyObject *resultobj; pkgAcquireStatus *arg1 = (pkgAcquireStatus *) 0 ; pkgAcquire::ItemDesc *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgAcquireStatus_IMSHit",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcquireStatus,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_pkgAcquire__ItemDesc,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } (arg1)->IMSHit(*arg2); Py_INCREF(Py_None); resultobj = Py_None; @@ -16942,12 +16843,15 @@ static PyObject *_wrap_pkgAcquireStatus_Fetch(PyObject *self, PyObject *args) { PyObject *resultobj; pkgAcquireStatus *arg1 = (pkgAcquireStatus *) 0 ; pkgAcquire::ItemDesc *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgAcquireStatus_Fetch",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcquireStatus,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_pkgAcquire__ItemDesc,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } (arg1)->Fetch(*arg2); Py_INCREF(Py_None); resultobj = Py_None; @@ -16961,12 +16865,15 @@ static PyObject *_wrap_pkgAcquireStatus_Done(PyObject *self, PyObject *args) { PyObject *resultobj; pkgAcquireStatus *arg1 = (pkgAcquireStatus *) 0 ; pkgAcquire::ItemDesc *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgAcquireStatus_Done",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcquireStatus,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_pkgAcquire__ItemDesc,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } (arg1)->Done(*arg2); Py_INCREF(Py_None); resultobj = Py_None; @@ -16980,12 +16887,15 @@ static PyObject *_wrap_pkgAcquireStatus_Fail(PyObject *self, PyObject *args) { PyObject *resultobj; pkgAcquireStatus *arg1 = (pkgAcquireStatus *) 0 ; pkgAcquire::ItemDesc *arg2 = 0 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgAcquireStatus_Fail",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcquireStatus,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_pkgAcquire__ItemDesc,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } (arg1)->Fail(*arg2); Py_INCREF(Py_None); resultobj = Py_None; @@ -17000,8 +16910,8 @@ static PyObject *_wrap_pkgAcquireStatus_Pulse(PyObject *self, PyObject *args) { pkgAcquireStatus *arg1 = (pkgAcquireStatus *) 0 ; pkgAcquire *arg2 = (pkgAcquire *) 0 ; bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgAcquireStatus_Pulse",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcquireStatus,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -17018,7 +16928,7 @@ static PyObject *_wrap_pkgAcquireStatus_Pulse(PyObject *self, PyObject *args) { static PyObject *_wrap_pkgAcquireStatus_Start(PyObject *self, PyObject *args) { PyObject *resultobj; pkgAcquireStatus *arg1 = (pkgAcquireStatus *) 0 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgAcquireStatus_Start",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcquireStatus,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -17034,7 +16944,7 @@ static PyObject *_wrap_pkgAcquireStatus_Start(PyObject *self, PyObject *args) { static PyObject *_wrap_pkgAcquireStatus_Stop(PyObject *self, PyObject *args) { PyObject *resultobj; pkgAcquireStatus *arg1 = (pkgAcquireStatus *) 0 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgAcquireStatus_Stop",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcquireStatus,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -17050,7 +16960,7 @@ static PyObject *_wrap_pkgAcquireStatus_Stop(PyObject *self, PyObject *args) { static PyObject *_wrap_delete_pkgAcquireStatus(PyObject *self, PyObject *args) { PyObject *resultobj; pkgAcquireStatus *arg1 = (pkgAcquireStatus *) 0 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:delete_pkgAcquireStatus",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcquireStatus,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -17077,10 +16987,10 @@ static PyObject *_wrap_pkgPackageManager_GetArchives(PyObject *self, PyObject *a pkgSourceList *arg3 = (pkgSourceList *) 0 ; pkgRecords *arg4 = (pkgRecords *) 0 ; bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OOOO:pkgPackageManager_GetArchives",&obj0,&obj1,&obj2,&obj3)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgPackageManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -17100,7 +17010,7 @@ static PyObject *_wrap_pkgPackageManager_DoInstall(PyObject *self, PyObject *arg PyObject *resultobj; pkgPackageManager *arg1 = (pkgPackageManager *) 0 ; int result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgPackageManager_DoInstall",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgPackageManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -17121,7 +17031,7 @@ static PyObject *_wrap_pkgPackageManager_FixMissing(PyObject *self, PyObject *ar PyObject *resultobj; pkgPackageManager *arg1 = (pkgPackageManager *) 0 ; bool result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgPackageManager_FixMissing",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgPackageManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -17138,7 +17048,7 @@ static PyObject *_wrap_new_pkgPackageManager(PyObject *self, PyObject *args) { PyObject *resultobj; pkgDepCache *arg1 = (pkgDepCache *) 0 ; pkgPackageManager *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:new_pkgPackageManager",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgDepCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -17154,7 +17064,7 @@ static PyObject *_wrap_new_pkgPackageManager(PyObject *self, PyObject *args) { static PyObject *_wrap_delete_pkgPackageManager(PyObject *self, PyObject *args) { PyObject *resultobj; pkgPackageManager *arg1 = (pkgPackageManager *) 0 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:delete_pkgPackageManager",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgPackageManager,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -17178,7 +17088,7 @@ static PyObject *_wrap_pkgSourceList_ReadMainList(PyObject *self, PyObject *args PyObject *resultobj; pkgSourceList *arg1 = (pkgSourceList *) 0 ; bool result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgSourceList_ReadMainList",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgSourceList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -17196,14 +17106,15 @@ static PyObject *_wrap_pkgSourceList_Read(PyObject *self, PyObject *args) { pkgSourceList *arg1 = (pkgSourceList *) 0 ; string arg2 ; bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgSourceList_Read",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgSourceList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; { if (PyString_Check(obj1)) - arg2 = std::string(PyString_AsString(obj1)); + arg2 = std::string(PyString_AsString(obj1), + PyString_Size(obj1)); else SWIG_exception(SWIG_TypeError, "string expected"); } @@ -17220,7 +17131,7 @@ static PyObject *_wrap_pkgSourceList_ReadVendors(PyObject *self, PyObject *args) PyObject *resultobj; pkgSourceList *arg1 = (pkgSourceList *) 0 ; bool result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgSourceList_ReadVendors",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgSourceList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -17236,7 +17147,7 @@ static PyObject *_wrap_pkgSourceList_ReadVendors(PyObject *self, PyObject *args) static PyObject *_wrap_pkgSourceList_Reset(PyObject *self, PyObject *args) { PyObject *resultobj; pkgSourceList *arg1 = (pkgSourceList *) 0 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgSourceList_Reset",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgSourceList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -17254,14 +17165,15 @@ static PyObject *_wrap_pkgSourceList_ReadAppend(PyObject *self, PyObject *args) pkgSourceList *arg1 = (pkgSourceList *) 0 ; string arg2 ; bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgSourceList_ReadAppend",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgSourceList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; { if (PyString_Check(obj1)) - arg2 = std::string(PyString_AsString(obj1)); + arg2 = std::string(PyString_AsString(obj1), + PyString_Size(obj1)); else SWIG_exception(SWIG_TypeError, "string expected"); } @@ -17279,14 +17191,15 @@ static PyObject *_wrap_pkgSourceList_ReadSourceDir(PyObject *self, PyObject *arg pkgSourceList *arg1 = (pkgSourceList *) 0 ; string arg2 ; bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgSourceList_ReadSourceDir",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgSourceList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; { if (PyString_Check(obj1)) - arg2 = std::string(PyString_AsString(obj1)); + arg2 = std::string(PyString_AsString(obj1), + PyString_Size(obj1)); else SWIG_exception(SWIG_TypeError, "string expected"); } @@ -17302,8 +17215,8 @@ static PyObject *_wrap_pkgSourceList_ReadSourceDir(PyObject *self, PyObject *arg static PyObject *_wrap_pkgSourceList_begin(PyObject *self, PyObject *args) { PyObject *resultobj; pkgSourceList *arg1 = (pkgSourceList *) 0 ; - pkgSourceList::const_iterator result; - PyObject * obj0 = 0 ; + SwigValueWrapper< pkgSourceList::const_iterator > result; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgSourceList_begin",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgSourceList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -17323,8 +17236,8 @@ static PyObject *_wrap_pkgSourceList_begin(PyObject *self, PyObject *args) { static PyObject *_wrap_pkgSourceList_end(PyObject *self, PyObject *args) { PyObject *resultobj; pkgSourceList *arg1 = (pkgSourceList *) 0 ; - pkgSourceList::const_iterator result; - PyObject * obj0 = 0 ; + SwigValueWrapper< pkgSourceList::const_iterator > result; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgSourceList_end",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgSourceList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -17345,7 +17258,7 @@ static PyObject *_wrap_pkgSourceList_size(PyObject *self, PyObject *args) { PyObject *resultobj; pkgSourceList *arg1 = (pkgSourceList *) 0 ; unsigned int result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgSourceList_size",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgSourceList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -17362,7 +17275,7 @@ static PyObject *_wrap_pkgSourceList_empty(PyObject *self, PyObject *args) { PyObject *resultobj; pkgSourceList *arg1 = (pkgSourceList *) 0 ; bool result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:pkgSourceList_empty",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgSourceList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -17382,15 +17295,18 @@ static PyObject *_wrap_pkgSourceList_FindIndex(PyObject *self, PyObject *args) { pkgIndexFile **arg3 = 0 ; bool result; pkgCache::PkgFileIterator *argp2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OOO:pkgSourceList_FindIndex",&obj0,&obj1,&obj2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgSourceList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if ((SWIG_ConvertPtr(obj1,(void **) &argp2, SWIGTYPE_p_pkgCache__PkgFileIterator,SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; arg2 = *argp2; if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_p_pkgIndexFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg3 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } result = (bool)((pkgSourceList const *)arg1)->FindIndex(arg2,*arg3); resultobj = PyInt_FromLong((long)result); @@ -17405,8 +17321,8 @@ static PyObject *_wrap_pkgSourceList_GetIndexes(PyObject *self, PyObject *args) pkgSourceList *arg1 = (pkgSourceList *) 0 ; pkgAcquire *arg2 = (pkgAcquire *) 0 ; bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgSourceList_GetIndexes",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgSourceList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -17425,8 +17341,8 @@ static PyObject *_wrap_pkgSourceList_GetReleases(PyObject *self, PyObject *args) pkgSourceList *arg1 = (pkgSourceList *) 0 ; pkgAcquire *arg2 = (pkgAcquire *) 0 ; bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:pkgSourceList_GetReleases",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgSourceList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -17458,12 +17374,13 @@ static PyObject *_wrap_new_pkgSourceList__SWIG_1(PyObject *self, PyObject *args) PyObject *resultobj; string arg1 ; pkgSourceList *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:new_pkgSourceList",&obj0)) goto fail; { if (PyString_Check(obj0)) - arg1 = std::string(PyString_AsString(obj0)); + arg1 = std::string(PyString_AsString(obj0), + PyString_Size(obj0)); else SWIG_exception(SWIG_TypeError, "string expected"); } @@ -17506,7 +17423,7 @@ static PyObject *_wrap_new_pkgSourceList(PyObject *self, PyObject *args) { static PyObject *_wrap_delete_pkgSourceList(PyObject *self, PyObject *args) { PyObject *resultobj; pkgSourceList *arg1 = (pkgSourceList *) 0 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:delete_pkgSourceList",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgSourceList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -17529,7 +17446,7 @@ static PyObject * pkgSourceList_swigregister(PyObject *self, PyObject *args) { static PyObject *_wrap_GlobalError_PushState(PyObject *self, PyObject *args) { PyObject *resultobj; GlobalError *arg1 = (GlobalError *) 0 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:GlobalError_PushState",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_GlobalError,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -17546,7 +17463,7 @@ static PyObject *_wrap_GlobalError_PopState(PyObject *self, PyObject *args) { PyObject *resultobj; GlobalError *arg1 = (GlobalError *) 0 ; bool result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:GlobalError_PopState",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_GlobalError,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -17563,7 +17480,7 @@ static PyObject *_wrap_GlobalError_PopBackState(PyObject *self, PyObject *args) PyObject *resultobj; GlobalError *arg1 = (GlobalError *) 0 ; bool result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:GlobalError_PopBackState",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_GlobalError,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -17582,7 +17499,7 @@ static PyObject *_wrap_GlobalError_Errno(PyObject *self, PyObject *args) { char *arg2 ; char *arg3 ; bool result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Oss:GlobalError_Errno",&obj0,&arg2,&arg3)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_GlobalError,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -17601,7 +17518,7 @@ static PyObject *_wrap_GlobalError_WarningE(PyObject *self, PyObject *args) { char *arg2 ; char *arg3 ; bool result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Oss:GlobalError_WarningE",&obj0,&arg2,&arg3)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_GlobalError,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -17619,7 +17536,7 @@ static PyObject *_wrap_GlobalError_Error(PyObject *self, PyObject *args) { GlobalError *arg1 = (GlobalError *) 0 ; char *arg2 ; bool result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Os:GlobalError_Error",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_GlobalError,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -17637,7 +17554,7 @@ static PyObject *_wrap_GlobalError_Warning(PyObject *self, PyObject *args) { GlobalError *arg1 = (GlobalError *) 0 ; char *arg2 ; bool result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Os:GlobalError_Warning",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_GlobalError,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -17654,7 +17571,7 @@ static PyObject *_wrap_GlobalError_PendingError(PyObject *self, PyObject *args) PyObject *resultobj; GlobalError *arg1 = (GlobalError *) 0 ; bool result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:GlobalError_PendingError",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_GlobalError,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -17671,7 +17588,7 @@ static PyObject *_wrap_GlobalError_empty(PyObject *self, PyObject *args) { PyObject *resultobj; GlobalError *arg1 = (GlobalError *) 0 ; bool result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:GlobalError_empty",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_GlobalError,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -17689,12 +17606,15 @@ static PyObject *_wrap_GlobalError_PopMessage(PyObject *self, PyObject *args) { GlobalError *arg1 = (GlobalError *) 0 ; string *arg2 = 0 ; bool result; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:GlobalError_PopMessage",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_GlobalError,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_string,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg2 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } result = (bool)(arg1)->PopMessage(*arg2); resultobj = PyInt_FromLong((long)result); @@ -17707,7 +17627,7 @@ static PyObject *_wrap_GlobalError_PopMessage(PyObject *self, PyObject *args) { static PyObject *_wrap_GlobalError_Discard(PyObject *self, PyObject *args) { PyObject *resultobj; GlobalError *arg1 = (GlobalError *) 0 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:GlobalError_Discard",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_GlobalError,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -17723,7 +17643,7 @@ static PyObject *_wrap_GlobalError_Discard(PyObject *self, PyObject *args) { static PyObject *_wrap_GlobalError_DumpErrors(PyObject *self, PyObject *args) { PyObject *resultobj; GlobalError *arg1 = (GlobalError *) 0 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:GlobalError_DumpErrors",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_GlobalError,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -17753,7 +17673,7 @@ static PyObject *_wrap_new_GlobalError(PyObject *self, PyObject *args) { static PyObject *_wrap_delete_GlobalError(PyObject *self, PyObject *args) { PyObject *resultobj; GlobalError *arg1 = (GlobalError *) 0 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:delete_GlobalError",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_GlobalError,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -17787,6 +17707,1599 @@ static PyObject *_wrap__GetErrorObj(PyObject *self, PyObject *args) { } +static PyObject *_wrap_LuaCacheControl_Open__SWIG_0(PyObject *self, PyObject *args) { + PyObject *resultobj; + LuaCacheControl *arg1 = (LuaCacheControl *) 0 ; + pkgDepCache *result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:LuaCacheControl_Open",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_LuaCacheControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (pkgDepCache *)(arg1)->Open(); + + resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_pkgDepCache, 0); + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_LuaCacheControl_Open__SWIG_1(PyObject *self, PyObject *args) { + PyObject *resultobj; + LuaCacheControl *arg1 = (LuaCacheControl *) 0 ; + bool arg2 ; + pkgDepCache *result; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:LuaCacheControl_Open",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_LuaCacheControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + arg2 = PyInt_AsLong(obj1) ? true : false; + if (PyErr_Occurred()) SWIG_fail; + result = (pkgDepCache *)(arg1)->Open(arg2); + + resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_pkgDepCache, 0); + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_LuaCacheControl_Open(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[3]; + int ii; + + argc = PyObject_Length(args); + for (ii = 0; (ii < argc) && (ii < 2); ii++) { + argv[ii] = PyTuple_GetItem(args,ii); + } + if (argc == 1) { + int _v; + { + void *ptr; + if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_LuaCacheControl, 0) == -1) { + _v = 0; + PyErr_Clear(); + } else { + _v = 1; + } + } + if (_v) { + return _wrap_LuaCacheControl_Open__SWIG_0(self,args); + } + } + if (argc == 2) { + int _v; + { + void *ptr; + if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_LuaCacheControl, 0) == -1) { + _v = 0; + PyErr_Clear(); + } else { + _v = 1; + } + } + if (_v) { + { + _v = (PyInt_Check(argv[1]) || PyLong_Check(argv[1])) ? 1 : 0; + } + if (_v) { + return _wrap_LuaCacheControl_Open__SWIG_1(self,args); + } + } + } + + PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'LuaCacheControl_Open'"); + return NULL; +} + + +static PyObject *_wrap_LuaCacheControl_Close(PyObject *self, PyObject *args) { + PyObject *resultobj; + LuaCacheControl *arg1 = (LuaCacheControl *) 0 ; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:LuaCacheControl_Close",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_LuaCacheControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + (arg1)->Close(); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_delete_LuaCacheControl(PyObject *self, PyObject *args) { + PyObject *resultobj; + LuaCacheControl *arg1 = (LuaCacheControl *) 0 ; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:delete_LuaCacheControl",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_LuaCacheControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + delete arg1; + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject * LuaCacheControl_swigregister(PyObject *self, PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; + SWIG_TypeClientData(SWIGTYPE_p_LuaCacheControl, obj); + Py_INCREF(obj); + return Py_BuildValue((char *)""); +} +static PyObject *_wrap_Lua_RunInteractive__SWIG_0(PyObject *self, PyObject *args) { + PyObject *resultobj; + Lua *arg1 = (Lua *) 0 ; + char *arg2 = (char *) NULL ; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O|s:Lua_RunInteractive",&obj0,&arg2)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Lua,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + (arg1)->RunInteractive((char const *)arg2); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Lua_RunInteractive__SWIG_1(PyObject *self, PyObject *args) { + PyObject *resultobj; + Lua *arg1 = (Lua *) 0 ; + string *arg2 = 0 ; + std::string temp2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:Lua_RunInteractive",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Lua,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + { + if (PyString_Check(obj1)) { + temp2 = std::string(PyString_AsString(obj1), + PyString_Size(obj1)); + arg2 = &temp2; + } else { + SWIG_exception(SWIG_TypeError, "string expected"); + } + } + (arg1)->RunInteractive((string const &)*arg2); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Lua_RunInteractive(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[3]; + int ii; + + argc = PyObject_Length(args); + for (ii = 0; (ii < argc) && (ii < 2); ii++) { + argv[ii] = PyTuple_GetItem(args,ii); + } + if ((argc >= 1) && (argc <= 2)) { + int _v; + { + void *ptr; + if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_Lua, 0) == -1) { + _v = 0; + PyErr_Clear(); + } else { + _v = 1; + } + } + if (_v) { + if (argc <= 1) { + return _wrap_Lua_RunInteractive__SWIG_0(self,args); + } + { + _v = PyString_Check(argv[1]) ? 1 : 0; + } + if (_v) { + return _wrap_Lua_RunInteractive__SWIG_0(self,args); + } + } + } + if (argc == 2) { + int _v; + { + void *ptr; + if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_Lua, 0) == -1) { + _v = 0; + PyErr_Clear(); + } else { + _v = 1; + } + } + if (_v) { + { + _v = PyString_Check(argv[1]) ? 1 : 0; + } + if (_v) { + return _wrap_Lua_RunInteractive__SWIG_1(self,args); + } + } + } + + PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Lua_RunInteractive'"); + return NULL; +} + + +static PyObject *_wrap_Lua_RunScript__SWIG_0(PyObject *self, PyObject *args) { + PyObject *resultobj; + Lua *arg1 = (Lua *) 0 ; + string *arg2 = 0 ; + string const &arg3_defvalue = "" ; + string *arg3 = (string *) &arg3_defvalue ; + bool result; + std::string temp2 ; + std::string temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO|O:Lua_RunScript",&obj0,&obj1,&obj2)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Lua,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + { + if (PyString_Check(obj1)) { + temp2 = std::string(PyString_AsString(obj1), + PyString_Size(obj1)); + arg2 = &temp2; + } else { + SWIG_exception(SWIG_TypeError, "string expected"); + } + } + if (obj2) { + { + if (PyString_Check(obj2)) { + temp3 = std::string(PyString_AsString(obj2), + PyString_Size(obj2)); + arg3 = &temp3; + } else { + SWIG_exception(SWIG_TypeError, "string expected"); + } + } + } + result = (bool)(arg1)->RunScript((string const &)*arg2,(string const &)*arg3); + + resultobj = PyInt_FromLong((long)result); + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Lua_RunScript__SWIG_1(PyObject *self, PyObject *args) { + PyObject *resultobj; + Lua *arg1 = (Lua *) 0 ; + char *arg2 ; + char *arg3 = (char *) NULL ; + bool result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"Os|s:Lua_RunScript",&obj0,&arg2,&arg3)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Lua,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (bool)(arg1)->RunScript((char const *)arg2,(char const *)arg3); + + resultobj = PyInt_FromLong((long)result); + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Lua_RunScript(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[4]; + int ii; + + argc = PyObject_Length(args); + for (ii = 0; (ii < argc) && (ii < 3); ii++) { + argv[ii] = PyTuple_GetItem(args,ii); + } + if ((argc >= 2) && (argc <= 3)) { + int _v; + { + void *ptr; + if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_Lua, 0) == -1) { + _v = 0; + PyErr_Clear(); + } else { + _v = 1; + } + } + if (_v) { + { + _v = PyString_Check(argv[1]) ? 1 : 0; + } + if (_v) { + if (argc <= 2) { + return _wrap_Lua_RunScript__SWIG_0(self,args); + } + { + _v = PyString_Check(argv[2]) ? 1 : 0; + } + if (_v) { + return _wrap_Lua_RunScript__SWIG_0(self,args); + } + } + } + } + if ((argc >= 2) && (argc <= 3)) { + int _v; + { + void *ptr; + if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_Lua, 0) == -1) { + _v = 0; + PyErr_Clear(); + } else { + _v = 1; + } + } + if (_v) { + { + _v = PyString_Check(argv[1]) ? 1 : 0; + } + if (_v) { + if (argc <= 2) { + return _wrap_Lua_RunScript__SWIG_1(self,args); + } + { + _v = PyString_Check(argv[2]) ? 1 : 0; + } + if (_v) { + return _wrap_Lua_RunScript__SWIG_1(self,args); + } + } + } + } + + PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Lua_RunScript'"); + return NULL; +} + + +static PyObject *_wrap_Lua_RunScripts(PyObject *self, PyObject *args) { + PyObject *resultobj; + Lua *arg1 = (Lua *) 0 ; + char *arg2 ; + bool arg3 = (bool) false ; + bool result; + PyObject * obj0 = 0 ; + PyObject * obj2 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"Os|O:Lua_RunScripts",&obj0,&arg2,&obj2)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Lua,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (obj2) { + arg3 = PyInt_AsLong(obj2) ? true : false; + if (PyErr_Occurred()) SWIG_fail; + } + result = (bool)(arg1)->RunScripts((char const *)arg2,arg3); + + resultobj = PyInt_FromLong((long)result); + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Lua_HasScripts(PyObject *self, PyObject *args) { + PyObject *resultobj; + Lua *arg1 = (Lua *) 0 ; + char *arg2 ; + bool result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"Os:Lua_HasScripts",&obj0,&arg2)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Lua,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (bool)(arg1)->HasScripts((char const *)arg2); + + resultobj = PyInt_FromLong((long)result); + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Lua_ResetScript__SWIG_0(PyObject *self, PyObject *args) { + PyObject *resultobj; + Lua *arg1 = (Lua *) 0 ; + string *arg2 = 0 ; + std::string temp2 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:Lua_ResetScript",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Lua,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + { + if (PyString_Check(obj1)) { + temp2 = std::string(PyString_AsString(obj1), + PyString_Size(obj1)); + arg2 = &temp2; + } else { + SWIG_exception(SWIG_TypeError, "string expected"); + } + } + (arg1)->ResetScript((string const &)*arg2); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Lua_ResetScript__SWIG_1(PyObject *self, PyObject *args) { + PyObject *resultobj; + Lua *arg1 = (Lua *) 0 ; + char *arg2 ; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"Os:Lua_ResetScript",&obj0,&arg2)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Lua,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + (arg1)->ResetScript((char const *)arg2); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Lua_ResetScript(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[3]; + int ii; + + argc = PyObject_Length(args); + for (ii = 0; (ii < argc) && (ii < 2); ii++) { + argv[ii] = PyTuple_GetItem(args,ii); + } + if (argc == 2) { + int _v; + { + void *ptr; + if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_Lua, 0) == -1) { + _v = 0; + PyErr_Clear(); + } else { + _v = 1; + } + } + if (_v) { + { + _v = PyString_Check(argv[1]) ? 1 : 0; + } + if (_v) { + return _wrap_Lua_ResetScript__SWIG_0(self,args); + } + } + } + if (argc == 2) { + int _v; + { + void *ptr; + if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_Lua, 0) == -1) { + _v = 0; + PyErr_Clear(); + } else { + _v = 1; + } + } + if (_v) { + { + _v = PyString_Check(argv[1]) ? 1 : 0; + } + if (_v) { + return _wrap_Lua_ResetScript__SWIG_1(self,args); + } + } + } + + PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Lua_ResetScript'"); + return NULL; +} + + +static PyObject *_wrap_Lua_SetGlobal__SWIG_0(PyObject *self, PyObject *args) { + PyObject *resultobj; + Lua *arg1 = (Lua *) 0 ; + char *arg2 ; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"Os:Lua_SetGlobal",&obj0,&arg2)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Lua,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + (arg1)->SetGlobal((char const *)arg2); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Lua_SetGlobal__SWIG_1(PyObject *self, PyObject *args) { + PyObject *resultobj; + Lua *arg1 = (Lua *) 0 ; + char *arg2 ; + char *arg3 ; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"Oss:Lua_SetGlobal",&obj0,&arg2,&arg3)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Lua,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + (arg1)->SetGlobal((char const *)arg2,(char const *)arg3); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Lua_SetGlobal__SWIG_2(PyObject *self, PyObject *args) { + PyObject *resultobj; + Lua *arg1 = (Lua *) 0 ; + char *arg2 ; + bool arg3 ; + PyObject * obj0 = 0 ; + PyObject * obj2 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OsO:Lua_SetGlobal",&obj0,&arg2,&obj2)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Lua,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + arg3 = PyInt_AsLong(obj2) ? true : false; + if (PyErr_Occurred()) SWIG_fail; + (arg1)->SetGlobal((char const *)arg2,arg3); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Lua_SetGlobal__SWIG_3(PyObject *self, PyObject *args) { + PyObject *resultobj; + Lua *arg1 = (Lua *) 0 ; + char *arg2 ; + double arg3 ; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"Osd:Lua_SetGlobal",&obj0,&arg2,&arg3)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Lua,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + (arg1)->SetGlobal((char const *)arg2,arg3); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Lua_SetGlobal__SWIG_4(PyObject *self, PyObject *args) { + PyObject *resultobj; + Lua *arg1 = (Lua *) 0 ; + char *arg2 ; + void *arg3 = (void *) 0 ; + PyObject * obj0 = 0 ; + PyObject * obj2 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OsO:Lua_SetGlobal",&obj0,&arg2,&obj2)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Lua,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if ((SWIG_ConvertPtr(obj2,(void **) &arg3, 0, SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + (arg1)->SetGlobal((char const *)arg2,arg3); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Lua_SetGlobal__SWIG_5(PyObject *self, PyObject *args) { + PyObject *resultobj; + Lua *arg1 = (Lua *) 0 ; + char *arg2 ; + string *arg3 = 0 ; + std::string temp3 ; + PyObject * obj0 = 0 ; + PyObject * obj2 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OsO:Lua_SetGlobal",&obj0,&arg2,&obj2)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Lua,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + { + if (PyString_Check(obj2)) { + temp3 = std::string(PyString_AsString(obj2), + PyString_Size(obj2)); + arg3 = &temp3; + } else { + SWIG_exception(SWIG_TypeError, "string expected"); + } + } + (arg1)->SetGlobal((char const *)arg2,(string const &)*arg3); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Lua_SetGlobal__SWIG_6(PyObject *self, PyObject *args) { + PyObject *resultobj; + Lua *arg1 = (Lua *) 0 ; + char *arg2 ; + int arg3 ; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"Osi:Lua_SetGlobal",&obj0,&arg2,&arg3)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Lua,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + (arg1)->SetGlobal((char const *)arg2,arg3); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Lua_SetGlobal__SWIG_7(PyObject *self, PyObject *args) { + PyObject *resultobj; + Lua *arg1 = (Lua *) 0 ; + char *arg2 ; + lua_CFunction arg3 = (lua_CFunction) 0 ; + PyObject * obj0 = 0 ; + PyObject * obj2 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OsO:Lua_SetGlobal",&obj0,&arg2,&obj2)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Lua,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_lua_CFunction,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + (arg1)->SetGlobal((char const *)arg2,arg3); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Lua_SetGlobal__SWIG_8(PyObject *self, PyObject *args) { + PyObject *resultobj; + Lua *arg1 = (Lua *) 0 ; + char *arg2 ; + char **arg3 = (char **) 0 ; + int arg4 = (int) -1 ; + PyObject * obj0 = 0 ; + PyObject * obj2 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OsO|i:Lua_SetGlobal",&obj0,&arg2,&obj2,&arg4)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Lua,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_p_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + (arg1)->SetGlobal((char const *)arg2,(char const **)arg3,arg4); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Lua_SetGlobal__SWIG_9(PyObject *self, PyObject *args) { + PyObject *resultobj; + Lua *arg1 = (Lua *) 0 ; + char *arg2 ; + pkgCache::Package *arg3 = (pkgCache::Package *) 0 ; + PyObject * obj0 = 0 ; + PyObject * obj2 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OsO:Lua_SetGlobal",&obj0,&arg2,&obj2)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Lua,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_pkgCache__Package,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + (arg1)->SetGlobal((char const *)arg2,arg3); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Lua_SetGlobal__SWIG_10(PyObject *self, PyObject *args) { + PyObject *resultobj; + Lua *arg1 = (Lua *) 0 ; + char *arg2 ; + std::vector<char const * > *arg3 = 0 ; + int arg4 = (int) -1 ; + PyObject * obj0 = 0 ; + PyObject * obj2 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OsO|i:Lua_SetGlobal",&obj0,&arg2,&obj2,&arg4)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Lua,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_std__vectorTchar_const_p_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg3 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } + (arg1)->SetGlobal((char const *)arg2,*arg3,arg4); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Lua_SetGlobal__SWIG_11(PyObject *self, PyObject *args) { + PyObject *resultobj; + Lua *arg1 = (Lua *) 0 ; + char *arg2 ; + std::vector<string > *arg3 = 0 ; + int arg4 = (int) -1 ; + PyObject * obj0 = 0 ; + PyObject * obj2 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OsO|i:Lua_SetGlobal",&obj0,&arg2,&obj2,&arg4)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Lua,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_std__vectorTstd__string_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg3 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } + (arg1)->SetGlobal((char const *)arg2,*arg3,arg4); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Lua_SetGlobal__SWIG_12(PyObject *self, PyObject *args) { + PyObject *resultobj; + Lua *arg1 = (Lua *) 0 ; + char *arg2 ; + std::vector<pkgCache::Package * > *arg3 = 0 ; + int arg4 = (int) -1 ; + PyObject * obj0 = 0 ; + PyObject * obj2 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OsO|i:Lua_SetGlobal",&obj0,&arg2,&obj2,&arg4)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Lua,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_std__vectorTpkgCache__Package_p_t,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (arg3 == NULL) { + PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail; + } + (arg1)->SetGlobal((char const *)arg2,*arg3,arg4); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Lua_SetGlobal(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[5]; + int ii; + + argc = PyObject_Length(args); + for (ii = 0; (ii < argc) && (ii < 4); ii++) { + argv[ii] = PyTuple_GetItem(args,ii); + } + if (argc == 2) { + int _v; + { + void *ptr; + if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_Lua, 0) == -1) { + _v = 0; + PyErr_Clear(); + } else { + _v = 1; + } + } + if (_v) { + { + _v = PyString_Check(argv[1]) ? 1 : 0; + } + if (_v) { + return _wrap_Lua_SetGlobal__SWIG_0(self,args); + } + } + } + if (argc == 3) { + int _v; + { + void *ptr; + if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_Lua, 0) == -1) { + _v = 0; + PyErr_Clear(); + } else { + _v = 1; + } + } + if (_v) { + { + _v = PyString_Check(argv[1]) ? 1 : 0; + } + if (_v) { + { + void *ptr; + if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_lua_CFunction, 0) == -1) { + _v = 0; + PyErr_Clear(); + } else { + _v = 1; + } + } + if (_v) { + return _wrap_Lua_SetGlobal__SWIG_7(self,args); + } + } + } + } + if ((argc >= 3) && (argc <= 4)) { + int _v; + { + void *ptr; + if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_Lua, 0) == -1) { + _v = 0; + PyErr_Clear(); + } else { + _v = 1; + } + } + if (_v) { + { + _v = PyString_Check(argv[1]) ? 1 : 0; + } + if (_v) { + { + void *ptr; + if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_p_char, 0) == -1) { + _v = 0; + PyErr_Clear(); + } else { + _v = 1; + } + } + if (_v) { + if (argc <= 3) { + return _wrap_Lua_SetGlobal__SWIG_8(self,args); + } + { + _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0; + } + if (_v) { + return _wrap_Lua_SetGlobal__SWIG_8(self,args); + } + } + } + } + } + if (argc == 3) { + int _v; + { + void *ptr; + if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_Lua, 0) == -1) { + _v = 0; + PyErr_Clear(); + } else { + _v = 1; + } + } + if (_v) { + { + _v = PyString_Check(argv[1]) ? 1 : 0; + } + if (_v) { + { + void *ptr; + if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_pkgCache__Package, 0) == -1) { + _v = 0; + PyErr_Clear(); + } else { + _v = 1; + } + } + if (_v) { + return _wrap_Lua_SetGlobal__SWIG_9(self,args); + } + } + } + } + if ((argc >= 3) && (argc <= 4)) { + int _v; + { + void *ptr; + if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_Lua, 0) == -1) { + _v = 0; + PyErr_Clear(); + } else { + _v = 1; + } + } + if (_v) { + { + _v = PyString_Check(argv[1]) ? 1 : 0; + } + if (_v) { + { + void *ptr; + if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_std__vectorTchar_const_p_t, 0) == -1) { + _v = 0; + PyErr_Clear(); + } else { + _v = 1; + } + } + if (_v) { + if (argc <= 3) { + return _wrap_Lua_SetGlobal__SWIG_10(self,args); + } + { + _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0; + } + if (_v) { + return _wrap_Lua_SetGlobal__SWIG_10(self,args); + } + } + } + } + } + if ((argc >= 3) && (argc <= 4)) { + int _v; + { + void *ptr; + if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_Lua, 0) == -1) { + _v = 0; + PyErr_Clear(); + } else { + _v = 1; + } + } + if (_v) { + { + _v = PyString_Check(argv[1]) ? 1 : 0; + } + if (_v) { + { + void *ptr; + if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_std__vectorTstd__string_t, 0) == -1) { + _v = 0; + PyErr_Clear(); + } else { + _v = 1; + } + } + if (_v) { + if (argc <= 3) { + return _wrap_Lua_SetGlobal__SWIG_11(self,args); + } + { + _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0; + } + if (_v) { + return _wrap_Lua_SetGlobal__SWIG_11(self,args); + } + } + } + } + } + if ((argc >= 3) && (argc <= 4)) { + int _v; + { + void *ptr; + if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_Lua, 0) == -1) { + _v = 0; + PyErr_Clear(); + } else { + _v = 1; + } + } + if (_v) { + { + _v = PyString_Check(argv[1]) ? 1 : 0; + } + if (_v) { + { + void *ptr; + if (SWIG_ConvertPtr(argv[2], (void **) &ptr, SWIGTYPE_p_std__vectorTpkgCache__Package_p_t, 0) == -1) { + _v = 0; + PyErr_Clear(); + } else { + _v = 1; + } + } + if (_v) { + if (argc <= 3) { + return _wrap_Lua_SetGlobal__SWIG_12(self,args); + } + { + _v = (PyInt_Check(argv[3]) || PyLong_Check(argv[3])) ? 1 : 0; + } + if (_v) { + return _wrap_Lua_SetGlobal__SWIG_12(self,args); + } + } + } + } + } + if (argc == 3) { + int _v; + { + void *ptr; + if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_Lua, 0) == -1) { + _v = 0; + PyErr_Clear(); + } else { + _v = 1; + } + } + if (_v) { + { + _v = PyString_Check(argv[1]) ? 1 : 0; + } + if (_v) { + { + void *ptr; + if (SWIG_ConvertPtr(argv[2], (void **) &ptr, 0, 0) == -1) { + _v = 0; + PyErr_Clear(); + } else { + _v = 1; + } + } + if (_v) { + return _wrap_Lua_SetGlobal__SWIG_4(self,args); + } + } + } + } + if (argc == 3) { + int _v; + { + void *ptr; + if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_Lua, 0) == -1) { + _v = 0; + PyErr_Clear(); + } else { + _v = 1; + } + } + if (_v) { + { + _v = PyString_Check(argv[1]) ? 1 : 0; + } + if (_v) { + { + _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0; + } + if (_v) { + return _wrap_Lua_SetGlobal__SWIG_2(self,args); + } + } + } + } + if (argc == 3) { + int _v; + { + void *ptr; + if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_Lua, 0) == -1) { + _v = 0; + PyErr_Clear(); + } else { + _v = 1; + } + } + if (_v) { + { + _v = PyString_Check(argv[1]) ? 1 : 0; + } + if (_v) { + { + _v = (PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0; + } + if (_v) { + return _wrap_Lua_SetGlobal__SWIG_6(self,args); + } + } + } + } + if (argc == 3) { + int _v; + { + void *ptr; + if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_Lua, 0) == -1) { + _v = 0; + PyErr_Clear(); + } else { + _v = 1; + } + } + if (_v) { + { + _v = PyString_Check(argv[1]) ? 1 : 0; + } + if (_v) { + { + _v = (PyFloat_Check(argv[2]) || PyInt_Check(argv[2]) || PyLong_Check(argv[2])) ? 1 : 0; + } + if (_v) { + return _wrap_Lua_SetGlobal__SWIG_3(self,args); + } + } + } + } + if (argc == 3) { + int _v; + { + void *ptr; + if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_Lua, 0) == -1) { + _v = 0; + PyErr_Clear(); + } else { + _v = 1; + } + } + if (_v) { + { + _v = PyString_Check(argv[1]) ? 1 : 0; + } + if (_v) { + { + _v = PyString_Check(argv[2]) ? 1 : 0; + } + if (_v) { + return _wrap_Lua_SetGlobal__SWIG_5(self,args); + } + } + } + } + if (argc == 3) { + int _v; + { + void *ptr; + if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_Lua, 0) == -1) { + _v = 0; + PyErr_Clear(); + } else { + _v = 1; + } + } + if (_v) { + { + _v = PyString_Check(argv[1]) ? 1 : 0; + } + if (_v) { + { + _v = PyString_Check(argv[2]) ? 1 : 0; + } + if (_v) { + return _wrap_Lua_SetGlobal__SWIG_1(self,args); + } + } + } + } + + PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'Lua_SetGlobal'"); + return NULL; +} + + +static PyObject *_wrap_Lua_ResetGlobals(PyObject *self, PyObject *args) { + PyObject *resultobj; + Lua *arg1 = (Lua *) 0 ; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:Lua_ResetGlobals",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Lua,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + (arg1)->ResetGlobals(); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Lua_GetGlobalStr(PyObject *self, PyObject *args) { + PyObject *resultobj; + Lua *arg1 = (Lua *) 0 ; + char *arg2 ; + char *result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"Os:Lua_GetGlobalStr",&obj0,&arg2)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Lua,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (char *)(arg1)->GetGlobalStr((char const *)arg2); + + resultobj = result ? PyString_FromString(result) : Py_BuildValue((char*)""); + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Lua_GetGlobalStrList(PyObject *self, PyObject *args) { + PyObject *resultobj; + Lua *arg1 = (Lua *) 0 ; + char *arg2 ; + std::vector<string > result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"Os:Lua_GetGlobalStrList",&obj0,&arg2)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Lua,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (arg1)->GetGlobalStrList((char const *)arg2); + + { + std::vector<string > * resultptr; + resultptr = new std::vector<string >((std::vector<string > &) result); + resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_std__vectorTstd__string_t, 1); + } + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Lua_GetGlobalNum(PyObject *self, PyObject *args) { + PyObject *resultobj; + Lua *arg1 = (Lua *) 0 ; + char *arg2 ; + double result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"Os:Lua_GetGlobalNum",&obj0,&arg2)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Lua,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (double)(arg1)->GetGlobalNum((char const *)arg2); + + resultobj = PyFloat_FromDouble(result); + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Lua_GetGlobalBool(PyObject *self, PyObject *args) { + PyObject *resultobj; + Lua *arg1 = (Lua *) 0 ; + char *arg2 ; + bool result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"Os:Lua_GetGlobalBool",&obj0,&arg2)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Lua,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (bool)(arg1)->GetGlobalBool((char const *)arg2); + + resultobj = PyInt_FromLong((long)result); + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Lua_GetGlobalPtr(PyObject *self, PyObject *args) { + PyObject *resultobj; + Lua *arg1 = (Lua *) 0 ; + char *arg2 ; + void *result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"Os:Lua_GetGlobalPtr",&obj0,&arg2)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Lua,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (void *)(arg1)->GetGlobalPtr((char const *)arg2); + + resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_void, 0); + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Lua_GetGlobalPkg(PyObject *self, PyObject *args) { + PyObject *resultobj; + Lua *arg1 = (Lua *) 0 ; + char *arg2 ; + pkgCache::Package *result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"Os:Lua_GetGlobalPkg",&obj0,&arg2)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Lua,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (pkgCache::Package *)(arg1)->GetGlobalPkg((char const *)arg2); + + resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_pkgCache__Package, 0); + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Lua_GetGlobalPkgList(PyObject *self, PyObject *args) { + PyObject *resultobj; + Lua *arg1 = (Lua *) 0 ; + char *arg2 ; + SwigValueWrapper< std::vector<pkgCache::Package * > > result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"Os:Lua_GetGlobalPkgList",&obj0,&arg2)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Lua,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (arg1)->GetGlobalPkgList((char const *)arg2); + + { + std::vector<pkgCache::Package * > * resultptr; + resultptr = new std::vector<pkgCache::Package * >((std::vector<pkgCache::Package * > &) result); + resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_std__vectorTpkgCache__Package_p_t, 1); + } + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Lua_SetDepCache(PyObject *self, PyObject *args) { + PyObject *resultobj; + Lua *arg1 = (Lua *) 0 ; + pkgDepCache *arg2 = (pkgDepCache *) 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:Lua_SetDepCache",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Lua,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_pkgDepCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + (arg1)->SetDepCache(arg2); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Lua_SetCache(PyObject *self, PyObject *args) { + PyObject *resultobj; + Lua *arg1 = (Lua *) 0 ; + pkgCache *arg2 = (pkgCache *) 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:Lua_SetCache",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Lua,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_pkgCache,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + (arg1)->SetCache(arg2); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Lua_SetCacheControl(PyObject *self, PyObject *args) { + PyObject *resultobj; + Lua *arg1 = (Lua *) 0 ; + LuaCacheControl *arg2 = (LuaCacheControl *) 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:Lua_SetCacheControl",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Lua,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_LuaCacheControl,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + (arg1)->SetCacheControl(arg2); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Lua_SetProblemResolver(PyObject *self, PyObject *args) { + PyObject *resultobj; + Lua *arg1 = (Lua *) 0 ; + pkgProblemResolver *arg2 = (pkgProblemResolver *) 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"OO:Lua_SetProblemResolver",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Lua,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_pkgProblemResolver,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + (arg1)->SetProblemResolver(arg2); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Lua_SetDontFix(PyObject *self, PyObject *args) { + PyObject *resultobj; + Lua *arg1 = (Lua *) 0 ; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:Lua_SetDontFix",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Lua,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + (arg1)->SetDontFix(); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Lua_ResetCaches(PyObject *self, PyObject *args) { + PyObject *resultobj; + Lua *arg1 = (Lua *) 0 ; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:Lua_ResetCaches",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Lua,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + (arg1)->ResetCaches(); + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Lua_GetDepCache(PyObject *self, PyObject *args) { + PyObject *resultobj; + Lua *arg1 = (Lua *) 0 ; + lua_State *arg2 = (lua_State *) NULL ; + pkgDepCache *result; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O|O:Lua_GetDepCache",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Lua,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (obj1) { + if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_lua_State,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + } + result = (pkgDepCache *)(arg1)->GetDepCache(arg2); + + resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_pkgDepCache, 0); + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Lua_GetCache(PyObject *self, PyObject *args) { + PyObject *resultobj; + Lua *arg1 = (Lua *) 0 ; + lua_State *arg2 = (lua_State *) NULL ; + pkgCache *result; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O|O:Lua_GetCache",&obj0,&obj1)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Lua,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + if (obj1) { + if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_lua_State,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + } + result = (pkgCache *)(arg1)->GetCache(arg2); + + resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_pkgCache, 0); + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Lua_GetCacheControl(PyObject *self, PyObject *args) { + PyObject *resultobj; + Lua *arg1 = (Lua *) 0 ; + LuaCacheControl *result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:Lua_GetCacheControl",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Lua,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (LuaCacheControl *)(arg1)->GetCacheControl(); + + resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_LuaCacheControl, 0); + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Lua_GetProblemResolver(PyObject *self, PyObject *args) { + PyObject *resultobj; + Lua *arg1 = (Lua *) 0 ; + pkgProblemResolver *result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:Lua_GetProblemResolver",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Lua,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (pkgProblemResolver *)(arg1)->GetProblemResolver(); + + resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_pkgProblemResolver, 0); + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_Lua_GetDontFix(PyObject *self, PyObject *args) { + PyObject *resultobj; + Lua *arg1 = (Lua *) 0 ; + bool result; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:Lua_GetDontFix",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Lua,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + result = (bool)(arg1)->GetDontFix(); + + resultobj = PyInt_FromLong((long)result); + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_new_Lua(PyObject *self, PyObject *args) { + PyObject *resultobj; + Lua *result; + + if(!PyArg_ParseTuple(args,(char *)":new_Lua")) goto fail; + result = (Lua *)new Lua(); + + resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_Lua, 1); + return resultobj; + fail: + return NULL; +} + + +static PyObject *_wrap_delete_Lua(PyObject *self, PyObject *args) { + PyObject *resultobj; + Lua *arg1 = (Lua *) 0 ; + PyObject * obj0 = 0 ; + + if(!PyArg_ParseTuple(args,(char *)"O:delete_Lua",&obj0)) goto fail; + if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_Lua,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; + delete arg1; + + Py_INCREF(Py_None); resultobj = Py_None; + return resultobj; + fail: + return NULL; +} + + +static PyObject * Lua_swigregister(PyObject *self, PyObject *args) { + PyObject *obj; + if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; + SWIG_TypeClientData(SWIGTYPE_p_Lua, obj); + Py_INCREF(obj); + return Py_BuildValue((char *)""); +} +static PyObject *_wrap__GetLuaObj(PyObject *self, PyObject *args) { + PyObject *resultobj; + Lua *result; + + if(!PyArg_ParseTuple(args,(char *)":_GetLuaObj")) goto fail; + result = (Lua *)_GetLuaObj(); + + resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_Lua, 0); + return resultobj; + fail: + return NULL; +} + + static PyObject *_wrap_new_pkgAcquireStatusDumb(PyObject *self, PyObject *args) { PyObject *resultobj; pkgAcquireStatusDumb *result; @@ -17804,7 +19317,7 @@ static PyObject *_wrap_new_pkgAcquireStatusDumb(PyObject *self, PyObject *args) static PyObject *_wrap_delete_pkgAcquireStatusDumb(PyObject *self, PyObject *args) { PyObject *resultobj; pkgAcquireStatusDumb *arg1 = (pkgAcquireStatusDumb *) 0 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:delete_pkgAcquireStatusDumb",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_pkgAcquireStatusDumb,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -17828,7 +19341,7 @@ static PyObject *_wrap_ROpPyProgress_Op_set(PyObject *self, PyObject *args) { PyObject *resultobj; ROpPyProgress *arg1 = (ROpPyProgress *) 0 ; char *arg2 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Os:ROpPyProgress_Op_set",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ROpPyProgress,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -17845,7 +19358,7 @@ static PyObject *_wrap_ROpPyProgress_Op_get(PyObject *self, PyObject *args) { PyObject *resultobj; ROpPyProgress *arg1 = (ROpPyProgress *) 0 ; char *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:ROpPyProgress_Op_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ROpPyProgress,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -17862,7 +19375,7 @@ static PyObject *_wrap_ROpPyProgress_SubOp_set(PyObject *self, PyObject *args) { PyObject *resultobj; ROpPyProgress *arg1 = (ROpPyProgress *) 0 ; char *arg2 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Os:ROpPyProgress_SubOp_set",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ROpPyProgress,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -17879,7 +19392,7 @@ static PyObject *_wrap_ROpPyProgress_SubOp_get(PyObject *self, PyObject *args) { PyObject *resultobj; ROpPyProgress *arg1 = (ROpPyProgress *) 0 ; char *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:ROpPyProgress_SubOp_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ROpPyProgress,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -17896,7 +19409,7 @@ static PyObject *_wrap_ROpPyProgress_Percent_set(PyObject *self, PyObject *args) PyObject *resultobj; ROpPyProgress *arg1 = (ROpPyProgress *) 0 ; float arg2 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"Of:ROpPyProgress_Percent_set",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ROpPyProgress,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -17913,7 +19426,7 @@ static PyObject *_wrap_ROpPyProgress_Percent_get(PyObject *self, PyObject *args) PyObject *resultobj; ROpPyProgress *arg1 = (ROpPyProgress *) 0 ; float result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:ROpPyProgress_Percent_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ROpPyProgress,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -17930,12 +19443,12 @@ static PyObject *_wrap_ROpPyProgress_MajorChange_set(PyObject *self, PyObject *a PyObject *resultobj; ROpPyProgress *arg1 = (ROpPyProgress *) 0 ; bool arg2 ; - PyObject * obj0 = 0 ; - PyObject * obj1 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; if(!PyArg_ParseTuple(args,(char *)"OO:ROpPyProgress_MajorChange_set",&obj0,&obj1)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ROpPyProgress,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; - arg2 = (bool) PyInt_AsLong(obj1); + arg2 = PyInt_AsLong(obj1) ? true : false; if (PyErr_Occurred()) SWIG_fail; if (arg1) (arg1)->MajorChange = arg2; @@ -17950,7 +19463,7 @@ static PyObject *_wrap_ROpPyProgress_MajorChange_get(PyObject *self, PyObject *a PyObject *resultobj; ROpPyProgress *arg1 = (ROpPyProgress *) 0 ; bool result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:ROpPyProgress_MajorChange_get",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ROpPyProgress,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -17968,7 +19481,7 @@ static PyObject *_wrap_ROpPyProgress_CheckChange(PyObject *self, PyObject *args) ROpPyProgress *arg1 = (ROpPyProgress *) 0 ; float arg2 = (float) 0.7 ; bool result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O|f:ROpPyProgress_CheckChange",&obj0,&arg2)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ROpPyProgress,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -17985,7 +19498,7 @@ static PyObject *_wrap_new_ROpPyProgress(PyObject *self, PyObject *args) { PyObject *resultobj; PyObject *arg1 = (PyObject *) 0 ; ROpPyProgress *result; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:new_ROpPyProgress",&obj0)) goto fail; arg1 = obj0; @@ -18001,7 +19514,7 @@ static PyObject *_wrap_new_ROpPyProgress(PyObject *self, PyObject *args) { static PyObject *_wrap_delete_ROpPyProgress(PyObject *self, PyObject *args) { PyObject *resultobj; ROpPyProgress *arg1 = (ROpPyProgress *) 0 ; - PyObject * obj0 = 0 ; + PyObject * obj0 = 0 ; if(!PyArg_ParseTuple(args,(char *)"O:delete_ROpPyProgress",&obj0)) goto fail; if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_ROpPyProgress,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail; @@ -18072,6 +19585,8 @@ static PyMethodDef SwigMethods[] = { { (char *)"pkgCacheHeader_Dirty_get", _wrap_pkgCacheHeader_Dirty_get, METH_VARARGS }, { (char *)"pkgCacheHeader_HasFileDeps_set", _wrap_pkgCacheHeader_HasFileDeps_set, METH_VARARGS }, { (char *)"pkgCacheHeader_HasFileDeps_get", _wrap_pkgCacheHeader_HasFileDeps_get, METH_VARARGS }, + { (char *)"pkgCacheHeader_OptionsHash_set", _wrap_pkgCacheHeader_OptionsHash_set, METH_VARARGS }, + { (char *)"pkgCacheHeader_OptionsHash_get", _wrap_pkgCacheHeader_OptionsHash_get, METH_VARARGS }, { (char *)"pkgCacheHeader_HeaderSz_set", _wrap_pkgCacheHeader_HeaderSz_set, METH_VARARGS }, { (char *)"pkgCacheHeader_HeaderSz_get", _wrap_pkgCacheHeader_HeaderSz_get, METH_VARARGS }, { (char *)"pkgCacheHeader_PackageSz_set", _wrap_pkgCacheHeader_PackageSz_set, METH_VARARGS }, @@ -18335,19 +19850,12 @@ static PyMethodDef SwigMethods[] = { { (char *)"pkgCachePkgIterator_Index", _wrap_pkgCachePkgIterator_Index, METH_VARARGS }, { (char *)"pkgCachePkgIterator_State", _wrap_pkgCachePkgIterator_State, METH_VARARGS }, { (char *)"new_pkgCachePkgIterator", _wrap_new_pkgCachePkgIterator, METH_VARARGS }, - { (char *)"pkgCachePkgIterator_NextPackage_set", _wrap_pkgCachePkgIterator_NextPackage_set, METH_VARARGS }, { (char *)"pkgCachePkgIterator_NextPackage_get", _wrap_pkgCachePkgIterator_NextPackage_get, METH_VARARGS }, - { (char *)"pkgCachePkgIterator_RevDepends_set", _wrap_pkgCachePkgIterator_RevDepends_set, METH_VARARGS }, { (char *)"pkgCachePkgIterator_RevDepends_get", _wrap_pkgCachePkgIterator_RevDepends_get, METH_VARARGS }, - { (char *)"pkgCachePkgIterator_SelectedState_set", _wrap_pkgCachePkgIterator_SelectedState_set, METH_VARARGS }, { (char *)"pkgCachePkgIterator_SelectedState_get", _wrap_pkgCachePkgIterator_SelectedState_get, METH_VARARGS }, - { (char *)"pkgCachePkgIterator_InstState_set", _wrap_pkgCachePkgIterator_InstState_set, METH_VARARGS }, { (char *)"pkgCachePkgIterator_InstState_get", _wrap_pkgCachePkgIterator_InstState_get, METH_VARARGS }, - { (char *)"pkgCachePkgIterator_CurrentState_set", _wrap_pkgCachePkgIterator_CurrentState_set, METH_VARARGS }, { (char *)"pkgCachePkgIterator_CurrentState_get", _wrap_pkgCachePkgIterator_CurrentState_get, METH_VARARGS }, - { (char *)"pkgCachePkgIterator_ID_set", _wrap_pkgCachePkgIterator_ID_set, METH_VARARGS }, { (char *)"pkgCachePkgIterator_ID_get", _wrap_pkgCachePkgIterator_ID_get, METH_VARARGS }, - { (char *)"pkgCachePkgIterator_Flags_set", _wrap_pkgCachePkgIterator_Flags_set, METH_VARARGS }, { (char *)"pkgCachePkgIterator_Flags_get", _wrap_pkgCachePkgIterator_Flags_get, METH_VARARGS }, { (char *)"delete_pkgCachePkgIterator", _wrap_delete_pkgCachePkgIterator, METH_VARARGS }, { (char *)"pkgCachePkgIterator_swigregister", pkgCachePkgIterator_swigregister, METH_VARARGS }, @@ -18377,17 +19885,11 @@ static PyMethodDef SwigMethods[] = { { (char *)"pkgCacheVerIterator_Automatic", _wrap_pkgCacheVerIterator_Automatic, METH_VARARGS }, { (char *)"pkgCacheVerIterator_NewestFile", _wrap_pkgCacheVerIterator_NewestFile, METH_VARARGS }, { (char *)"new_pkgCacheVerIterator", _wrap_new_pkgCacheVerIterator, METH_VARARGS }, - { (char *)"pkgCacheVerIterator_NextVer_set", _wrap_pkgCacheVerIterator_NextVer_set, METH_VARARGS }, { (char *)"pkgCacheVerIterator_NextVer_get", _wrap_pkgCacheVerIterator_NextVer_get, METH_VARARGS }, - { (char *)"pkgCacheVerIterator_Size_set", _wrap_pkgCacheVerIterator_Size_set, METH_VARARGS }, { (char *)"pkgCacheVerIterator_Size_get", _wrap_pkgCacheVerIterator_Size_get, METH_VARARGS }, - { (char *)"pkgCacheVerIterator_InstalledSize_set", _wrap_pkgCacheVerIterator_InstalledSize_set, METH_VARARGS }, { (char *)"pkgCacheVerIterator_InstalledSize_get", _wrap_pkgCacheVerIterator_InstalledSize_get, METH_VARARGS }, - { (char *)"pkgCacheVerIterator_Hash_set", _wrap_pkgCacheVerIterator_Hash_set, METH_VARARGS }, { (char *)"pkgCacheVerIterator_Hash_get", _wrap_pkgCacheVerIterator_Hash_get, METH_VARARGS }, - { (char *)"pkgCacheVerIterator_ID_set", _wrap_pkgCacheVerIterator_ID_set, METH_VARARGS }, { (char *)"pkgCacheVerIterator_ID_get", _wrap_pkgCacheVerIterator_ID_get, METH_VARARGS }, - { (char *)"pkgCacheVerIterator_Priority_set", _wrap_pkgCacheVerIterator_Priority_set, METH_VARARGS }, { (char *)"pkgCacheVerIterator_Priority_get", _wrap_pkgCacheVerIterator_Priority_get, METH_VARARGS }, { (char *)"delete_pkgCacheVerIterator", _wrap_delete_pkgCacheVerIterator, METH_VARARGS }, { (char *)"pkgCacheVerIterator_swigregister", pkgCacheVerIterator_swigregister, METH_VARARGS }, @@ -18414,19 +19916,12 @@ static PyMethodDef SwigMethods[] = { { (char *)"pkgCacheDepIterator_CompType", _wrap_pkgCacheDepIterator_CompType, METH_VARARGS }, { (char *)"pkgCacheDepIterator_DepType", _wrap_pkgCacheDepIterator_DepType, METH_VARARGS }, { (char *)"new_pkgCacheDepIterator", _wrap_new_pkgCacheDepIterator, METH_VARARGS }, - { (char *)"pkgCacheDepIterator_Version_set", _wrap_pkgCacheDepIterator_Version_set, METH_VARARGS }, { (char *)"pkgCacheDepIterator_Version_get", _wrap_pkgCacheDepIterator_Version_get, METH_VARARGS }, - { (char *)"pkgCacheDepIterator_Package_set", _wrap_pkgCacheDepIterator_Package_set, METH_VARARGS }, { (char *)"pkgCacheDepIterator_Package_get", _wrap_pkgCacheDepIterator_Package_get, METH_VARARGS }, - { (char *)"pkgCacheDepIterator_NextDepends_set", _wrap_pkgCacheDepIterator_NextDepends_set, METH_VARARGS }, { (char *)"pkgCacheDepIterator_NextDepends_get", _wrap_pkgCacheDepIterator_NextDepends_get, METH_VARARGS }, - { (char *)"pkgCacheDepIterator_NextRevDepends_set", _wrap_pkgCacheDepIterator_NextRevDepends_set, METH_VARARGS }, { (char *)"pkgCacheDepIterator_NextRevDepends_get", _wrap_pkgCacheDepIterator_NextRevDepends_get, METH_VARARGS }, - { (char *)"pkgCacheDepIterator_ID_set", _wrap_pkgCacheDepIterator_ID_set, METH_VARARGS }, { (char *)"pkgCacheDepIterator_ID_get", _wrap_pkgCacheDepIterator_ID_get, METH_VARARGS }, - { (char *)"pkgCacheDepIterator_Type_set", _wrap_pkgCacheDepIterator_Type_set, METH_VARARGS }, { (char *)"pkgCacheDepIterator_Type_get", _wrap_pkgCacheDepIterator_Type_get, METH_VARARGS }, - { (char *)"pkgCacheDepIterator_CompareOp_set", _wrap_pkgCacheDepIterator_CompareOp_set, METH_VARARGS }, { (char *)"pkgCacheDepIterator_CompareOp_get", _wrap_pkgCacheDepIterator_CompareOp_get, METH_VARARGS }, { (char *)"delete_pkgCacheDepIterator", _wrap_delete_pkgCacheDepIterator, METH_VARARGS }, { (char *)"pkgCacheDepIterator_swigregister", pkgCacheDepIterator_swigregister, METH_VARARGS }, @@ -18447,11 +19942,8 @@ static PyMethodDef SwigMethods[] = { { (char *)"pkgCachePrvIterator_OwnerPkg", _wrap_pkgCachePrvIterator_OwnerPkg, METH_VARARGS }, { (char *)"pkgCachePrvIterator_Index", _wrap_pkgCachePrvIterator_Index, METH_VARARGS }, { (char *)"new_pkgCachePrvIterator", _wrap_new_pkgCachePrvIterator, METH_VARARGS }, - { (char *)"pkgCachePrvIterator_Version_set", _wrap_pkgCachePrvIterator_Version_set, METH_VARARGS }, { (char *)"pkgCachePrvIterator_Version_get", _wrap_pkgCachePrvIterator_Version_get, METH_VARARGS }, - { (char *)"pkgCachePrvIterator_NextProvides_set", _wrap_pkgCachePrvIterator_NextProvides_set, METH_VARARGS }, { (char *)"pkgCachePrvIterator_NextProvides_get", _wrap_pkgCachePrvIterator_NextProvides_get, METH_VARARGS }, - { (char *)"pkgCachePrvIterator_NextPkgProv_set", _wrap_pkgCachePrvIterator_NextPkgProv_set, METH_VARARGS }, { (char *)"pkgCachePrvIterator_NextPkgProv_get", _wrap_pkgCachePrvIterator_NextPkgProv_get, METH_VARARGS }, { (char *)"delete_pkgCachePrvIterator", _wrap_delete_pkgCachePrvIterator, METH_VARARGS }, { (char *)"pkgCachePrvIterator_swigregister", pkgCachePrvIterator_swigregister, METH_VARARGS }, @@ -18478,15 +19970,10 @@ static PyMethodDef SwigMethods[] = { { (char *)"pkgCachePkgFileIterator_IsOk", _wrap_pkgCachePkgFileIterator_IsOk, METH_VARARGS }, { (char *)"pkgCachePkgFileIterator_RelStr", _wrap_pkgCachePkgFileIterator_RelStr, METH_VARARGS }, { (char *)"new_pkgCachePkgFileIterator", _wrap_new_pkgCachePkgFileIterator, METH_VARARGS }, - { (char *)"pkgCachePkgFileIterator_Size_set", _wrap_pkgCachePkgFileIterator_Size_set, METH_VARARGS }, { (char *)"pkgCachePkgFileIterator_Size_get", _wrap_pkgCachePkgFileIterator_Size_get, METH_VARARGS }, - { (char *)"pkgCachePkgFileIterator_Flags_set", _wrap_pkgCachePkgFileIterator_Flags_set, METH_VARARGS }, { (char *)"pkgCachePkgFileIterator_Flags_get", _wrap_pkgCachePkgFileIterator_Flags_get, METH_VARARGS }, - { (char *)"pkgCachePkgFileIterator_NextFile_set", _wrap_pkgCachePkgFileIterator_NextFile_set, METH_VARARGS }, { (char *)"pkgCachePkgFileIterator_NextFile_get", _wrap_pkgCachePkgFileIterator_NextFile_get, METH_VARARGS }, - { (char *)"pkgCachePkgFileIterator_ID_set", _wrap_pkgCachePkgFileIterator_ID_set, METH_VARARGS }, { (char *)"pkgCachePkgFileIterator_ID_get", _wrap_pkgCachePkgFileIterator_ID_get, METH_VARARGS }, - { (char *)"pkgCachePkgFileIterator_mtime_set", _wrap_pkgCachePkgFileIterator_mtime_set, METH_VARARGS }, { (char *)"pkgCachePkgFileIterator_mtime_get", _wrap_pkgCachePkgFileIterator_mtime_get, METH_VARARGS }, { (char *)"delete_pkgCachePkgFileIterator", _wrap_delete_pkgCachePkgFileIterator, METH_VARARGS }, { (char *)"pkgCachePkgFileIterator_swigregister", pkgCachePkgFileIterator_swigregister, METH_VARARGS }, @@ -18503,11 +19990,8 @@ static PyMethodDef SwigMethods[] = { { (char *)"pkgCacheVerFileIterator_File", _wrap_pkgCacheVerFileIterator_File, METH_VARARGS }, { (char *)"pkgCacheVerFileIterator_Index", _wrap_pkgCacheVerFileIterator_Index, METH_VARARGS }, { (char *)"new_pkgCacheVerFileIterator", _wrap_new_pkgCacheVerFileIterator, METH_VARARGS }, - { (char *)"pkgCacheVerFileIterator_NextFile_set", _wrap_pkgCacheVerFileIterator_NextFile_set, METH_VARARGS }, { (char *)"pkgCacheVerFileIterator_NextFile_get", _wrap_pkgCacheVerFileIterator_NextFile_get, METH_VARARGS }, - { (char *)"pkgCacheVerFileIterator_Offset_set", _wrap_pkgCacheVerFileIterator_Offset_set, METH_VARARGS }, { (char *)"pkgCacheVerFileIterator_Offset_get", _wrap_pkgCacheVerFileIterator_Offset_get, METH_VARARGS }, - { (char *)"pkgCacheVerFileIterator_Size_set", _wrap_pkgCacheVerFileIterator_Size_set, METH_VARARGS }, { (char *)"pkgCacheVerFileIterator_Size_get", _wrap_pkgCacheVerFileIterator_Size_get, METH_VARARGS }, { (char *)"delete_pkgCacheVerFileIterator", _wrap_delete_pkgCacheVerFileIterator, METH_VARARGS }, { (char *)"pkgCacheVerFileIterator_swigregister", pkgCacheVerFileIterator_swigregister, METH_VARARGS }, @@ -18577,11 +20061,13 @@ static PyMethodDef SwigMethods[] = { { (char *)"pkgSystem_Initialize", _wrap_pkgSystem_Initialize, METH_VARARGS }, { (char *)"pkgSystem_ArchiveSupported", _wrap_pkgSystem_ArchiveSupported, METH_VARARGS }, { (char *)"pkgSystem_AddStatusFiles", _wrap_pkgSystem_AddStatusFiles, METH_VARARGS }, + { (char *)"pkgSystem_AddSourceFiles", _wrap_pkgSystem_AddSourceFiles, METH_VARARGS }, { (char *)"pkgSystem_FindIndex", _wrap_pkgSystem_FindIndex, METH_VARARGS }, { (char *)"pkgSystem_Score", _wrap_pkgSystem_Score, METH_VARARGS }, { (char *)"pkgSystem_PreProcess", _wrap_pkgSystem_PreProcess, METH_VARARGS }, { (char *)"pkgSystem_ProcessCache", _wrap_pkgSystem_ProcessCache, METH_VARARGS }, { (char *)"pkgSystem_IgnoreDep", _wrap_pkgSystem_IgnoreDep, METH_VARARGS }, + { (char *)"pkgSystem_OptionsHash", _wrap_pkgSystem_OptionsHash, METH_VARARGS }, { (char *)"delete_pkgSystem", _wrap_delete_pkgSystem, METH_VARARGS }, { (char *)"pkgSystem_swigregister", pkgSystem_swigregister, METH_VARARGS }, { (char *)"Configuration_Find", _wrap_Configuration_Find, METH_VARARGS }, @@ -18653,6 +20139,7 @@ static PyMethodDef SwigMethods[] = { { (char *)"pkgRecordsParser_LongDesc", _wrap_pkgRecordsParser_LongDesc, METH_VARARGS }, { (char *)"pkgRecordsParser_Name", _wrap_pkgRecordsParser_Name, METH_VARARGS }, { (char *)"pkgRecordsParser_GetRec", _wrap_pkgRecordsParser_GetRec, METH_VARARGS }, + { (char *)"pkgRecordsParser_HasFile", _wrap_pkgRecordsParser_HasFile, METH_VARARGS }, { (char *)"delete_pkgRecordsParser", _wrap_delete_pkgRecordsParser, METH_VARARGS }, { (char *)"pkgRecordsParser_swigregister", pkgRecordsParser_swigregister, METH_VARARGS }, { (char *)"pkgAcquireItem_DestFile_get", _wrap_pkgAcquireItem_DestFile_get, METH_VARARGS }, @@ -18779,6 +20266,39 @@ static PyMethodDef SwigMethods[] = { { (char *)"delete_GlobalError", _wrap_delete_GlobalError, METH_VARARGS }, { (char *)"GlobalError_swigregister", GlobalError_swigregister, METH_VARARGS }, { (char *)"_GetErrorObj", _wrap__GetErrorObj, METH_VARARGS }, + { (char *)"LuaCacheControl_Open", _wrap_LuaCacheControl_Open, METH_VARARGS }, + { (char *)"LuaCacheControl_Close", _wrap_LuaCacheControl_Close, METH_VARARGS }, + { (char *)"delete_LuaCacheControl", _wrap_delete_LuaCacheControl, METH_VARARGS }, + { (char *)"LuaCacheControl_swigregister", LuaCacheControl_swigregister, METH_VARARGS }, + { (char *)"Lua_RunInteractive", _wrap_Lua_RunInteractive, METH_VARARGS }, + { (char *)"Lua_RunScript", _wrap_Lua_RunScript, METH_VARARGS }, + { (char *)"Lua_RunScripts", _wrap_Lua_RunScripts, METH_VARARGS }, + { (char *)"Lua_HasScripts", _wrap_Lua_HasScripts, METH_VARARGS }, + { (char *)"Lua_ResetScript", _wrap_Lua_ResetScript, METH_VARARGS }, + { (char *)"Lua_SetGlobal", _wrap_Lua_SetGlobal, METH_VARARGS }, + { (char *)"Lua_ResetGlobals", _wrap_Lua_ResetGlobals, METH_VARARGS }, + { (char *)"Lua_GetGlobalStr", _wrap_Lua_GetGlobalStr, METH_VARARGS }, + { (char *)"Lua_GetGlobalStrList", _wrap_Lua_GetGlobalStrList, METH_VARARGS }, + { (char *)"Lua_GetGlobalNum", _wrap_Lua_GetGlobalNum, METH_VARARGS }, + { (char *)"Lua_GetGlobalBool", _wrap_Lua_GetGlobalBool, METH_VARARGS }, + { (char *)"Lua_GetGlobalPtr", _wrap_Lua_GetGlobalPtr, METH_VARARGS }, + { (char *)"Lua_GetGlobalPkg", _wrap_Lua_GetGlobalPkg, METH_VARARGS }, + { (char *)"Lua_GetGlobalPkgList", _wrap_Lua_GetGlobalPkgList, METH_VARARGS }, + { (char *)"Lua_SetDepCache", _wrap_Lua_SetDepCache, METH_VARARGS }, + { (char *)"Lua_SetCache", _wrap_Lua_SetCache, METH_VARARGS }, + { (char *)"Lua_SetCacheControl", _wrap_Lua_SetCacheControl, METH_VARARGS }, + { (char *)"Lua_SetProblemResolver", _wrap_Lua_SetProblemResolver, METH_VARARGS }, + { (char *)"Lua_SetDontFix", _wrap_Lua_SetDontFix, METH_VARARGS }, + { (char *)"Lua_ResetCaches", _wrap_Lua_ResetCaches, METH_VARARGS }, + { (char *)"Lua_GetDepCache", _wrap_Lua_GetDepCache, METH_VARARGS }, + { (char *)"Lua_GetCache", _wrap_Lua_GetCache, METH_VARARGS }, + { (char *)"Lua_GetCacheControl", _wrap_Lua_GetCacheControl, METH_VARARGS }, + { (char *)"Lua_GetProblemResolver", _wrap_Lua_GetProblemResolver, METH_VARARGS }, + { (char *)"Lua_GetDontFix", _wrap_Lua_GetDontFix, METH_VARARGS }, + { (char *)"new_Lua", _wrap_new_Lua, METH_VARARGS }, + { (char *)"delete_Lua", _wrap_delete_Lua, METH_VARARGS }, + { (char *)"Lua_swigregister", Lua_swigregister, METH_VARARGS }, + { (char *)"_GetLuaObj", _wrap__GetLuaObj, METH_VARARGS }, { (char *)"new_pkgAcquireStatusDumb", _wrap_new_pkgAcquireStatusDumb, METH_VARARGS }, { (char *)"delete_pkgAcquireStatusDumb", _wrap_delete_pkgAcquireStatusDumb, METH_VARARGS }, { (char *)"pkgAcquireStatusDumb_swigregister", pkgAcquireStatusDumb_swigregister, METH_VARARGS }, @@ -18828,20 +20348,21 @@ static swig_type_info _swigt__p_pkgCache__VerFileIterator[] = {{"_p_pkgCache__Ve static swig_type_info _swigt__p_PkgFileIterator[] = {{"_p_PkgFileIterator", 0, "PkgFileIterator *", 0},{"_p_PkgFileIterator"},{"_p_pkgCache__PkgFileIterator"},{0}}; static swig_type_info _swigt__p_pkgCache__PrvIterator[] = {{"_p_pkgCache__PrvIterator", 0, "pkgCache::PrvIterator *", 0},{"_p_pkgCache__PrvIterator"},{"_p_PrvIterator"},{0}}; static swig_type_info _swigt__p_pkgCache__DepIterator[] = {{"_p_pkgCache__DepIterator", 0, "pkgCache::DepIterator *", 0},{"_p_pkgCache__DepIterator"},{"_p_DepIterator"},{0}}; -static swig_type_info _swigt__p_VerFileIterator[] = {{"_p_VerFileIterator", 0, "VerFileIterator const &", 0},{"_p_VerFileIterator"},{"_p_pkgCache__VerFileIterator"},{0}}; +static swig_type_info _swigt__p_VerFileIterator[] = {{"_p_VerFileIterator", 0, "VerFileIterator const *", 0},{"_p_VerFileIterator"},{"_p_pkgCache__VerFileIterator"},{0}}; static swig_type_info _swigt__p_pkgCache__VerIterator[] = {{"_p_pkgCache__VerIterator", 0, "pkgCache::VerIterator *", 0},{"_p_pkgCache__VerIterator"},{"_p_VerIterator"},{0}}; -static swig_type_info _swigt__p_PrvIterator[] = {{"_p_PrvIterator", 0, "PrvIterator const &", 0},{"_p_PrvIterator"},{"_p_pkgCache__PrvIterator"},{0}}; +static swig_type_info _swigt__p_PrvIterator[] = {{"_p_PrvIterator", 0, "PrvIterator const *", 0},{"_p_PrvIterator"},{"_p_pkgCache__PrvIterator"},{0}}; static swig_type_info _swigt__p_pkgCache__PkgIterator[] = {{"_p_pkgCache__PkgIterator", 0, "pkgCache::PkgIterator *", 0},{"_p_pkgCache__PkgIterator"},{"_p_PkgIterator"},{0}}; static swig_type_info _swigt__p_pkgCache__PkgFileIterator[] = {{"_p_pkgCache__PkgFileIterator", 0, "pkgCache::PkgFileIterator *", 0},{"_p_pkgCache__PkgFileIterator"},{"_p_PkgFileIterator"},{0}}; static swig_type_info _swigt__p_VerIterator[] = {{"_p_VerIterator", 0, "VerIterator *", 0},{"_p_VerIterator"},{"_p_pkgCache__VerIterator"},{0}}; -static swig_type_info _swigt__p_PkgIterator[] = {{"_p_PkgIterator", 0, "PkgIterator const &", 0},{"_p_PkgIterator"},{"_p_pkgCache__PkgIterator"},{0}}; +static swig_type_info _swigt__p_PkgIterator[] = {{"_p_PkgIterator", 0, "PkgIterator const *", 0},{"_p_PkgIterator"},{"_p_pkgCache__PkgIterator"},{0}}; static swig_type_info _swigt__p_DepIterator[] = {{"_p_DepIterator", 0, "DepIterator *", 0},{"_p_DepIterator"},{"_p_pkgCache__DepIterator"},{0}}; static swig_type_info _swigt__p_pkgSourceList__const_iterator[] = {{"_p_pkgSourceList__const_iterator", 0, "pkgSourceList::const_iterator *", 0},{"_p_pkgSourceList__const_iterator"},{0}}; static swig_type_info _swigt__p_Configuration__Item[] = {{"_p_Configuration__Item", 0, "Configuration::Item *", 0},{"_p_Configuration__Item"},{"_p_Item"},{0}}; static swig_type_info _swigt__p_pkgCache__Header[] = {{"_p_pkgCache__Header", 0, "pkgCache::Header *", 0},{"_p_pkgCache__Header"},{"_p_Header"},{0}}; -static swig_type_info _swigt__p_Header[] = {{"_p_Header", 0, "Header &", 0},{"_p_Header"},{"_p_pkgCache__Header"},{0}}; +static swig_type_info _swigt__p_Header[] = {{"_p_Header", 0, "Header *", 0},{"_p_Header"},{"_p_pkgCache__Header"},{0}}; static swig_type_info _swigt__p_pkgPolicy[] = {{"_p_pkgPolicy", 0, "pkgPolicy *", 0},{"_p_pkgPolicy"},{0}}; -static swig_type_info _swigt__p_Policy[] = {{"_p_Policy", 0, "Policy &", 0},{"_p_Policy"},{0}}; +static swig_type_info _swigt__p_Policy[] = {{"_p_Policy", 0, "Policy *", 0},{"_p_Policy"},{0}}; +static swig_type_info _swigt__p_Lua[] = {{"_p_Lua", 0, "Lua *", 0},{"_p_Lua"},{0}}; static swig_type_info _swigt__p_Configuration[] = {{"_p_Configuration", 0, "Configuration *", 0},{"_p_Configuration"},{0}}; static swig_type_info _swigt__p_pkgAcqIndexRel[] = {{"_p_pkgAcqIndexRel", 0, "pkgAcqIndexRel *", 0},{"_p_pkgAcqIndexRel"},{0}}; static swig_type_info _swigt__p_pkgAcquire[] = {{"_p_pkgAcquire", 0, "pkgAcquire *", 0},{"_p_pkgAcquire"},{0}}; @@ -18850,13 +20371,16 @@ static swig_type_info _swigt__p_Dependency[] = {{"_p_Dependency", 0, "Dependency static swig_type_info _swigt__p_pkgCache__Dependency[] = {{"_p_pkgCache__Dependency", 0, "pkgCache::Dependency *", 0},{"_p_pkgCache__Dependency"},{"_p_Dependency"},{0}}; static swig_type_info _swigt__p_GlobalError[] = {{"_p_GlobalError", 0, "GlobalError *", 0},{"_p_GlobalError"},{0}}; static swig_type_info _swigt__p_pkgAcqIndex[] = {{"_p_pkgAcqIndex", 0, "pkgAcqIndex *", 0},{"_p_pkgAcqIndex"},{0}}; -static swig_type_info _swigt__p_StateCache[] = {{"_p_StateCache", 0, "StateCache &", 0},{"_p_StateCache"},{"_p_pkgDepCache__StateCache"},{0}}; +static swig_type_info _swigt__p_LuaCacheControl[] = {{"_p_LuaCacheControl", 0, "LuaCacheControl *", 0},{"_p_LuaCacheControl"},{0}}; +static swig_type_info _swigt__p_std__vectorTpkgCache__Package_p_t[] = {{"_p_std__vectorTpkgCache__Package_p_t", 0, "std::vector<pkgCache::Package * > *", 0},{"_p_std__vectorTpkgCache__Package_p_t"},{0}}; +static swig_type_info _swigt__p_StateCache[] = {{"_p_StateCache", 0, "StateCache *", 0},{"_p_StateCache"},{"_p_pkgDepCache__StateCache"},{0}}; static swig_type_info _swigt__p_pkgDepCache__StateCache[] = {{"_p_pkgDepCache__StateCache", 0, "pkgDepCache::StateCache *", 0},{"_p_pkgDepCache__StateCache"},{"_p_StateCache"},{0}}; static swig_type_info _swigt__p_Item[] = {{"_p_Item", 0, "Item const *", 0},{"_p_Configuration__Item"},{"_p_Item"},{0}}; static swig_type_info _swigt__p_void[] = {{"_p_void", 0, "void *", 0},{"_p_void"},{0}}; static swig_type_info _swigt__p_pkgAcquire__Item[] = {{"_p_pkgAcquire__Item", 0, "pkgAcquire::Item *", 0},{"_p_pkgAcqArchive", _p_pkgAcqArchiveTo_p_pkgAcquire__Item},{"_p_pkgAcqFile", _p_pkgAcqFileTo_p_pkgAcquire__Item},{"_p_pkgAcqIndex", _p_pkgAcqIndexTo_p_pkgAcquire__Item},{"_p_pkgAcqIndexRel", _p_pkgAcqIndexRelTo_p_pkgAcquire__Item},{"_p_pkgAcquire__Item"},{0}}; static swig_type_info _swigt__p_MMap[] = {{"_p_MMap", 0, "MMap *", 0},{"_p_MMap"},{0}}; -static swig_type_info _swigt__p_PyObject[] = {{"_p_PyObject", 0, "PyObject *", 0},{"_p_PyObject"},{0}}; +static swig_type_info _swigt__p_std__vectorTchar_const_p_t[] = {{"_p_std__vectorTchar_const_p_t", 0, "std::vector<char const * > *", 0},{"_p_std__vectorTchar_const_p_t"},{0}}; +static swig_type_info _swigt__p_lua_State[] = {{"_p_lua_State", 0, "lua_State *", 0},{"_p_lua_State"},{0}}; static swig_type_info _swigt__p_pkgRecords__Parser[] = {{"_p_pkgRecords__Parser", 0, "pkgRecords::Parser *", 0},{"_p_pkgRecords__Parser"},{0}}; static swig_type_info _swigt__p_p_pkgCache__Version[] = {{"_p_p_pkgCache__Version", 0, "pkgCache::Version **", 0},{"_p_p_pkgCache__Version"},{"_p_p_Version"},{0}}; static swig_type_info _swigt__p_p_Version[] = {{"_p_p_Version", 0, "Version **", 0},{"_p_p_Version"},{"_p_p_pkgCache__Version"},{0}}; @@ -18867,11 +20391,13 @@ static swig_type_info _swigt__p_time_t[] = {{"_p_time_t", 0, "time_t *", 0},{"_p static swig_type_info _swigt__p_p_pkgIndexFile[] = {{"_p_p_pkgIndexFile", 0, "pkgIndexFile **", 0},{"_p_p_pkgIndexFile"},{0}}; static swig_type_info _swigt__p_pkgProblemResolver[] = {{"_p_pkgProblemResolver", 0, "pkgProblemResolver *", 0},{"_p_pkgProblemResolver"},{0}}; static swig_type_info _swigt__p_pkgAcqArchive[] = {{"_p_pkgAcqArchive", 0, "pkgAcqArchive *", 0},{"_p_pkgAcqArchive"},{0}}; +static swig_type_info _swigt__p_std__vectorTstd__string_t[] = {{"_p_std__vectorTstd__string_t", 0, "std::vector<string > *", 0},{"_p_std__vectorTstd__string_t"},{0}}; static swig_type_info _swigt__p_p_char[] = {{"_p_p_char", 0, "char **", 0},{"_p_p_char"},{0}}; static swig_type_info _swigt__p_pkgAcquireStatusDumb[] = {{"_p_pkgAcquireStatusDumb", 0, "pkgAcquireStatusDumb *", 0},{"_p_pkgAcquireStatusDumb"},{0}}; static swig_type_info _swigt__p_pkgCacheFile[] = {{"_p_pkgCacheFile", 0, "pkgCacheFile *", 0},{"_p_pkgCacheFile"},{0}}; static swig_type_info _swigt__p_pkgAcquire__ItemDesc[] = {{"_p_pkgAcquire__ItemDesc", 0, "pkgAcquire::ItemDesc *", 0},{"_p_pkgAcquire__ItemDesc"},{0}}; static swig_type_info _swigt__p_pkgAcquireStatus[] = {{"_p_pkgAcquireStatus", 0, "pkgAcquireStatus *", 0},{"_p_pkgAcquireStatus"},{"_p_pkgAcquireStatusDumb", _p_pkgAcquireStatusDumbTo_p_pkgAcquireStatus},{0}}; +static swig_type_info _swigt__lua_CFunction[] = {{"_lua_CFunction", 0, "lua_CFunction", 0},{"_lua_CFunction"},{0}}; static swig_type_info _swigt__p_pkgDepCache[] = {{"_p_pkgDepCache", 0, "pkgDepCache *", 0},{"_p_pkgDepCache"},{0}}; static swig_type_info _swigt__p_DynamicMMap__Pool[] = {{"_p_DynamicMMap__Pool", 0, "DynamicMMap::Pool *", 0},{"_p_DynamicMMap__Pool"},{0}}; static swig_type_info _swigt__p_pkgPackageManager[] = {{"_p_pkgPackageManager", 0, "pkgPackageManager *", 0},{"_p_pkgPackageManager"},{0}}; @@ -18884,7 +20410,7 @@ static swig_type_info _swigt__p_pkgRepository[] = {{"_p_pkgRepository", 0, "pkgR static swig_type_info _swigt__p_std__ostream[] = {{"_p_std__ostream", 0, "std::ostream *", 0},{"_p_std__ostream"},{0}}; static swig_type_info _swigt__p_pkgAcqFile[] = {{"_p_pkgAcqFile", 0, "pkgAcqFile *", 0},{"_p_pkgAcqFile"},{0}}; static swig_type_info _swigt__p_pkgSourceList[] = {{"_p_pkgSourceList", 0, "pkgSourceList *", 0},{"_p_pkgSourceList"},{0}}; -static swig_type_info _swigt__p_string[] = {{"_p_string", 0, "string &", 0},{"_p_string"},{0}}; +static swig_type_info _swigt__p_string[] = {{"_p_string", 0, "string *", 0},{"_p_string"},{0}}; static swig_type_info _swigt__p_p_pkgVersioningSystem[] = {{"_p_p_pkgVersioningSystem", 0, "pkgVersioningSystem **", 0},{"_p_p_pkgVersioningSystem"},{0}}; static swig_type_info _swigt__p_pkgSystem[] = {{"_p_pkgSystem", 0, "pkgSystem *", 0},{"_p_pkgSystem"},{0}}; static swig_type_info _swigt__p_p_pkgSystem[] = {{"_p_p_pkgSystem", 0, "pkgSystem **", 0},{"_p_p_pkgSystem"},{0}}; @@ -18892,8 +20418,8 @@ static swig_type_info _swigt__p_pkgVersioningSystem[] = {{"_p_pkgVersioningSyste static swig_type_info _swigt__p_VerFile[] = {{"_p_VerFile", 0, "VerFile *", 0},{"_p_VerFile"},{"_p_pkgCache__VerFile"},{0}}; static swig_type_info _swigt__p_pkgCache__VerFile[] = {{"_p_pkgCache__VerFile", 0, "pkgCache::VerFile *", 0},{"_p_pkgCache__VerFile"},{"_p_VerFile"},{0}}; static swig_type_info _swigt__p_pkgAcquire__MethodConfig[] = {{"_p_pkgAcquire__MethodConfig", 0, "pkgAcquire::MethodConfig *", 0},{"_p_pkgAcquire__MethodConfig"},{0}}; -static swig_type_info _swigt__p_pkgCache__Package[] = {{"_p_pkgCache__Package", 0, "pkgCache::Package *", 0},{"_p_pkgCache__Package"},{"_p_Package"},{0}}; static swig_type_info _swigt__p_Package[] = {{"_p_Package", 0, "Package *", 0},{"_p_Package"},{"_p_pkgCache__Package"},{0}}; +static swig_type_info _swigt__p_pkgCache__Package[] = {{"_p_pkgCache__Package", 0, "pkgCache::Package *", 0},{"_p_pkgCache__Package"},{"_p_Package"},{0}}; static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *", 0},{"_p_unsigned_char"},{0}}; static swig_type_info _swigt__p_pkgRecords[] = {{"_p_pkgRecords", 0, "pkgRecords *", 0},{"_p_pkgRecords"},{0}}; static swig_type_info _swigt__p_pkgAcquire__Worker[] = {{"_p_pkgAcquire__Worker", 0, "pkgAcquire::Worker *", 0},{"_p_pkgAcquire__Worker"},{0}}; @@ -18922,6 +20448,7 @@ _swigt__p_pkgCache__Header, _swigt__p_Header, _swigt__p_pkgPolicy, _swigt__p_Policy, +_swigt__p_Lua, _swigt__p_Configuration, _swigt__p_pkgAcqIndexRel, _swigt__p_pkgAcquire, @@ -18930,13 +20457,16 @@ _swigt__p_Dependency, _swigt__p_pkgCache__Dependency, _swigt__p_GlobalError, _swigt__p_pkgAcqIndex, +_swigt__p_LuaCacheControl, +_swigt__p_std__vectorTpkgCache__Package_p_t, _swigt__p_StateCache, _swigt__p_pkgDepCache__StateCache, _swigt__p_Item, _swigt__p_void, _swigt__p_pkgAcquire__Item, _swigt__p_MMap, -_swigt__p_PyObject, +_swigt__p_std__vectorTchar_const_p_t, +_swigt__p_lua_State, _swigt__p_pkgRecords__Parser, _swigt__p_p_pkgCache__Version, _swigt__p_p_Version, @@ -18947,11 +20477,13 @@ _swigt__p_time_t, _swigt__p_p_pkgIndexFile, _swigt__p_pkgProblemResolver, _swigt__p_pkgAcqArchive, +_swigt__p_std__vectorTstd__string_t, _swigt__p_p_char, _swigt__p_pkgAcquireStatusDumb, _swigt__p_pkgCacheFile, _swigt__p_pkgAcquire__ItemDesc, _swigt__p_pkgAcquireStatus, +_swigt__lua_CFunction, _swigt__p_pkgDepCache, _swigt__p_DynamicMMap__Pool, _swigt__p_pkgPackageManager, @@ -18972,8 +20504,8 @@ _swigt__p_pkgVersioningSystem, _swigt__p_VerFile, _swigt__p_pkgCache__VerFile, _swigt__p_pkgAcquire__MethodConfig, -_swigt__p_pkgCache__Package, _swigt__p_Package, +_swigt__p_pkgCache__Package, _swigt__p_unsigned_char, _swigt__p_pkgRecords, _swigt__p_pkgAcquire__Worker, @@ -19091,6 +20623,7 @@ SWIGEXPORT(void) SWIG_init(void) { PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); SWIG_addvarlink(SWIG_globals,(char*)"_error",_wrap__error_get, _wrap__error_set); + SWIG_addvarlink(SWIG_globals,(char*)"_lua",_wrap__lua_get, _wrap__lua_set); SWIG_addvarlink(SWIG_globals,(char*)"pkgVersion",_wrap_pkgVersion_get, _wrap_pkgVersion_set); SWIG_addvarlink(SWIG_globals,(char*)"pkgLibVersion",_wrap_pkgLibVersion_get, _wrap_pkgLibVersion_set); SWIG_addvarlink(SWIG_globals,(char*)"pkgOS",_wrap_pkgOS_get, _wrap_pkgOS_set); diff --git a/apt/tools/Makefile.am b/apt/tools/Makefile.am index f3bdd85..5f64ae4 100644 --- a/apt/tools/Makefile.am +++ b/apt/tools/Makefile.am @@ -1,5 +1,5 @@ -bin_PROGRAMS = genpkglist gensrclist +bin_PROGRAMS = genpkglist gensrclist countpkglist bin_SCRIPTS = genbasedir EXTRA_DIST = genbasedir @@ -8,3 +8,4 @@ LDADD = ../apt-pkg/libapt-pkg.la $(RPMLIBS) genpkglist_SOURCES = genpkglist.cc cached_md5.cc cached_md5.h gensrclist_SOURCES = gensrclist.cc cached_md5.cc cached_md5.h +countpkglist_SOURCES = countpkglist.cc diff --git a/apt/tools/Makefile.in b/apt/tools/Makefile.in index 8621a89..e56cb4f 100644 --- a/apt/tools/Makefile.in +++ b/apt/tools/Makefile.in @@ -1,8 +1,8 @@ -# Makefile.in generated by automake 1.7.9 from Makefile.am. +# Makefile.in generated by automake 1.9.5 from Makefile.am. # @configure_input@ -# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 -# Free Software Foundation, Inc. +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -14,6 +14,9 @@ @SET_MAKE@ + +SOURCES = $(countpkglist_SOURCES) $(genpkglist_SOURCES) $(gensrclist_SOURCES) + srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ @@ -21,7 +24,6 @@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ top_builddir = .. - am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 @@ -35,12 +37,81 @@ POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : +build_triplet = @build@ host_triplet = @host@ +bin_PROGRAMS = genpkglist$(EXEEXT) gensrclist$(EXEEXT) \ + countpkglist$(EXEEXT) +subdir = tools +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps = $(top_srcdir)/buildlib/tools.m4 \ + $(top_srcdir)/m4/codeset.m4 $(top_srcdir)/m4/gettext.m4 \ + $(top_srcdir)/m4/glibc21.m4 $(top_srcdir)/m4/iconv.m4 \ + $(top_srcdir)/m4/intdiv0.m4 $(top_srcdir)/m4/inttypes-pri.m4 \ + $(top_srcdir)/m4/inttypes.m4 $(top_srcdir)/m4/inttypes_h.m4 \ + $(top_srcdir)/m4/lcmessage.m4 $(top_srcdir)/m4/lib-ld.m4 \ + $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ + $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/stdint_h.m4 \ + $(top_srcdir)/m4/uintmax_t.m4 $(top_srcdir)/m4/ulonglong.m4 \ + $(top_srcdir)/configure.in +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ + $(ACLOCAL_M4) +mkinstalldirs = $(SHELL) $(top_srcdir)/buildlib/mkinstalldirs +CONFIG_HEADER = $(top_builddir)/include/config.h +CONFIG_CLEAN_FILES = +am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(bindir)" +binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) +PROGRAMS = $(bin_PROGRAMS) +am_countpkglist_OBJECTS = countpkglist.$(OBJEXT) +countpkglist_OBJECTS = $(am_countpkglist_OBJECTS) +countpkglist_LDADD = $(LDADD) +am__DEPENDENCIES_1 = +countpkglist_DEPENDENCIES = ../apt-pkg/libapt-pkg.la \ + $(am__DEPENDENCIES_1) +am_genpkglist_OBJECTS = genpkglist.$(OBJEXT) cached_md5.$(OBJEXT) +genpkglist_OBJECTS = $(am_genpkglist_OBJECTS) +genpkglist_LDADD = $(LDADD) +genpkglist_DEPENDENCIES = ../apt-pkg/libapt-pkg.la \ + $(am__DEPENDENCIES_1) +am_gensrclist_OBJECTS = gensrclist.$(OBJEXT) cached_md5.$(OBJEXT) +gensrclist_OBJECTS = $(am_gensrclist_OBJECTS) +gensrclist_LDADD = $(LDADD) +gensrclist_DEPENDENCIES = ../apt-pkg/libapt-pkg.la \ + $(am__DEPENDENCIES_1) +binSCRIPT_INSTALL = $(INSTALL_SCRIPT) +SCRIPTS = $(bin_SCRIPTS) +DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/include +depcomp = $(SHELL) $(top_srcdir)/buildlib/depcomp +am__depfiles_maybe = depfiles +CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) +LTCXXCOMPILE = $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CXXFLAGS) $(CXXFLAGS) +CXXLD = $(CXX) +CXXLINK = $(LIBTOOL) --tag=CXX --mode=link $(CXXLD) $(AM_CXXFLAGS) \ + $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ + $(AM_LDFLAGS) $(LDFLAGS) -o $@ +SOURCES = $(countpkglist_SOURCES) $(genpkglist_SOURCES) \ + $(gensrclist_SOURCES) +DIST_SOURCES = $(countpkglist_SOURCES) $(genpkglist_SOURCES) \ + $(gensrclist_SOURCES) +ETAGS = etags +CTAGS = ctags +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALLOCA = @ALLOCA@ AMDEP_FALSE = @AMDEP_FALSE@ AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ +AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ @@ -59,6 +130,7 @@ COMPILE_STATIC_TRUE = @COMPILE_STATIC_TRUE@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ +CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ @@ -72,6 +144,8 @@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ +F77 = @F77@ +FFLAGS = @FFLAGS@ GENCAT = @GENCAT@ GLIBC21 = @GLIBC21@ GLIBC_VER = @GLIBC_VER@ @@ -134,8 +208,10 @@ VERSION = @VERSION@ WITH_LUA_FALSE = @WITH_LUA_FALSE@ WITH_LUA_TRUE = @WITH_LUA_TRUE@ XGETTEXT = @XGETTEXT@ +ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ +ac_ct_F77 = @ac_ct_F77@ ac_ct_RANLIB = @ac_ct_RANLIB@ ac_ct_STRIP = @ac_ct_STRIP@ am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ @@ -145,6 +221,8 @@ am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ +am__tar = @am__tar@ +am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ @@ -165,6 +243,7 @@ libdir = @libdir@ libexecdir = @libexecdir@ localstatedir = @localstatedir@ mandir = @mandir@ +mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ prefix = @prefix@ program_transform_name = @program_transform_name@ @@ -172,82 +251,56 @@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ - -bin_PROGRAMS = genpkglist gensrclist bin_SCRIPTS = genbasedir - EXTRA_DIST = genbasedir - LDADD = ../apt-pkg/libapt-pkg.la $(RPMLIBS) - genpkglist_SOURCES = genpkglist.cc cached_md5.cc cached_md5.h gensrclist_SOURCES = gensrclist.cc cached_md5.cc cached_md5.h -subdir = tools -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -mkinstalldirs = $(SHELL) $(top_srcdir)/buildlib/mkinstalldirs -CONFIG_HEADER = $(top_builddir)/include/config.h -CONFIG_CLEAN_FILES = -bin_PROGRAMS = genpkglist$(EXEEXT) gensrclist$(EXEEXT) -PROGRAMS = $(bin_PROGRAMS) - -am_genpkglist_OBJECTS = genpkglist.$(OBJEXT) cached_md5.$(OBJEXT) -genpkglist_OBJECTS = $(am_genpkglist_OBJECTS) -genpkglist_LDADD = $(LDADD) -genpkglist_DEPENDENCIES = ../apt-pkg/libapt-pkg.la -genpkglist_LDFLAGS = -am_gensrclist_OBJECTS = gensrclist.$(OBJEXT) cached_md5.$(OBJEXT) -gensrclist_OBJECTS = $(am_gensrclist_OBJECTS) -gensrclist_LDADD = $(LDADD) -gensrclist_DEPENDENCIES = ../apt-pkg/libapt-pkg.la -gensrclist_LDFLAGS = -SCRIPTS = $(bin_SCRIPTS) - - -DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/include -depcomp = $(SHELL) $(top_srcdir)/buildlib/depcomp -am__depfiles_maybe = depfiles -@AMDEP_TRUE@DEP_FILES = ./$(DEPDIR)/cached_md5.Po \ -@AMDEP_TRUE@ ./$(DEPDIR)/genpkglist.Po ./$(DEPDIR)/gensrclist.Po -CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ - $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -LTCXXCOMPILE = $(LIBTOOL) --mode=compile $(CXX) $(DEFS) \ - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ - $(AM_CXXFLAGS) $(CXXFLAGS) -CXXLD = $(CXX) -CXXLINK = $(LIBTOOL) --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) \ - $(AM_LDFLAGS) $(LDFLAGS) -o $@ -COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ - $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) \ - $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -CCLD = $(CC) -LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ - $(AM_LDFLAGS) $(LDFLAGS) -o $@ -DIST_SOURCES = $(genpkglist_SOURCES) $(gensrclist_SOURCES) -DIST_COMMON = $(srcdir)/Makefile.in Makefile.am -SOURCES = $(genpkglist_SOURCES) $(gensrclist_SOURCES) - +countpkglist_SOURCES = countpkglist.cc all: all-am .SUFFIXES: .SUFFIXES: .cc .lo .o .obj -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign tools/Makefile'; \ cd $(top_srcdir) && \ $(AUTOMAKE) --foreign tools/Makefile -Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in $(top_builddir)/config.status - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe) -binPROGRAMS_INSTALL = $(INSTALL_PROGRAM) +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) - $(mkinstalldirs) $(DESTDIR)$(bindir) + test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)" @list='$(bin_PROGRAMS)'; for p in $$list; do \ p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \ if test -f $$p \ || test -f $$p1 \ ; then \ f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \ - echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f"; \ - $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) $$p $(DESTDIR)$(bindir)/$$f || exit 1; \ + echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \ + $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \ else :; fi; \ done @@ -255,8 +308,8 @@ uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(bin_PROGRAMS)'; for p in $$list; do \ f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \ - echo " rm -f $(DESTDIR)$(bindir)/$$f"; \ - rm -f $(DESTDIR)$(bindir)/$$f; \ + echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \ + rm -f "$(DESTDIR)$(bindir)/$$f"; \ done clean-binPROGRAMS: @@ -265,22 +318,24 @@ clean-binPROGRAMS: echo " rm -f $$p $$f"; \ rm -f $$p $$f ; \ done +countpkglist$(EXEEXT): $(countpkglist_OBJECTS) $(countpkglist_DEPENDENCIES) + @rm -f countpkglist$(EXEEXT) + $(CXXLINK) $(countpkglist_LDFLAGS) $(countpkglist_OBJECTS) $(countpkglist_LDADD) $(LIBS) genpkglist$(EXEEXT): $(genpkglist_OBJECTS) $(genpkglist_DEPENDENCIES) @rm -f genpkglist$(EXEEXT) $(CXXLINK) $(genpkglist_LDFLAGS) $(genpkglist_OBJECTS) $(genpkglist_LDADD) $(LIBS) gensrclist$(EXEEXT): $(gensrclist_OBJECTS) $(gensrclist_DEPENDENCIES) @rm -f gensrclist$(EXEEXT) $(CXXLINK) $(gensrclist_LDFLAGS) $(gensrclist_OBJECTS) $(gensrclist_LDADD) $(LIBS) -binSCRIPT_INSTALL = $(INSTALL_SCRIPT) install-binSCRIPTS: $(bin_SCRIPTS) @$(NORMAL_INSTALL) - $(mkinstalldirs) $(DESTDIR)$(bindir) + test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)" @list='$(bin_SCRIPTS)'; for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ if test -f $$d$$p; then \ f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \ - echo " $(binSCRIPT_INSTALL) $$d$$p $(DESTDIR)$(bindir)/$$f"; \ - $(binSCRIPT_INSTALL) $$d$$p $(DESTDIR)$(bindir)/$$f; \ + echo " $(binSCRIPT_INSTALL) '$$d$$p' '$(DESTDIR)$(bindir)/$$f'"; \ + $(binSCRIPT_INSTALL) "$$d$$p" "$(DESTDIR)$(bindir)/$$f"; \ else :; fi; \ done @@ -288,52 +343,44 @@ uninstall-binSCRIPTS: @$(NORMAL_UNINSTALL) @list='$(bin_SCRIPTS)'; for p in $$list; do \ f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \ - echo " rm -f $(DESTDIR)$(bindir)/$$f"; \ - rm -f $(DESTDIR)$(bindir)/$$f; \ + echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \ + rm -f "$(DESTDIR)$(bindir)/$$f"; \ done mostlyclean-compile: - -rm -f *.$(OBJEXT) core *.core + -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cached_md5.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/countpkglist.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/genpkglist.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gensrclist.Po@am__quote@ .cc.o: -@am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \ -@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \ -@am__fastdepCXX_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi +@am__fastdepCXX_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`; \ +@am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$$depbase.Tpo" -c -o $@ $<; \ +@am__fastdepCXX_TRUE@ then mv -f "$$depbase.Tpo" "$$depbase.Po"; else rm -f "$$depbase.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$< +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< .cc.obj: -@am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o $@ `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi`; \ -@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; \ -@am__fastdepCXX_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi +@am__fastdepCXX_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`; \ +@am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$$depbase.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ +@am__fastdepCXX_TRUE@ then mv -f "$$depbase.Tpo" "$$depbase.Po"; else rm -f "$$depbase.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='$(DEPDIR)/$*.Po' tmpdepfile='$(DEPDIR)/$*.TPo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi` +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` .cc.lo: -@am__fastdepCXX_TRUE@ if $(LTCXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" \ -@am__fastdepCXX_TRUE@ -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$<; \ -@am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; \ -@am__fastdepCXX_TRUE@ else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; \ -@am__fastdepCXX_TRUE@ fi +@am__fastdepCXX_TRUE@ depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`; \ +@am__fastdepCXX_TRUE@ if $(LTCXXCOMPILE) -MT $@ -MD -MP -MF "$$depbase.Tpo" -c -o $@ $<; \ +@am__fastdepCXX_TRUE@ then mv -f "$$depbase.Tpo" "$$depbase.Plo"; else rm -f "$$depbase.Tpo"; exit 1; fi @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ depfile='$(DEPDIR)/$*.Plo' tmpdepfile='$(DEPDIR)/$*.TPlo' @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ `test -f '$<' || echo '$(srcdir)/'`$< +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $< mostlyclean-libtool: -rm -f *.lo @@ -345,14 +392,6 @@ distclean-libtool: -rm -f libtool uninstall-info-am: -ETAGS = etags -ETAGSFLAGS = - -CTAGS = ctags -CTAGSFLAGS = - -tags: TAGS - ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ @@ -361,6 +400,7 @@ ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ mkid -fID $$unique +tags: TAGS TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) @@ -372,10 +412,11 @@ TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ done | \ $(AWK) ' { files[$$0] = 1; } \ END { for (i in files) print i; }'`; \ - test -z "$(ETAGS_ARGS)$$tags$$unique" \ - || $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ - $$tags $$unique - + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ + test -n "$$unique" || unique=$$empty_fix; \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$tags $$unique; \ + fi ctags: CTAGS CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ $(TAGS_FILES) $(LISP) @@ -398,10 +439,6 @@ GTAGS: distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) - -top_distdir = .. -distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ @@ -415,7 +452,7 @@ distdir: $(DISTFILES) dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ if test "$$dir" != "$$file" && test "$$dir" != "."; then \ dir="/$$dir"; \ - $(mkinstalldirs) "$(distdir)$$dir"; \ + $(mkdir_p) "$(distdir)$$dir"; \ else \ dir=''; \ fi; \ @@ -433,9 +470,10 @@ distdir: $(DISTFILES) check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) $(SCRIPTS) - installdirs: - $(mkinstalldirs) $(DESTDIR)$(bindir) $(DESTDIR)$(bindir) + for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(bindir)"; do \ + test -z "$$dir" || $(mkdir_p) "$$dir"; \ + done install: install-am install-exec: install-exec-am install-data: install-data-am @@ -455,7 +493,7 @@ mostlyclean-generic: clean-generic: distclean-generic: - -rm -f $(CONFIG_CLEAN_FILES) + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @@ -474,6 +512,8 @@ dvi: dvi-am dvi-am: +html: html-am + info: info-am info-am: @@ -512,14 +552,15 @@ uninstall-am: uninstall-binPROGRAMS uninstall-binSCRIPTS \ .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \ clean-generic clean-libtool ctags distclean distclean-compile \ distclean-generic distclean-libtool distclean-tags distdir dvi \ - dvi-am info info-am install install-am install-binPROGRAMS \ - install-binSCRIPTS install-data install-data-am install-exec \ - install-exec-am install-info install-info-am install-man \ - install-strip installcheck installcheck-am installdirs \ - maintainer-clean maintainer-clean-generic mostlyclean \ - mostlyclean-compile mostlyclean-generic mostlyclean-libtool pdf \ - pdf-am ps ps-am tags uninstall uninstall-am \ - uninstall-binPROGRAMS uninstall-binSCRIPTS uninstall-info-am + dvi-am html html-am info info-am install install-am \ + install-binPROGRAMS install-binSCRIPTS install-data \ + install-data-am install-exec install-exec-am install-info \ + install-info-am install-man install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-binPROGRAMS \ + uninstall-binSCRIPTS uninstall-info-am # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. diff --git a/apt/tools/countpkglist.cc b/apt/tools/countpkglist.cc new file mode 100644 index 0000000..6eb80ba --- /dev/null +++ b/apt/tools/countpkglist.cc @@ -0,0 +1,29 @@ +#include <stdio.h> +#include <errno.h> +#include <string.h> + +#include <rpm/rpmlib.h> + +int main(int argc, char *argv[]) +{ + Header header = NULL; + long count = 0; + FD_t fd; + if (argc != 2) { + fprintf(stderr, "usage: countpkglist <pkglist>\n"); + exit(1); + } + fd = Fopen(argv[1], "r"); + if (fd == NULL) { + fprintf(stderr, "error: can't open %s: %s", + argv[1], strerror(errno)); + exit(1); + } + while ((header = headerRead(fd, HEADER_MAGIC_YES)) != NULL) { + headerFree(header); + count++; + } + Fclose(fd); + printf("%ld\n", count); + return 0; +} diff --git a/apt/tools/genbasedir b/apt/tools/genbasedir index 46c4454..db41ded 100755 --- a/apt/tools/genbasedir +++ b/apt/tools/genbasedir @@ -26,6 +26,9 @@ Options:\n\ distributions that use non-automatically generated\n\ file dependencies\n\ --meta=NAME Create a meta repository named NAME\n\ + --compresslevel=n Set bzip2 compress level (1-9)\n\ + --cachedir=DIR Use a custom md5sum cache directory for package list\n\ + generation (useful for non-root users).\n\ -h, --help Display this help\n\ \n\ Examples:\n\ @@ -124,6 +127,15 @@ while test $# -gt 0 ; do --default-key=*) defaultkey="\"$1\"" ;; + --compresslevel=*) + bz2opts="-`echo $1 | sed 's/^--compresslevel=//'`" + ;; + --cachedir=*) + cachedir="`echo $1 | sed 's/^--cachedir=//'`" + cacheopts="--cachedir $cachedir" + [ -d $cachedir/genpkglist ] || mkdir -p $cachedir/genpkglist + [ -d $cachedir/gensrclist ] || mkdir -p $cachedir/gensrclist + ;; -*) echo -e "$usage" 1>&2 exit 1 @@ -226,9 +238,9 @@ for comp in $components; do fi if test x$updateinfo = x; then - (cd $basedir; genpkglist $progress $bloat $meta_opts --index $srcidxdir/srcidx.$comp $topdir $comp) + (cd $basedir; genpkglist $progress $bloat $meta_opts $cacheopts --index $srcidxdir/srcidx.$comp $topdir $comp) else - (cd $basedir; genpkglist $progress $bloat $meta_opts --index $srcidxdir/srcidx.$comp --info $updateinfo $topdir $comp) + (cd $basedir; genpkglist $progress $bloat $meta_opts $cacheopts --index $srcidxdir/srcidx.$comp --info $updateinfo $topdir $comp) fi if [ -z "$meta" -a -f $basedir/pkglist.$comp ]; then @@ -245,7 +257,7 @@ for comp in $components; do mv -f $basedir/pkglist.$comp.bz2 $basedir/pkglist.$comp.bz2.old fi - bzip2 -c $basedir/pkglist.$comp > $basedir/pkglist.$comp.bz2 + bzip2 $bz2opts -c $basedir/pkglist.$comp > $basedir/pkglist.$comp.bz2 # Compare with older compressed pkglist. if [ -f $basedir/pkglist.$comp.bz2.old ]; then @@ -276,7 +288,7 @@ if [ -n "$meta" -a -f $basedir/pkglist.$meta ]; then mv -f $basedir/pkglist.$meta.bz2 $basedir/pkglist.$meta.bz2.old fi - bzip2 -c $basedir/pkglist.$meta > $basedir/pkglist.$meta.bz2 + bzip2 $bz2opts -c $basedir/pkglist.$meta > $basedir/pkglist.$meta.bz2 # Compare with older compressed pkglist. if [ -f $basedir/pkglist.$meta.bz2.old ]; then @@ -337,7 +349,7 @@ for comp in $components; do mv -f $basedir/srclist.$comp.bz2 $basedir/srclist.$comp.bz2.old fi - bzip2 -c $basedir/srclist.$comp > $basedir/srclist.$comp.bz2 + bzip2 $bz2opts -c $basedir/srclist.$comp > $basedir/srclist.$comp.bz2 # Compare with older compressed srclist. if [ -f $basedir/srclist.$comp.bz2.old ]; then @@ -367,7 +379,7 @@ if [ -n "$meta" -a -f $basedir/srclist.$meta ]; then mv -f $basedir/srclist.$meta.bz2 $basedir/srclist.$meta.bz2.old fi - bzip2 -c $basedir/srclist.$meta > $basedir/srclist.$meta.bz2 + bzip2 $bz2opts -c $basedir/srclist.$meta > $basedir/srclist.$meta.bz2 # Compare with older compressed srclist. if [ -f $basedir/srclist.$meta.bz2.old ]; then @@ -401,10 +413,15 @@ else # component release file # ---------------------- - echo -n "Creating component releases..." + echo -n "Updating component releases..." for comp in $components; do - if [ ! -f $release.$comp ]; then - echo -n " $comp" + echo -n " $comp" + if [ -f $release.$comp ]; then + mv -f $release.$comp $release.$comp.old + sed -e "/\(Package\|Source\)Count:/d" \ + $release.$comp.old > $release.$comp + rm -f $release.$comp.old + else echo "Archive: Unknown" >> $release.$comp echo "Component: $comp" >> $release.$comp echo "Version: Unknown" >> $release.$comp @@ -413,6 +430,14 @@ else echo "Architecture: unknown" >> $release.$comp echo "NotAutomatic: false" >> $release.$comp fi + if [ -f $pkglist.$comp ]; then + echo "PackageCount: `countpkglist $pkglist.$comp`" \ + >> $release.$comp + fi + if [ -f $srclist.$comp ]; then + echo "SourceCount: `countpkglist $srclist.$comp`" \ + >> $release.$comp + fi done echo " [done]" diff --git a/apt/tools/genpkglist.cc b/apt/tools/genpkglist.cc index d1c7858..c86ebac 100644 --- a/apt/tools/genpkglist.cc +++ b/apt/tools/genpkglist.cc @@ -348,14 +348,18 @@ int selectDirent(const struct dirent *ent) void usage() { + cerr << "genpkglist " << VERSION << endl; cerr << "usage: genpkglist [<options>] <dir> <suffix>" << endl; cerr << "options:" << endl; cerr << " --index <file> file to write srpm index data to" << endl; cerr << " --info <file> file to read update info from" << endl; + cerr << " --meta <suffix> create package file list with given suffix" << endl; cerr << " --bloat do not strip the package file list. Needed for some" << endl; cerr << " distributions that use non-automatically generated" << endl; cerr << " file dependencies" << endl; + cerr << " --append append to the package file list, don't overwrite" << endl; cerr << " --progress show a progress bar" << endl; + cerr << " --cachedir=DIR use a custom directory for package md5sum cache"<<endl; } @@ -496,6 +500,14 @@ int main(int argc, char ** argv) cout << "genpkglist: argument missing for option --meta"<<endl; exit(1); } + } else if (strcmp(argv[i], "--cachedir") == 0) { + i++; + if (i < argc) { + _config->Set("Dir::Cache", argv[i]); + } else { + cout << "genpkglist: argument missing for option --cachedir"<<endl; + exit(1); + } } else { break; } @@ -592,14 +604,14 @@ int main(int argc, char ** argv) if (progressBar) { if (entry_cur) printf("\b\b\b\b\b\b\b\b\b\b"); - printf("%04i/%04i ", entry_cur + 1, entry_no); + printf(" %04i/%04i", entry_cur + 1, entry_no); fflush(stdout); } if (stat(dirEntries[entry_cur]->d_name, &sb) < 0) { - cerr << dirEntries[entry_cur] << ":"; - perror("stat"); - exit(1); + cerr << "\nWarning: " << strerror(errno) << ": " << + dirEntries[entry_cur]->d_name << endl; + continue; } { @@ -609,9 +621,9 @@ int main(int argc, char ** argv) fd = fdOpen(dirEntries[entry_cur]->d_name, O_RDONLY, 0666); if (!fd) { - cerr << dirEntries[entry_cur]->d_name << ":"; - perror("open"); - exit(1); + cerr << "\nWarning: " << strerror(errno) << ": " << + dirEntries[entry_cur]->d_name << endl; + continue; } #if RPM_VERSION >= 0x040100 @@ -638,6 +650,9 @@ int main(int argc, char ** argv) headerFree(newHeader); headerFree(h); + } else { + cerr << "\nWarning: Skipping malformed RPM: " << + dirEntries[entry_cur]->d_name << endl; } Fclose(fd); } diff --git a/apt/tools/gensrclist.cc b/apt/tools/gensrclist.cc index 0fbd1a9..3685789 100644 --- a/apt/tools/gensrclist.cc +++ b/apt/tools/gensrclist.cc @@ -21,6 +21,7 @@ #include <apt-pkg/error.h> #include <apt-pkg/tagfile.h> #include <apt-pkg/rpmhandler.h> +#include <apt-pkg/configuration.h> #include "cached_md5.h" @@ -118,12 +119,16 @@ bool readRPMTable(char *file, map<string, list<char*>* > &table) void usage() { + cerr << "gensrclist " << VERSION << endl; cerr << "usage: gensrclist [<options>] <dir> <suffix> <srpm index>" << endl; cerr << "options:" << endl; // cerr << " --mapi ???????????????????" << endl; - cerr << " --progress show a progress bar" << endl; - cerr << " --flat use a flat directory structure, where RPMS and SRPMS"<<endl; - cerr << " are in the same directory level"<<endl; + cerr << " --flat use a flat directory structure, where RPMS and SRPMS"<<endl; + cerr << " are in the same directory level"<<endl; + cerr << " --meta <suffix> create source package file list with given suffix" << endl; + cerr << " --append append to the source package file list, don't overwrite" << endl; + cerr << " --progress show a progress bar" << endl; + cerr << " --cachedir=DIR use a custom directory for package md5sum cache"<<endl; } #if RPM_VERSION >= 0x040000 @@ -172,6 +177,14 @@ int main(int argc, char ** argv) cout << "gensrclist: argument missing for option --meta"<<endl; exit(1); } + } else if (strcmp(argv[i], "--cachedir") == 0) { + i++; + if (i < argc) { + _config->Set("Dir::Cache", argv[i]); + } else { + cout << "genpkglist: argument missing for option --cachedir"<<endl; + exit(1); + } } else { break; } @@ -272,22 +285,22 @@ int main(int argc, char ** argv) if (progressBar) { if (entry_cur) printf("\b\b\b\b\b\b\b\b\b\b"); - printf("%04i/%04i ", entry_cur + 1, entry_no); + printf(" %04i/%04i", entry_cur + 1, entry_no); fflush(stdout); } if (stat(dirEntries[entry_cur]->d_name, &sb) < 0) { - cerr << dirEntries[entry_cur] << ":"; - perror("stat"); - exit(1); + cerr << "\nWarning: " << strerror(errno) << ": " << + dirEntries[entry_cur]->d_name << endl; + continue; } fd = fdOpen(dirEntries[entry_cur]->d_name, O_RDONLY, 0666); if (!fd) { - cerr << dirEntries[entry_cur]->d_name << ":"; - perror("open"); - exit(1); + cerr << "\nWarning: " << strerror(errno) << ": " << + dirEntries[entry_cur]->d_name << endl; + continue; } size[0] = sb.st_size; @@ -369,6 +382,9 @@ int main(int argc, char ** argv) #if RPM_VERSION < 0x040100 rpmFreeSignature(sigs); #endif + } else { + cerr << "\nWarning: Skipping malformed RPM: " << + dirEntries[entry_cur]->d_name << endl; } Fclose(fd); }