Merge lp:~clint-fewbar/review-new-branches/ceph-new-pkg into lp:review-new-branches
- ceph-new-pkg
- Merge into empty-branch
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Mathias Gug | ||||
Approved revision: | 14 | ||||
Merge reported by: | Mathias Gug | ||||
Merged at revision: | not available | ||||
Proposed branch: | lp:~clint-fewbar/review-new-branches/ceph-new-pkg | ||||
Merge into: | lp:review-new-branches | ||||
Diff against target: |
210283 lines (+207514/-0) 548 files modified
AUTHORS (+15/-0) COPYING (+504/-0) INSTALL (+21/-0) Makefile.am (+4/-0) Makefile.in (+625/-0) README (+42/-0) aclocal.m4 (+7554/-0) autogen.sh (+8/-0) ceph.spec.in (+207/-0) compile (+142/-0) config.guess (+1526/-0) config.sub (+1658/-0) configure (+23925/-0) configure.ac (+199/-0) debian/ceph-fuse.install (+2/-0) debian/ceph.dirs (+4/-0) debian/ceph.docs (+1/-0) debian/ceph.install (+38/-0) debian/ceph.lintian (+4/-0) debian/ceph.lintian-overrides (+4/-0) debian/ceph.logrotate (+9/-0) debian/ceph.postrm (+46/-0) debian/changelog (+5/-0) debian/compat (+1/-0) debian/control (+209/-0) debian/copyright (+66/-0) debian/libceph1-dev.install (+4/-0) debian/libceph1.install (+2/-0) debian/libceph1.postinst (+41/-0) debian/libceph1.postrm (+43/-0) debian/libcrush1-dev.install (+7/-0) debian/libcrush1.install (+2/-0) debian/libcrush1.postinst (+41/-0) debian/libcrush1.postrm (+43/-0) debian/librados1-dev.install (+11/-0) debian/librados1.install (+2/-0) debian/librados1.postinst (+41/-0) debian/librados1.postrm (+43/-0) debian/move_dbg_files.sh (+8/-0) debian/patches/fix-mkcephfs-path.patch (+20/-0) debian/patches/series (+1/-0) debian/radosgw.install (+4/-0) debian/rules (+65/-0) debian/source/format (+1/-0) depcomp (+589/-0) install-sh (+519/-0) ltmain.sh (+6964/-0) man/Makefile.am (+23/-0) man/Makefile.in (+407/-0) man/cauthtool.8 (+85/-0) man/cclass.8 (+34/-0) man/cclsinfo.8 (+26/-0) man/cconf.8 (+46/-0) man/ceph.8 (+61/-0) man/cfuse.8 (+42/-0) man/cmds.8 (+56/-0) man/cmon.8 (+40/-0) man/cosd.8 (+54/-0) man/crun.8 (+25/-0) man/crushtool.8 (+73/-0) man/csyn.8 (+71/-0) man/mkcephfs.8 (+42/-0) man/monmaptool.8 (+61/-0) man/mount.ceph.8 (+183/-0) man/osdmaptool.8 (+50/-0) man/rados.8 (+110/-0) man/radosgw.8 (+64/-0) man/radosgw_admin.8 (+61/-0) man/rbd.8 (+117/-0) missing (+367/-0) src/Makefile.am (+772/-0) src/Makefile.in (+5245/-0) src/README (+6/-0) src/TODO (+495/-0) src/acconfig.h.in (+133/-0) src/auth/Auth.h (+321/-0) src/auth/AuthAuthorizeHandler.cc (+36/-0) src/auth/AuthAuthorizeHandler.h (+35/-0) src/auth/AuthClientHandler.cc (+38/-0) src/auth/AuthClientHandler.h (+85/-0) src/auth/AuthServiceHandler.cc (+33/-0) src/auth/AuthServiceHandler.h (+40/-0) src/auth/AuthSupported.cc (+56/-0) src/auth/AuthSupported.h (+22/-0) src/auth/Crypto.cc (+300/-0) src/auth/Crypto.h (+112/-0) src/auth/ExportControl.cc (+758/-0) src/auth/ExportControl.h (+35/-0) src/auth/KeyRing.cc (+99/-0) src/auth/KeyRing.h (+79/-0) src/auth/RotatingKeyRing.cc (+68/-0) src/auth/RotatingKeyRing.h (+49/-0) src/auth/cephx/CephxAuthorizeHandler.cc (+33/-0) src/auth/cephx/CephxAuthorizeHandler.h (+29/-0) src/auth/cephx/CephxClientHandler.cc (+198/-0) src/auth/cephx/CephxClientHandler.h (+63/-0) src/auth/cephx/CephxKeyServer.cc (+392/-0) src/auth/cephx/CephxKeyServer.h (+261/-0) src/auth/cephx/CephxProtocol.cc (+445/-0) src/auth/cephx/CephxProtocol.h (+460/-0) src/auth/cephx/CephxServiceHandler.cc (+195/-0) src/auth/cephx/CephxServiceHandler.h (+36/-0) src/auth/none/AuthNoneAuthorizeHandler.cc (+27/-0) src/auth/none/AuthNoneAuthorizeHandler.h (+29/-0) src/auth/none/AuthNoneClientHandler.h (+49/-0) src/auth/none/AuthNoneProtocol.h (+32/-0) src/auth/none/AuthNoneServiceHandler.h (+38/-0) src/cauthtool.cc (+248/-0) src/cclass.in (+99/-0) src/cclsinfo (+85/-0) src/cconf.cc (+120/-0) src/ceph.cc (+636/-0) src/ceph_common.sh (+180/-0) src/ceph_ver.c (+12/-0) src/ceph_ver.h (+6/-0) src/cfuse.cc (+158/-0) src/check_version (+18/-0) src/client/Client.cc (+6151/-0) src/client/Client.h (+1274/-0) src/client/SyntheticClient.cc (+3398/-0) src/client/SyntheticClient.h (+270/-0) src/client/Trace.cc (+82/-0) src/client/Trace.h (+64/-0) src/client/fuse.cc (+304/-0) src/client/fuse.h (+24/-0) src/client/fuse_ll.cc (+541/-0) src/client/fuse_ll.h (+15/-0) src/client/hadoop/CephFSInterface.cc (+846/-0) src/client/hadoop/CephFSInterface.h (+236/-0) src/client/ioctl.h (+42/-0) src/client/libceph.h (+104/-0) src/client/test_ioctls.c (+65/-0) src/client/testceph.cc (+38/-0) src/cls_acl.cc (+63/-0) src/cls_crypto.cc (+82/-0) src/cls_rbd.cc (+377/-0) src/cm.txt (+84/-0) src/cmds.cc (+126/-0) src/cmon.cc (+248/-0) src/common/BackTrace.cc (+56/-0) src/common/BackTrace.h (+30/-0) src/common/ClassHandler.cc (+399/-0) src/common/ClassHandler.h (+105/-0) src/common/ClassLibrary.cc (+24/-0) src/common/ClassVersion.h (+122/-0) src/common/Clock.cc (+21/-0) src/common/Clock.h (+107/-0) src/common/Cond.h (+103/-0) src/common/ConfUtils.cc (+1101/-0) src/common/ConfUtils.h (+121/-0) src/common/DecayCounter.h (+161/-0) src/common/Finisher.cc (+84/-0) src/common/Finisher.h (+82/-0) src/common/LogClient.cc (+125/-0) src/common/LogClient.h (+65/-0) src/common/LogType.h (+70/-0) src/common/Logger.cc (+393/-0) src/common/Logger.h (+85/-0) src/common/MemoryModel.cc (+104/-0) src/common/MemoryModel.h (+46/-0) src/common/Mutex.h (+127/-0) src/common/RWLock.h (+81/-0) src/common/Semaphore.h (+51/-0) src/common/Thread.h (+117/-0) src/common/Throttle.h (+96/-0) src/common/Timer.cc (+366/-0) src/common/Timer.h (+175/-0) src/common/WorkQueue.cc (+134/-0) src/common/WorkQueue.h (+190/-0) src/common/arch.h (+15/-0) src/common/armor.c (+98/-0) src/common/armor.h (+9/-0) src/common/assert.cc (+44/-0) src/common/base64.c (+51/-0) src/common/base64.h (+9/-0) src/common/buffer.cc (+227/-0) src/common/common_init.cc (+69/-0) src/common/common_init.h (+11/-0) src/common/debug.cc (+214/-0) src/common/debug.h (+117/-0) src/common/dyn_snprintf.c (+54/-0) src/common/dyn_snprintf.h (+14/-0) src/common/lockdep.cc (+236/-0) src/common/lockdep.h (+12/-0) src/common/page.cc (+19/-0) src/common/sctp_crc32.c (+734/-0) src/common/str_list.cc (+70/-0) src/common/tls.cc (+64/-0) src/common/tls.h (+14/-0) src/config.cc (+1145/-0) src/config.h (+512/-0) src/cosd.cc (+260/-0) src/crun (+21/-0) src/crush/CrushWrapper.h (+557/-0) src/crush/CrushWrapper.i (+47/-0) src/crush/builder.c (+410/-0) src/crush/builder.h (+38/-0) src/crush/crush.c (+151/-0) src/crush/crush.h (+180/-0) src/crush/grammar.h (+136/-0) src/crush/hash.c (+149/-0) src/crush/hash.h (+17/-0) src/crush/mapper.c (+609/-0) src/crush/mapper.h (+20/-0) src/crush/sample.txt (+47/-0) src/crush/types.h (+17/-0) src/crushtool.cc (+980/-0) src/csyn.cc (+103/-0) src/dumpjournal.cc (+139/-0) src/dupstore.cc (+114/-0) src/fetch_config (+20/-0) src/include/ClassLibrary.h (+210/-0) src/include/CompatSet.h (+162/-0) src/include/Context.h (+205/-0) src/include/Distribution.h (+74/-0) src/include/LogEntry.h (+144/-0) src/include/Spinlock.h (+127/-0) src/include/assert.h (+102/-0) src/include/atomic.h (+98/-0) src/include/bitmapper.h (+48/-0) src/include/blobhash.h (+47/-0) src/include/buffer.h (+1217/-0) src/include/byteorder.h (+81/-0) src/include/ceph_frag.cc (+21/-0) src/include/ceph_frag.h (+109/-0) src/include/ceph_fs.cc (+72/-0) src/include/ceph_fs.h (+688/-0) src/include/ceph_hash.cc (+118/-0) src/include/ceph_hash.h (+13/-0) src/include/ceph_strings.cc (+191/-0) src/include/color.h (+13/-0) src/include/crc32c.h (+14/-0) src/include/cstring.h (+137/-0) src/include/dlist.h (+123/-0) src/include/elist.h (+185/-0) src/include/encoding.h (+531/-0) src/include/err.h (+29/-0) src/include/error.h (+41/-0) src/include/filepath.h (+205/-0) src/include/frag.h (+564/-0) src/include/hash.h (+77/-0) src/include/intarith.h (+38/-0) src/include/interval_set.h (+400/-0) src/include/inttypes.h (+7/-0) src/include/librados.h (+120/-0) src/include/librados.hpp (+138/-0) src/include/lru.h (+340/-0) src/include/msgr.h (+175/-0) src/include/nstring.h (+53/-0) src/include/object.h (+188/-0) src/include/page.h (+21/-0) src/include/rados.h (+405/-0) src/include/rangeset.h (+252/-0) src/include/rbd_types.h (+72/-0) src/include/statlite.h (+72/-0) src/include/str_list.h (+12/-0) src/include/triple.h (+29/-0) src/include/tstring.h (+188/-0) src/include/types.h (+479/-0) src/include/uofs.h (+51/-0) src/include/utime.h (+207/-0) src/include/xlist.h (+155/-0) src/init-ceph.in (+328/-0) src/libceph.cc (+387/-0) src/librados.cc (+2130/-0) src/make_version (+14/-0) src/mds/Anchor.h (+74/-0) src/mds/AnchorClient.cc (+125/-0) src/mds/AnchorClient.h (+46/-0) src/mds/AnchorServer.cc (+259/-0) src/mds/AnchorServer.h (+66/-0) src/mds/CDentry.cc (+547/-0) src/mds/CDentry.h (+399/-0) src/mds/CDir.cc (+2221/-0) src/mds/CDir.h (+594/-0) src/mds/CInode.cc (+2054/-0) src/mds/CInode.h (+936/-0) src/mds/Capability.h (+357/-0) src/mds/InoTable.cc (+137/-0) src/mds/InoTable.h (+58/-0) src/mds/LocalLock.h (+55/-0) src/mds/Locker.cc (+3626/-0) src/mds/Locker.h (+249/-0) src/mds/LogEvent.cc (+86/-0) src/mds/LogEvent.h (+95/-0) src/mds/LogSegment.h (+88/-0) src/mds/MDBalancer.cc (+1138/-0) src/mds/MDBalancer.h (+123/-0) src/mds/MDCache.cc (+8987/-0) src/mds/MDCache.h (+1129/-0) src/mds/MDLog.cc (+593/-0) src/mds/MDLog.h (+236/-0) src/mds/MDS.cc (+1706/-0) src/mds/MDS.h (+407/-0) src/mds/MDSMap.cc (+144/-0) src/mds/MDSMap.h (+485/-0) src/mds/MDSTable.cc (+161/-0) src/mds/MDSTable.h (+85/-0) src/mds/MDSTableClient.cc (+227/-0) src/mds/MDSTableClient.h (+97/-0) src/mds/MDSTableServer.cc (+164/-0) src/mds/MDSTableServer.h (+122/-0) src/mds/Migrator.cc (+2377/-0) src/mds/Migrator.h (+280/-0) src/mds/ScatterLock.h (+138/-0) src/mds/Server.cc (+5776/-0) src/mds/Server.h (+215/-0) src/mds/SessionMap.cc (+216/-0) src/mds/SessionMap.h (+378/-0) src/mds/SimpleLock.h (+624/-0) src/mds/SnapClient.h (+61/-0) src/mds/SnapServer.cc (+257/-0) src/mds/SnapServer.h (+81/-0) src/mds/events/ECommitted.h (+48/-0) src/mds/events/EExport.h (+63/-0) src/mds/events/EFragment.h (+56/-0) src/mds/events/EImportFinish.h (+59/-0) src/mds/events/EImportStart.h (+68/-0) src/mds/events/EMetaBlob.h (+685/-0) src/mds/events/EOpen.h (+62/-0) src/mds/events/ESession.h (+82/-0) src/mds/events/ESessions.h (+55/-0) src/mds/events/ESlaveUpdate.h (+189/-0) src/mds/events/EString.h (+54/-0) src/mds/events/ESubtreeMap.h (+49/-0) src/mds/events/ETableClient.h (+58/-0) src/mds/events/ETableServer.h (+75/-0) src/mds/events/EUpdate.h (+63/-0) src/mds/journal.cc (+1115/-0) src/mds/locks.c (+146/-0) src/mds/locks.h (+133/-0) src/mds/mds_table_types.h (+73/-0) src/mds/mdstypes.h (+1432/-0) src/mds/snap.cc (+532/-0) src/mds/snap.h (+243/-0) src/messages/MAuth.h (+50/-0) src/messages/MAuthReply.h (+65/-0) src/messages/MCacheExpire.h (+86/-0) src/messages/MClass.h (+99/-0) src/messages/MClassAck.h (+53/-0) src/messages/MClientCapRelease.h (+51/-0) src/messages/MClientCaps.h (+152/-0) src/messages/MClientLease.h (+81/-0) src/messages/MClientReconnect.h (+67/-0) src/messages/MClientReply.h (+257/-0) src/messages/MClientRequest.h (+196/-0) src/messages/MClientRequestForward.h (+63/-0) src/messages/MClientSession.h (+67/-0) src/messages/MClientSnap.h (+66/-0) src/messages/MDentryLink.h (+62/-0) src/messages/MDentryUnlink.h (+57/-0) src/messages/MDirUpdate.h (+85/-0) src/messages/MDiscover.h (+110/-0) src/messages/MDiscoverReply.h (+215/-0) src/messages/MExportCaps.h (+53/-0) src/messages/MExportCapsAck.h (+49/-0) src/messages/MExportDir.h (+63/-0) src/messages/MExportDirAck.h (+48/-0) src/messages/MExportDirCancel.h (+49/-0) src/messages/MExportDirDiscover.h (+67/-0) src/messages/MExportDirDiscoverAck.h (+59/-0) src/messages/MExportDirFinish.h (+50/-0) src/messages/MExportDirNotify.h (+79/-0) src/messages/MExportDirNotifyAck.h (+52/-0) src/messages/MExportDirPrep.h (+84/-0) src/messages/MExportDirPrepAck.h (+49/-0) src/messages/MForward.h (+69/-0) src/messages/MGenericMessage.h (+39/-0) src/messages/MGetPoolStats.h (+55/-0) src/messages/MGetPoolStatsReply.h (+53/-0) src/messages/MHeartbeat.h (+61/-0) src/messages/MInodeFileCaps.h (+56/-0) src/messages/MLock.h (+95/-0) src/messages/MLog.h (+54/-0) src/messages/MLogAck.h (+47/-0) src/messages/MMDSBeacon.h (+85/-0) src/messages/MMDSCacheRejoin.h (+306/-0) src/messages/MMDSFragmentNotify.h (+64/-0) src/messages/MMDSLoadTargets.h (+58/-0) src/messages/MMDSMap.h (+86/-0) src/messages/MMDSResolve.h (+69/-0) src/messages/MMDSResolveAck.h (+59/-0) src/messages/MMDSSlaveRequest.h (+154/-0) src/messages/MMDSTableRequest.h (+65/-0) src/messages/MMonCommand.h (+60/-0) src/messages/MMonCommandAck.h (+54/-0) src/messages/MMonElection.h (+74/-0) src/messages/MMonGetMap.h (+35/-0) src/messages/MMonGlobalID.h (+43/-0) src/messages/MMonMap.h (+43/-0) src/messages/MMonObserve.h (+57/-0) src/messages/MMonObserveNotify.h (+62/-0) src/messages/MMonPaxos.h (+126/-0) src/messages/MMonSubscribe.h (+91/-0) src/messages/MMonSubscribeAck.h (+50/-0) src/messages/MOSDAlive.h (+49/-0) src/messages/MOSDBoot.h (+55/-0) src/messages/MOSDFailure.h (+59/-0) src/messages/MOSDMap.h (+78/-0) src/messages/MOSDOp.h (+224/-0) src/messages/MOSDOpReply.h (+128/-0) src/messages/MOSDPGCreate.h (+70/-0) src/messages/MOSDPGInfo.h (+53/-0) src/messages/MOSDPGLog.h (+60/-0) src/messages/MOSDPGNotify.h (+57/-0) src/messages/MOSDPGQuery.h (+55/-0) src/messages/MOSDPGRemove.h (+54/-0) src/messages/MOSDPGTemp.h (+52/-0) src/messages/MOSDPGTrim.h (+54/-0) src/messages/MOSDPing.h (+63/-0) src/messages/MOSDScrub.h (+66/-0) src/messages/MOSDSubOp.h (+189/-0) src/messages/MOSDSubOpReply.h (+146/-0) src/messages/MPGStats.h (+61/-0) src/messages/MPGStatsAck.h (+44/-0) src/messages/MPing.h (+35/-0) src/messages/MPoolOp.h (+93/-0) src/messages/MPoolOpReply.h (+75/-0) src/messages/MRemoveSnaps.h (+51/-0) src/messages/MRoute.h (+63/-0) src/messages/MStatfs.h (+52/-0) src/messages/MStatfsReply.h (+44/-0) src/messages/PaxosServiceMessage.h (+62/-0) src/mkcephfs.in (+284/-0) src/mon/AuthMonitor.cc (+654/-0) src/mon/AuthMonitor.h (+128/-0) src/mon/ClassMonitor.cc (+562/-0) src/mon/ClassMonitor.h (+71/-0) src/mon/Elector.cc (+338/-0) src/mon/Elector.h (+92/-0) src/mon/LogMonitor.cc (+328/-0) src/mon/LogMonitor.h (+68/-0) src/mon/MDSMonitor.cc (+881/-0) src/mon/MDSMonitor.h (+107/-0) src/mon/MonCaps.cc (+258/-0) src/mon/MonCaps.h (+106/-0) src/mon/MonClient.cc (+582/-0) src/mon/MonClient.h (+237/-0) src/mon/MonMap.cc (+47/-0) src/mon/MonMap.h (+127/-0) src/mon/Monitor.cc (+1115/-0) src/mon/Monitor.h (+244/-0) src/mon/MonitorStore.cc (+277/-0) src/mon/MonitorStore.h (+85/-0) src/mon/MonmapMonitor.cc (+205/-0) src/mon/MonmapMonitor.h (+73/-0) src/mon/OSDMonitor.cc (+1629/-0) src/mon/OSDMonitor.h (+190/-0) src/mon/PGMap.h (+322/-0) src/mon/PGMonitor.cc (+734/-0) src/mon/PGMonitor.h (+93/-0) src/mon/Paxos.cc (+1017/-0) src/mon/Paxos.h (+300/-0) src/mon/PaxosService.cc (+196/-0) src/mon/PaxosService.h (+177/-0) src/mon/Session.h (+138/-0) src/mon/mon_types.h (+42/-0) src/monmaptool.cc (+142/-0) src/mount/canonicalize.c (+191/-0) src/mount/mount.ceph.c (+354/-0) src/mount/mtab.c (+280/-0) src/msg/Dispatcher.h (+56/-0) src/msg/FakeMessenger.h (+88/-0) src/msg/Message.cc (+553/-0) src/msg/Message.h (+440/-0) src/msg/Messenger.h (+171/-0) src/msg/SimpleMessenger.cc (+2553/-0) src/msg/SimpleMessenger.h (+592/-0) src/msg/msg_types.cc (+70/-0) src/msg/msg_types.h (+332/-0) src/msg/tcp.cc (+70/-0) src/msg/tcp.h (+39/-0) src/objclass/class_api.cc (+241/-0) src/objclass/class_debug.cc (+27/-0) src/objclass/objclass.h (+99/-0) src/os/BDBMap.h (+137/-0) src/os/Fake.h (+295/-0) src/os/FakeStoreBDBCollections.h (+169/-0) src/os/FileJournal.cc (+894/-0) src/os/FileJournal.h (+191/-0) src/os/FileStore.cc (+2409/-0) src/os/FileStore.h (+281/-0) src/os/Journal.h (+56/-0) src/os/JournalingObjectStore.cc (+239/-0) src/os/JournalingObjectStore.h (+67/-0) src/os/ObjectStore.h (+623/-0) src/os/btrfs_ioctl.h (+181/-0) src/osbdb/OSBDB.h (+482/-0) src/osd/Ager.cc (+343/-0) src/osd/Ager.h (+44/-0) src/osd/OSD.cc (+4830/-0) src/osd/OSD.h (+939/-0) src/osd/OSDCaps.cc (+242/-0) src/osd/OSDCaps.h (+111/-0) src/osd/OSDMap.cc (+232/-0) src/osd/OSDMap.h (+989/-0) src/osd/ObjectVersioner.h (+35/-0) src/osd/PG.cc (+2819/-0) src/osd/PG.h (+1154/-0) src/osd/PGLS.h (+27/-0) src/osd/RAID4PG.h (+75/-0) src/osd/ReplicatedPG.cc (+4297/-0) src/osd/ReplicatedPG.h (+661/-0) src/osd/osd_types.h (+1425/-0) src/osdc/Blinker.h (+92/-0) src/osdc/Filer.cc (+378/-0) src/osdc/Filer.h (+271/-0) src/osdc/Journaler.cc (+842/-0) src/osdc/Journaler.h (+280/-0) src/osdc/ObjectCacher.cc (+1788/-0) src/osdc/ObjectCacher.h (+683/-0) src/osdc/Objecter.cc (+1080/-0) src/osdc/Objecter.h (+812/-0) src/osdc/rados_bencher.h (+508/-0) src/osdmaptool.cc (+258/-0) src/psim.cc (+88/-0) src/rados.cc (+472/-0) src/radosacl.cc (+195/-0) src/rbd.cc (+1245/-0) src/rgw/rgw_access.cc (+25/-0) src/rgw/rgw_access.h (+170/-0) src/rgw/rgw_acl.cc (+332/-0) src/rgw/rgw_acl.h (+464/-0) src/rgw/rgw_admin.cc (+282/-0) src/rgw/rgw_common.cc (+154/-0) src/rgw/rgw_common.h (+245/-0) src/rgw/rgw_fs.cc (+577/-0) src/rgw/rgw_fs.h (+61/-0) src/rgw/rgw_main.cc (+286/-0) src/rgw/rgw_op.cc (+728/-0) src/rgw/rgw_op.h (+319/-0) src/rgw/rgw_rados.cc (+662/-0) src/rgw/rgw_rados.h (+89/-0) src/rgw/rgw_rest.cc (+748/-0) src/rgw/rgw_rest.h (+140/-0) src/rgw/rgw_user.cc (+202/-0) src/rgw/rgw_user.h (+115/-0) src/sample.ceph.conf (+99/-0) src/stop.sh (+51/-0) src/streamtest.cc (+170/-0) src/test_trans.cc (+74/-0) src/testcrypto.cc (+49/-0) src/testkeys.cc (+58/-0) src/testmsgr.cc (+134/-0) src/testrados.c (+132/-0) src/testradospp.cc (+147/-0) src/verify-mds-journal.sh (+8/-0) src/vstart.sh (+415/-0) |
||||
To merge this branch: | bzr merge lp:~clint-fewbar/review-new-branches/ceph-new-pkg | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Mathias Gug | Approve | ||
Review via email: mp+31303@code.launchpad.net |
Commit message
Description of the change
Here is the package, with lintian E's and W's fixed
- 4. By Clint Byrum
-
- updating maintainer
- reformatting copyright file to http://dep.debian. net/deps/ dep5/ standard
- adding missing Public Domain copyright and fixing btrfs_ioctl.h - 5. By Clint Byrum
-
adding postrm to remove log files
- 6. By Clint Byrum
-
fixing ceph.postrm
- 7. By Clint Byrum
-
removing useless rados.install
Clint Byrum (clint-fewbar) wrote : | # |
Ok, latest push has:
- Fixed copyright file
- Cleared out changelog
- Fixed maintainer
- postrm to purge log files
- removing rados.install
The issues that are harder to address are:
- Autotools support would, I believe, require a lot of changes, though I agree this should be done for long term maintainability.
- mkcephfs in /sbin is a good idea, however, it is just a shell wrapper for calling all of the other tools in /usr. This will have to be addressed upstream if people want to be able to have ceph provide their /usr partitions.
- CEPH is really complex, and figuring out a sane default config may require a lot of knowledge. I'd prefer that the files be left in /etc/ceph as sample unless this violates policy. That may be a worthy task for a future effort to make it easier to use ceph, but right now its beyond the scope of providing a technology preview and the ability for people to "play" with CEPH, which is all its author suggests anyone do with it right now anyway.
- 8. By Clint Byrum
-
importing official 0.21 release
Clint Byrum (clint-fewbar) wrote : | # |
Just pushed the final official version of ceph v0.21 into the underlying branch. Note that ceph is no longer recommended by cfuse, but suggested, that comes from upstream.
Sage Weil (sage-newdream) wrote : | # |
> * debian/changelog
>
> The file should be trimmed to only have one entry mentioning the
> initial packaging for Ubuntu and refering the need-packaging bug in LP
> (bug 607730):
>
> ceph (0.21-0ubuntu1) maverick; urgency=low
>
> * Initial release based on upstream package (LP: #607730).
>
> * debian/control
>
> The maintainer field should be updated per
> https:/
These are packaging fixes on the ubuntu side of things I take it.
> * debian/copyright
>
> I would recommend to format the content of this file according to
> the 'Machine-readable debian/copyright' DEP - see
> http://
>
> The Files: * section has an empty line on line 14.
>
> src/include/
> under Public Domain.
>
> src/os/
>
> Running 'licensecheck -r .' in the top source directory will output a
> good estimate of the license and copyright for each file.
Fixed.
> * debian/rules: I'd recommend to properly support autotools in the build
> system. See /usr/share/
> from the autotools-dev package.
I'll do this for the next release.
> * Log files should be properly handled as outlined in the Debian Policy
> Section 10.8 [1]
>
> [1]: http://
>
> Log directory should be deleted on package purge.
Added a ceph.postrm that will rm -rf /var/log/ceph on purge.
> * Configuration files in /etc/ seem to be sample files given their name
> in ceph.install:
>
> etc/ceph/
> etc/ceph/
>
> Are these files providing a default working configuration? If so their
> name should not start with sample. If not they should be shipped under
> /usr/share/
> shipped as part of the package.
Moved to /usr/share/
> * AFAICT all commands to create a filesystem are located in /sbin/.
> mkcephfs should probably be there as well instead of
> usr/sbin/.
Moved.
> * debian/
> in debian/control.
Removed.
> * Upon installation of the ceph package it seems that there isn't a
> default working configuration. Is it possible to provide a default
> working configuration?
There's no way to make a useful default working configuration on a single node (it's a _distributed_ storage system), so /etc/ceph is left empty.
These changes are at git://ceph.
- 9. By Clint Byrum
-
merging with upstream testing branch
Clint Byrum (clint-fewbar) wrote : | # |
Sage thanks for the comments and for pushing these changes into your repository.
I've merged the relevant bits into the branch underlying this merge proposal so we can upload for feature freeze which is coming very soon. Once CEPH uploads into debian unstable, we'll sync back up, but I'm fairly certain that will be after maverick is frozen.
- 10. By Clint Byrum
-
adding missing logrotate.conf
- 11. By Clint Byrum
-
fixing missed files in merge from upstream
- 12. By Clint Byrum
-
reverting to v0.21 release tarball status outside debian directory
- 13. By Clint Byrum
-
logrotate.conf not in 0.21 official release tarball
- 14. By Clint Byrum
-
adding patch to Makefile.am from upstream to put mkcephfs in /sbin
Mathias Gug (mathiaz) wrote : | # |
Looks good now. Uploaded to ubuntu maverick.
Preview Diff
1 | === added file 'AUTHORS' |
2 | --- AUTHORS 1970-01-01 00:00:00 +0000 |
3 | +++ AUTHORS 2010-08-05 18:02:40 +0000 |
4 | @@ -0,0 +1,15 @@ |
5 | +Ceph core |
6 | +--------- |
7 | + |
8 | +Sage Weil <sage@newdream.net> |
9 | +Yehuda Sadeh-Weinraub <yehudasa@gmail.com> |
10 | +Greg Farnum <gregf@hq.newdream.net> |
11 | + |
12 | +Kernel client |
13 | +------------- |
14 | + |
15 | +Sage Weil <sage@newdream.net> |
16 | +Patience Warnick <patience@newdream.net> |
17 | +Yehuda Sadeh-Weinraub <yehudasa@gmail.com> |
18 | +Greg Farnum <gregf@hq.newdream.net> |
19 | + |
20 | |
21 | === added file 'COPYING' |
22 | --- COPYING 1970-01-01 00:00:00 +0000 |
23 | +++ COPYING 2010-08-05 18:02:40 +0000 |
24 | @@ -0,0 +1,504 @@ |
25 | + GNU LESSER GENERAL PUBLIC LICENSE |
26 | + Version 2.1, February 1999 |
27 | + |
28 | + Copyright (C) 1991, 1999 Free Software Foundation, Inc. |
29 | + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
30 | + Everyone is permitted to copy and distribute verbatim copies |
31 | + of this license document, but changing it is not allowed. |
32 | + |
33 | +[This is the first released version of the Lesser GPL. It also counts |
34 | + as the successor of the GNU Library Public License, version 2, hence |
35 | + the version number 2.1.] |
36 | + |
37 | + Preamble |
38 | + |
39 | + The licenses for most software are designed to take away your |
40 | +freedom to share and change it. By contrast, the GNU General Public |
41 | +Licenses are intended to guarantee your freedom to share and change |
42 | +free software--to make sure the software is free for all its users. |
43 | + |
44 | + This license, the Lesser General Public License, applies to some |
45 | +specially designated software packages--typically libraries--of the |
46 | +Free Software Foundation and other authors who decide to use it. You |
47 | +can use it too, but we suggest you first think carefully about whether |
48 | +this license or the ordinary General Public License is the better |
49 | +strategy to use in any particular case, based on the explanations below. |
50 | + |
51 | + When we speak of free software, we are referring to freedom of use, |
52 | +not price. Our General Public Licenses are designed to make sure that |
53 | +you have the freedom to distribute copies of free software (and charge |
54 | +for this service if you wish); that you receive source code or can get |
55 | +it if you want it; that you can change the software and use pieces of |
56 | +it in new free programs; and that you are informed that you can do |
57 | +these things. |
58 | + |
59 | + To protect your rights, we need to make restrictions that forbid |
60 | +distributors to deny you these rights or to ask you to surrender these |
61 | +rights. These restrictions translate to certain responsibilities for |
62 | +you if you distribute copies of the library or if you modify it. |
63 | + |
64 | + For example, if you distribute copies of the library, whether gratis |
65 | +or for a fee, you must give the recipients all the rights that we gave |
66 | +you. You must make sure that they, too, receive or can get the source |
67 | +code. If you link other code with the library, you must provide |
68 | +complete object files to the recipients, so that they can relink them |
69 | +with the library after making changes to the library and recompiling |
70 | +it. And you must show them these terms so they know their rights. |
71 | + |
72 | + We protect your rights with a two-step method: (1) we copyright the |
73 | +library, and (2) we offer you this license, which gives you legal |
74 | +permission to copy, distribute and/or modify the library. |
75 | + |
76 | + To protect each distributor, we want to make it very clear that |
77 | +there is no warranty for the free library. Also, if the library is |
78 | +modified by someone else and passed on, the recipients should know |
79 | +that what they have is not the original version, so that the original |
80 | +author's reputation will not be affected by problems that might be |
81 | +introduced by others. |
82 | + |
83 | |
84 | + Finally, software patents pose a constant threat to the existence of |
85 | +any free program. We wish to make sure that a company cannot |
86 | +effectively restrict the users of a free program by obtaining a |
87 | +restrictive license from a patent holder. Therefore, we insist that |
88 | +any patent license obtained for a version of the library must be |
89 | +consistent with the full freedom of use specified in this license. |
90 | + |
91 | + Most GNU software, including some libraries, is covered by the |
92 | +ordinary GNU General Public License. This license, the GNU Lesser |
93 | +General Public License, applies to certain designated libraries, and |
94 | +is quite different from the ordinary General Public License. We use |
95 | +this license for certain libraries in order to permit linking those |
96 | +libraries into non-free programs. |
97 | + |
98 | + When a program is linked with a library, whether statically or using |
99 | +a shared library, the combination of the two is legally speaking a |
100 | +combined work, a derivative of the original library. The ordinary |
101 | +General Public License therefore permits such linking only if the |
102 | +entire combination fits its criteria of freedom. The Lesser General |
103 | +Public License permits more lax criteria for linking other code with |
104 | +the library. |
105 | + |
106 | + We call this license the "Lesser" General Public License because it |
107 | +does Less to protect the user's freedom than the ordinary General |
108 | +Public License. It also provides other free software developers Less |
109 | +of an advantage over competing non-free programs. These disadvantages |
110 | +are the reason we use the ordinary General Public License for many |
111 | +libraries. However, the Lesser license provides advantages in certain |
112 | +special circumstances. |
113 | + |
114 | + For example, on rare occasions, there may be a special need to |
115 | +encourage the widest possible use of a certain library, so that it becomes |
116 | +a de-facto standard. To achieve this, non-free programs must be |
117 | +allowed to use the library. A more frequent case is that a free |
118 | +library does the same job as widely used non-free libraries. In this |
119 | +case, there is little to gain by limiting the free library to free |
120 | +software only, so we use the Lesser General Public License. |
121 | + |
122 | + In other cases, permission to use a particular library in non-free |
123 | +programs enables a greater number of people to use a large body of |
124 | +free software. For example, permission to use the GNU C Library in |
125 | +non-free programs enables many more people to use the whole GNU |
126 | +operating system, as well as its variant, the GNU/Linux operating |
127 | +system. |
128 | + |
129 | + Although the Lesser General Public License is Less protective of the |
130 | +users' freedom, it does ensure that the user of a program that is |
131 | +linked with the Library has the freedom and the wherewithal to run |
132 | +that program using a modified version of the Library. |
133 | + |
134 | + The precise terms and conditions for copying, distribution and |
135 | +modification follow. Pay close attention to the difference between a |
136 | +"work based on the library" and a "work that uses the library". The |
137 | +former contains code derived from the library, whereas the latter must |
138 | +be combined with the library in order to run. |
139 | + |
140 | |
141 | + GNU LESSER GENERAL PUBLIC LICENSE |
142 | + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION |
143 | + |
144 | + 0. This License Agreement applies to any software library or other |
145 | +program which contains a notice placed by the copyright holder or |
146 | +other authorized party saying it may be distributed under the terms of |
147 | +this Lesser General Public License (also called "this License"). |
148 | +Each licensee is addressed as "you". |
149 | + |
150 | + A "library" means a collection of software functions and/or data |
151 | +prepared so as to be conveniently linked with application programs |
152 | +(which use some of those functions and data) to form executables. |
153 | + |
154 | + The "Library", below, refers to any such software library or work |
155 | +which has been distributed under these terms. A "work based on the |
156 | +Library" means either the Library or any derivative work under |
157 | +copyright law: that is to say, a work containing the Library or a |
158 | +portion of it, either verbatim or with modifications and/or translated |
159 | +straightforwardly into another language. (Hereinafter, translation is |
160 | +included without limitation in the term "modification".) |
161 | + |
162 | + "Source code" for a work means the preferred form of the work for |
163 | +making modifications to it. For a library, complete source code means |
164 | +all the source code for all modules it contains, plus any associated |
165 | +interface definition files, plus the scripts used to control compilation |
166 | +and installation of the library. |
167 | + |
168 | + Activities other than copying, distribution and modification are not |
169 | +covered by this License; they are outside its scope. The act of |
170 | +running a program using the Library is not restricted, and output from |
171 | +such a program is covered only if its contents constitute a work based |
172 | +on the Library (independent of the use of the Library in a tool for |
173 | +writing it). Whether that is true depends on what the Library does |
174 | +and what the program that uses the Library does. |
175 | + |
176 | + 1. You may copy and distribute verbatim copies of the Library's |
177 | +complete source code as you receive it, in any medium, provided that |
178 | +you conspicuously and appropriately publish on each copy an |
179 | +appropriate copyright notice and disclaimer of warranty; keep intact |
180 | +all the notices that refer to this License and to the absence of any |
181 | +warranty; and distribute a copy of this License along with the |
182 | +Library. |
183 | + |
184 | + You may charge a fee for the physical act of transferring a copy, |
185 | +and you may at your option offer warranty protection in exchange for a |
186 | +fee. |
187 | + |
188 | |
189 | + 2. You may modify your copy or copies of the Library or any portion |
190 | +of it, thus forming a work based on the Library, and copy and |
191 | +distribute such modifications or work under the terms of Section 1 |
192 | +above, provided that you also meet all of these conditions: |
193 | + |
194 | + a) The modified work must itself be a software library. |
195 | + |
196 | + b) You must cause the files modified to carry prominent notices |
197 | + stating that you changed the files and the date of any change. |
198 | + |
199 | + c) You must cause the whole of the work to be licensed at no |
200 | + charge to all third parties under the terms of this License. |
201 | + |
202 | + d) If a facility in the modified Library refers to a function or a |
203 | + table of data to be supplied by an application program that uses |
204 | + the facility, other than as an argument passed when the facility |
205 | + is invoked, then you must make a good faith effort to ensure that, |
206 | + in the event an application does not supply such function or |
207 | + table, the facility still operates, and performs whatever part of |
208 | + its purpose remains meaningful. |
209 | + |
210 | + (For example, a function in a library to compute square roots has |
211 | + a purpose that is entirely well-defined independent of the |
212 | + application. Therefore, Subsection 2d requires that any |
213 | + application-supplied function or table used by this function must |
214 | + be optional: if the application does not supply it, the square |
215 | + root function must still compute square roots.) |
216 | + |
217 | +These requirements apply to the modified work as a whole. If |
218 | +identifiable sections of that work are not derived from the Library, |
219 | +and can be reasonably considered independent and separate works in |
220 | +themselves, then this License, and its terms, do not apply to those |
221 | +sections when you distribute them as separate works. But when you |
222 | +distribute the same sections as part of a whole which is a work based |
223 | +on the Library, the distribution of the whole must be on the terms of |
224 | +this License, whose permissions for other licensees extend to the |
225 | +entire whole, and thus to each and every part regardless of who wrote |
226 | +it. |
227 | + |
228 | +Thus, it is not the intent of this section to claim rights or contest |
229 | +your rights to work written entirely by you; rather, the intent is to |
230 | +exercise the right to control the distribution of derivative or |
231 | +collective works based on the Library. |
232 | + |
233 | +In addition, mere aggregation of another work not based on the Library |
234 | +with the Library (or with a work based on the Library) on a volume of |
235 | +a storage or distribution medium does not bring the other work under |
236 | +the scope of this License. |
237 | + |
238 | + 3. You may opt to apply the terms of the ordinary GNU General Public |
239 | +License instead of this License to a given copy of the Library. To do |
240 | +this, you must alter all the notices that refer to this License, so |
241 | +that they refer to the ordinary GNU General Public License, version 2, |
242 | +instead of to this License. (If a newer version than version 2 of the |
243 | +ordinary GNU General Public License has appeared, then you can specify |
244 | +that version instead if you wish.) Do not make any other change in |
245 | +these notices. |
246 | + |
247 | |
248 | + Once this change is made in a given copy, it is irreversible for |
249 | +that copy, so the ordinary GNU General Public License applies to all |
250 | +subsequent copies and derivative works made from that copy. |
251 | + |
252 | + This option is useful when you wish to copy part of the code of |
253 | +the Library into a program that is not a library. |
254 | + |
255 | + 4. You may copy and distribute the Library (or a portion or |
256 | +derivative of it, under Section 2) in object code or executable form |
257 | +under the terms of Sections 1 and 2 above provided that you accompany |
258 | +it with the complete corresponding machine-readable source code, which |
259 | +must be distributed under the terms of Sections 1 and 2 above on a |
260 | +medium customarily used for software interchange. |
261 | + |
262 | + If distribution of object code is made by offering access to copy |
263 | +from a designated place, then offering equivalent access to copy the |
264 | +source code from the same place satisfies the requirement to |
265 | +distribute the source code, even though third parties are not |
266 | +compelled to copy the source along with the object code. |
267 | + |
268 | + 5. A program that contains no derivative of any portion of the |
269 | +Library, but is designed to work with the Library by being compiled or |
270 | +linked with it, is called a "work that uses the Library". Such a |
271 | +work, in isolation, is not a derivative work of the Library, and |
272 | +therefore falls outside the scope of this License. |
273 | + |
274 | + However, linking a "work that uses the Library" with the Library |
275 | +creates an executable that is a derivative of the Library (because it |
276 | +contains portions of the Library), rather than a "work that uses the |
277 | +library". The executable is therefore covered by this License. |
278 | +Section 6 states terms for distribution of such executables. |
279 | + |
280 | + When a "work that uses the Library" uses material from a header file |
281 | +that is part of the Library, the object code for the work may be a |
282 | +derivative work of the Library even though the source code is not. |
283 | +Whether this is true is especially significant if the work can be |
284 | +linked without the Library, or if the work is itself a library. The |
285 | +threshold for this to be true is not precisely defined by law. |
286 | + |
287 | + If such an object file uses only numerical parameters, data |
288 | +structure layouts and accessors, and small macros and small inline |
289 | +functions (ten lines or less in length), then the use of the object |
290 | +file is unrestricted, regardless of whether it is legally a derivative |
291 | +work. (Executables containing this object code plus portions of the |
292 | +Library will still fall under Section 6.) |
293 | + |
294 | + Otherwise, if the work is a derivative of the Library, you may |
295 | +distribute the object code for the work under the terms of Section 6. |
296 | +Any executables containing that work also fall under Section 6, |
297 | +whether or not they are linked directly with the Library itself. |
298 | + |
299 | |
300 | + 6. As an exception to the Sections above, you may also combine or |
301 | +link a "work that uses the Library" with the Library to produce a |
302 | +work containing portions of the Library, and distribute that work |
303 | +under terms of your choice, provided that the terms permit |
304 | +modification of the work for the customer's own use and reverse |
305 | +engineering for debugging such modifications. |
306 | + |
307 | + You must give prominent notice with each copy of the work that the |
308 | +Library is used in it and that the Library and its use are covered by |
309 | +this License. You must supply a copy of this License. If the work |
310 | +during execution displays copyright notices, you must include the |
311 | +copyright notice for the Library among them, as well as a reference |
312 | +directing the user to the copy of this License. Also, you must do one |
313 | +of these things: |
314 | + |
315 | + a) Accompany the work with the complete corresponding |
316 | + machine-readable source code for the Library including whatever |
317 | + changes were used in the work (which must be distributed under |
318 | + Sections 1 and 2 above); and, if the work is an executable linked |
319 | + with the Library, with the complete machine-readable "work that |
320 | + uses the Library", as object code and/or source code, so that the |
321 | + user can modify the Library and then relink to produce a modified |
322 | + executable containing the modified Library. (It is understood |
323 | + that the user who changes the contents of definitions files in the |
324 | + Library will not necessarily be able to recompile the application |
325 | + to use the modified definitions.) |
326 | + |
327 | + b) Use a suitable shared library mechanism for linking with the |
328 | + Library. A suitable mechanism is one that (1) uses at run time a |
329 | + copy of the library already present on the user's computer system, |
330 | + rather than copying library functions into the executable, and (2) |
331 | + will operate properly with a modified version of the library, if |
332 | + the user installs one, as long as the modified version is |
333 | + interface-compatible with the version that the work was made with. |
334 | + |
335 | + c) Accompany the work with a written offer, valid for at |
336 | + least three years, to give the same user the materials |
337 | + specified in Subsection 6a, above, for a charge no more |
338 | + than the cost of performing this distribution. |
339 | + |
340 | + d) If distribution of the work is made by offering access to copy |
341 | + from a designated place, offer equivalent access to copy the above |
342 | + specified materials from the same place. |
343 | + |
344 | + e) Verify that the user has already received a copy of these |
345 | + materials or that you have already sent this user a copy. |
346 | + |
347 | + For an executable, the required form of the "work that uses the |
348 | +Library" must include any data and utility programs needed for |
349 | +reproducing the executable from it. However, as a special exception, |
350 | +the materials to be distributed need not include anything that is |
351 | +normally distributed (in either source or binary form) with the major |
352 | +components (compiler, kernel, and so on) of the operating system on |
353 | +which the executable runs, unless that component itself accompanies |
354 | +the executable. |
355 | + |
356 | + It may happen that this requirement contradicts the license |
357 | +restrictions of other proprietary libraries that do not normally |
358 | +accompany the operating system. Such a contradiction means you cannot |
359 | +use both them and the Library together in an executable that you |
360 | +distribute. |
361 | + |
362 | |
363 | + 7. You may place library facilities that are a work based on the |
364 | +Library side-by-side in a single library together with other library |
365 | +facilities not covered by this License, and distribute such a combined |
366 | +library, provided that the separate distribution of the work based on |
367 | +the Library and of the other library facilities is otherwise |
368 | +permitted, and provided that you do these two things: |
369 | + |
370 | + a) Accompany the combined library with a copy of the same work |
371 | + based on the Library, uncombined with any other library |
372 | + facilities. This must be distributed under the terms of the |
373 | + Sections above. |
374 | + |
375 | + b) Give prominent notice with the combined library of the fact |
376 | + that part of it is a work based on the Library, and explaining |
377 | + where to find the accompanying uncombined form of the same work. |
378 | + |
379 | + 8. You may not copy, modify, sublicense, link with, or distribute |
380 | +the Library except as expressly provided under this License. Any |
381 | +attempt otherwise to copy, modify, sublicense, link with, or |
382 | +distribute the Library is void, and will automatically terminate your |
383 | +rights under this License. However, parties who have received copies, |
384 | +or rights, from you under this License will not have their licenses |
385 | +terminated so long as such parties remain in full compliance. |
386 | + |
387 | + 9. You are not required to accept this License, since you have not |
388 | +signed it. However, nothing else grants you permission to modify or |
389 | +distribute the Library or its derivative works. These actions are |
390 | +prohibited by law if you do not accept this License. Therefore, by |
391 | +modifying or distributing the Library (or any work based on the |
392 | +Library), you indicate your acceptance of this License to do so, and |
393 | +all its terms and conditions for copying, distributing or modifying |
394 | +the Library or works based on it. |
395 | + |
396 | + 10. Each time you redistribute the Library (or any work based on the |
397 | +Library), the recipient automatically receives a license from the |
398 | +original licensor to copy, distribute, link with or modify the Library |
399 | +subject to these terms and conditions. You may not impose any further |
400 | +restrictions on the recipients' exercise of the rights granted herein. |
401 | +You are not responsible for enforcing compliance by third parties with |
402 | +this License. |
403 | + |
404 | |
405 | + 11. If, as a consequence of a court judgment or allegation of patent |
406 | +infringement or for any other reason (not limited to patent issues), |
407 | +conditions are imposed on you (whether by court order, agreement or |
408 | +otherwise) that contradict the conditions of this License, they do not |
409 | +excuse you from the conditions of this License. If you cannot |
410 | +distribute so as to satisfy simultaneously your obligations under this |
411 | +License and any other pertinent obligations, then as a consequence you |
412 | +may not distribute the Library at all. For example, if a patent |
413 | +license would not permit royalty-free redistribution of the Library by |
414 | +all those who receive copies directly or indirectly through you, then |
415 | +the only way you could satisfy both it and this License would be to |
416 | +refrain entirely from distribution of the Library. |
417 | + |
418 | +If any portion of this section is held invalid or unenforceable under any |
419 | +particular circumstance, the balance of the section is intended to apply, |
420 | +and the section as a whole is intended to apply in other circumstances. |
421 | + |
422 | +It is not the purpose of this section to induce you to infringe any |
423 | +patents or other property right claims or to contest validity of any |
424 | +such claims; this section has the sole purpose of protecting the |
425 | +integrity of the free software distribution system which is |
426 | +implemented by public license practices. Many people have made |
427 | +generous contributions to the wide range of software distributed |
428 | +through that system in reliance on consistent application of that |
429 | +system; it is up to the author/donor to decide if he or she is willing |
430 | +to distribute software through any other system and a licensee cannot |
431 | +impose that choice. |
432 | + |
433 | +This section is intended to make thoroughly clear what is believed to |
434 | +be a consequence of the rest of this License. |
435 | + |
436 | + 12. If the distribution and/or use of the Library is restricted in |
437 | +certain countries either by patents or by copyrighted interfaces, the |
438 | +original copyright holder who places the Library under this License may add |
439 | +an explicit geographical distribution limitation excluding those countries, |
440 | +so that distribution is permitted only in or among countries not thus |
441 | +excluded. In such case, this License incorporates the limitation as if |
442 | +written in the body of this License. |
443 | + |
444 | + 13. The Free Software Foundation may publish revised and/or new |
445 | +versions of the Lesser General Public License from time to time. |
446 | +Such new versions will be similar in spirit to the present version, |
447 | +but may differ in detail to address new problems or concerns. |
448 | + |
449 | +Each version is given a distinguishing version number. If the Library |
450 | +specifies a version number of this License which applies to it and |
451 | +"any later version", you have the option of following the terms and |
452 | +conditions either of that version or of any later version published by |
453 | +the Free Software Foundation. If the Library does not specify a |
454 | +license version number, you may choose any version ever published by |
455 | +the Free Software Foundation. |
456 | + |
457 | |
458 | + 14. If you wish to incorporate parts of the Library into other free |
459 | +programs whose distribution conditions are incompatible with these, |
460 | +write to the author to ask for permission. For software which is |
461 | +copyrighted by the Free Software Foundation, write to the Free |
462 | +Software Foundation; we sometimes make exceptions for this. Our |
463 | +decision will be guided by the two goals of preserving the free status |
464 | +of all derivatives of our free software and of promoting the sharing |
465 | +and reuse of software generally. |
466 | + |
467 | + NO WARRANTY |
468 | + |
469 | + 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO |
470 | +WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. |
471 | +EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR |
472 | +OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY |
473 | +KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE |
474 | +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
475 | +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE |
476 | +LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME |
477 | +THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. |
478 | + |
479 | + 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN |
480 | +WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY |
481 | +AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU |
482 | +FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR |
483 | +CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE |
484 | +LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING |
485 | +RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A |
486 | +FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF |
487 | +SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH |
488 | +DAMAGES. |
489 | + |
490 | + END OF TERMS AND CONDITIONS |
491 | + |
492 | |
493 | + How to Apply These Terms to Your New Libraries |
494 | + |
495 | + If you develop a new library, and you want it to be of the greatest |
496 | +possible use to the public, we recommend making it free software that |
497 | +everyone can redistribute and change. You can do so by permitting |
498 | +redistribution under these terms (or, alternatively, under the terms of the |
499 | +ordinary General Public License). |
500 | + |
501 | + To apply these terms, attach the following notices to the library. It is |
502 | +safest to attach them to the start of each source file to most effectively |
503 | +convey the exclusion of warranty; and each file should have at least the |
504 | +"copyright" line and a pointer to where the full notice is found. |
505 | + |
506 | + <one line to give the library's name and a brief idea of what it does.> |
507 | + Copyright (C) <year> <name of author> |
508 | + |
509 | + This library is free software; you can redistribute it and/or |
510 | + modify it under the terms of the GNU Lesser General Public |
511 | + License as published by the Free Software Foundation; either |
512 | + version 2.1 of the License, or (at your option) any later version. |
513 | + |
514 | + This library is distributed in the hope that it will be useful, |
515 | + but WITHOUT ANY WARRANTY; without even the implied warranty of |
516 | + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
517 | + Lesser General Public License for more details. |
518 | + |
519 | + You should have received a copy of the GNU Lesser General Public |
520 | + License along with this library; if not, write to the Free Software |
521 | + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
522 | + |
523 | +Also add information on how to contact you by electronic and paper mail. |
524 | + |
525 | +You should also get your employer (if you work as a programmer) or your |
526 | +school, if any, to sign a "copyright disclaimer" for the library, if |
527 | +necessary. Here is a sample; alter the names: |
528 | + |
529 | + Yoyodyne, Inc., hereby disclaims all copyright interest in the |
530 | + library `Frob' (a library for tweaking knobs) written by James Random Hacker. |
531 | + |
532 | + <signature of Ty Coon>, 1 April 1990 |
533 | + Ty Coon, President of Vice |
534 | + |
535 | +That's all there is to it! |
536 | + |
537 | + |
538 | |
539 | === added file 'ChangeLog' |
540 | === added file 'INSTALL' |
541 | --- INSTALL 1970-01-01 00:00:00 +0000 |
542 | +++ INSTALL 2010-08-05 18:02:40 +0000 |
543 | @@ -0,0 +1,21 @@ |
544 | +Installation Instructions |
545 | +************************* |
546 | + |
547 | +If pulling from git, you first need to build the configure script with |
548 | + |
549 | +$ ./autogen.sh |
550 | + |
551 | +Then, |
552 | + |
553 | +$ ./configure |
554 | +$ make |
555 | + |
556 | +Note that if the FUSE library is not found, the user-space fuse client |
557 | +will not be built. |
558 | + |
559 | +If you are doing development, you may want to do |
560 | + |
561 | +$ CXXFLAGS="-g -pg" ./configure |
562 | + |
563 | +or similar to avoid the default (-g -O2), which includes optimizations |
564 | +(-O2). |
565 | |
566 | === added file 'Makefile.am' |
567 | --- Makefile.am 1970-01-01 00:00:00 +0000 |
568 | +++ Makefile.am 2010-08-05 18:02:40 +0000 |
569 | @@ -0,0 +1,4 @@ |
570 | +AUTOMAKE_OPTIONS = gnu |
571 | +EXTRA_DIST = autogen.sh ceph.spec.in |
572 | +SUBDIRS = src man |
573 | + |
574 | |
575 | === added file 'Makefile.in' |
576 | --- Makefile.in 1970-01-01 00:00:00 +0000 |
577 | +++ Makefile.in 2010-08-05 18:02:40 +0000 |
578 | @@ -0,0 +1,625 @@ |
579 | +# Makefile.in generated by automake 1.10.1 from Makefile.am. |
580 | +# @configure_input@ |
581 | + |
582 | +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, |
583 | +# 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
584 | +# This Makefile.in is free software; the Free Software Foundation |
585 | +# gives unlimited permission to copy and/or distribute it, |
586 | +# with or without modifications, as long as this notice is preserved. |
587 | + |
588 | +# This program is distributed in the hope that it will be useful, |
589 | +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without |
590 | +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
591 | +# PARTICULAR PURPOSE. |
592 | + |
593 | +@SET_MAKE@ |
594 | +VPATH = @srcdir@ |
595 | +pkgdatadir = $(datadir)/@PACKAGE@ |
596 | +pkglibdir = $(libdir)/@PACKAGE@ |
597 | +pkgincludedir = $(includedir)/@PACKAGE@ |
598 | +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd |
599 | +install_sh_DATA = $(install_sh) -c -m 644 |
600 | +install_sh_PROGRAM = $(install_sh) -c |
601 | +install_sh_SCRIPT = $(install_sh) -c |
602 | +INSTALL_HEADER = $(INSTALL_DATA) |
603 | +transform = $(program_transform_name) |
604 | +NORMAL_INSTALL = : |
605 | +PRE_INSTALL = : |
606 | +POST_INSTALL = : |
607 | +NORMAL_UNINSTALL = : |
608 | +PRE_UNINSTALL = : |
609 | +POST_UNINSTALL = : |
610 | +build_triplet = @build@ |
611 | +host_triplet = @host@ |
612 | +target_triplet = @target@ |
613 | +subdir = . |
614 | +DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ |
615 | + $(srcdir)/Makefile.in $(srcdir)/ceph.spec.in \ |
616 | + $(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \ |
617 | + compile config.guess config.sub depcomp install-sh ltmain.sh \ |
618 | + missing |
619 | +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
620 | +am__aclocal_m4_deps = $(top_srcdir)/configure.ac |
621 | +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ |
622 | + $(ACLOCAL_M4) |
623 | +am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ |
624 | + configure.lineno config.status.lineno |
625 | +mkinstalldirs = $(install_sh) -d |
626 | +CONFIG_HEADER = $(top_builddir)/src/acconfig.h |
627 | +CONFIG_CLEAN_FILES = ceph.spec |
628 | +SOURCES = |
629 | +DIST_SOURCES = |
630 | +RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ |
631 | + html-recursive info-recursive install-data-recursive \ |
632 | + install-dvi-recursive install-exec-recursive \ |
633 | + install-html-recursive install-info-recursive \ |
634 | + install-pdf-recursive install-ps-recursive install-recursive \ |
635 | + installcheck-recursive installdirs-recursive pdf-recursive \ |
636 | + ps-recursive uninstall-recursive |
637 | +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ |
638 | + distclean-recursive maintainer-clean-recursive |
639 | +ETAGS = etags |
640 | +CTAGS = ctags |
641 | +DIST_SUBDIRS = $(SUBDIRS) |
642 | +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) |
643 | +distdir = $(PACKAGE)-$(VERSION) |
644 | +top_distdir = $(distdir) |
645 | +am__remove_distdir = \ |
646 | + { test ! -d $(distdir) \ |
647 | + || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ |
648 | + && rm -fr $(distdir); }; } |
649 | +DIST_ARCHIVES = $(distdir).tar.gz |
650 | +GZIP_ENV = --best |
651 | +distuninstallcheck_listfiles = find . -type f -print |
652 | +distcleancheck_listfiles = find . -type f -print |
653 | +ACLOCAL = @ACLOCAL@ |
654 | +AMTAR = @AMTAR@ |
655 | +AR = @AR@ |
656 | +AUTOCONF = @AUTOCONF@ |
657 | +AUTOHEADER = @AUTOHEADER@ |
658 | +AUTOMAKE = @AUTOMAKE@ |
659 | +AWK = @AWK@ |
660 | +CC = @CC@ |
661 | +CCDEPMODE = @CCDEPMODE@ |
662 | +CFLAGS = @CFLAGS@ |
663 | +CPP = @CPP@ |
664 | +CPPFLAGS = @CPPFLAGS@ |
665 | +CXX = @CXX@ |
666 | +CXXCPP = @CXXCPP@ |
667 | +CXXDEPMODE = @CXXDEPMODE@ |
668 | +CXXFLAGS = @CXXFLAGS@ |
669 | +CYGPATH_W = @CYGPATH_W@ |
670 | +DEFS = @DEFS@ |
671 | +DEPDIR = @DEPDIR@ |
672 | +DSYMUTIL = @DSYMUTIL@ |
673 | +ECHO = @ECHO@ |
674 | +ECHO_C = @ECHO_C@ |
675 | +ECHO_N = @ECHO_N@ |
676 | +ECHO_T = @ECHO_T@ |
677 | +EGREP = @EGREP@ |
678 | +EXEEXT = @EXEEXT@ |
679 | +F77 = @F77@ |
680 | +FFLAGS = @FFLAGS@ |
681 | +GREP = @GREP@ |
682 | +INSTALL = @INSTALL@ |
683 | +INSTALL_DATA = @INSTALL_DATA@ |
684 | +INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
685 | +INSTALL_SCRIPT = @INSTALL_SCRIPT@ |
686 | +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ |
687 | +LDFLAGS = @LDFLAGS@ |
688 | +LIBFUSE = @LIBFUSE@ |
689 | +LIBOBJS = @LIBOBJS@ |
690 | +LIBS = @LIBS@ |
691 | +LIBTOOL = @LIBTOOL@ |
692 | +LN_S = @LN_S@ |
693 | +LTLIBOBJS = @LTLIBOBJS@ |
694 | +MAKEINFO = @MAKEINFO@ |
695 | +MKDIR_P = @MKDIR_P@ |
696 | +NMEDIT = @NMEDIT@ |
697 | +OBJEXT = @OBJEXT@ |
698 | +PACKAGE = @PACKAGE@ |
699 | +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ |
700 | +PACKAGE_NAME = @PACKAGE_NAME@ |
701 | +PACKAGE_STRING = @PACKAGE_STRING@ |
702 | +PACKAGE_TARNAME = @PACKAGE_TARNAME@ |
703 | +PACKAGE_VERSION = @PACKAGE_VERSION@ |
704 | +PATH_SEPARATOR = @PATH_SEPARATOR@ |
705 | +RANLIB = @RANLIB@ |
706 | +SED = @SED@ |
707 | +SET_MAKE = @SET_MAKE@ |
708 | +SHELL = @SHELL@ |
709 | +STRIP = @STRIP@ |
710 | +VERSION = @VERSION@ |
711 | +abs_builddir = @abs_builddir@ |
712 | +abs_srcdir = @abs_srcdir@ |
713 | +abs_top_builddir = @abs_top_builddir@ |
714 | +abs_top_srcdir = @abs_top_srcdir@ |
715 | +ac_ct_CC = @ac_ct_CC@ |
716 | +ac_ct_CXX = @ac_ct_CXX@ |
717 | +ac_ct_F77 = @ac_ct_F77@ |
718 | +am__include = @am__include@ |
719 | +am__leading_dot = @am__leading_dot@ |
720 | +am__quote = @am__quote@ |
721 | +am__tar = @am__tar@ |
722 | +am__untar = @am__untar@ |
723 | +bindir = @bindir@ |
724 | +build = @build@ |
725 | +build_alias = @build_alias@ |
726 | +build_cpu = @build_cpu@ |
727 | +build_os = @build_os@ |
728 | +build_vendor = @build_vendor@ |
729 | +builddir = @builddir@ |
730 | +datadir = @datadir@ |
731 | +datarootdir = @datarootdir@ |
732 | +docdir = @docdir@ |
733 | +dvidir = @dvidir@ |
734 | +exec_prefix = @exec_prefix@ |
735 | +host = @host@ |
736 | +host_alias = @host_alias@ |
737 | +host_cpu = @host_cpu@ |
738 | +host_os = @host_os@ |
739 | +host_vendor = @host_vendor@ |
740 | +htmldir = @htmldir@ |
741 | +includedir = @includedir@ |
742 | +infodir = @infodir@ |
743 | +install_sh = @install_sh@ |
744 | +libdir = @libdir@ |
745 | +libexecdir = @libexecdir@ |
746 | +localedir = @localedir@ |
747 | +localstatedir = @localstatedir@ |
748 | +mandir = @mandir@ |
749 | +mkdir_p = @mkdir_p@ |
750 | +oldincludedir = @oldincludedir@ |
751 | +pdfdir = @pdfdir@ |
752 | +prefix = @prefix@ |
753 | +program_transform_name = @program_transform_name@ |
754 | +psdir = @psdir@ |
755 | +sbindir = @sbindir@ |
756 | +sharedstatedir = @sharedstatedir@ |
757 | +srcdir = @srcdir@ |
758 | +sysconfdir = @sysconfdir@ |
759 | +target = @target@ |
760 | +target_alias = @target_alias@ |
761 | +target_cpu = @target_cpu@ |
762 | +target_os = @target_os@ |
763 | +target_vendor = @target_vendor@ |
764 | +top_builddir = @top_builddir@ |
765 | +top_srcdir = @top_srcdir@ |
766 | +AUTOMAKE_OPTIONS = gnu |
767 | +EXTRA_DIST = autogen.sh ceph.spec.in |
768 | +SUBDIRS = src man |
769 | +all: all-recursive |
770 | + |
771 | +.SUFFIXES: |
772 | +am--refresh: |
773 | + @: |
774 | +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) |
775 | + @for dep in $?; do \ |
776 | + case '$(am__configure_deps)' in \ |
777 | + *$$dep*) \ |
778 | + echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \ |
779 | + cd $(srcdir) && $(AUTOMAKE) --gnu \ |
780 | + && exit 0; \ |
781 | + exit 1;; \ |
782 | + esac; \ |
783 | + done; \ |
784 | + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ |
785 | + cd $(top_srcdir) && \ |
786 | + $(AUTOMAKE) --gnu Makefile |
787 | +.PRECIOUS: Makefile |
788 | +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status |
789 | + @case '$?' in \ |
790 | + *config.status*) \ |
791 | + echo ' $(SHELL) ./config.status'; \ |
792 | + $(SHELL) ./config.status;; \ |
793 | + *) \ |
794 | + echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ |
795 | + cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ |
796 | + esac; |
797 | + |
798 | +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) |
799 | + $(SHELL) ./config.status --recheck |
800 | + |
801 | +$(top_srcdir)/configure: $(am__configure_deps) |
802 | + cd $(srcdir) && $(AUTOCONF) |
803 | +$(ACLOCAL_M4): $(am__aclocal_m4_deps) |
804 | + cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) |
805 | +ceph.spec: $(top_builddir)/config.status $(srcdir)/ceph.spec.in |
806 | + cd $(top_builddir) && $(SHELL) ./config.status $@ |
807 | + |
808 | +mostlyclean-libtool: |
809 | + -rm -f *.lo |
810 | + |
811 | +clean-libtool: |
812 | + -rm -rf .libs _libs |
813 | + |
814 | +distclean-libtool: |
815 | + -rm -f libtool |
816 | + |
817 | +# This directory's subdirectories are mostly independent; you can cd |
818 | +# into them and run `make' without going through this Makefile. |
819 | +# To change the values of `make' variables: instead of editing Makefiles, |
820 | +# (1) if the variable is set in `config.status', edit `config.status' |
821 | +# (which will cause the Makefiles to be regenerated when you run `make'); |
822 | +# (2) otherwise, pass the desired values on the `make' command line. |
823 | +$(RECURSIVE_TARGETS): |
824 | + @failcom='exit 1'; \ |
825 | + for f in x $$MAKEFLAGS; do \ |
826 | + case $$f in \ |
827 | + *=* | --[!k]*);; \ |
828 | + *k*) failcom='fail=yes';; \ |
829 | + esac; \ |
830 | + done; \ |
831 | + dot_seen=no; \ |
832 | + target=`echo $@ | sed s/-recursive//`; \ |
833 | + list='$(SUBDIRS)'; for subdir in $$list; do \ |
834 | + echo "Making $$target in $$subdir"; \ |
835 | + if test "$$subdir" = "."; then \ |
836 | + dot_seen=yes; \ |
837 | + local_target="$$target-am"; \ |
838 | + else \ |
839 | + local_target="$$target"; \ |
840 | + fi; \ |
841 | + (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ |
842 | + || eval $$failcom; \ |
843 | + done; \ |
844 | + if test "$$dot_seen" = "no"; then \ |
845 | + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ |
846 | + fi; test -z "$$fail" |
847 | + |
848 | +$(RECURSIVE_CLEAN_TARGETS): |
849 | + @failcom='exit 1'; \ |
850 | + for f in x $$MAKEFLAGS; do \ |
851 | + case $$f in \ |
852 | + *=* | --[!k]*);; \ |
853 | + *k*) failcom='fail=yes';; \ |
854 | + esac; \ |
855 | + done; \ |
856 | + dot_seen=no; \ |
857 | + case "$@" in \ |
858 | + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ |
859 | + *) list='$(SUBDIRS)' ;; \ |
860 | + esac; \ |
861 | + rev=''; for subdir in $$list; do \ |
862 | + if test "$$subdir" = "."; then :; else \ |
863 | + rev="$$subdir $$rev"; \ |
864 | + fi; \ |
865 | + done; \ |
866 | + rev="$$rev ."; \ |
867 | + target=`echo $@ | sed s/-recursive//`; \ |
868 | + for subdir in $$rev; do \ |
869 | + echo "Making $$target in $$subdir"; \ |
870 | + if test "$$subdir" = "."; then \ |
871 | + local_target="$$target-am"; \ |
872 | + else \ |
873 | + local_target="$$target"; \ |
874 | + fi; \ |
875 | + (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ |
876 | + || eval $$failcom; \ |
877 | + done && test -z "$$fail" |
878 | +tags-recursive: |
879 | + list='$(SUBDIRS)'; for subdir in $$list; do \ |
880 | + test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ |
881 | + done |
882 | +ctags-recursive: |
883 | + list='$(SUBDIRS)'; for subdir in $$list; do \ |
884 | + test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ |
885 | + done |
886 | + |
887 | +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) |
888 | + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ |
889 | + unique=`for i in $$list; do \ |
890 | + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ |
891 | + done | \ |
892 | + $(AWK) '{ files[$$0] = 1; nonemtpy = 1; } \ |
893 | + END { if (nonempty) { for (i in files) print i; }; }'`; \ |
894 | + mkid -fID $$unique |
895 | +tags: TAGS |
896 | + |
897 | +TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ |
898 | + $(TAGS_FILES) $(LISP) |
899 | + tags=; \ |
900 | + here=`pwd`; \ |
901 | + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ |
902 | + include_option=--etags-include; \ |
903 | + empty_fix=.; \ |
904 | + else \ |
905 | + include_option=--include; \ |
906 | + empty_fix=; \ |
907 | + fi; \ |
908 | + list='$(SUBDIRS)'; for subdir in $$list; do \ |
909 | + if test "$$subdir" = .; then :; else \ |
910 | + test ! -f $$subdir/TAGS || \ |
911 | + tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ |
912 | + fi; \ |
913 | + done; \ |
914 | + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ |
915 | + unique=`for i in $$list; do \ |
916 | + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ |
917 | + done | \ |
918 | + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ |
919 | + END { if (nonempty) { for (i in files) print i; }; }'`; \ |
920 | + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ |
921 | + test -n "$$unique" || unique=$$empty_fix; \ |
922 | + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ |
923 | + $$tags $$unique; \ |
924 | + fi |
925 | +ctags: CTAGS |
926 | +CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ |
927 | + $(TAGS_FILES) $(LISP) |
928 | + tags=; \ |
929 | + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ |
930 | + unique=`for i in $$list; do \ |
931 | + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ |
932 | + done | \ |
933 | + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ |
934 | + END { if (nonempty) { for (i in files) print i; }; }'`; \ |
935 | + test -z "$(CTAGS_ARGS)$$tags$$unique" \ |
936 | + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ |
937 | + $$tags $$unique |
938 | + |
939 | +GTAGS: |
940 | + here=`$(am__cd) $(top_builddir) && pwd` \ |
941 | + && cd $(top_srcdir) \ |
942 | + && gtags -i $(GTAGS_ARGS) $$here |
943 | + |
944 | +distclean-tags: |
945 | + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags |
946 | + |
947 | +distdir: $(DISTFILES) |
948 | + $(am__remove_distdir) |
949 | + test -d $(distdir) || mkdir $(distdir) |
950 | + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ |
951 | + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ |
952 | + list='$(DISTFILES)'; \ |
953 | + dist_files=`for file in $$list; do echo $$file; done | \ |
954 | + sed -e "s|^$$srcdirstrip/||;t" \ |
955 | + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ |
956 | + case $$dist_files in \ |
957 | + */*) $(MKDIR_P) `echo "$$dist_files" | \ |
958 | + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ |
959 | + sort -u` ;; \ |
960 | + esac; \ |
961 | + for file in $$dist_files; do \ |
962 | + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ |
963 | + if test -d $$d/$$file; then \ |
964 | + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ |
965 | + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ |
966 | + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ |
967 | + fi; \ |
968 | + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ |
969 | + else \ |
970 | + test -f $(distdir)/$$file \ |
971 | + || cp -p $$d/$$file $(distdir)/$$file \ |
972 | + || exit 1; \ |
973 | + fi; \ |
974 | + done |
975 | + list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ |
976 | + if test "$$subdir" = .; then :; else \ |
977 | + test -d "$(distdir)/$$subdir" \ |
978 | + || $(MKDIR_P) "$(distdir)/$$subdir" \ |
979 | + || exit 1; \ |
980 | + distdir=`$(am__cd) $(distdir) && pwd`; \ |
981 | + top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ |
982 | + (cd $$subdir && \ |
983 | + $(MAKE) $(AM_MAKEFLAGS) \ |
984 | + top_distdir="$$top_distdir" \ |
985 | + distdir="$$distdir/$$subdir" \ |
986 | + am__remove_distdir=: \ |
987 | + am__skip_length_check=: \ |
988 | + distdir) \ |
989 | + || exit 1; \ |
990 | + fi; \ |
991 | + done |
992 | + -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ |
993 | + ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ |
994 | + ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ |
995 | + ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ |
996 | + || chmod -R a+r $(distdir) |
997 | +dist-gzip: distdir |
998 | + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz |
999 | + $(am__remove_distdir) |
1000 | + |
1001 | +dist-bzip2: distdir |
1002 | + tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 |
1003 | + $(am__remove_distdir) |
1004 | + |
1005 | +dist-lzma: distdir |
1006 | + tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma |
1007 | + $(am__remove_distdir) |
1008 | + |
1009 | +dist-tarZ: distdir |
1010 | + tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z |
1011 | + $(am__remove_distdir) |
1012 | + |
1013 | +dist-shar: distdir |
1014 | + shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz |
1015 | + $(am__remove_distdir) |
1016 | + |
1017 | +dist-zip: distdir |
1018 | + -rm -f $(distdir).zip |
1019 | + zip -rq $(distdir).zip $(distdir) |
1020 | + $(am__remove_distdir) |
1021 | + |
1022 | +dist dist-all: distdir |
1023 | + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz |
1024 | + $(am__remove_distdir) |
1025 | + |
1026 | +# This target untars the dist file and tries a VPATH configuration. Then |
1027 | +# it guarantees that the distribution is self-contained by making another |
1028 | +# tarfile. |
1029 | +distcheck: dist |
1030 | + case '$(DIST_ARCHIVES)' in \ |
1031 | + *.tar.gz*) \ |
1032 | + GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\ |
1033 | + *.tar.bz2*) \ |
1034 | + bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\ |
1035 | + *.tar.lzma*) \ |
1036 | + unlzma -c $(distdir).tar.lzma | $(am__untar) ;;\ |
1037 | + *.tar.Z*) \ |
1038 | + uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ |
1039 | + *.shar.gz*) \ |
1040 | + GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\ |
1041 | + *.zip*) \ |
1042 | + unzip $(distdir).zip ;;\ |
1043 | + esac |
1044 | + chmod -R a-w $(distdir); chmod a+w $(distdir) |
1045 | + mkdir $(distdir)/_build |
1046 | + mkdir $(distdir)/_inst |
1047 | + chmod a-w $(distdir) |
1048 | + dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ |
1049 | + && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ |
1050 | + && cd $(distdir)/_build \ |
1051 | + && ../configure --srcdir=.. --prefix="$$dc_install_base" \ |
1052 | + $(DISTCHECK_CONFIGURE_FLAGS) \ |
1053 | + && $(MAKE) $(AM_MAKEFLAGS) \ |
1054 | + && $(MAKE) $(AM_MAKEFLAGS) dvi \ |
1055 | + && $(MAKE) $(AM_MAKEFLAGS) check \ |
1056 | + && $(MAKE) $(AM_MAKEFLAGS) install \ |
1057 | + && $(MAKE) $(AM_MAKEFLAGS) installcheck \ |
1058 | + && $(MAKE) $(AM_MAKEFLAGS) uninstall \ |
1059 | + && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ |
1060 | + distuninstallcheck \ |
1061 | + && chmod -R a-w "$$dc_install_base" \ |
1062 | + && ({ \ |
1063 | + (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ |
1064 | + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ |
1065 | + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ |
1066 | + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ |
1067 | + distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ |
1068 | + } || { rm -rf "$$dc_destdir"; exit 1; }) \ |
1069 | + && rm -rf "$$dc_destdir" \ |
1070 | + && $(MAKE) $(AM_MAKEFLAGS) dist \ |
1071 | + && rm -rf $(DIST_ARCHIVES) \ |
1072 | + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck |
1073 | + $(am__remove_distdir) |
1074 | + @(echo "$(distdir) archives ready for distribution: "; \ |
1075 | + list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ |
1076 | + sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' |
1077 | +distuninstallcheck: |
1078 | + @cd $(distuninstallcheck_dir) \ |
1079 | + && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ |
1080 | + || { echo "ERROR: files left after uninstall:" ; \ |
1081 | + if test -n "$(DESTDIR)"; then \ |
1082 | + echo " (check DESTDIR support)"; \ |
1083 | + fi ; \ |
1084 | + $(distuninstallcheck_listfiles) ; \ |
1085 | + exit 1; } >&2 |
1086 | +distcleancheck: distclean |
1087 | + @if test '$(srcdir)' = . ; then \ |
1088 | + echo "ERROR: distcleancheck can only run from a VPATH build" ; \ |
1089 | + exit 1 ; \ |
1090 | + fi |
1091 | + @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ |
1092 | + || { echo "ERROR: files left in build directory after distclean:" ; \ |
1093 | + $(distcleancheck_listfiles) ; \ |
1094 | + exit 1; } >&2 |
1095 | +check-am: all-am |
1096 | +check: check-recursive |
1097 | +all-am: Makefile |
1098 | +installdirs: installdirs-recursive |
1099 | +installdirs-am: |
1100 | +install: install-recursive |
1101 | +install-exec: install-exec-recursive |
1102 | +install-data: install-data-recursive |
1103 | +uninstall: uninstall-recursive |
1104 | + |
1105 | +install-am: all-am |
1106 | + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am |
1107 | + |
1108 | +installcheck: installcheck-recursive |
1109 | +install-strip: |
1110 | + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ |
1111 | + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ |
1112 | + `test -z '$(STRIP)' || \ |
1113 | + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install |
1114 | +mostlyclean-generic: |
1115 | + |
1116 | +clean-generic: |
1117 | + |
1118 | +distclean-generic: |
1119 | + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) |
1120 | + |
1121 | +maintainer-clean-generic: |
1122 | + @echo "This command is intended for maintainers to use" |
1123 | + @echo "it deletes files that may require special tools to rebuild." |
1124 | +clean: clean-recursive |
1125 | + |
1126 | +clean-am: clean-generic clean-libtool mostlyclean-am |
1127 | + |
1128 | +distclean: distclean-recursive |
1129 | + -rm -f $(am__CONFIG_DISTCLEAN_FILES) |
1130 | + -rm -f Makefile |
1131 | +distclean-am: clean-am distclean-generic distclean-libtool \ |
1132 | + distclean-tags |
1133 | + |
1134 | +dvi: dvi-recursive |
1135 | + |
1136 | +dvi-am: |
1137 | + |
1138 | +html: html-recursive |
1139 | + |
1140 | +info: info-recursive |
1141 | + |
1142 | +info-am: |
1143 | + |
1144 | +install-data-am: |
1145 | + |
1146 | +install-dvi: install-dvi-recursive |
1147 | + |
1148 | +install-exec-am: |
1149 | + |
1150 | +install-html: install-html-recursive |
1151 | + |
1152 | +install-info: install-info-recursive |
1153 | + |
1154 | +install-man: |
1155 | + |
1156 | +install-pdf: install-pdf-recursive |
1157 | + |
1158 | +install-ps: install-ps-recursive |
1159 | + |
1160 | +installcheck-am: |
1161 | + |
1162 | +maintainer-clean: maintainer-clean-recursive |
1163 | + -rm -f $(am__CONFIG_DISTCLEAN_FILES) |
1164 | + -rm -rf $(top_srcdir)/autom4te.cache |
1165 | + -rm -f Makefile |
1166 | +maintainer-clean-am: distclean-am maintainer-clean-generic |
1167 | + |
1168 | +mostlyclean: mostlyclean-recursive |
1169 | + |
1170 | +mostlyclean-am: mostlyclean-generic mostlyclean-libtool |
1171 | + |
1172 | +pdf: pdf-recursive |
1173 | + |
1174 | +pdf-am: |
1175 | + |
1176 | +ps: ps-recursive |
1177 | + |
1178 | +ps-am: |
1179 | + |
1180 | +uninstall-am: |
1181 | + |
1182 | +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \ |
1183 | + install-strip |
1184 | + |
1185 | +.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ |
1186 | + all all-am am--refresh check check-am clean clean-generic \ |
1187 | + clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \ |
1188 | + dist-gzip dist-lzma dist-shar dist-tarZ dist-zip distcheck \ |
1189 | + distclean distclean-generic distclean-libtool distclean-tags \ |
1190 | + distcleancheck distdir distuninstallcheck dvi dvi-am html \ |
1191 | + html-am info info-am install install-am install-data \ |
1192 | + install-data-am install-dvi install-dvi-am install-exec \ |
1193 | + install-exec-am install-html install-html-am install-info \ |
1194 | + install-info-am install-man install-pdf install-pdf-am \ |
1195 | + install-ps install-ps-am install-strip installcheck \ |
1196 | + installcheck-am installdirs installdirs-am maintainer-clean \ |
1197 | + maintainer-clean-generic mostlyclean mostlyclean-generic \ |
1198 | + mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \ |
1199 | + uninstall uninstall-am |
1200 | + |
1201 | +# Tell versions [3.59,3.63) of GNU make to not export all variables. |
1202 | +# Otherwise a system limit (for SysV at least) may be exceeded. |
1203 | +.NOEXPORT: |
1204 | |
1205 | === added file 'NEWS' |
1206 | === added file 'README' |
1207 | --- README 1970-01-01 00:00:00 +0000 |
1208 | +++ README 2010-08-05 18:02:40 +0000 |
1209 | @@ -0,0 +1,42 @@ |
1210 | +Ceph - a scalable distributed file system |
1211 | +----------------------------------------- |
1212 | + |
1213 | +Please see http://ceph.newdream.net/ for current info. |
1214 | + |
1215 | +---- |
1216 | + |
1217 | +To build the server daemons, and FUSE client, |
1218 | + |
1219 | +$ ./autogen.sh |
1220 | +$ ./configure |
1221 | + |
1222 | +$ make |
1223 | + or |
1224 | +$ cd src |
1225 | +$ make |
1226 | + |
1227 | +(Note that the FUSE client will only be built if libfuse is present.) |
1228 | + |
1229 | +---- |
1230 | + |
1231 | +A quick summary of binaries that will be built in src/ |
1232 | + |
1233 | +daemons: |
1234 | + cmon -- monitor daemon. handles cluster state and configuration |
1235 | + information. |
1236 | + cosd -- storage daemon. stores objects on a given block device. |
1237 | + cmds -- metadata daemon. handles file system namespace. |
1238 | + ceph -- send management commands to the monitor cluster. |
1239 | + |
1240 | +userland clients: |
1241 | + cfuse -- fuse client. |
1242 | + csyn -- synthetic workload generator client. |
1243 | + |
1244 | +tools: |
1245 | + monmaptool -- create/edit mon map |
1246 | + osdmaptool -- create/edit osd map |
1247 | + crushtool -- create/edit crush map |
1248 | + |
1249 | +scripts: |
1250 | + mkcephfs -- cluster mkfs tool |
1251 | + init-ceph -- init.d start/stop script |
1252 | |
1253 | === removed file 'REMOVE-ME' |
1254 | === added file 'aclocal.m4' |
1255 | --- aclocal.m4 1970-01-01 00:00:00 +0000 |
1256 | +++ aclocal.m4 2010-08-05 18:02:40 +0000 |
1257 | @@ -0,0 +1,7554 @@ |
1258 | +# generated automatically by aclocal 1.10.1 -*- Autoconf -*- |
1259 | + |
1260 | +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, |
1261 | +# 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
1262 | +# This file is free software; the Free Software Foundation |
1263 | +# gives unlimited permission to copy and/or distribute it, |
1264 | +# with or without modifications, as long as this notice is preserved. |
1265 | + |
1266 | +# This program is distributed in the hope that it will be useful, |
1267 | +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without |
1268 | +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
1269 | +# PARTICULAR PURPOSE. |
1270 | + |
1271 | +m4_ifndef([AC_AUTOCONF_VERSION], |
1272 | + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
1273 | +m4_if(AC_AUTOCONF_VERSION, [2.61],, |
1274 | +[m4_warning([this file was generated for autoconf 2.61. |
1275 | +You have another version of autoconf. It may work, but is not guaranteed to. |
1276 | +If you have problems, you may need to regenerate the build system entirely. |
1277 | +To do so, use the procedure documented by the package, typically `autoreconf'.])]) |
1278 | + |
1279 | +# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- |
1280 | + |
1281 | +# serial 52 Debian 1.5.26-4 AC_PROG_LIBTOOL |
1282 | + |
1283 | + |
1284 | +# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) |
1285 | +# ----------------------------------------------------------- |
1286 | +# If this macro is not defined by Autoconf, define it here. |
1287 | +m4_ifdef([AC_PROVIDE_IFELSE], |
1288 | + [], |
1289 | + [m4_define([AC_PROVIDE_IFELSE], |
1290 | + [m4_ifdef([AC_PROVIDE_$1], |
1291 | + [$2], [$3])])]) |
1292 | + |
1293 | + |
1294 | +# AC_PROG_LIBTOOL |
1295 | +# --------------- |
1296 | +AC_DEFUN([AC_PROG_LIBTOOL], |
1297 | +[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl |
1298 | +dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX |
1299 | +dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX. |
1300 | + AC_PROVIDE_IFELSE([AC_PROG_CXX], |
1301 | + [AC_LIBTOOL_CXX], |
1302 | + [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX |
1303 | + ])]) |
1304 | +dnl And a similar setup for Fortran 77 support |
1305 | + AC_PROVIDE_IFELSE([AC_PROG_F77], |
1306 | + [AC_LIBTOOL_F77], |
1307 | + [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77 |
1308 | +])]) |
1309 | + |
1310 | +dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly. |
1311 | +dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run |
1312 | +dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both. |
1313 | + AC_PROVIDE_IFELSE([AC_PROG_GCJ], |
1314 | + [AC_LIBTOOL_GCJ], |
1315 | + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], |
1316 | + [AC_LIBTOOL_GCJ], |
1317 | + [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ], |
1318 | + [AC_LIBTOOL_GCJ], |
1319 | + [ifdef([AC_PROG_GCJ], |
1320 | + [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])]) |
1321 | + ifdef([A][M_PROG_GCJ], |
1322 | + [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])]) |
1323 | + ifdef([LT_AC_PROG_GCJ], |
1324 | + [define([LT_AC_PROG_GCJ], |
1325 | + defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])]) |
1326 | +])])# AC_PROG_LIBTOOL |
1327 | + |
1328 | + |
1329 | +# _AC_PROG_LIBTOOL |
1330 | +# ---------------- |
1331 | +AC_DEFUN([_AC_PROG_LIBTOOL], |
1332 | +[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl |
1333 | +AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl |
1334 | +AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl |
1335 | +AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl |
1336 | + |
1337 | +# This can be used to rebuild libtool when needed |
1338 | +LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
1339 | + |
1340 | +# Always use our own libtool. |
1341 | +LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
1342 | +AC_SUBST(LIBTOOL)dnl |
1343 | + |
1344 | +# Prevent multiple expansion |
1345 | +define([AC_PROG_LIBTOOL], []) |
1346 | +])# _AC_PROG_LIBTOOL |
1347 | + |
1348 | + |
1349 | +# AC_LIBTOOL_SETUP |
1350 | +# ---------------- |
1351 | +AC_DEFUN([AC_LIBTOOL_SETUP], |
1352 | +[AC_PREREQ(2.50)dnl |
1353 | +AC_REQUIRE([AC_ENABLE_SHARED])dnl |
1354 | +AC_REQUIRE([AC_ENABLE_STATIC])dnl |
1355 | +AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl |
1356 | +AC_REQUIRE([AC_CANONICAL_HOST])dnl |
1357 | +AC_REQUIRE([AC_CANONICAL_BUILD])dnl |
1358 | +AC_REQUIRE([AC_PROG_CC])dnl |
1359 | +AC_REQUIRE([AC_PROG_LD])dnl |
1360 | +AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl |
1361 | +AC_REQUIRE([AC_PROG_NM])dnl |
1362 | + |
1363 | +AC_REQUIRE([AC_PROG_LN_S])dnl |
1364 | +AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl |
1365 | +# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
1366 | +AC_REQUIRE([AC_OBJEXT])dnl |
1367 | +AC_REQUIRE([AC_EXEEXT])dnl |
1368 | +dnl |
1369 | +AC_LIBTOOL_SYS_MAX_CMD_LEN |
1370 | +AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE |
1371 | +AC_LIBTOOL_OBJDIR |
1372 | + |
1373 | +AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl |
1374 | +_LT_AC_PROG_ECHO_BACKSLASH |
1375 | + |
1376 | +case $host_os in |
1377 | +aix3*) |
1378 | + # AIX sometimes has problems with the GCC collect2 program. For some |
1379 | + # reason, if we set the COLLECT_NAMES environment variable, the problems |
1380 | + # vanish in a puff of smoke. |
1381 | + if test "X${COLLECT_NAMES+set}" != Xset; then |
1382 | + COLLECT_NAMES= |
1383 | + export COLLECT_NAMES |
1384 | + fi |
1385 | + ;; |
1386 | +esac |
1387 | + |
1388 | +# Sed substitution that helps us do robust quoting. It backslashifies |
1389 | +# metacharacters that are still active within double-quoted strings. |
1390 | +Xsed='sed -e 1s/^X//' |
1391 | +[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] |
1392 | + |
1393 | +# Same as above, but do not quote variable references. |
1394 | +[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'] |
1395 | + |
1396 | +# Sed substitution to delay expansion of an escaped shell variable in a |
1397 | +# double_quote_subst'ed string. |
1398 | +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
1399 | + |
1400 | +# Sed substitution to avoid accidental globbing in evaled expressions |
1401 | +no_glob_subst='s/\*/\\\*/g' |
1402 | + |
1403 | +# Constants: |
1404 | +rm="rm -f" |
1405 | + |
1406 | +# Global variables: |
1407 | +default_ofile=libtool |
1408 | +can_build_shared=yes |
1409 | + |
1410 | +# All known linkers require a `.a' archive for static linking (except MSVC, |
1411 | +# which needs '.lib'). |
1412 | +libext=a |
1413 | +ltmain="$ac_aux_dir/ltmain.sh" |
1414 | +ofile="$default_ofile" |
1415 | +with_gnu_ld="$lt_cv_prog_gnu_ld" |
1416 | + |
1417 | +AC_CHECK_TOOL(AR, ar, false) |
1418 | +AC_CHECK_TOOL(RANLIB, ranlib, :) |
1419 | +AC_CHECK_TOOL(STRIP, strip, :) |
1420 | + |
1421 | +old_CC="$CC" |
1422 | +old_CFLAGS="$CFLAGS" |
1423 | + |
1424 | +# Set sane defaults for various variables |
1425 | +test -z "$AR" && AR=ar |
1426 | +test -z "$AR_FLAGS" && AR_FLAGS=cru |
1427 | +test -z "$AS" && AS=as |
1428 | +test -z "$CC" && CC=cc |
1429 | +test -z "$LTCC" && LTCC=$CC |
1430 | +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
1431 | +test -z "$DLLTOOL" && DLLTOOL=dlltool |
1432 | +test -z "$LD" && LD=ld |
1433 | +test -z "$LN_S" && LN_S="ln -s" |
1434 | +test -z "$MAGIC_CMD" && MAGIC_CMD=file |
1435 | +test -z "$NM" && NM=nm |
1436 | +test -z "$SED" && SED=sed |
1437 | +test -z "$OBJDUMP" && OBJDUMP=objdump |
1438 | +test -z "$RANLIB" && RANLIB=: |
1439 | +test -z "$STRIP" && STRIP=: |
1440 | +test -z "$ac_objext" && ac_objext=o |
1441 | + |
1442 | +# Determine commands to create old-style static archives. |
1443 | +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
1444 | +old_postinstall_cmds='chmod 644 $oldlib' |
1445 | +old_postuninstall_cmds= |
1446 | + |
1447 | +if test -n "$RANLIB"; then |
1448 | + case $host_os in |
1449 | + openbsd*) |
1450 | + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
1451 | + ;; |
1452 | + *) |
1453 | + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
1454 | + ;; |
1455 | + esac |
1456 | + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
1457 | +fi |
1458 | + |
1459 | +_LT_CC_BASENAME([$compiler]) |
1460 | + |
1461 | +# Only perform the check for file, if the check method requires it |
1462 | +case $deplibs_check_method in |
1463 | +file_magic*) |
1464 | + if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
1465 | + AC_PATH_MAGIC |
1466 | + fi |
1467 | + ;; |
1468 | +esac |
1469 | + |
1470 | +_LT_REQUIRED_DARWIN_CHECKS |
1471 | + |
1472 | +AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) |
1473 | +AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], |
1474 | +enable_win32_dll=yes, enable_win32_dll=no) |
1475 | + |
1476 | +AC_ARG_ENABLE([libtool-lock], |
1477 | + [AC_HELP_STRING([--disable-libtool-lock], |
1478 | + [avoid locking (might break parallel builds)])]) |
1479 | +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
1480 | + |
1481 | +AC_ARG_WITH([pic], |
1482 | + [AC_HELP_STRING([--with-pic], |
1483 | + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], |
1484 | + [pic_mode="$withval"], |
1485 | + [pic_mode=default]) |
1486 | +test -z "$pic_mode" && pic_mode=default |
1487 | + |
1488 | +# Use C for the default configuration in the libtool script |
1489 | +tagname= |
1490 | +AC_LIBTOOL_LANG_C_CONFIG |
1491 | +_LT_AC_TAGCONFIG |
1492 | +])# AC_LIBTOOL_SETUP |
1493 | + |
1494 | + |
1495 | +# _LT_AC_SYS_COMPILER |
1496 | +# ------------------- |
1497 | +AC_DEFUN([_LT_AC_SYS_COMPILER], |
1498 | +[AC_REQUIRE([AC_PROG_CC])dnl |
1499 | + |
1500 | +# If no C compiler was specified, use CC. |
1501 | +LTCC=${LTCC-"$CC"} |
1502 | + |
1503 | +# If no C compiler flags were specified, use CFLAGS. |
1504 | +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
1505 | + |
1506 | +# Allow CC to be a program name with arguments. |
1507 | +compiler=$CC |
1508 | +])# _LT_AC_SYS_COMPILER |
1509 | + |
1510 | + |
1511 | +# _LT_CC_BASENAME(CC) |
1512 | +# ------------------- |
1513 | +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. |
1514 | +AC_DEFUN([_LT_CC_BASENAME], |
1515 | +[for cc_temp in $1""; do |
1516 | + case $cc_temp in |
1517 | + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; |
1518 | + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; |
1519 | + \-*) ;; |
1520 | + *) break;; |
1521 | + esac |
1522 | +done |
1523 | +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
1524 | +]) |
1525 | + |
1526 | + |
1527 | +# _LT_COMPILER_BOILERPLATE |
1528 | +# ------------------------ |
1529 | +# Check for compiler boilerplate output or warnings with |
1530 | +# the simple compiler test code. |
1531 | +AC_DEFUN([_LT_COMPILER_BOILERPLATE], |
1532 | +[AC_REQUIRE([LT_AC_PROG_SED])dnl |
1533 | +ac_outfile=conftest.$ac_objext |
1534 | +echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
1535 | +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
1536 | +_lt_compiler_boilerplate=`cat conftest.err` |
1537 | +$rm conftest* |
1538 | +])# _LT_COMPILER_BOILERPLATE |
1539 | + |
1540 | + |
1541 | +# _LT_LINKER_BOILERPLATE |
1542 | +# ---------------------- |
1543 | +# Check for linker boilerplate output or warnings with |
1544 | +# the simple link test code. |
1545 | +AC_DEFUN([_LT_LINKER_BOILERPLATE], |
1546 | +[AC_REQUIRE([LT_AC_PROG_SED])dnl |
1547 | +ac_outfile=conftest.$ac_objext |
1548 | +echo "$lt_simple_link_test_code" >conftest.$ac_ext |
1549 | +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
1550 | +_lt_linker_boilerplate=`cat conftest.err` |
1551 | +$rm -r conftest* |
1552 | +])# _LT_LINKER_BOILERPLATE |
1553 | + |
1554 | +# _LT_REQUIRED_DARWIN_CHECKS |
1555 | +# -------------------------- |
1556 | +# Check for some things on darwin |
1557 | +AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[ |
1558 | + case $host_os in |
1559 | + rhapsody* | darwin*) |
1560 | + AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) |
1561 | + AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) |
1562 | + |
1563 | + AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], |
1564 | + [lt_cv_apple_cc_single_mod=no |
1565 | + if test -z "${LT_MULTI_MODULE}"; then |
1566 | + # By default we will add the -single_module flag. You can override |
1567 | + # by either setting the environment variable LT_MULTI_MODULE |
1568 | + # non-empty at configure time, or by adding -multi_module to the |
1569 | + # link flags. |
1570 | + echo "int foo(void){return 1;}" > conftest.c |
1571 | + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
1572 | + -dynamiclib ${wl}-single_module conftest.c |
1573 | + if test -f libconftest.dylib; then |
1574 | + lt_cv_apple_cc_single_mod=yes |
1575 | + rm -rf libconftest.dylib* |
1576 | + fi |
1577 | + rm conftest.c |
1578 | + fi]) |
1579 | + AC_CACHE_CHECK([for -exported_symbols_list linker flag], |
1580 | + [lt_cv_ld_exported_symbols_list], |
1581 | + [lt_cv_ld_exported_symbols_list=no |
1582 | + save_LDFLAGS=$LDFLAGS |
1583 | + echo "_main" > conftest.sym |
1584 | + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
1585 | + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], |
1586 | + [lt_cv_ld_exported_symbols_list=yes], |
1587 | + [lt_cv_ld_exported_symbols_list=no]) |
1588 | + LDFLAGS="$save_LDFLAGS" |
1589 | + ]) |
1590 | + case $host_os in |
1591 | + rhapsody* | darwin1.[[0123]]) |
1592 | + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
1593 | + darwin1.*) |
1594 | + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
1595 | + darwin*) |
1596 | + # if running on 10.5 or later, the deployment target defaults |
1597 | + # to the OS version, if on x86, and 10.4, the deployment |
1598 | + # target defaults to 10.4. Don't you love it? |
1599 | + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
1600 | + 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) |
1601 | + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
1602 | + 10.[[012]]*) |
1603 | + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
1604 | + 10.*) |
1605 | + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
1606 | + esac |
1607 | + ;; |
1608 | + esac |
1609 | + if test "$lt_cv_apple_cc_single_mod" = "yes"; then |
1610 | + _lt_dar_single_mod='$single_module' |
1611 | + fi |
1612 | + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then |
1613 | + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' |
1614 | + else |
1615 | + _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}" |
1616 | + fi |
1617 | + if test "$DSYMUTIL" != ":"; then |
1618 | + _lt_dsymutil="~$DSYMUTIL \$lib || :" |
1619 | + else |
1620 | + _lt_dsymutil= |
1621 | + fi |
1622 | + ;; |
1623 | + esac |
1624 | +]) |
1625 | + |
1626 | +# _LT_AC_SYS_LIBPATH_AIX |
1627 | +# ---------------------- |
1628 | +# Links a minimal program and checks the executable |
1629 | +# for the system default hardcoded library path. In most cases, |
1630 | +# this is /usr/lib:/lib, but when the MPI compilers are used |
1631 | +# the location of the communication and MPI libs are included too. |
1632 | +# If we don't find anything, use the default library path according |
1633 | +# to the aix ld manual. |
1634 | +AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], |
1635 | +[AC_REQUIRE([LT_AC_PROG_SED])dnl |
1636 | +AC_LINK_IFELSE(AC_LANG_PROGRAM,[ |
1637 | +lt_aix_libpath_sed=' |
1638 | + /Import File Strings/,/^$/ { |
1639 | + /^0/ { |
1640 | + s/^0 *\(.*\)$/\1/ |
1641 | + p |
1642 | + } |
1643 | + }' |
1644 | +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
1645 | +# Check for a 64-bit object if we didn't find anything. |
1646 | +if test -z "$aix_libpath"; then |
1647 | + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
1648 | +fi],[]) |
1649 | +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
1650 | +])# _LT_AC_SYS_LIBPATH_AIX |
1651 | + |
1652 | + |
1653 | +# _LT_AC_SHELL_INIT(ARG) |
1654 | +# ---------------------- |
1655 | +AC_DEFUN([_LT_AC_SHELL_INIT], |
1656 | +[ifdef([AC_DIVERSION_NOTICE], |
1657 | + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], |
1658 | + [AC_DIVERT_PUSH(NOTICE)]) |
1659 | +$1 |
1660 | +AC_DIVERT_POP |
1661 | +])# _LT_AC_SHELL_INIT |
1662 | + |
1663 | + |
1664 | +# _LT_AC_PROG_ECHO_BACKSLASH |
1665 | +# -------------------------- |
1666 | +# Add some code to the start of the generated configure script which |
1667 | +# will find an echo command which doesn't interpret backslashes. |
1668 | +AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], |
1669 | +[_LT_AC_SHELL_INIT([ |
1670 | +# Check that we are running under the correct shell. |
1671 | +SHELL=${CONFIG_SHELL-/bin/sh} |
1672 | + |
1673 | +case X$ECHO in |
1674 | +X*--fallback-echo) |
1675 | + # Remove one level of quotation (which was required for Make). |
1676 | + ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` |
1677 | + ;; |
1678 | +esac |
1679 | + |
1680 | +echo=${ECHO-echo} |
1681 | +if test "X[$]1" = X--no-reexec; then |
1682 | + # Discard the --no-reexec flag, and continue. |
1683 | + shift |
1684 | +elif test "X[$]1" = X--fallback-echo; then |
1685 | + # Avoid inline document here, it may be left over |
1686 | + : |
1687 | +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then |
1688 | + # Yippee, $echo works! |
1689 | + : |
1690 | +else |
1691 | + # Restart under the correct shell. |
1692 | + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} |
1693 | +fi |
1694 | + |
1695 | +if test "X[$]1" = X--fallback-echo; then |
1696 | + # used as fallback echo |
1697 | + shift |
1698 | + cat <<EOF |
1699 | +[$]* |
1700 | +EOF |
1701 | + exit 0 |
1702 | +fi |
1703 | + |
1704 | +# The HP-UX ksh and POSIX shell print the target directory to stdout |
1705 | +# if CDPATH is set. |
1706 | +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
1707 | + |
1708 | +if test -z "$ECHO"; then |
1709 | +if test "X${echo_test_string+set}" != Xset; then |
1710 | +# find a string as large as possible, as long as the shell can cope with it |
1711 | + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do |
1712 | + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
1713 | + if (echo_test_string=`eval $cmd`) 2>/dev/null && |
1714 | + echo_test_string=`eval $cmd` && |
1715 | + (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
1716 | + then |
1717 | + break |
1718 | + fi |
1719 | + done |
1720 | +fi |
1721 | + |
1722 | +if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
1723 | + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
1724 | + test "X$echo_testing_string" = "X$echo_test_string"; then |
1725 | + : |
1726 | +else |
1727 | + # The Solaris, AIX, and Digital Unix default echo programs unquote |
1728 | + # backslashes. This makes it impossible to quote backslashes using |
1729 | + # echo "$something" | sed 's/\\/\\\\/g' |
1730 | + # |
1731 | + # So, first we look for a working echo in the user's PATH. |
1732 | + |
1733 | + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
1734 | + for dir in $PATH /usr/ucb; do |
1735 | + IFS="$lt_save_ifs" |
1736 | + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
1737 | + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
1738 | + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
1739 | + test "X$echo_testing_string" = "X$echo_test_string"; then |
1740 | + echo="$dir/echo" |
1741 | + break |
1742 | + fi |
1743 | + done |
1744 | + IFS="$lt_save_ifs" |
1745 | + |
1746 | + if test "X$echo" = Xecho; then |
1747 | + # We didn't find a better echo, so look for alternatives. |
1748 | + if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
1749 | + echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
1750 | + test "X$echo_testing_string" = "X$echo_test_string"; then |
1751 | + # This shell has a builtin print -r that does the trick. |
1752 | + echo='print -r' |
1753 | + elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
1754 | + test "X$CONFIG_SHELL" != X/bin/ksh; then |
1755 | + # If we have ksh, try running configure again with it. |
1756 | + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
1757 | + export ORIGINAL_CONFIG_SHELL |
1758 | + CONFIG_SHELL=/bin/ksh |
1759 | + export CONFIG_SHELL |
1760 | + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} |
1761 | + else |
1762 | + # Try using printf. |
1763 | + echo='printf %s\n' |
1764 | + if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
1765 | + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
1766 | + test "X$echo_testing_string" = "X$echo_test_string"; then |
1767 | + # Cool, printf works |
1768 | + : |
1769 | + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && |
1770 | + test "X$echo_testing_string" = 'X\t' && |
1771 | + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
1772 | + test "X$echo_testing_string" = "X$echo_test_string"; then |
1773 | + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
1774 | + export CONFIG_SHELL |
1775 | + SHELL="$CONFIG_SHELL" |
1776 | + export SHELL |
1777 | + echo="$CONFIG_SHELL [$]0 --fallback-echo" |
1778 | + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && |
1779 | + test "X$echo_testing_string" = 'X\t' && |
1780 | + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
1781 | + test "X$echo_testing_string" = "X$echo_test_string"; then |
1782 | + echo="$CONFIG_SHELL [$]0 --fallback-echo" |
1783 | + else |
1784 | + # maybe with a smaller string... |
1785 | + prev=: |
1786 | + |
1787 | + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do |
1788 | + if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
1789 | + then |
1790 | + break |
1791 | + fi |
1792 | + prev="$cmd" |
1793 | + done |
1794 | + |
1795 | + if test "$prev" != 'sed 50q "[$]0"'; then |
1796 | + echo_test_string=`eval $prev` |
1797 | + export echo_test_string |
1798 | + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} |
1799 | + else |
1800 | + # Oops. We lost completely, so just stick with echo. |
1801 | + echo=echo |
1802 | + fi |
1803 | + fi |
1804 | + fi |
1805 | + fi |
1806 | +fi |
1807 | +fi |
1808 | + |
1809 | +# Copy echo and quote the copy suitably for passing to libtool from |
1810 | +# the Makefile, instead of quoting the original, which is used later. |
1811 | +ECHO=$echo |
1812 | +if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then |
1813 | + ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" |
1814 | +fi |
1815 | + |
1816 | +AC_SUBST(ECHO) |
1817 | +])])# _LT_AC_PROG_ECHO_BACKSLASH |
1818 | + |
1819 | + |
1820 | +# _LT_AC_LOCK |
1821 | +# ----------- |
1822 | +AC_DEFUN([_LT_AC_LOCK], |
1823 | +[AC_ARG_ENABLE([libtool-lock], |
1824 | + [AC_HELP_STRING([--disable-libtool-lock], |
1825 | + [avoid locking (might break parallel builds)])]) |
1826 | +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
1827 | + |
1828 | +# Some flags need to be propagated to the compiler or linker for good |
1829 | +# libtool support. |
1830 | +case $host in |
1831 | +ia64-*-hpux*) |
1832 | + # Find out which ABI we are using. |
1833 | + echo 'int i;' > conftest.$ac_ext |
1834 | + if AC_TRY_EVAL(ac_compile); then |
1835 | + case `/usr/bin/file conftest.$ac_objext` in |
1836 | + *ELF-32*) |
1837 | + HPUX_IA64_MODE="32" |
1838 | + ;; |
1839 | + *ELF-64*) |
1840 | + HPUX_IA64_MODE="64" |
1841 | + ;; |
1842 | + esac |
1843 | + fi |
1844 | + rm -rf conftest* |
1845 | + ;; |
1846 | +*-*-irix6*) |
1847 | + # Find out which ABI we are using. |
1848 | + echo '[#]line __oline__ "configure"' > conftest.$ac_ext |
1849 | + if AC_TRY_EVAL(ac_compile); then |
1850 | + if test "$lt_cv_prog_gnu_ld" = yes; then |
1851 | + case `/usr/bin/file conftest.$ac_objext` in |
1852 | + *32-bit*) |
1853 | + LD="${LD-ld} -melf32bsmip" |
1854 | + ;; |
1855 | + *N32*) |
1856 | + LD="${LD-ld} -melf32bmipn32" |
1857 | + ;; |
1858 | + *64-bit*) |
1859 | + LD="${LD-ld} -melf64bmip" |
1860 | + ;; |
1861 | + esac |
1862 | + else |
1863 | + case `/usr/bin/file conftest.$ac_objext` in |
1864 | + *32-bit*) |
1865 | + LD="${LD-ld} -32" |
1866 | + ;; |
1867 | + *N32*) |
1868 | + LD="${LD-ld} -n32" |
1869 | + ;; |
1870 | + *64-bit*) |
1871 | + LD="${LD-ld} -64" |
1872 | + ;; |
1873 | + esac |
1874 | + fi |
1875 | + fi |
1876 | + rm -rf conftest* |
1877 | + ;; |
1878 | + |
1879 | +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
1880 | +s390*-*linux*|sparc*-*linux*) |
1881 | + # Find out which ABI we are using. |
1882 | + echo 'int i;' > conftest.$ac_ext |
1883 | + if AC_TRY_EVAL(ac_compile); then |
1884 | + case `/usr/bin/file conftest.o` in |
1885 | + *32-bit*) |
1886 | + case $host in |
1887 | + x86_64-*kfreebsd*-gnu) |
1888 | + LD="${LD-ld} -m elf_i386_fbsd" |
1889 | + ;; |
1890 | + x86_64-*linux*) |
1891 | + LD="${LD-ld} -m elf_i386" |
1892 | + ;; |
1893 | + ppc64-*linux*|powerpc64-*linux*) |
1894 | + LD="${LD-ld} -m elf32ppclinux" |
1895 | + ;; |
1896 | + s390x-*linux*) |
1897 | + LD="${LD-ld} -m elf_s390" |
1898 | + ;; |
1899 | + sparc64-*linux*) |
1900 | + LD="${LD-ld} -m elf32_sparc" |
1901 | + ;; |
1902 | + esac |
1903 | + ;; |
1904 | + *64-bit*) |
1905 | + case $host in |
1906 | + x86_64-*kfreebsd*-gnu) |
1907 | + LD="${LD-ld} -m elf_x86_64_fbsd" |
1908 | + ;; |
1909 | + x86_64-*linux*) |
1910 | + LD="${LD-ld} -m elf_x86_64" |
1911 | + ;; |
1912 | + ppc*-*linux*|powerpc*-*linux*) |
1913 | + LD="${LD-ld} -m elf64ppc" |
1914 | + ;; |
1915 | + s390*-*linux*) |
1916 | + LD="${LD-ld} -m elf64_s390" |
1917 | + ;; |
1918 | + sparc*-*linux*) |
1919 | + LD="${LD-ld} -m elf64_sparc" |
1920 | + ;; |
1921 | + esac |
1922 | + ;; |
1923 | + esac |
1924 | + fi |
1925 | + rm -rf conftest* |
1926 | + ;; |
1927 | + |
1928 | +*-*-sco3.2v5*) |
1929 | + # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
1930 | + SAVE_CFLAGS="$CFLAGS" |
1931 | + CFLAGS="$CFLAGS -belf" |
1932 | + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, |
1933 | + [AC_LANG_PUSH(C) |
1934 | + AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) |
1935 | + AC_LANG_POP]) |
1936 | + if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
1937 | + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
1938 | + CFLAGS="$SAVE_CFLAGS" |
1939 | + fi |
1940 | + ;; |
1941 | +sparc*-*solaris*) |
1942 | + # Find out which ABI we are using. |
1943 | + echo 'int i;' > conftest.$ac_ext |
1944 | + if AC_TRY_EVAL(ac_compile); then |
1945 | + case `/usr/bin/file conftest.o` in |
1946 | + *64-bit*) |
1947 | + case $lt_cv_prog_gnu_ld in |
1948 | + yes*) LD="${LD-ld} -m elf64_sparc" ;; |
1949 | + *) |
1950 | + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
1951 | + LD="${LD-ld} -64" |
1952 | + fi |
1953 | + ;; |
1954 | + esac |
1955 | + ;; |
1956 | + esac |
1957 | + fi |
1958 | + rm -rf conftest* |
1959 | + ;; |
1960 | + |
1961 | +AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], |
1962 | +[*-*-cygwin* | *-*-mingw* | *-*-pw32*) |
1963 | + AC_CHECK_TOOL(DLLTOOL, dlltool, false) |
1964 | + AC_CHECK_TOOL(AS, as, false) |
1965 | + AC_CHECK_TOOL(OBJDUMP, objdump, false) |
1966 | + ;; |
1967 | + ]) |
1968 | +esac |
1969 | + |
1970 | +need_locks="$enable_libtool_lock" |
1971 | + |
1972 | +])# _LT_AC_LOCK |
1973 | + |
1974 | + |
1975 | +# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, |
1976 | +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) |
1977 | +# ---------------------------------------------------------------- |
1978 | +# Check whether the given compiler option works |
1979 | +AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], |
1980 | +[AC_REQUIRE([LT_AC_PROG_SED]) |
1981 | +AC_CACHE_CHECK([$1], [$2], |
1982 | + [$2=no |
1983 | + ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) |
1984 | + echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
1985 | + lt_compiler_flag="$3" |
1986 | + # Insert the option either (1) after the last *FLAGS variable, or |
1987 | + # (2) before a word containing "conftest.", or (3) at the end. |
1988 | + # Note that $ac_compile itself does not contain backslashes and begins |
1989 | + # with a dollar sign (not a hyphen), so the echo should work correctly. |
1990 | + # The option is referenced via a variable to avoid confusing sed. |
1991 | + lt_compile=`echo "$ac_compile" | $SED \ |
1992 | + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
1993 | + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ |
1994 | + -e 's:$: $lt_compiler_flag:'` |
1995 | + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) |
1996 | + (eval "$lt_compile" 2>conftest.err) |
1997 | + ac_status=$? |
1998 | + cat conftest.err >&AS_MESSAGE_LOG_FD |
1999 | + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD |
2000 | + if (exit $ac_status) && test -s "$ac_outfile"; then |
2001 | + # The compiler can only warn and ignore the option if not recognized |
2002 | + # So say no if there are warnings other than the usual output. |
2003 | + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
2004 | + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
2005 | + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
2006 | + $2=yes |
2007 | + fi |
2008 | + fi |
2009 | + $rm conftest* |
2010 | +]) |
2011 | + |
2012 | +if test x"[$]$2" = xyes; then |
2013 | + ifelse([$5], , :, [$5]) |
2014 | +else |
2015 | + ifelse([$6], , :, [$6]) |
2016 | +fi |
2017 | +])# AC_LIBTOOL_COMPILER_OPTION |
2018 | + |
2019 | + |
2020 | +# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, |
2021 | +# [ACTION-SUCCESS], [ACTION-FAILURE]) |
2022 | +# ------------------------------------------------------------ |
2023 | +# Check whether the given compiler option works |
2024 | +AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], |
2025 | +[AC_REQUIRE([LT_AC_PROG_SED])dnl |
2026 | +AC_CACHE_CHECK([$1], [$2], |
2027 | + [$2=no |
2028 | + save_LDFLAGS="$LDFLAGS" |
2029 | + LDFLAGS="$LDFLAGS $3" |
2030 | + echo "$lt_simple_link_test_code" > conftest.$ac_ext |
2031 | + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
2032 | + # The linker can only warn and ignore the option if not recognized |
2033 | + # So say no if there are warnings |
2034 | + if test -s conftest.err; then |
2035 | + # Append any errors to the config.log. |
2036 | + cat conftest.err 1>&AS_MESSAGE_LOG_FD |
2037 | + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
2038 | + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
2039 | + if diff conftest.exp conftest.er2 >/dev/null; then |
2040 | + $2=yes |
2041 | + fi |
2042 | + else |
2043 | + $2=yes |
2044 | + fi |
2045 | + fi |
2046 | + $rm -r conftest* |
2047 | + LDFLAGS="$save_LDFLAGS" |
2048 | +]) |
2049 | + |
2050 | +if test x"[$]$2" = xyes; then |
2051 | + ifelse([$4], , :, [$4]) |
2052 | +else |
2053 | + ifelse([$5], , :, [$5]) |
2054 | +fi |
2055 | +])# AC_LIBTOOL_LINKER_OPTION |
2056 | + |
2057 | + |
2058 | +# AC_LIBTOOL_SYS_MAX_CMD_LEN |
2059 | +# -------------------------- |
2060 | +AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], |
2061 | +[# find the maximum length of command line arguments |
2062 | +AC_MSG_CHECKING([the maximum length of command line arguments]) |
2063 | +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl |
2064 | + i=0 |
2065 | + teststring="ABCD" |
2066 | + |
2067 | + case $build_os in |
2068 | + msdosdjgpp*) |
2069 | + # On DJGPP, this test can blow up pretty badly due to problems in libc |
2070 | + # (any single argument exceeding 2000 bytes causes a buffer overrun |
2071 | + # during glob expansion). Even if it were fixed, the result of this |
2072 | + # check would be larger than it should be. |
2073 | + lt_cv_sys_max_cmd_len=12288; # 12K is about right |
2074 | + ;; |
2075 | + |
2076 | + gnu*) |
2077 | + # Under GNU Hurd, this test is not required because there is |
2078 | + # no limit to the length of command line arguments. |
2079 | + # Libtool will interpret -1 as no limit whatsoever |
2080 | + lt_cv_sys_max_cmd_len=-1; |
2081 | + ;; |
2082 | + |
2083 | + cygwin* | mingw*) |
2084 | + # On Win9x/ME, this test blows up -- it succeeds, but takes |
2085 | + # about 5 minutes as the teststring grows exponentially. |
2086 | + # Worse, since 9x/ME are not pre-emptively multitasking, |
2087 | + # you end up with a "frozen" computer, even though with patience |
2088 | + # the test eventually succeeds (with a max line length of 256k). |
2089 | + # Instead, let's just punt: use the minimum linelength reported by |
2090 | + # all of the supported platforms: 8192 (on NT/2K/XP). |
2091 | + lt_cv_sys_max_cmd_len=8192; |
2092 | + ;; |
2093 | + |
2094 | + amigaos*) |
2095 | + # On AmigaOS with pdksh, this test takes hours, literally. |
2096 | + # So we just punt and use a minimum line length of 8192. |
2097 | + lt_cv_sys_max_cmd_len=8192; |
2098 | + ;; |
2099 | + |
2100 | + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
2101 | + # This has been around since 386BSD, at least. Likely further. |
2102 | + if test -x /sbin/sysctl; then |
2103 | + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
2104 | + elif test -x /usr/sbin/sysctl; then |
2105 | + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
2106 | + else |
2107 | + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
2108 | + fi |
2109 | + # And add a safety zone |
2110 | + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
2111 | + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
2112 | + ;; |
2113 | + |
2114 | + interix*) |
2115 | + # We know the value 262144 and hardcode it with a safety zone (like BSD) |
2116 | + lt_cv_sys_max_cmd_len=196608 |
2117 | + ;; |
2118 | + |
2119 | + osf*) |
2120 | + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
2121 | + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
2122 | + # nice to cause kernel panics so lets avoid the loop below. |
2123 | + # First set a reasonable default. |
2124 | + lt_cv_sys_max_cmd_len=16384 |
2125 | + # |
2126 | + if test -x /sbin/sysconfig; then |
2127 | + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
2128 | + *1*) lt_cv_sys_max_cmd_len=-1 ;; |
2129 | + esac |
2130 | + fi |
2131 | + ;; |
2132 | + sco3.2v5*) |
2133 | + lt_cv_sys_max_cmd_len=102400 |
2134 | + ;; |
2135 | + sysv5* | sco5v6* | sysv4.2uw2*) |
2136 | + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
2137 | + if test -n "$kargmax"; then |
2138 | + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` |
2139 | + else |
2140 | + lt_cv_sys_max_cmd_len=32768 |
2141 | + fi |
2142 | + ;; |
2143 | + *) |
2144 | + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
2145 | + if test -n "$lt_cv_sys_max_cmd_len"; then |
2146 | + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
2147 | + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
2148 | + else |
2149 | + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
2150 | + while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ |
2151 | + = "XX$teststring") >/dev/null 2>&1 && |
2152 | + new_result=`expr "X$teststring" : ".*" 2>&1` && |
2153 | + lt_cv_sys_max_cmd_len=$new_result && |
2154 | + test $i != 17 # 1/2 MB should be enough |
2155 | + do |
2156 | + i=`expr $i + 1` |
2157 | + teststring=$teststring$teststring |
2158 | + done |
2159 | + teststring= |
2160 | + # Add a significant safety factor because C++ compilers can tack on massive |
2161 | + # amounts of additional arguments before passing them to the linker. |
2162 | + # It appears as though 1/2 is a usable value. |
2163 | + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
2164 | + fi |
2165 | + ;; |
2166 | + esac |
2167 | +]) |
2168 | +if test -n $lt_cv_sys_max_cmd_len ; then |
2169 | + AC_MSG_RESULT($lt_cv_sys_max_cmd_len) |
2170 | +else |
2171 | + AC_MSG_RESULT(none) |
2172 | +fi |
2173 | +])# AC_LIBTOOL_SYS_MAX_CMD_LEN |
2174 | + |
2175 | + |
2176 | +# _LT_AC_CHECK_DLFCN |
2177 | +# ------------------ |
2178 | +AC_DEFUN([_LT_AC_CHECK_DLFCN], |
2179 | +[AC_CHECK_HEADERS(dlfcn.h)dnl |
2180 | +])# _LT_AC_CHECK_DLFCN |
2181 | + |
2182 | + |
2183 | +# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, |
2184 | +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) |
2185 | +# --------------------------------------------------------------------- |
2186 | +AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], |
2187 | +[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl |
2188 | +if test "$cross_compiling" = yes; then : |
2189 | + [$4] |
2190 | +else |
2191 | + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
2192 | + lt_status=$lt_dlunknown |
2193 | + cat > conftest.$ac_ext <<EOF |
2194 | +[#line __oline__ "configure" |
2195 | +#include "confdefs.h" |
2196 | + |
2197 | +#if HAVE_DLFCN_H |
2198 | +#include <dlfcn.h> |
2199 | +#endif |
2200 | + |
2201 | +#include <stdio.h> |
2202 | + |
2203 | +#ifdef RTLD_GLOBAL |
2204 | +# define LT_DLGLOBAL RTLD_GLOBAL |
2205 | +#else |
2206 | +# ifdef DL_GLOBAL |
2207 | +# define LT_DLGLOBAL DL_GLOBAL |
2208 | +# else |
2209 | +# define LT_DLGLOBAL 0 |
2210 | +# endif |
2211 | +#endif |
2212 | + |
2213 | +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
2214 | + find out it does not work in some platform. */ |
2215 | +#ifndef LT_DLLAZY_OR_NOW |
2216 | +# ifdef RTLD_LAZY |
2217 | +# define LT_DLLAZY_OR_NOW RTLD_LAZY |
2218 | +# else |
2219 | +# ifdef DL_LAZY |
2220 | +# define LT_DLLAZY_OR_NOW DL_LAZY |
2221 | +# else |
2222 | +# ifdef RTLD_NOW |
2223 | +# define LT_DLLAZY_OR_NOW RTLD_NOW |
2224 | +# else |
2225 | +# ifdef DL_NOW |
2226 | +# define LT_DLLAZY_OR_NOW DL_NOW |
2227 | +# else |
2228 | +# define LT_DLLAZY_OR_NOW 0 |
2229 | +# endif |
2230 | +# endif |
2231 | +# endif |
2232 | +# endif |
2233 | +#endif |
2234 | + |
2235 | +#ifdef __cplusplus |
2236 | +extern "C" void exit (int); |
2237 | +#endif |
2238 | + |
2239 | +void fnord() { int i=42;} |
2240 | +int main () |
2241 | +{ |
2242 | + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
2243 | + int status = $lt_dlunknown; |
2244 | + |
2245 | + if (self) |
2246 | + { |
2247 | + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
2248 | + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
2249 | + /* dlclose (self); */ |
2250 | + } |
2251 | + else |
2252 | + puts (dlerror ()); |
2253 | + |
2254 | + exit (status); |
2255 | +}] |
2256 | +EOF |
2257 | + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then |
2258 | + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null |
2259 | + lt_status=$? |
2260 | + case x$lt_status in |
2261 | + x$lt_dlno_uscore) $1 ;; |
2262 | + x$lt_dlneed_uscore) $2 ;; |
2263 | + x$lt_dlunknown|x*) $3 ;; |
2264 | + esac |
2265 | + else : |
2266 | + # compilation failed |
2267 | + $3 |
2268 | + fi |
2269 | +fi |
2270 | +rm -fr conftest* |
2271 | +])# _LT_AC_TRY_DLOPEN_SELF |
2272 | + |
2273 | + |
2274 | +# AC_LIBTOOL_DLOPEN_SELF |
2275 | +# ---------------------- |
2276 | +AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], |
2277 | +[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl |
2278 | +if test "x$enable_dlopen" != xyes; then |
2279 | + enable_dlopen=unknown |
2280 | + enable_dlopen_self=unknown |
2281 | + enable_dlopen_self_static=unknown |
2282 | +else |
2283 | + lt_cv_dlopen=no |
2284 | + lt_cv_dlopen_libs= |
2285 | + |
2286 | + case $host_os in |
2287 | + beos*) |
2288 | + lt_cv_dlopen="load_add_on" |
2289 | + lt_cv_dlopen_libs= |
2290 | + lt_cv_dlopen_self=yes |
2291 | + ;; |
2292 | + |
2293 | + mingw* | pw32*) |
2294 | + lt_cv_dlopen="LoadLibrary" |
2295 | + lt_cv_dlopen_libs= |
2296 | + ;; |
2297 | + |
2298 | + cygwin*) |
2299 | + lt_cv_dlopen="dlopen" |
2300 | + lt_cv_dlopen_libs= |
2301 | + ;; |
2302 | + |
2303 | + darwin*) |
2304 | + # if libdl is installed we need to link against it |
2305 | + AC_CHECK_LIB([dl], [dlopen], |
2306 | + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ |
2307 | + lt_cv_dlopen="dyld" |
2308 | + lt_cv_dlopen_libs= |
2309 | + lt_cv_dlopen_self=yes |
2310 | + ]) |
2311 | + ;; |
2312 | + |
2313 | + *) |
2314 | + AC_CHECK_FUNC([shl_load], |
2315 | + [lt_cv_dlopen="shl_load"], |
2316 | + [AC_CHECK_LIB([dld], [shl_load], |
2317 | + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], |
2318 | + [AC_CHECK_FUNC([dlopen], |
2319 | + [lt_cv_dlopen="dlopen"], |
2320 | + [AC_CHECK_LIB([dl], [dlopen], |
2321 | + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], |
2322 | + [AC_CHECK_LIB([svld], [dlopen], |
2323 | + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], |
2324 | + [AC_CHECK_LIB([dld], [dld_link], |
2325 | + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) |
2326 | + ]) |
2327 | + ]) |
2328 | + ]) |
2329 | + ]) |
2330 | + ]) |
2331 | + ;; |
2332 | + esac |
2333 | + |
2334 | + if test "x$lt_cv_dlopen" != xno; then |
2335 | + enable_dlopen=yes |
2336 | + else |
2337 | + enable_dlopen=no |
2338 | + fi |
2339 | + |
2340 | + case $lt_cv_dlopen in |
2341 | + dlopen) |
2342 | + save_CPPFLAGS="$CPPFLAGS" |
2343 | + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
2344 | + |
2345 | + save_LDFLAGS="$LDFLAGS" |
2346 | + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
2347 | + |
2348 | + save_LIBS="$LIBS" |
2349 | + LIBS="$lt_cv_dlopen_libs $LIBS" |
2350 | + |
2351 | + AC_CACHE_CHECK([whether a program can dlopen itself], |
2352 | + lt_cv_dlopen_self, [dnl |
2353 | + _LT_AC_TRY_DLOPEN_SELF( |
2354 | + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, |
2355 | + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) |
2356 | + ]) |
2357 | + |
2358 | + if test "x$lt_cv_dlopen_self" = xyes; then |
2359 | + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
2360 | + AC_CACHE_CHECK([whether a statically linked program can dlopen itself], |
2361 | + lt_cv_dlopen_self_static, [dnl |
2362 | + _LT_AC_TRY_DLOPEN_SELF( |
2363 | + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, |
2364 | + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) |
2365 | + ]) |
2366 | + fi |
2367 | + |
2368 | + CPPFLAGS="$save_CPPFLAGS" |
2369 | + LDFLAGS="$save_LDFLAGS" |
2370 | + LIBS="$save_LIBS" |
2371 | + ;; |
2372 | + esac |
2373 | + |
2374 | + case $lt_cv_dlopen_self in |
2375 | + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
2376 | + *) enable_dlopen_self=unknown ;; |
2377 | + esac |
2378 | + |
2379 | + case $lt_cv_dlopen_self_static in |
2380 | + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
2381 | + *) enable_dlopen_self_static=unknown ;; |
2382 | + esac |
2383 | +fi |
2384 | +])# AC_LIBTOOL_DLOPEN_SELF |
2385 | + |
2386 | + |
2387 | +# AC_LIBTOOL_PROG_CC_C_O([TAGNAME]) |
2388 | +# --------------------------------- |
2389 | +# Check to see if options -c and -o are simultaneously supported by compiler |
2390 | +AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], |
2391 | +[AC_REQUIRE([LT_AC_PROG_SED])dnl |
2392 | +AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl |
2393 | +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], |
2394 | + [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], |
2395 | + [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no |
2396 | + $rm -r conftest 2>/dev/null |
2397 | + mkdir conftest |
2398 | + cd conftest |
2399 | + mkdir out |
2400 | + echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
2401 | + |
2402 | + lt_compiler_flag="-o out/conftest2.$ac_objext" |
2403 | + # Insert the option either (1) after the last *FLAGS variable, or |
2404 | + # (2) before a word containing "conftest.", or (3) at the end. |
2405 | + # Note that $ac_compile itself does not contain backslashes and begins |
2406 | + # with a dollar sign (not a hyphen), so the echo should work correctly. |
2407 | + lt_compile=`echo "$ac_compile" | $SED \ |
2408 | + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
2409 | + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ |
2410 | + -e 's:$: $lt_compiler_flag:'` |
2411 | + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) |
2412 | + (eval "$lt_compile" 2>out/conftest.err) |
2413 | + ac_status=$? |
2414 | + cat out/conftest.err >&AS_MESSAGE_LOG_FD |
2415 | + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD |
2416 | + if (exit $ac_status) && test -s out/conftest2.$ac_objext |
2417 | + then |
2418 | + # The compiler can only warn and ignore the option if not recognized |
2419 | + # So say no if there are warnings |
2420 | + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
2421 | + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
2422 | + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
2423 | + _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes |
2424 | + fi |
2425 | + fi |
2426 | + chmod u+w . 2>&AS_MESSAGE_LOG_FD |
2427 | + $rm conftest* |
2428 | + # SGI C++ compiler will create directory out/ii_files/ for |
2429 | + # template instantiation |
2430 | + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
2431 | + $rm out/* && rmdir out |
2432 | + cd .. |
2433 | + rmdir conftest |
2434 | + $rm conftest* |
2435 | +]) |
2436 | +])# AC_LIBTOOL_PROG_CC_C_O |
2437 | + |
2438 | + |
2439 | +# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME]) |
2440 | +# ----------------------------------------- |
2441 | +# Check to see if we can do hard links to lock some files if needed |
2442 | +AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], |
2443 | +[AC_REQUIRE([_LT_AC_LOCK])dnl |
2444 | + |
2445 | +hard_links="nottested" |
2446 | +if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then |
2447 | + # do not overwrite the value of need_locks provided by the user |
2448 | + AC_MSG_CHECKING([if we can lock with hard links]) |
2449 | + hard_links=yes |
2450 | + $rm conftest* |
2451 | + ln conftest.a conftest.b 2>/dev/null && hard_links=no |
2452 | + touch conftest.a |
2453 | + ln conftest.a conftest.b 2>&5 || hard_links=no |
2454 | + ln conftest.a conftest.b 2>/dev/null && hard_links=no |
2455 | + AC_MSG_RESULT([$hard_links]) |
2456 | + if test "$hard_links" = no; then |
2457 | + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) |
2458 | + need_locks=warn |
2459 | + fi |
2460 | +else |
2461 | + need_locks=no |
2462 | +fi |
2463 | +])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS |
2464 | + |
2465 | + |
2466 | +# AC_LIBTOOL_OBJDIR |
2467 | +# ----------------- |
2468 | +AC_DEFUN([AC_LIBTOOL_OBJDIR], |
2469 | +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], |
2470 | +[rm -f .libs 2>/dev/null |
2471 | +mkdir .libs 2>/dev/null |
2472 | +if test -d .libs; then |
2473 | + lt_cv_objdir=.libs |
2474 | +else |
2475 | + # MS-DOS does not allow filenames that begin with a dot. |
2476 | + lt_cv_objdir=_libs |
2477 | +fi |
2478 | +rmdir .libs 2>/dev/null]) |
2479 | +objdir=$lt_cv_objdir |
2480 | +])# AC_LIBTOOL_OBJDIR |
2481 | + |
2482 | + |
2483 | +# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) |
2484 | +# ---------------------------------------------- |
2485 | +# Check hardcoding attributes. |
2486 | +AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], |
2487 | +[AC_MSG_CHECKING([how to hardcode library paths into programs]) |
2488 | +_LT_AC_TAGVAR(hardcode_action, $1)= |
2489 | +if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ |
2490 | + test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \ |
2491 | + test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then |
2492 | + |
2493 | + # We can hardcode non-existant directories. |
2494 | + if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && |
2495 | + # If the only mechanism to avoid hardcoding is shlibpath_var, we |
2496 | + # have to relink, otherwise we might link with an installed library |
2497 | + # when we should be linking with a yet-to-be-installed one |
2498 | + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no && |
2499 | + test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then |
2500 | + # Linking always hardcodes the temporary library directory. |
2501 | + _LT_AC_TAGVAR(hardcode_action, $1)=relink |
2502 | + else |
2503 | + # We can link without hardcoding, and we can hardcode nonexisting dirs. |
2504 | + _LT_AC_TAGVAR(hardcode_action, $1)=immediate |
2505 | + fi |
2506 | +else |
2507 | + # We cannot hardcode anything, or else we can only hardcode existing |
2508 | + # directories. |
2509 | + _LT_AC_TAGVAR(hardcode_action, $1)=unsupported |
2510 | +fi |
2511 | +AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)]) |
2512 | + |
2513 | +if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then |
2514 | + # Fast installation is not supported |
2515 | + enable_fast_install=no |
2516 | +elif test "$shlibpath_overrides_runpath" = yes || |
2517 | + test "$enable_shared" = no; then |
2518 | + # Fast installation is not necessary |
2519 | + enable_fast_install=needless |
2520 | +fi |
2521 | +])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH |
2522 | + |
2523 | + |
2524 | +# AC_LIBTOOL_SYS_LIB_STRIP |
2525 | +# ------------------------ |
2526 | +AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP], |
2527 | +[striplib= |
2528 | +old_striplib= |
2529 | +AC_MSG_CHECKING([whether stripping libraries is possible]) |
2530 | +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
2531 | + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
2532 | + test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
2533 | + AC_MSG_RESULT([yes]) |
2534 | +else |
2535 | +# FIXME - insert some real tests, host_os isn't really good enough |
2536 | + case $host_os in |
2537 | + darwin*) |
2538 | + if test -n "$STRIP" ; then |
2539 | + striplib="$STRIP -x" |
2540 | + old_striplib="$STRIP -S" |
2541 | + AC_MSG_RESULT([yes]) |
2542 | + else |
2543 | + AC_MSG_RESULT([no]) |
2544 | +fi |
2545 | + ;; |
2546 | + *) |
2547 | + AC_MSG_RESULT([no]) |
2548 | + ;; |
2549 | + esac |
2550 | +fi |
2551 | +])# AC_LIBTOOL_SYS_LIB_STRIP |
2552 | + |
2553 | + |
2554 | +# AC_LIBTOOL_SYS_DYNAMIC_LINKER |
2555 | +# ----------------------------- |
2556 | +# PORTME Fill in your ld.so characteristics |
2557 | +AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], |
2558 | +[AC_REQUIRE([LT_AC_PROG_SED])dnl |
2559 | +AC_MSG_CHECKING([dynamic linker characteristics]) |
2560 | +library_names_spec= |
2561 | +libname_spec='lib$name' |
2562 | +soname_spec= |
2563 | +shrext_cmds=".so" |
2564 | +postinstall_cmds= |
2565 | +postuninstall_cmds= |
2566 | +finish_cmds= |
2567 | +finish_eval= |
2568 | +shlibpath_var= |
2569 | +shlibpath_overrides_runpath=unknown |
2570 | +version_type=none |
2571 | +dynamic_linker="$host_os ld.so" |
2572 | +sys_lib_dlsearch_path_spec="/lib /usr/lib" |
2573 | +m4_if($1,[],[ |
2574 | +if test "$GCC" = yes; then |
2575 | + case $host_os in |
2576 | + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
2577 | + *) lt_awk_arg="/^libraries:/" ;; |
2578 | + esac |
2579 | + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
2580 | + if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then |
2581 | + # if the path contains ";" then we assume it to be the separator |
2582 | + # otherwise default to the standard path separator (i.e. ":") - it is |
2583 | + # assumed that no part of a normal pathname contains ";" but that should |
2584 | + # okay in the real world where ";" in dirpaths is itself problematic. |
2585 | + lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` |
2586 | + else |
2587 | + lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
2588 | + fi |
2589 | + # Ok, now we have the path, separated by spaces, we can step through it |
2590 | + # and add multilib dir if necessary. |
2591 | + lt_tmp_lt_search_path_spec= |
2592 | + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
2593 | + for lt_sys_path in $lt_search_path_spec; do |
2594 | + if test -d "$lt_sys_path/$lt_multi_os_dir"; then |
2595 | + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" |
2596 | + else |
2597 | + test -d "$lt_sys_path" && \ |
2598 | + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
2599 | + fi |
2600 | + done |
2601 | + lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' |
2602 | +BEGIN {RS=" "; FS="/|\n";} { |
2603 | + lt_foo=""; |
2604 | + lt_count=0; |
2605 | + for (lt_i = NF; lt_i > 0; lt_i--) { |
2606 | + if ($lt_i != "" && $lt_i != ".") { |
2607 | + if ($lt_i == "..") { |
2608 | + lt_count++; |
2609 | + } else { |
2610 | + if (lt_count == 0) { |
2611 | + lt_foo="/" $lt_i lt_foo; |
2612 | + } else { |
2613 | + lt_count--; |
2614 | + } |
2615 | + } |
2616 | + } |
2617 | + } |
2618 | + if (lt_foo != "") { lt_freq[[lt_foo]]++; } |
2619 | + if (lt_freq[[lt_foo]] == 1) { print lt_foo; } |
2620 | +}'` |
2621 | + sys_lib_search_path_spec=`echo $lt_search_path_spec` |
2622 | +else |
2623 | + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
2624 | +fi]) |
2625 | +need_lib_prefix=unknown |
2626 | +hardcode_into_libs=no |
2627 | + |
2628 | +# when you set need_version to no, make sure it does not cause -set_version |
2629 | +# flags to be left without arguments |
2630 | +need_version=unknown |
2631 | + |
2632 | +case $host_os in |
2633 | +aix3*) |
2634 | + version_type=linux |
2635 | + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
2636 | + shlibpath_var=LIBPATH |
2637 | + |
2638 | + # AIX 3 has no versioning support, so we append a major version to the name. |
2639 | + soname_spec='${libname}${release}${shared_ext}$major' |
2640 | + ;; |
2641 | + |
2642 | +aix[[4-9]]*) |
2643 | + version_type=linux |
2644 | + need_lib_prefix=no |
2645 | + need_version=no |
2646 | + hardcode_into_libs=yes |
2647 | + if test "$host_cpu" = ia64; then |
2648 | + # AIX 5 supports IA64 |
2649 | + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
2650 | + shlibpath_var=LD_LIBRARY_PATH |
2651 | + else |
2652 | + # With GCC up to 2.95.x, collect2 would create an import file |
2653 | + # for dependence libraries. The import file would start with |
2654 | + # the line `#! .'. This would cause the generated library to |
2655 | + # depend on `.', always an invalid library. This was fixed in |
2656 | + # development snapshots of GCC prior to 3.0. |
2657 | + case $host_os in |
2658 | + aix4 | aix4.[[01]] | aix4.[[01]].*) |
2659 | + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
2660 | + echo ' yes ' |
2661 | + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
2662 | + : |
2663 | + else |
2664 | + can_build_shared=no |
2665 | + fi |
2666 | + ;; |
2667 | + esac |
2668 | + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
2669 | + # soname into executable. Probably we can add versioning support to |
2670 | + # collect2, so additional links can be useful in future. |
2671 | + if test "$aix_use_runtimelinking" = yes; then |
2672 | + # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
2673 | + # instead of lib<name>.a to let people know that these are not |
2674 | + # typical AIX shared libraries. |
2675 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2676 | + else |
2677 | + # We preserve .a as extension for shared libraries through AIX4.2 |
2678 | + # and later when we are not doing run time linking. |
2679 | + library_names_spec='${libname}${release}.a $libname.a' |
2680 | + soname_spec='${libname}${release}${shared_ext}$major' |
2681 | + fi |
2682 | + shlibpath_var=LIBPATH |
2683 | + fi |
2684 | + ;; |
2685 | + |
2686 | +amigaos*) |
2687 | + library_names_spec='$libname.ixlibrary $libname.a' |
2688 | + # Create ${libname}_ixlibrary.a entries in /sys/libs. |
2689 | + 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' |
2690 | + ;; |
2691 | + |
2692 | +beos*) |
2693 | + library_names_spec='${libname}${shared_ext}' |
2694 | + dynamic_linker="$host_os ld.so" |
2695 | + shlibpath_var=LIBRARY_PATH |
2696 | + ;; |
2697 | + |
2698 | +bsdi[[45]]*) |
2699 | + version_type=linux |
2700 | + need_version=no |
2701 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2702 | + soname_spec='${libname}${release}${shared_ext}$major' |
2703 | + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
2704 | + shlibpath_var=LD_LIBRARY_PATH |
2705 | + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
2706 | + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
2707 | + # the default ld.so.conf also contains /usr/contrib/lib and |
2708 | + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
2709 | + # libtool to hard-code these into programs |
2710 | + ;; |
2711 | + |
2712 | +cygwin* | mingw* | pw32*) |
2713 | + version_type=windows |
2714 | + shrext_cmds=".dll" |
2715 | + need_version=no |
2716 | + need_lib_prefix=no |
2717 | + |
2718 | + case $GCC,$host_os in |
2719 | + yes,cygwin* | yes,mingw* | yes,pw32*) |
2720 | + library_names_spec='$libname.dll.a' |
2721 | + # DLL is installed to $(libdir)/../bin by postinstall_cmds |
2722 | + postinstall_cmds='base_file=`basename \${file}`~ |
2723 | + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
2724 | + dldir=$destdir/`dirname \$dlpath`~ |
2725 | + test -d \$dldir || mkdir -p \$dldir~ |
2726 | + $install_prog $dir/$dlname \$dldir/$dlname~ |
2727 | + chmod a+x \$dldir/$dlname' |
2728 | + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
2729 | + dlpath=$dir/\$dldll~ |
2730 | + $rm \$dlpath' |
2731 | + shlibpath_overrides_runpath=yes |
2732 | + |
2733 | + case $host_os in |
2734 | + cygwin*) |
2735 | + # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
2736 | + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
2737 | + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
2738 | + ;; |
2739 | + mingw*) |
2740 | + # MinGW DLLs use traditional 'lib' prefix |
2741 | + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
2742 | + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
2743 | + if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then |
2744 | + # It is most probably a Windows format PATH printed by |
2745 | + # mingw gcc, but we are running on Cygwin. Gcc prints its search |
2746 | + # path with ; separators, and with drive letters. We can handle the |
2747 | + # drive letters (cygwin fileutils understands them), so leave them, |
2748 | + # especially as we might pass files found there to a mingw objdump, |
2749 | + # which wouldn't understand a cygwinified path. Ahh. |
2750 | + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
2751 | + else |
2752 | + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
2753 | + fi |
2754 | + ;; |
2755 | + pw32*) |
2756 | + # pw32 DLLs use 'pw' prefix rather than 'lib' |
2757 | + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
2758 | + ;; |
2759 | + esac |
2760 | + ;; |
2761 | + |
2762 | + *) |
2763 | + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' |
2764 | + ;; |
2765 | + esac |
2766 | + dynamic_linker='Win32 ld.exe' |
2767 | + # FIXME: first we should search . and the directory the executable is in |
2768 | + shlibpath_var=PATH |
2769 | + ;; |
2770 | + |
2771 | +darwin* | rhapsody*) |
2772 | + dynamic_linker="$host_os dyld" |
2773 | + version_type=darwin |
2774 | + need_lib_prefix=no |
2775 | + need_version=no |
2776 | + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
2777 | + soname_spec='${libname}${release}${major}$shared_ext' |
2778 | + shlibpath_overrides_runpath=yes |
2779 | + shlibpath_var=DYLD_LIBRARY_PATH |
2780 | + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
2781 | + m4_if([$1], [],[ |
2782 | + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) |
2783 | + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
2784 | + ;; |
2785 | + |
2786 | +dgux*) |
2787 | + version_type=linux |
2788 | + need_lib_prefix=no |
2789 | + need_version=no |
2790 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
2791 | + soname_spec='${libname}${release}${shared_ext}$major' |
2792 | + shlibpath_var=LD_LIBRARY_PATH |
2793 | + ;; |
2794 | + |
2795 | +freebsd1*) |
2796 | + dynamic_linker=no |
2797 | + ;; |
2798 | + |
2799 | +freebsd* | dragonfly*) |
2800 | + # DragonFly does not have aout. When/if they implement a new |
2801 | + # versioning mechanism, adjust this. |
2802 | + if test -x /usr/bin/objformat; then |
2803 | + objformat=`/usr/bin/objformat` |
2804 | + else |
2805 | + case $host_os in |
2806 | + freebsd[[123]]*) objformat=aout ;; |
2807 | + *) objformat=elf ;; |
2808 | + esac |
2809 | + fi |
2810 | + version_type=freebsd-$objformat |
2811 | + case $version_type in |
2812 | + freebsd-elf*) |
2813 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
2814 | + need_version=no |
2815 | + need_lib_prefix=no |
2816 | + ;; |
2817 | + freebsd-*) |
2818 | + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
2819 | + need_version=yes |
2820 | + ;; |
2821 | + esac |
2822 | + shlibpath_var=LD_LIBRARY_PATH |
2823 | + case $host_os in |
2824 | + freebsd2*) |
2825 | + shlibpath_overrides_runpath=yes |
2826 | + ;; |
2827 | + freebsd3.[[01]]* | freebsdelf3.[[01]]*) |
2828 | + shlibpath_overrides_runpath=yes |
2829 | + hardcode_into_libs=yes |
2830 | + ;; |
2831 | + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ |
2832 | + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) |
2833 | + shlibpath_overrides_runpath=no |
2834 | + hardcode_into_libs=yes |
2835 | + ;; |
2836 | + *) # from 4.6 on, and DragonFly |
2837 | + shlibpath_overrides_runpath=yes |
2838 | + hardcode_into_libs=yes |
2839 | + ;; |
2840 | + esac |
2841 | + ;; |
2842 | + |
2843 | +gnu*) |
2844 | + version_type=linux |
2845 | + need_lib_prefix=no |
2846 | + need_version=no |
2847 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
2848 | + soname_spec='${libname}${release}${shared_ext}$major' |
2849 | + shlibpath_var=LD_LIBRARY_PATH |
2850 | + hardcode_into_libs=yes |
2851 | + ;; |
2852 | + |
2853 | +hpux9* | hpux10* | hpux11*) |
2854 | + # Give a soname corresponding to the major version so that dld.sl refuses to |
2855 | + # link against other versions. |
2856 | + version_type=sunos |
2857 | + need_lib_prefix=no |
2858 | + need_version=no |
2859 | + case $host_cpu in |
2860 | + ia64*) |
2861 | + shrext_cmds='.so' |
2862 | + hardcode_into_libs=yes |
2863 | + dynamic_linker="$host_os dld.so" |
2864 | + shlibpath_var=LD_LIBRARY_PATH |
2865 | + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
2866 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2867 | + soname_spec='${libname}${release}${shared_ext}$major' |
2868 | + if test "X$HPUX_IA64_MODE" = X32; then |
2869 | + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
2870 | + else |
2871 | + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
2872 | + fi |
2873 | + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
2874 | + ;; |
2875 | + hppa*64*) |
2876 | + shrext_cmds='.sl' |
2877 | + hardcode_into_libs=yes |
2878 | + dynamic_linker="$host_os dld.sl" |
2879 | + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
2880 | + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
2881 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2882 | + soname_spec='${libname}${release}${shared_ext}$major' |
2883 | + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
2884 | + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
2885 | + ;; |
2886 | + *) |
2887 | + shrext_cmds='.sl' |
2888 | + dynamic_linker="$host_os dld.sl" |
2889 | + shlibpath_var=SHLIB_PATH |
2890 | + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
2891 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2892 | + soname_spec='${libname}${release}${shared_ext}$major' |
2893 | + ;; |
2894 | + esac |
2895 | + # HP-UX runs *really* slowly unless shared libraries are mode 555. |
2896 | + postinstall_cmds='chmod 555 $lib' |
2897 | + ;; |
2898 | + |
2899 | +interix[[3-9]]*) |
2900 | + version_type=linux |
2901 | + need_lib_prefix=no |
2902 | + need_version=no |
2903 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
2904 | + soname_spec='${libname}${release}${shared_ext}$major' |
2905 | + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
2906 | + shlibpath_var=LD_LIBRARY_PATH |
2907 | + shlibpath_overrides_runpath=no |
2908 | + hardcode_into_libs=yes |
2909 | + ;; |
2910 | + |
2911 | +irix5* | irix6* | nonstopux*) |
2912 | + case $host_os in |
2913 | + nonstopux*) version_type=nonstopux ;; |
2914 | + *) |
2915 | + if test "$lt_cv_prog_gnu_ld" = yes; then |
2916 | + version_type=linux |
2917 | + else |
2918 | + version_type=irix |
2919 | + fi ;; |
2920 | + esac |
2921 | + need_lib_prefix=no |
2922 | + need_version=no |
2923 | + soname_spec='${libname}${release}${shared_ext}$major' |
2924 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
2925 | + case $host_os in |
2926 | + irix5* | nonstopux*) |
2927 | + libsuff= shlibsuff= |
2928 | + ;; |
2929 | + *) |
2930 | + case $LD in # libtool.m4 will add one of these switches to LD |
2931 | + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
2932 | + libsuff= shlibsuff= libmagic=32-bit;; |
2933 | + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
2934 | + libsuff=32 shlibsuff=N32 libmagic=N32;; |
2935 | + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
2936 | + libsuff=64 shlibsuff=64 libmagic=64-bit;; |
2937 | + *) libsuff= shlibsuff= libmagic=never-match;; |
2938 | + esac |
2939 | + ;; |
2940 | + esac |
2941 | + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
2942 | + shlibpath_overrides_runpath=no |
2943 | + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
2944 | + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
2945 | + hardcode_into_libs=yes |
2946 | + ;; |
2947 | + |
2948 | +# No shared lib support for Linux oldld, aout, or coff. |
2949 | +linux*oldld* | linux*aout* | linux*coff*) |
2950 | + dynamic_linker=no |
2951 | + ;; |
2952 | + |
2953 | +# This must be Linux ELF. |
2954 | +linux* | k*bsd*-gnu) |
2955 | + version_type=linux |
2956 | + need_lib_prefix=no |
2957 | + need_version=no |
2958 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2959 | + soname_spec='${libname}${release}${shared_ext}$major' |
2960 | + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
2961 | + shlibpath_var=LD_LIBRARY_PATH |
2962 | + shlibpath_overrides_runpath=no |
2963 | + # This implies no fast_install, which is unacceptable. |
2964 | + # Some rework will be needed to allow for fast_install |
2965 | + # before this can be enabled. |
2966 | + hardcode_into_libs=yes |
2967 | + |
2968 | + # Append ld.so.conf contents to the search path |
2969 | + if test -f /etc/ld.so.conf; then |
2970 | + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
2971 | + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
2972 | + fi |
2973 | + |
2974 | + # We used to test for /lib/ld.so.1 and disable shared libraries on |
2975 | + # powerpc, because MkLinux only supported shared libraries with the |
2976 | + # GNU dynamic linker. Since this was broken with cross compilers, |
2977 | + # most powerpc-linux boxes support dynamic linking these days and |
2978 | + # people can always --disable-shared, the test was removed, and we |
2979 | + # assume the GNU/Linux dynamic linker is in use. |
2980 | + dynamic_linker='GNU/Linux ld.so' |
2981 | + ;; |
2982 | + |
2983 | +netbsdelf*-gnu) |
2984 | + version_type=linux |
2985 | + need_lib_prefix=no |
2986 | + need_version=no |
2987 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
2988 | + soname_spec='${libname}${release}${shared_ext}$major' |
2989 | + shlibpath_var=LD_LIBRARY_PATH |
2990 | + shlibpath_overrides_runpath=no |
2991 | + hardcode_into_libs=yes |
2992 | + dynamic_linker='NetBSD ld.elf_so' |
2993 | + ;; |
2994 | + |
2995 | +netbsd*) |
2996 | + version_type=sunos |
2997 | + need_lib_prefix=no |
2998 | + need_version=no |
2999 | + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
3000 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
3001 | + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
3002 | + dynamic_linker='NetBSD (a.out) ld.so' |
3003 | + else |
3004 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
3005 | + soname_spec='${libname}${release}${shared_ext}$major' |
3006 | + dynamic_linker='NetBSD ld.elf_so' |
3007 | + fi |
3008 | + shlibpath_var=LD_LIBRARY_PATH |
3009 | + shlibpath_overrides_runpath=yes |
3010 | + hardcode_into_libs=yes |
3011 | + ;; |
3012 | + |
3013 | +newsos6) |
3014 | + version_type=linux |
3015 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
3016 | + shlibpath_var=LD_LIBRARY_PATH |
3017 | + shlibpath_overrides_runpath=yes |
3018 | + ;; |
3019 | + |
3020 | +nto-qnx*) |
3021 | + version_type=linux |
3022 | + need_lib_prefix=no |
3023 | + need_version=no |
3024 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
3025 | + soname_spec='${libname}${release}${shared_ext}$major' |
3026 | + shlibpath_var=LD_LIBRARY_PATH |
3027 | + shlibpath_overrides_runpath=yes |
3028 | + ;; |
3029 | + |
3030 | +openbsd*) |
3031 | + version_type=sunos |
3032 | + sys_lib_dlsearch_path_spec="/usr/lib" |
3033 | + need_lib_prefix=no |
3034 | + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
3035 | + case $host_os in |
3036 | + openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
3037 | + *) need_version=no ;; |
3038 | + esac |
3039 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
3040 | + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
3041 | + shlibpath_var=LD_LIBRARY_PATH |
3042 | + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
3043 | + case $host_os in |
3044 | + openbsd2.[[89]] | openbsd2.[[89]].*) |
3045 | + shlibpath_overrides_runpath=no |
3046 | + ;; |
3047 | + *) |
3048 | + shlibpath_overrides_runpath=yes |
3049 | + ;; |
3050 | + esac |
3051 | + else |
3052 | + shlibpath_overrides_runpath=yes |
3053 | + fi |
3054 | + ;; |
3055 | + |
3056 | +os2*) |
3057 | + libname_spec='$name' |
3058 | + shrext_cmds=".dll" |
3059 | + need_lib_prefix=no |
3060 | + library_names_spec='$libname${shared_ext} $libname.a' |
3061 | + dynamic_linker='OS/2 ld.exe' |
3062 | + shlibpath_var=LIBPATH |
3063 | + ;; |
3064 | + |
3065 | +osf3* | osf4* | osf5*) |
3066 | + version_type=osf |
3067 | + need_lib_prefix=no |
3068 | + need_version=no |
3069 | + soname_spec='${libname}${release}${shared_ext}$major' |
3070 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
3071 | + shlibpath_var=LD_LIBRARY_PATH |
3072 | + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
3073 | + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
3074 | + ;; |
3075 | + |
3076 | +rdos*) |
3077 | + dynamic_linker=no |
3078 | + ;; |
3079 | + |
3080 | +solaris*) |
3081 | + version_type=linux |
3082 | + need_lib_prefix=no |
3083 | + need_version=no |
3084 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
3085 | + soname_spec='${libname}${release}${shared_ext}$major' |
3086 | + shlibpath_var=LD_LIBRARY_PATH |
3087 | + shlibpath_overrides_runpath=yes |
3088 | + hardcode_into_libs=yes |
3089 | + # ldd complains unless libraries are executable |
3090 | + postinstall_cmds='chmod +x $lib' |
3091 | + ;; |
3092 | + |
3093 | +sunos4*) |
3094 | + version_type=sunos |
3095 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
3096 | + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
3097 | + shlibpath_var=LD_LIBRARY_PATH |
3098 | + shlibpath_overrides_runpath=yes |
3099 | + if test "$with_gnu_ld" = yes; then |
3100 | + need_lib_prefix=no |
3101 | + fi |
3102 | + need_version=yes |
3103 | + ;; |
3104 | + |
3105 | +sysv4 | sysv4.3*) |
3106 | + version_type=linux |
3107 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
3108 | + soname_spec='${libname}${release}${shared_ext}$major' |
3109 | + shlibpath_var=LD_LIBRARY_PATH |
3110 | + case $host_vendor in |
3111 | + sni) |
3112 | + shlibpath_overrides_runpath=no |
3113 | + need_lib_prefix=no |
3114 | + export_dynamic_flag_spec='${wl}-Blargedynsym' |
3115 | + runpath_var=LD_RUN_PATH |
3116 | + ;; |
3117 | + siemens) |
3118 | + need_lib_prefix=no |
3119 | + ;; |
3120 | + motorola) |
3121 | + need_lib_prefix=no |
3122 | + need_version=no |
3123 | + shlibpath_overrides_runpath=no |
3124 | + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
3125 | + ;; |
3126 | + esac |
3127 | + ;; |
3128 | + |
3129 | +sysv4*MP*) |
3130 | + if test -d /usr/nec ;then |
3131 | + version_type=linux |
3132 | + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
3133 | + soname_spec='$libname${shared_ext}.$major' |
3134 | + shlibpath_var=LD_LIBRARY_PATH |
3135 | + fi |
3136 | + ;; |
3137 | + |
3138 | +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
3139 | + version_type=freebsd-elf |
3140 | + need_lib_prefix=no |
3141 | + need_version=no |
3142 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
3143 | + soname_spec='${libname}${release}${shared_ext}$major' |
3144 | + shlibpath_var=LD_LIBRARY_PATH |
3145 | + hardcode_into_libs=yes |
3146 | + if test "$with_gnu_ld" = yes; then |
3147 | + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
3148 | + shlibpath_overrides_runpath=no |
3149 | + else |
3150 | + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
3151 | + shlibpath_overrides_runpath=yes |
3152 | + case $host_os in |
3153 | + sco3.2v5*) |
3154 | + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
3155 | + ;; |
3156 | + esac |
3157 | + fi |
3158 | + sys_lib_dlsearch_path_spec='/usr/lib' |
3159 | + ;; |
3160 | + |
3161 | +uts4*) |
3162 | + version_type=linux |
3163 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
3164 | + soname_spec='${libname}${release}${shared_ext}$major' |
3165 | + shlibpath_var=LD_LIBRARY_PATH |
3166 | + ;; |
3167 | + |
3168 | +*) |
3169 | + dynamic_linker=no |
3170 | + ;; |
3171 | +esac |
3172 | +AC_MSG_RESULT([$dynamic_linker]) |
3173 | +test "$dynamic_linker" = no && can_build_shared=no |
3174 | + |
3175 | +AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec], |
3176 | +[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"]) |
3177 | +sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
3178 | +AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec], |
3179 | +[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"]) |
3180 | +sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
3181 | + |
3182 | +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
3183 | +if test "$GCC" = yes; then |
3184 | + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
3185 | +fi |
3186 | +])# AC_LIBTOOL_SYS_DYNAMIC_LINKER |
3187 | + |
3188 | + |
3189 | +# _LT_AC_TAGCONFIG |
3190 | +# ---------------- |
3191 | +AC_DEFUN([_LT_AC_TAGCONFIG], |
3192 | +[AC_REQUIRE([LT_AC_PROG_SED])dnl |
3193 | +AC_ARG_WITH([tags], |
3194 | + [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@], |
3195 | + [include additional configurations @<:@automatic@:>@])], |
3196 | + [tagnames="$withval"]) |
3197 | + |
3198 | +if test -f "$ltmain" && test -n "$tagnames"; then |
3199 | + if test ! -f "${ofile}"; then |
3200 | + AC_MSG_WARN([output file `$ofile' does not exist]) |
3201 | + fi |
3202 | + |
3203 | + if test -z "$LTCC"; then |
3204 | + eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
3205 | + if test -z "$LTCC"; then |
3206 | + AC_MSG_WARN([output file `$ofile' does not look like a libtool script]) |
3207 | + else |
3208 | + AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) |
3209 | + fi |
3210 | + fi |
3211 | + if test -z "$LTCFLAGS"; then |
3212 | + eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" |
3213 | + fi |
3214 | + |
3215 | + # Extract list of available tagged configurations in $ofile. |
3216 | + # Note that this assumes the entire list is on one line. |
3217 | + available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
3218 | + |
3219 | + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
3220 | + for tagname in $tagnames; do |
3221 | + IFS="$lt_save_ifs" |
3222 | + # Check whether tagname contains only valid characters |
3223 | + case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in |
3224 | + "") ;; |
3225 | + *) AC_MSG_ERROR([invalid tag name: $tagname]) |
3226 | + ;; |
3227 | + esac |
3228 | + |
3229 | + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
3230 | + then |
3231 | + AC_MSG_ERROR([tag name \"$tagname\" already exists]) |
3232 | + fi |
3233 | + |
3234 | + # Update the list of available tags. |
3235 | + if test -n "$tagname"; then |
3236 | + echo appending configuration tag \"$tagname\" to $ofile |
3237 | + |
3238 | + case $tagname in |
3239 | + CXX) |
3240 | + if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
3241 | + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
3242 | + (test "X$CXX" != "Xg++"))) ; then |
3243 | + AC_LIBTOOL_LANG_CXX_CONFIG |
3244 | + else |
3245 | + tagname="" |
3246 | + fi |
3247 | + ;; |
3248 | + |
3249 | + F77) |
3250 | + if test -n "$F77" && test "X$F77" != "Xno"; then |
3251 | + AC_LIBTOOL_LANG_F77_CONFIG |
3252 | + else |
3253 | + tagname="" |
3254 | + fi |
3255 | + ;; |
3256 | + |
3257 | + GCJ) |
3258 | + if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
3259 | + AC_LIBTOOL_LANG_GCJ_CONFIG |
3260 | + else |
3261 | + tagname="" |
3262 | + fi |
3263 | + ;; |
3264 | + |
3265 | + RC) |
3266 | + AC_LIBTOOL_LANG_RC_CONFIG |
3267 | + ;; |
3268 | + |
3269 | + *) |
3270 | + AC_MSG_ERROR([Unsupported tag name: $tagname]) |
3271 | + ;; |
3272 | + esac |
3273 | + |
3274 | + # Append the new tag name to the list of available tags. |
3275 | + if test -n "$tagname" ; then |
3276 | + available_tags="$available_tags $tagname" |
3277 | + fi |
3278 | + fi |
3279 | + done |
3280 | + IFS="$lt_save_ifs" |
3281 | + |
3282 | + # Now substitute the updated list of available tags. |
3283 | + if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
3284 | + mv "${ofile}T" "$ofile" |
3285 | + chmod +x "$ofile" |
3286 | + else |
3287 | + rm -f "${ofile}T" |
3288 | + AC_MSG_ERROR([unable to update list of available tagged configurations.]) |
3289 | + fi |
3290 | +fi |
3291 | +])# _LT_AC_TAGCONFIG |
3292 | + |
3293 | + |
3294 | +# AC_LIBTOOL_DLOPEN |
3295 | +# ----------------- |
3296 | +# enable checks for dlopen support |
3297 | +AC_DEFUN([AC_LIBTOOL_DLOPEN], |
3298 | + [AC_BEFORE([$0],[AC_LIBTOOL_SETUP]) |
3299 | +])# AC_LIBTOOL_DLOPEN |
3300 | + |
3301 | + |
3302 | +# AC_LIBTOOL_WIN32_DLL |
3303 | +# -------------------- |
3304 | +# declare package support for building win32 DLLs |
3305 | +AC_DEFUN([AC_LIBTOOL_WIN32_DLL], |
3306 | +[AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) |
3307 | +])# AC_LIBTOOL_WIN32_DLL |
3308 | + |
3309 | + |
3310 | +# AC_ENABLE_SHARED([DEFAULT]) |
3311 | +# --------------------------- |
3312 | +# implement the --enable-shared flag |
3313 | +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. |
3314 | +AC_DEFUN([AC_ENABLE_SHARED], |
3315 | +[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl |
3316 | +AC_ARG_ENABLE([shared], |
3317 | + [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@], |
3318 | + [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])], |
3319 | + [p=${PACKAGE-default} |
3320 | + case $enableval in |
3321 | + yes) enable_shared=yes ;; |
3322 | + no) enable_shared=no ;; |
3323 | + *) |
3324 | + enable_shared=no |
3325 | + # Look at the argument we got. We use all the common list separators. |
3326 | + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
3327 | + for pkg in $enableval; do |
3328 | + IFS="$lt_save_ifs" |
3329 | + if test "X$pkg" = "X$p"; then |
3330 | + enable_shared=yes |
3331 | + fi |
3332 | + done |
3333 | + IFS="$lt_save_ifs" |
3334 | + ;; |
3335 | + esac], |
3336 | + [enable_shared=]AC_ENABLE_SHARED_DEFAULT) |
3337 | +])# AC_ENABLE_SHARED |
3338 | + |
3339 | + |
3340 | +# AC_DISABLE_SHARED |
3341 | +# ----------------- |
3342 | +# set the default shared flag to --disable-shared |
3343 | +AC_DEFUN([AC_DISABLE_SHARED], |
3344 | +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
3345 | +AC_ENABLE_SHARED(no) |
3346 | +])# AC_DISABLE_SHARED |
3347 | + |
3348 | + |
3349 | +# AC_ENABLE_STATIC([DEFAULT]) |
3350 | +# --------------------------- |
3351 | +# implement the --enable-static flag |
3352 | +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. |
3353 | +AC_DEFUN([AC_ENABLE_STATIC], |
3354 | +[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl |
3355 | +AC_ARG_ENABLE([static], |
3356 | + [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@], |
3357 | + [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])], |
3358 | + [p=${PACKAGE-default} |
3359 | + case $enableval in |
3360 | + yes) enable_static=yes ;; |
3361 | + no) enable_static=no ;; |
3362 | + *) |
3363 | + enable_static=no |
3364 | + # Look at the argument we got. We use all the common list separators. |
3365 | + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
3366 | + for pkg in $enableval; do |
3367 | + IFS="$lt_save_ifs" |
3368 | + if test "X$pkg" = "X$p"; then |
3369 | + enable_static=yes |
3370 | + fi |
3371 | + done |
3372 | + IFS="$lt_save_ifs" |
3373 | + ;; |
3374 | + esac], |
3375 | + [enable_static=]AC_ENABLE_STATIC_DEFAULT) |
3376 | +])# AC_ENABLE_STATIC |
3377 | + |
3378 | + |
3379 | +# AC_DISABLE_STATIC |
3380 | +# ----------------- |
3381 | +# set the default static flag to --disable-static |
3382 | +AC_DEFUN([AC_DISABLE_STATIC], |
3383 | +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
3384 | +AC_ENABLE_STATIC(no) |
3385 | +])# AC_DISABLE_STATIC |
3386 | + |
3387 | + |
3388 | +# AC_ENABLE_FAST_INSTALL([DEFAULT]) |
3389 | +# --------------------------------- |
3390 | +# implement the --enable-fast-install flag |
3391 | +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. |
3392 | +AC_DEFUN([AC_ENABLE_FAST_INSTALL], |
3393 | +[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl |
3394 | +AC_ARG_ENABLE([fast-install], |
3395 | + [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], |
3396 | + [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], |
3397 | + [p=${PACKAGE-default} |
3398 | + case $enableval in |
3399 | + yes) enable_fast_install=yes ;; |
3400 | + no) enable_fast_install=no ;; |
3401 | + *) |
3402 | + enable_fast_install=no |
3403 | + # Look at the argument we got. We use all the common list separators. |
3404 | + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
3405 | + for pkg in $enableval; do |
3406 | + IFS="$lt_save_ifs" |
3407 | + if test "X$pkg" = "X$p"; then |
3408 | + enable_fast_install=yes |
3409 | + fi |
3410 | + done |
3411 | + IFS="$lt_save_ifs" |
3412 | + ;; |
3413 | + esac], |
3414 | + [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT) |
3415 | +])# AC_ENABLE_FAST_INSTALL |
3416 | + |
3417 | + |
3418 | +# AC_DISABLE_FAST_INSTALL |
3419 | +# ----------------------- |
3420 | +# set the default to --disable-fast-install |
3421 | +AC_DEFUN([AC_DISABLE_FAST_INSTALL], |
3422 | +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
3423 | +AC_ENABLE_FAST_INSTALL(no) |
3424 | +])# AC_DISABLE_FAST_INSTALL |
3425 | + |
3426 | + |
3427 | +# AC_LIBTOOL_PICMODE([MODE]) |
3428 | +# -------------------------- |
3429 | +# implement the --with-pic flag |
3430 | +# MODE is either `yes' or `no'. If omitted, it defaults to `both'. |
3431 | +AC_DEFUN([AC_LIBTOOL_PICMODE], |
3432 | +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
3433 | +pic_mode=ifelse($#,1,$1,default) |
3434 | +])# AC_LIBTOOL_PICMODE |
3435 | + |
3436 | + |
3437 | +# AC_PROG_EGREP |
3438 | +# ------------- |
3439 | +# This is predefined starting with Autoconf 2.54, so this conditional |
3440 | +# definition can be removed once we require Autoconf 2.54 or later. |
3441 | +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP], |
3442 | +[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep], |
3443 | + [if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
3444 | + then ac_cv_prog_egrep='grep -E' |
3445 | + else ac_cv_prog_egrep='egrep' |
3446 | + fi]) |
3447 | + EGREP=$ac_cv_prog_egrep |
3448 | + AC_SUBST([EGREP]) |
3449 | +])]) |
3450 | + |
3451 | + |
3452 | +# AC_PATH_TOOL_PREFIX |
3453 | +# ------------------- |
3454 | +# find a file program which can recognize shared library |
3455 | +AC_DEFUN([AC_PATH_TOOL_PREFIX], |
3456 | +[AC_REQUIRE([AC_PROG_EGREP])dnl |
3457 | +AC_MSG_CHECKING([for $1]) |
3458 | +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, |
3459 | +[case $MAGIC_CMD in |
3460 | +[[\\/*] | ?:[\\/]*]) |
3461 | + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
3462 | + ;; |
3463 | +*) |
3464 | + lt_save_MAGIC_CMD="$MAGIC_CMD" |
3465 | + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
3466 | +dnl $ac_dummy forces splitting on constant user-supplied paths. |
3467 | +dnl POSIX.2 word splitting is done only on the output of word expansions, |
3468 | +dnl not every word. This closes a longstanding sh security hole. |
3469 | + ac_dummy="ifelse([$2], , $PATH, [$2])" |
3470 | + for ac_dir in $ac_dummy; do |
3471 | + IFS="$lt_save_ifs" |
3472 | + test -z "$ac_dir" && ac_dir=. |
3473 | + if test -f $ac_dir/$1; then |
3474 | + lt_cv_path_MAGIC_CMD="$ac_dir/$1" |
3475 | + if test -n "$file_magic_test_file"; then |
3476 | + case $deplibs_check_method in |
3477 | + "file_magic "*) |
3478 | + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
3479 | + MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
3480 | + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
3481 | + $EGREP "$file_magic_regex" > /dev/null; then |
3482 | + : |
3483 | + else |
3484 | + cat <<EOF 1>&2 |
3485 | + |
3486 | +*** Warning: the command libtool uses to detect shared libraries, |
3487 | +*** $file_magic_cmd, produces output that libtool cannot recognize. |
3488 | +*** The result is that libtool may fail to recognize shared libraries |
3489 | +*** as such. This will affect the creation of libtool libraries that |
3490 | +*** depend on shared libraries, but programs linked with such libtool |
3491 | +*** libraries will work regardless of this problem. Nevertheless, you |
3492 | +*** may want to report the problem to your system manager and/or to |
3493 | +*** bug-libtool@gnu.org |
3494 | + |
3495 | +EOF |
3496 | + fi ;; |
3497 | + esac |
3498 | + fi |
3499 | + break |
3500 | + fi |
3501 | + done |
3502 | + IFS="$lt_save_ifs" |
3503 | + MAGIC_CMD="$lt_save_MAGIC_CMD" |
3504 | + ;; |
3505 | +esac]) |
3506 | +MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
3507 | +if test -n "$MAGIC_CMD"; then |
3508 | + AC_MSG_RESULT($MAGIC_CMD) |
3509 | +else |
3510 | + AC_MSG_RESULT(no) |
3511 | +fi |
3512 | +])# AC_PATH_TOOL_PREFIX |
3513 | + |
3514 | + |
3515 | +# AC_PATH_MAGIC |
3516 | +# ------------- |
3517 | +# find a file program which can recognize a shared library |
3518 | +AC_DEFUN([AC_PATH_MAGIC], |
3519 | +[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) |
3520 | +if test -z "$lt_cv_path_MAGIC_CMD"; then |
3521 | + if test -n "$ac_tool_prefix"; then |
3522 | + AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) |
3523 | + else |
3524 | + MAGIC_CMD=: |
3525 | + fi |
3526 | +fi |
3527 | +])# AC_PATH_MAGIC |
3528 | + |
3529 | + |
3530 | +# AC_PROG_LD |
3531 | +# ---------- |
3532 | +# find the pathname to the GNU or non-GNU linker |
3533 | +AC_DEFUN([AC_PROG_LD], |
3534 | +[AC_ARG_WITH([gnu-ld], |
3535 | + [AC_HELP_STRING([--with-gnu-ld], |
3536 | + [assume the C compiler uses GNU ld @<:@default=no@:>@])], |
3537 | + [test "$withval" = no || with_gnu_ld=yes], |
3538 | + [with_gnu_ld=no]) |
3539 | +AC_REQUIRE([LT_AC_PROG_SED])dnl |
3540 | +AC_REQUIRE([AC_PROG_CC])dnl |
3541 | +AC_REQUIRE([AC_CANONICAL_HOST])dnl |
3542 | +AC_REQUIRE([AC_CANONICAL_BUILD])dnl |
3543 | +ac_prog=ld |
3544 | +if test "$GCC" = yes; then |
3545 | + # Check if gcc -print-prog-name=ld gives a path. |
3546 | + AC_MSG_CHECKING([for ld used by $CC]) |
3547 | + case $host in |
3548 | + *-*-mingw*) |
3549 | + # gcc leaves a trailing carriage return which upsets mingw |
3550 | + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
3551 | + *) |
3552 | + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
3553 | + esac |
3554 | + case $ac_prog in |
3555 | + # Accept absolute paths. |
3556 | + [[\\/]]* | ?:[[\\/]]*) |
3557 | + re_direlt='/[[^/]][[^/]]*/\.\./' |
3558 | + # Canonicalize the pathname of ld |
3559 | + ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
3560 | + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
3561 | + ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
3562 | + done |
3563 | + test -z "$LD" && LD="$ac_prog" |
3564 | + ;; |
3565 | + "") |
3566 | + # If it fails, then pretend we aren't using GCC. |
3567 | + ac_prog=ld |
3568 | + ;; |
3569 | + *) |
3570 | + # If it is relative, then search for the first ld in PATH. |
3571 | + with_gnu_ld=unknown |
3572 | + ;; |
3573 | + esac |
3574 | +elif test "$with_gnu_ld" = yes; then |
3575 | + AC_MSG_CHECKING([for GNU ld]) |
3576 | +else |
3577 | + AC_MSG_CHECKING([for non-GNU ld]) |
3578 | +fi |
3579 | +AC_CACHE_VAL(lt_cv_path_LD, |
3580 | +[if test -z "$LD"; then |
3581 | + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
3582 | + for ac_dir in $PATH; do |
3583 | + IFS="$lt_save_ifs" |
3584 | + test -z "$ac_dir" && ac_dir=. |
3585 | + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
3586 | + lt_cv_path_LD="$ac_dir/$ac_prog" |
3587 | + # Check to see if the program is GNU ld. I'd rather use --version, |
3588 | + # but apparently some variants of GNU ld only accept -v. |
3589 | + # Break only if it was the GNU/non-GNU ld that we prefer. |
3590 | + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
3591 | + *GNU* | *'with BFD'*) |
3592 | + test "$with_gnu_ld" != no && break |
3593 | + ;; |
3594 | + *) |
3595 | + test "$with_gnu_ld" != yes && break |
3596 | + ;; |
3597 | + esac |
3598 | + fi |
3599 | + done |
3600 | + IFS="$lt_save_ifs" |
3601 | +else |
3602 | + lt_cv_path_LD="$LD" # Let the user override the test with a path. |
3603 | +fi]) |
3604 | +LD="$lt_cv_path_LD" |
3605 | +if test -n "$LD"; then |
3606 | + AC_MSG_RESULT($LD) |
3607 | +else |
3608 | + AC_MSG_RESULT(no) |
3609 | +fi |
3610 | +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) |
3611 | +AC_PROG_LD_GNU |
3612 | +])# AC_PROG_LD |
3613 | + |
3614 | + |
3615 | +# AC_PROG_LD_GNU |
3616 | +# -------------- |
3617 | +AC_DEFUN([AC_PROG_LD_GNU], |
3618 | +[AC_REQUIRE([AC_PROG_EGREP])dnl |
3619 | +AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, |
3620 | +[# I'd rather use --version here, but apparently some GNU lds only accept -v. |
3621 | +case `$LD -v 2>&1 </dev/null` in |
3622 | +*GNU* | *'with BFD'*) |
3623 | + lt_cv_prog_gnu_ld=yes |
3624 | + ;; |
3625 | +*) |
3626 | + lt_cv_prog_gnu_ld=no |
3627 | + ;; |
3628 | +esac]) |
3629 | +with_gnu_ld=$lt_cv_prog_gnu_ld |
3630 | +])# AC_PROG_LD_GNU |
3631 | + |
3632 | + |
3633 | +# AC_PROG_LD_RELOAD_FLAG |
3634 | +# ---------------------- |
3635 | +# find reload flag for linker |
3636 | +# -- PORTME Some linkers may need a different reload flag. |
3637 | +AC_DEFUN([AC_PROG_LD_RELOAD_FLAG], |
3638 | +[AC_CACHE_CHECK([for $LD option to reload object files], |
3639 | + lt_cv_ld_reload_flag, |
3640 | + [lt_cv_ld_reload_flag='-r']) |
3641 | +reload_flag=$lt_cv_ld_reload_flag |
3642 | +case $reload_flag in |
3643 | +"" | " "*) ;; |
3644 | +*) reload_flag=" $reload_flag" ;; |
3645 | +esac |
3646 | +reload_cmds='$LD$reload_flag -o $output$reload_objs' |
3647 | +case $host_os in |
3648 | + darwin*) |
3649 | + if test "$GCC" = yes; then |
3650 | + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
3651 | + else |
3652 | + reload_cmds='$LD$reload_flag -o $output$reload_objs' |
3653 | + fi |
3654 | + ;; |
3655 | +esac |
3656 | +])# AC_PROG_LD_RELOAD_FLAG |
3657 | + |
3658 | + |
3659 | +# AC_DEPLIBS_CHECK_METHOD |
3660 | +# ----------------------- |
3661 | +# how to check for library dependencies |
3662 | +# -- PORTME fill in with the dynamic library characteristics |
3663 | +AC_DEFUN([AC_DEPLIBS_CHECK_METHOD], |
3664 | +[AC_CACHE_CHECK([how to recognize dependent libraries], |
3665 | +lt_cv_deplibs_check_method, |
3666 | +[lt_cv_file_magic_cmd='$MAGIC_CMD' |
3667 | +lt_cv_file_magic_test_file= |
3668 | +lt_cv_deplibs_check_method='unknown' |
3669 | +# Need to set the preceding variable on all platforms that support |
3670 | +# interlibrary dependencies. |
3671 | +# 'none' -- dependencies not supported. |
3672 | +# `unknown' -- same as none, but documents that we really don't know. |
3673 | +# 'pass_all' -- all dependencies passed with no checks. |
3674 | +# 'test_compile' -- check by making test program. |
3675 | +# 'file_magic [[regex]]' -- check by looking for files in library path |
3676 | +# which responds to the $file_magic_cmd with a given extended regex. |
3677 | +# If you have `file' or equivalent on your system and you're not sure |
3678 | +# whether `pass_all' will *always* work, you probably want this one. |
3679 | + |
3680 | +case $host_os in |
3681 | +aix[[4-9]]*) |
3682 | + lt_cv_deplibs_check_method=pass_all |
3683 | + ;; |
3684 | + |
3685 | +beos*) |
3686 | + lt_cv_deplibs_check_method=pass_all |
3687 | + ;; |
3688 | + |
3689 | +bsdi[[45]]*) |
3690 | + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' |
3691 | + lt_cv_file_magic_cmd='/usr/bin/file -L' |
3692 | + lt_cv_file_magic_test_file=/shlib/libc.so |
3693 | + ;; |
3694 | + |
3695 | +cygwin*) |
3696 | + # func_win32_libid is a shell function defined in ltmain.sh |
3697 | + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
3698 | + lt_cv_file_magic_cmd='func_win32_libid' |
3699 | + ;; |
3700 | + |
3701 | +mingw* | pw32*) |
3702 | + # Base MSYS/MinGW do not provide the 'file' command needed by |
3703 | + # func_win32_libid shell function, so use a weaker test based on 'objdump', |
3704 | + # unless we find 'file', for example because we are cross-compiling. |
3705 | + if ( file / ) >/dev/null 2>&1; then |
3706 | + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
3707 | + lt_cv_file_magic_cmd='func_win32_libid' |
3708 | + else |
3709 | + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
3710 | + lt_cv_file_magic_cmd='$OBJDUMP -f' |
3711 | + fi |
3712 | + ;; |
3713 | + |
3714 | +darwin* | rhapsody*) |
3715 | + lt_cv_deplibs_check_method=pass_all |
3716 | + ;; |
3717 | + |
3718 | +freebsd* | dragonfly*) |
3719 | + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
3720 | + case $host_cpu in |
3721 | + i*86 ) |
3722 | + # Not sure whether the presence of OpenBSD here was a mistake. |
3723 | + # Let's accept both of them until this is cleared up. |
3724 | + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' |
3725 | + lt_cv_file_magic_cmd=/usr/bin/file |
3726 | + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
3727 | + ;; |
3728 | + esac |
3729 | + else |
3730 | + lt_cv_deplibs_check_method=pass_all |
3731 | + fi |
3732 | + ;; |
3733 | + |
3734 | +gnu*) |
3735 | + lt_cv_deplibs_check_method=pass_all |
3736 | + ;; |
3737 | + |
3738 | +hpux10.20* | hpux11*) |
3739 | + lt_cv_file_magic_cmd=/usr/bin/file |
3740 | + case $host_cpu in |
3741 | + ia64*) |
3742 | + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' |
3743 | + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
3744 | + ;; |
3745 | + hppa*64*) |
3746 | + [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]'] |
3747 | + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
3748 | + ;; |
3749 | + *) |
3750 | + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' |
3751 | + lt_cv_file_magic_test_file=/usr/lib/libc.sl |
3752 | + ;; |
3753 | + esac |
3754 | + ;; |
3755 | + |
3756 | +interix[[3-9]]*) |
3757 | + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
3758 | + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' |
3759 | + ;; |
3760 | + |
3761 | +irix5* | irix6* | nonstopux*) |
3762 | + case $LD in |
3763 | + *-32|*"-32 ") libmagic=32-bit;; |
3764 | + *-n32|*"-n32 ") libmagic=N32;; |
3765 | + *-64|*"-64 ") libmagic=64-bit;; |
3766 | + *) libmagic=never-match;; |
3767 | + esac |
3768 | + lt_cv_deplibs_check_method=pass_all |
3769 | + ;; |
3770 | + |
3771 | +# This must be Linux ELF. |
3772 | +linux* | k*bsd*-gnu) |
3773 | + lt_cv_deplibs_check_method=pass_all |
3774 | + ;; |
3775 | + |
3776 | +netbsd* | netbsdelf*-gnu) |
3777 | + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
3778 | + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' |
3779 | + else |
3780 | + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' |
3781 | + fi |
3782 | + ;; |
3783 | + |
3784 | +newos6*) |
3785 | + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' |
3786 | + lt_cv_file_magic_cmd=/usr/bin/file |
3787 | + lt_cv_file_magic_test_file=/usr/lib/libnls.so |
3788 | + ;; |
3789 | + |
3790 | +nto-qnx*) |
3791 | + lt_cv_deplibs_check_method=unknown |
3792 | + ;; |
3793 | + |
3794 | +openbsd*) |
3795 | + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
3796 | + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' |
3797 | + else |
3798 | + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' |
3799 | + fi |
3800 | + ;; |
3801 | + |
3802 | +osf3* | osf4* | osf5*) |
3803 | + lt_cv_deplibs_check_method=pass_all |
3804 | + ;; |
3805 | + |
3806 | +rdos*) |
3807 | + lt_cv_deplibs_check_method=pass_all |
3808 | + ;; |
3809 | + |
3810 | +solaris*) |
3811 | + lt_cv_deplibs_check_method=pass_all |
3812 | + ;; |
3813 | + |
3814 | +sysv4 | sysv4.3*) |
3815 | + case $host_vendor in |
3816 | + motorola) |
3817 | + 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]]' |
3818 | + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
3819 | + ;; |
3820 | + ncr) |
3821 | + lt_cv_deplibs_check_method=pass_all |
3822 | + ;; |
3823 | + sequent) |
3824 | + lt_cv_file_magic_cmd='/bin/file' |
3825 | + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' |
3826 | + ;; |
3827 | + sni) |
3828 | + lt_cv_file_magic_cmd='/bin/file' |
3829 | + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" |
3830 | + lt_cv_file_magic_test_file=/lib/libc.so |
3831 | + ;; |
3832 | + siemens) |
3833 | + lt_cv_deplibs_check_method=pass_all |
3834 | + ;; |
3835 | + pc) |
3836 | + lt_cv_deplibs_check_method=pass_all |
3837 | + ;; |
3838 | + esac |
3839 | + ;; |
3840 | + |
3841 | +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
3842 | + lt_cv_deplibs_check_method=pass_all |
3843 | + ;; |
3844 | +esac |
3845 | +]) |
3846 | +file_magic_cmd=$lt_cv_file_magic_cmd |
3847 | +deplibs_check_method=$lt_cv_deplibs_check_method |
3848 | +test -z "$deplibs_check_method" && deplibs_check_method=unknown |
3849 | +])# AC_DEPLIBS_CHECK_METHOD |
3850 | + |
3851 | + |
3852 | +# AC_PROG_NM |
3853 | +# ---------- |
3854 | +# find the pathname to a BSD-compatible name lister |
3855 | +AC_DEFUN([AC_PROG_NM], |
3856 | +[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM, |
3857 | +[if test -n "$NM"; then |
3858 | + # Let the user override the test. |
3859 | + lt_cv_path_NM="$NM" |
3860 | +else |
3861 | + lt_nm_to_check="${ac_tool_prefix}nm" |
3862 | + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
3863 | + lt_nm_to_check="$lt_nm_to_check nm" |
3864 | + fi |
3865 | + for lt_tmp_nm in $lt_nm_to_check; do |
3866 | + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
3867 | + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
3868 | + IFS="$lt_save_ifs" |
3869 | + test -z "$ac_dir" && ac_dir=. |
3870 | + tmp_nm="$ac_dir/$lt_tmp_nm" |
3871 | + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
3872 | + # Check to see if the nm accepts a BSD-compat flag. |
3873 | + # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
3874 | + # nm: unknown option "B" ignored |
3875 | + # Tru64's nm complains that /dev/null is an invalid object file |
3876 | + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
3877 | + */dev/null* | *'Invalid file or object type'*) |
3878 | + lt_cv_path_NM="$tmp_nm -B" |
3879 | + break |
3880 | + ;; |
3881 | + *) |
3882 | + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
3883 | + */dev/null*) |
3884 | + lt_cv_path_NM="$tmp_nm -p" |
3885 | + break |
3886 | + ;; |
3887 | + *) |
3888 | + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
3889 | + continue # so that we can try to find one that supports BSD flags |
3890 | + ;; |
3891 | + esac |
3892 | + ;; |
3893 | + esac |
3894 | + fi |
3895 | + done |
3896 | + IFS="$lt_save_ifs" |
3897 | + done |
3898 | + test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
3899 | +fi]) |
3900 | +NM="$lt_cv_path_NM" |
3901 | +])# AC_PROG_NM |
3902 | + |
3903 | + |
3904 | +# AC_CHECK_LIBM |
3905 | +# ------------- |
3906 | +# check for math library |
3907 | +AC_DEFUN([AC_CHECK_LIBM], |
3908 | +[AC_REQUIRE([AC_CANONICAL_HOST])dnl |
3909 | +LIBM= |
3910 | +case $host in |
3911 | +*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) |
3912 | + # These system don't have libm, or don't need it |
3913 | + ;; |
3914 | +*-ncr-sysv4.3*) |
3915 | + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") |
3916 | + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") |
3917 | + ;; |
3918 | +*) |
3919 | + AC_CHECK_LIB(m, cos, LIBM="-lm") |
3920 | + ;; |
3921 | +esac |
3922 | +])# AC_CHECK_LIBM |
3923 | + |
3924 | + |
3925 | +# AC_LIBLTDL_CONVENIENCE([DIRECTORY]) |
3926 | +# ----------------------------------- |
3927 | +# sets LIBLTDL to the link flags for the libltdl convenience library and |
3928 | +# LTDLINCL to the include flags for the libltdl header and adds |
3929 | +# --enable-ltdl-convenience to the configure arguments. Note that |
3930 | +# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, |
3931 | +# it is assumed to be `libltdl'. LIBLTDL will be prefixed with |
3932 | +# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/' |
3933 | +# (note the single quotes!). If your package is not flat and you're not |
3934 | +# using automake, define top_builddir and top_srcdir appropriately in |
3935 | +# the Makefiles. |
3936 | +AC_DEFUN([AC_LIBLTDL_CONVENIENCE], |
3937 | +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
3938 | + case $enable_ltdl_convenience in |
3939 | + no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; |
3940 | + "") enable_ltdl_convenience=yes |
3941 | + ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; |
3942 | + esac |
3943 | + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la |
3944 | + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) |
3945 | + # For backwards non-gettext consistent compatibility... |
3946 | + INCLTDL="$LTDLINCL" |
3947 | +])# AC_LIBLTDL_CONVENIENCE |
3948 | + |
3949 | + |
3950 | +# AC_LIBLTDL_INSTALLABLE([DIRECTORY]) |
3951 | +# ----------------------------------- |
3952 | +# sets LIBLTDL to the link flags for the libltdl installable library and |
3953 | +# LTDLINCL to the include flags for the libltdl header and adds |
3954 | +# --enable-ltdl-install to the configure arguments. Note that |
3955 | +# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, |
3956 | +# and an installed libltdl is not found, it is assumed to be `libltdl'. |
3957 | +# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with |
3958 | +# '${top_srcdir}/' (note the single quotes!). If your package is not |
3959 | +# flat and you're not using automake, define top_builddir and top_srcdir |
3960 | +# appropriately in the Makefiles. |
3961 | +# In the future, this macro may have to be called after AC_PROG_LIBTOOL. |
3962 | +AC_DEFUN([AC_LIBLTDL_INSTALLABLE], |
3963 | +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
3964 | + AC_CHECK_LIB(ltdl, lt_dlinit, |
3965 | + [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], |
3966 | + [if test x"$enable_ltdl_install" = xno; then |
3967 | + AC_MSG_WARN([libltdl not installed, but installation disabled]) |
3968 | + else |
3969 | + enable_ltdl_install=yes |
3970 | + fi |
3971 | + ]) |
3972 | + if test x"$enable_ltdl_install" = x"yes"; then |
3973 | + ac_configure_args="$ac_configure_args --enable-ltdl-install" |
3974 | + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la |
3975 | + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) |
3976 | + else |
3977 | + ac_configure_args="$ac_configure_args --enable-ltdl-install=no" |
3978 | + LIBLTDL="-lltdl" |
3979 | + LTDLINCL= |
3980 | + fi |
3981 | + # For backwards non-gettext consistent compatibility... |
3982 | + INCLTDL="$LTDLINCL" |
3983 | +])# AC_LIBLTDL_INSTALLABLE |
3984 | + |
3985 | + |
3986 | +# AC_LIBTOOL_CXX |
3987 | +# -------------- |
3988 | +# enable support for C++ libraries |
3989 | +AC_DEFUN([AC_LIBTOOL_CXX], |
3990 | +[AC_REQUIRE([_LT_AC_LANG_CXX]) |
3991 | +])# AC_LIBTOOL_CXX |
3992 | + |
3993 | + |
3994 | +# _LT_AC_LANG_CXX |
3995 | +# --------------- |
3996 | +AC_DEFUN([_LT_AC_LANG_CXX], |
3997 | +[AC_REQUIRE([AC_PROG_CXX]) |
3998 | +AC_REQUIRE([_LT_AC_PROG_CXXCPP]) |
3999 | +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) |
4000 | +])# _LT_AC_LANG_CXX |
4001 | + |
4002 | +# _LT_AC_PROG_CXXCPP |
4003 | +# ------------------ |
4004 | +AC_DEFUN([_LT_AC_PROG_CXXCPP], |
4005 | +[ |
4006 | +AC_REQUIRE([AC_PROG_CXX]) |
4007 | +if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
4008 | + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
4009 | + (test "X$CXX" != "Xg++"))) ; then |
4010 | + AC_PROG_CXXCPP |
4011 | +fi |
4012 | +])# _LT_AC_PROG_CXXCPP |
4013 | + |
4014 | +# AC_LIBTOOL_F77 |
4015 | +# -------------- |
4016 | +# enable support for Fortran 77 libraries |
4017 | +AC_DEFUN([AC_LIBTOOL_F77], |
4018 | +[AC_REQUIRE([_LT_AC_LANG_F77]) |
4019 | +])# AC_LIBTOOL_F77 |
4020 | + |
4021 | + |
4022 | +# _LT_AC_LANG_F77 |
4023 | +# --------------- |
4024 | +AC_DEFUN([_LT_AC_LANG_F77], |
4025 | +[AC_REQUIRE([AC_PROG_F77]) |
4026 | +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77]) |
4027 | +])# _LT_AC_LANG_F77 |
4028 | + |
4029 | + |
4030 | +# AC_LIBTOOL_GCJ |
4031 | +# -------------- |
4032 | +# enable support for GCJ libraries |
4033 | +AC_DEFUN([AC_LIBTOOL_GCJ], |
4034 | +[AC_REQUIRE([_LT_AC_LANG_GCJ]) |
4035 | +])# AC_LIBTOOL_GCJ |
4036 | + |
4037 | + |
4038 | +# _LT_AC_LANG_GCJ |
4039 | +# --------------- |
4040 | +AC_DEFUN([_LT_AC_LANG_GCJ], |
4041 | +[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[], |
4042 | + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[], |
4043 | + [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[], |
4044 | + [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])], |
4045 | + [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])], |
4046 | + [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])]) |
4047 | +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ]) |
4048 | +])# _LT_AC_LANG_GCJ |
4049 | + |
4050 | + |
4051 | +# AC_LIBTOOL_RC |
4052 | +# ------------- |
4053 | +# enable support for Windows resource files |
4054 | +AC_DEFUN([AC_LIBTOOL_RC], |
4055 | +[AC_REQUIRE([LT_AC_PROG_RC]) |
4056 | +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC]) |
4057 | +])# AC_LIBTOOL_RC |
4058 | + |
4059 | + |
4060 | +# AC_LIBTOOL_LANG_C_CONFIG |
4061 | +# ------------------------ |
4062 | +# Ensure that the configuration vars for the C compiler are |
4063 | +# suitably defined. Those variables are subsequently used by |
4064 | +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. |
4065 | +AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG]) |
4066 | +AC_DEFUN([_LT_AC_LANG_C_CONFIG], |
4067 | +[lt_save_CC="$CC" |
4068 | +AC_LANG_PUSH(C) |
4069 | + |
4070 | +# Source file extension for C test sources. |
4071 | +ac_ext=c |
4072 | + |
4073 | +# Object file extension for compiled C test sources. |
4074 | +objext=o |
4075 | +_LT_AC_TAGVAR(objext, $1)=$objext |
4076 | + |
4077 | +# Code to be used in simple compile tests |
4078 | +lt_simple_compile_test_code="int some_variable = 0;" |
4079 | + |
4080 | +# Code to be used in simple link tests |
4081 | +lt_simple_link_test_code='int main(){return(0);}' |
4082 | + |
4083 | +_LT_AC_SYS_COMPILER |
4084 | + |
4085 | +# save warnings/boilerplate of simple test code |
4086 | +_LT_COMPILER_BOILERPLATE |
4087 | +_LT_LINKER_BOILERPLATE |
4088 | + |
4089 | +AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) |
4090 | +AC_LIBTOOL_PROG_COMPILER_PIC($1) |
4091 | +AC_LIBTOOL_PROG_CC_C_O($1) |
4092 | +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) |
4093 | +AC_LIBTOOL_PROG_LD_SHLIBS($1) |
4094 | +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
4095 | +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
4096 | +AC_LIBTOOL_SYS_LIB_STRIP |
4097 | +AC_LIBTOOL_DLOPEN_SELF |
4098 | + |
4099 | +# Report which library types will actually be built |
4100 | +AC_MSG_CHECKING([if libtool supports shared libraries]) |
4101 | +AC_MSG_RESULT([$can_build_shared]) |
4102 | + |
4103 | +AC_MSG_CHECKING([whether to build shared libraries]) |
4104 | +test "$can_build_shared" = "no" && enable_shared=no |
4105 | + |
4106 | +# On AIX, shared libraries and static libraries use the same namespace, and |
4107 | +# are all built from PIC. |
4108 | +case $host_os in |
4109 | +aix3*) |
4110 | + test "$enable_shared" = yes && enable_static=no |
4111 | + if test -n "$RANLIB"; then |
4112 | + archive_cmds="$archive_cmds~\$RANLIB \$lib" |
4113 | + postinstall_cmds='$RANLIB $lib' |
4114 | + fi |
4115 | + ;; |
4116 | + |
4117 | +aix[[4-9]]*) |
4118 | + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
4119 | + test "$enable_shared" = yes && enable_static=no |
4120 | + fi |
4121 | + ;; |
4122 | +esac |
4123 | +AC_MSG_RESULT([$enable_shared]) |
4124 | + |
4125 | +AC_MSG_CHECKING([whether to build static libraries]) |
4126 | +# Make sure either enable_shared or enable_static is yes. |
4127 | +test "$enable_shared" = yes || enable_static=yes |
4128 | +AC_MSG_RESULT([$enable_static]) |
4129 | + |
4130 | +AC_LIBTOOL_CONFIG($1) |
4131 | + |
4132 | +AC_LANG_POP |
4133 | +CC="$lt_save_CC" |
4134 | +])# AC_LIBTOOL_LANG_C_CONFIG |
4135 | + |
4136 | + |
4137 | +# AC_LIBTOOL_LANG_CXX_CONFIG |
4138 | +# -------------------------- |
4139 | +# Ensure that the configuration vars for the C compiler are |
4140 | +# suitably defined. Those variables are subsequently used by |
4141 | +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. |
4142 | +AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)]) |
4143 | +AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], |
4144 | +[AC_LANG_PUSH(C++) |
4145 | +AC_REQUIRE([AC_PROG_CXX]) |
4146 | +AC_REQUIRE([_LT_AC_PROG_CXXCPP]) |
4147 | + |
4148 | +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
4149 | +_LT_AC_TAGVAR(allow_undefined_flag, $1)= |
4150 | +_LT_AC_TAGVAR(always_export_symbols, $1)=no |
4151 | +_LT_AC_TAGVAR(archive_expsym_cmds, $1)= |
4152 | +_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= |
4153 | +_LT_AC_TAGVAR(hardcode_direct, $1)=no |
4154 | +_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= |
4155 | +_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= |
4156 | +_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= |
4157 | +_LT_AC_TAGVAR(hardcode_minus_L, $1)=no |
4158 | +_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
4159 | +_LT_AC_TAGVAR(hardcode_automatic, $1)=no |
4160 | +_LT_AC_TAGVAR(module_cmds, $1)= |
4161 | +_LT_AC_TAGVAR(module_expsym_cmds, $1)= |
4162 | +_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown |
4163 | +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds |
4164 | +_LT_AC_TAGVAR(no_undefined_flag, $1)= |
4165 | +_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= |
4166 | +_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no |
4167 | + |
4168 | +# Dependencies to place before and after the object being linked: |
4169 | +_LT_AC_TAGVAR(predep_objects, $1)= |
4170 | +_LT_AC_TAGVAR(postdep_objects, $1)= |
4171 | +_LT_AC_TAGVAR(predeps, $1)= |
4172 | +_LT_AC_TAGVAR(postdeps, $1)= |
4173 | +_LT_AC_TAGVAR(compiler_lib_search_path, $1)= |
4174 | +_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)= |
4175 | + |
4176 | +# Source file extension for C++ test sources. |
4177 | +ac_ext=cpp |
4178 | + |
4179 | +# Object file extension for compiled C++ test sources. |
4180 | +objext=o |
4181 | +_LT_AC_TAGVAR(objext, $1)=$objext |
4182 | + |
4183 | +# Code to be used in simple compile tests |
4184 | +lt_simple_compile_test_code="int some_variable = 0;" |
4185 | + |
4186 | +# Code to be used in simple link tests |
4187 | +lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' |
4188 | + |
4189 | +# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
4190 | +_LT_AC_SYS_COMPILER |
4191 | + |
4192 | +# save warnings/boilerplate of simple test code |
4193 | +_LT_COMPILER_BOILERPLATE |
4194 | +_LT_LINKER_BOILERPLATE |
4195 | + |
4196 | +# Allow CC to be a program name with arguments. |
4197 | +lt_save_CC=$CC |
4198 | +lt_save_LD=$LD |
4199 | +lt_save_GCC=$GCC |
4200 | +GCC=$GXX |
4201 | +lt_save_with_gnu_ld=$with_gnu_ld |
4202 | +lt_save_path_LD=$lt_cv_path_LD |
4203 | +if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
4204 | + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
4205 | +else |
4206 | + $as_unset lt_cv_prog_gnu_ld |
4207 | +fi |
4208 | +if test -n "${lt_cv_path_LDCXX+set}"; then |
4209 | + lt_cv_path_LD=$lt_cv_path_LDCXX |
4210 | +else |
4211 | + $as_unset lt_cv_path_LD |
4212 | +fi |
4213 | +test -z "${LDCXX+set}" || LD=$LDCXX |
4214 | +CC=${CXX-"c++"} |
4215 | +compiler=$CC |
4216 | +_LT_AC_TAGVAR(compiler, $1)=$CC |
4217 | +_LT_CC_BASENAME([$compiler]) |
4218 | + |
4219 | +# We don't want -fno-exception wen compiling C++ code, so set the |
4220 | +# no_builtin_flag separately |
4221 | +if test "$GXX" = yes; then |
4222 | + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' |
4223 | +else |
4224 | + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= |
4225 | +fi |
4226 | + |
4227 | +if test "$GXX" = yes; then |
4228 | + # Set up default GNU C++ configuration |
4229 | + |
4230 | + AC_PROG_LD |
4231 | + |
4232 | + # Check if GNU C++ uses GNU ld as the underlying linker, since the |
4233 | + # archiving commands below assume that GNU ld is being used. |
4234 | + if test "$with_gnu_ld" = yes; then |
4235 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
4236 | + _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' |
4237 | + |
4238 | + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' |
4239 | + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
4240 | + |
4241 | + # If archive_cmds runs LD, not CC, wlarc should be empty |
4242 | + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
4243 | + # investigate it a little bit more. (MM) |
4244 | + wlarc='${wl}' |
4245 | + |
4246 | + # ancient GNU ld didn't support --whole-archive et. al. |
4247 | + if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
4248 | + grep 'no-whole-archive' > /dev/null; then |
4249 | + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
4250 | + else |
4251 | + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= |
4252 | + fi |
4253 | + else |
4254 | + with_gnu_ld=no |
4255 | + wlarc= |
4256 | + |
4257 | + # A generic and very simple default shared library creation |
4258 | + # command for GNU C++ for the case where it uses the native |
4259 | + # linker, instead of GNU ld. If possible, this setting should |
4260 | + # overridden to take advantage of the native linker features on |
4261 | + # the platform it is being used on. |
4262 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
4263 | + fi |
4264 | + |
4265 | + # Commands to make compiler produce verbose output that lists |
4266 | + # what "hidden" libraries, object files and flags are used when |
4267 | + # linking a shared library. |
4268 | + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
4269 | + |
4270 | +else |
4271 | + GXX=no |
4272 | + with_gnu_ld=no |
4273 | + wlarc= |
4274 | +fi |
4275 | + |
4276 | +# PORTME: fill in a description of your system's C++ link characteristics |
4277 | +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) |
4278 | +_LT_AC_TAGVAR(ld_shlibs, $1)=yes |
4279 | +case $host_os in |
4280 | + aix3*) |
4281 | + # FIXME: insert proper C++ library support |
4282 | + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4283 | + ;; |
4284 | + aix[[4-9]]*) |
4285 | + if test "$host_cpu" = ia64; then |
4286 | + # On IA64, the linker does run time linking by default, so we don't |
4287 | + # have to do anything special. |
4288 | + aix_use_runtimelinking=no |
4289 | + exp_sym_flag='-Bexport' |
4290 | + no_entry_flag="" |
4291 | + else |
4292 | + aix_use_runtimelinking=no |
4293 | + |
4294 | + # Test if we are trying to use run time linking or normal |
4295 | + # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
4296 | + # need to do runtime linking. |
4297 | + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) |
4298 | + for ld_flag in $LDFLAGS; do |
4299 | + case $ld_flag in |
4300 | + *-brtl*) |
4301 | + aix_use_runtimelinking=yes |
4302 | + break |
4303 | + ;; |
4304 | + esac |
4305 | + done |
4306 | + ;; |
4307 | + esac |
4308 | + |
4309 | + exp_sym_flag='-bexport' |
4310 | + no_entry_flag='-bnoentry' |
4311 | + fi |
4312 | + |
4313 | + # When large executables or shared objects are built, AIX ld can |
4314 | + # have problems creating the table of contents. If linking a library |
4315 | + # or program results in "error TOC overflow" add -mminimal-toc to |
4316 | + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
4317 | + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
4318 | + |
4319 | + _LT_AC_TAGVAR(archive_cmds, $1)='' |
4320 | + _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
4321 | + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' |
4322 | + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
4323 | + |
4324 | + if test "$GXX" = yes; then |
4325 | + case $host_os in aix4.[[012]]|aix4.[[012]].*) |
4326 | + # We only want to do this on AIX 4.2 and lower, the check |
4327 | + # below for broken collect2 doesn't work under 4.3+ |
4328 | + collect2name=`${CC} -print-prog-name=collect2` |
4329 | + if test -f "$collect2name" && \ |
4330 | + strings "$collect2name" | grep resolve_lib_name >/dev/null |
4331 | + then |
4332 | + # We have reworked collect2 |
4333 | + : |
4334 | + else |
4335 | + # We have old collect2 |
4336 | + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported |
4337 | + # It fails to find uninstalled libraries when the uninstalled |
4338 | + # path is not listed in the libpath. Setting hardcode_minus_L |
4339 | + # to unsupported forces relinking |
4340 | + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
4341 | + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
4342 | + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= |
4343 | + fi |
4344 | + ;; |
4345 | + esac |
4346 | + shared_flag='-shared' |
4347 | + if test "$aix_use_runtimelinking" = yes; then |
4348 | + shared_flag="$shared_flag "'${wl}-G' |
4349 | + fi |
4350 | + else |
4351 | + # not using gcc |
4352 | + if test "$host_cpu" = ia64; then |
4353 | + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
4354 | + # chokes on -Wl,-G. The following line is correct: |
4355 | + shared_flag='-G' |
4356 | + else |
4357 | + if test "$aix_use_runtimelinking" = yes; then |
4358 | + shared_flag='${wl}-G' |
4359 | + else |
4360 | + shared_flag='${wl}-bM:SRE' |
4361 | + fi |
4362 | + fi |
4363 | + fi |
4364 | + |
4365 | + # It seems that -bexpall does not export symbols beginning with |
4366 | + # underscore (_), so it is better to generate a list of symbols to export. |
4367 | + _LT_AC_TAGVAR(always_export_symbols, $1)=yes |
4368 | + if test "$aix_use_runtimelinking" = yes; then |
4369 | + # Warning - without using the other runtime loading flags (-brtl), |
4370 | + # -berok will link without error, but may produce a broken library. |
4371 | + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' |
4372 | + # Determine the default libpath from the value encoded in an empty executable. |
4373 | + _LT_AC_SYS_LIBPATH_AIX |
4374 | + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
4375 | + |
4376 | + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
4377 | + else |
4378 | + if test "$host_cpu" = ia64; then |
4379 | + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' |
4380 | + _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" |
4381 | + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
4382 | + else |
4383 | + # Determine the default libpath from the value encoded in an empty executable. |
4384 | + _LT_AC_SYS_LIBPATH_AIX |
4385 | + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
4386 | + # Warning - without using the other run time loading flags, |
4387 | + # -berok will link without error, but may produce a broken library. |
4388 | + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' |
4389 | + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' |
4390 | + # Exported symbols can be pulled into shared objects from archives |
4391 | + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' |
4392 | + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes |
4393 | + # This is similar to how AIX traditionally builds its shared libraries. |
4394 | + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
4395 | + fi |
4396 | + fi |
4397 | + ;; |
4398 | + |
4399 | + beos*) |
4400 | + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
4401 | + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
4402 | + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
4403 | + # support --undefined. This deserves some investigation. FIXME |
4404 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
4405 | + else |
4406 | + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4407 | + fi |
4408 | + ;; |
4409 | + |
4410 | + chorus*) |
4411 | + case $cc_basename in |
4412 | + *) |
4413 | + # FIXME: insert proper C++ library support |
4414 | + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4415 | + ;; |
4416 | + esac |
4417 | + ;; |
4418 | + |
4419 | + cygwin* | mingw* | pw32*) |
4420 | + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, |
4421 | + # as there is no search path for DLLs. |
4422 | + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
4423 | + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
4424 | + _LT_AC_TAGVAR(always_export_symbols, $1)=no |
4425 | + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
4426 | + |
4427 | + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
4428 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
4429 | + # If the export-symbols file already is a .def file (1st line |
4430 | + # is EXPORTS), use it as is; otherwise, prepend... |
4431 | + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
4432 | + cp $export_symbols $output_objdir/$soname.def; |
4433 | + else |
4434 | + echo EXPORTS > $output_objdir/$soname.def; |
4435 | + cat $export_symbols >> $output_objdir/$soname.def; |
4436 | + fi~ |
4437 | + $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
4438 | + else |
4439 | + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4440 | + fi |
4441 | + ;; |
4442 | + darwin* | rhapsody*) |
4443 | + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
4444 | + _LT_AC_TAGVAR(hardcode_direct, $1)=no |
4445 | + _LT_AC_TAGVAR(hardcode_automatic, $1)=yes |
4446 | + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
4447 | + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' |
4448 | + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
4449 | + _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" |
4450 | + if test "$GXX" = yes ; then |
4451 | + output_verbose_link_cmd='echo' |
4452 | + _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
4453 | + _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
4454 | + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" |
4455 | + _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" |
4456 | + if test "$lt_cv_apple_cc_single_mod" != "yes"; then |
4457 | + _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${_lt_dsymutil}" |
4458 | + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed '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${_lt_dar_export_syms}${_lt_dsymutil}" |
4459 | + fi |
4460 | + else |
4461 | + case $cc_basename in |
4462 | + xlc*) |
4463 | + output_verbose_link_cmd='echo' |
4464 | + _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` $xlcverstring' |
4465 | + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
4466 | + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
4467 | + _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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
4468 | + _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}' |
4469 | + ;; |
4470 | + *) |
4471 | + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4472 | + ;; |
4473 | + esac |
4474 | + fi |
4475 | + ;; |
4476 | + |
4477 | + dgux*) |
4478 | + case $cc_basename in |
4479 | + ec++*) |
4480 | + # FIXME: insert proper C++ library support |
4481 | + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4482 | + ;; |
4483 | + ghcx*) |
4484 | + # Green Hills C++ Compiler |
4485 | + # FIXME: insert proper C++ library support |
4486 | + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4487 | + ;; |
4488 | + *) |
4489 | + # FIXME: insert proper C++ library support |
4490 | + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4491 | + ;; |
4492 | + esac |
4493 | + ;; |
4494 | + freebsd[[12]]*) |
4495 | + # C++ shared libraries reported to be fairly broken before switch to ELF |
4496 | + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4497 | + ;; |
4498 | + freebsd-elf*) |
4499 | + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
4500 | + ;; |
4501 | + freebsd* | dragonfly*) |
4502 | + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
4503 | + # conventions |
4504 | + _LT_AC_TAGVAR(ld_shlibs, $1)=yes |
4505 | + ;; |
4506 | + gnu*) |
4507 | + ;; |
4508 | + hpux9*) |
4509 | + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
4510 | + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
4511 | + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
4512 | + _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
4513 | + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, |
4514 | + # but as the default |
4515 | + # location of the library. |
4516 | + |
4517 | + case $cc_basename in |
4518 | + CC*) |
4519 | + # FIXME: insert proper C++ library support |
4520 | + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4521 | + ;; |
4522 | + aCC*) |
4523 | + _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' |
4524 | + # Commands to make compiler produce verbose output that lists |
4525 | + # what "hidden" libraries, object files and flags are used when |
4526 | + # linking a shared library. |
4527 | + # |
4528 | + # There doesn't appear to be a way to prevent this compiler from |
4529 | + # explicitly linking system object files so we need to strip them |
4530 | + # from the output so that they don't get included in the library |
4531 | + # dependencies. |
4532 | + 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' |
4533 | + ;; |
4534 | + *) |
4535 | + if test "$GXX" = yes; then |
4536 | + _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' |
4537 | + else |
4538 | + # FIXME: insert proper C++ library support |
4539 | + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4540 | + fi |
4541 | + ;; |
4542 | + esac |
4543 | + ;; |
4544 | + hpux10*|hpux11*) |
4545 | + if test $with_gnu_ld = no; then |
4546 | + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
4547 | + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
4548 | + |
4549 | + case $host_cpu in |
4550 | + hppa*64*|ia64*) ;; |
4551 | + *) |
4552 | + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
4553 | + ;; |
4554 | + esac |
4555 | + fi |
4556 | + case $host_cpu in |
4557 | + hppa*64*|ia64*) |
4558 | + _LT_AC_TAGVAR(hardcode_direct, $1)=no |
4559 | + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
4560 | + ;; |
4561 | + *) |
4562 | + _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
4563 | + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, |
4564 | + # but as the default |
4565 | + # location of the library. |
4566 | + ;; |
4567 | + esac |
4568 | + |
4569 | + case $cc_basename in |
4570 | + CC*) |
4571 | + # FIXME: insert proper C++ library support |
4572 | + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4573 | + ;; |
4574 | + aCC*) |
4575 | + case $host_cpu in |
4576 | + hppa*64*) |
4577 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
4578 | + ;; |
4579 | + ia64*) |
4580 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
4581 | + ;; |
4582 | + *) |
4583 | + _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' |
4584 | + ;; |
4585 | + esac |
4586 | + # Commands to make compiler produce verbose output that lists |
4587 | + # what "hidden" libraries, object files and flags are used when |
4588 | + # linking a shared library. |
4589 | + # |
4590 | + # There doesn't appear to be a way to prevent this compiler from |
4591 | + # explicitly linking system object files so we need to strip them |
4592 | + # from the output so that they don't get included in the library |
4593 | + # dependencies. |
4594 | + 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' |
4595 | + ;; |
4596 | + *) |
4597 | + if test "$GXX" = yes; then |
4598 | + if test $with_gnu_ld = no; then |
4599 | + case $host_cpu in |
4600 | + hppa*64*) |
4601 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
4602 | + ;; |
4603 | + ia64*) |
4604 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
4605 | + ;; |
4606 | + *) |
4607 | + _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' |
4608 | + ;; |
4609 | + esac |
4610 | + fi |
4611 | + else |
4612 | + # FIXME: insert proper C++ library support |
4613 | + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4614 | + fi |
4615 | + ;; |
4616 | + esac |
4617 | + ;; |
4618 | + interix[[3-9]]*) |
4619 | + _LT_AC_TAGVAR(hardcode_direct, $1)=no |
4620 | + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
4621 | + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
4622 | + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
4623 | + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
4624 | + # Instead, shared libraries are loaded at an image base (0x10000000 by |
4625 | + # default) and relocated if they conflict, which is a slow very memory |
4626 | + # consuming and fragmenting process. To avoid this, we pick a random, |
4627 | + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
4628 | + # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
4629 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
4630 | + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
4631 | + ;; |
4632 | + irix5* | irix6*) |
4633 | + case $cc_basename in |
4634 | + CC*) |
4635 | + # SGI C++ |
4636 | + _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' |
4637 | + |
4638 | + # Archives containing C++ object files must be created using |
4639 | + # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
4640 | + # necessary to make sure instantiated templates are included |
4641 | + # in the archive. |
4642 | + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' |
4643 | + ;; |
4644 | + *) |
4645 | + if test "$GXX" = yes; then |
4646 | + if test "$with_gnu_ld" = no; then |
4647 | + _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' |
4648 | + else |
4649 | + _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' |
4650 | + fi |
4651 | + fi |
4652 | + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
4653 | + ;; |
4654 | + esac |
4655 | + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
4656 | + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
4657 | + ;; |
4658 | + linux* | k*bsd*-gnu) |
4659 | + case $cc_basename in |
4660 | + KCC*) |
4661 | + # Kuck and Associates, Inc. (KAI) C++ Compiler |
4662 | + |
4663 | + # KCC will only create a shared library if the output file |
4664 | + # ends with ".so" (or ".sl" for HP-UX), so rename the library |
4665 | + # to its proper name (with version) after linking. |
4666 | + _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' |
4667 | + _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' |
4668 | + # Commands to make compiler produce verbose output that lists |
4669 | + # what "hidden" libraries, object files and flags are used when |
4670 | + # linking a shared library. |
4671 | + # |
4672 | + # There doesn't appear to be a way to prevent this compiler from |
4673 | + # explicitly linking system object files so we need to strip them |
4674 | + # from the output so that they don't get included in the library |
4675 | + # dependencies. |
4676 | + 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' |
4677 | + |
4678 | + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir' |
4679 | + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
4680 | + |
4681 | + # Archives containing C++ object files must be created using |
4682 | + # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
4683 | + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' |
4684 | + ;; |
4685 | + icpc*) |
4686 | + # Intel C++ |
4687 | + with_gnu_ld=yes |
4688 | + # version 8.0 and above of icpc choke on multiply defined symbols |
4689 | + # if we add $predep_objects and $postdep_objects, however 7.1 and |
4690 | + # earlier do not add the objects themselves. |
4691 | + case `$CC -V 2>&1` in |
4692 | + *"Version 7."*) |
4693 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
4694 | + _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' |
4695 | + ;; |
4696 | + *) # Version 8.0 or newer |
4697 | + tmp_idyn= |
4698 | + case $host_cpu in |
4699 | + ia64*) tmp_idyn=' -i_dynamic';; |
4700 | + esac |
4701 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
4702 | + _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' |
4703 | + ;; |
4704 | + esac |
4705 | + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
4706 | + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
4707 | + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
4708 | + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
4709 | + ;; |
4710 | + pgCC* | pgcpp*) |
4711 | + # Portland Group C++ compiler |
4712 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
4713 | + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' |
4714 | + |
4715 | + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' |
4716 | + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
4717 | + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
4718 | + ;; |
4719 | + cxx*) |
4720 | + # Compaq C++ |
4721 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
4722 | + _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' |
4723 | + |
4724 | + runpath_var=LD_RUN_PATH |
4725 | + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
4726 | + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
4727 | + |
4728 | + # Commands to make compiler produce verbose output that lists |
4729 | + # what "hidden" libraries, object files and flags are used when |
4730 | + # linking a shared library. |
4731 | + # |
4732 | + # There doesn't appear to be a way to prevent this compiler from |
4733 | + # explicitly linking system object files so we need to strip them |
4734 | + # from the output so that they don't get included in the library |
4735 | + # dependencies. |
4736 | + 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' |
4737 | + ;; |
4738 | + *) |
4739 | + case `$CC -V 2>&1 | sed 5q` in |
4740 | + *Sun\ C*) |
4741 | + # Sun C++ 5.9 |
4742 | + _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' |
4743 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
4744 | + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' |
4745 | + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
4746 | + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
4747 | + |
4748 | + # Not sure whether something based on |
4749 | + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 |
4750 | + # would be better. |
4751 | + output_verbose_link_cmd='echo' |
4752 | + |
4753 | + # Archives containing C++ object files must be created using |
4754 | + # "CC -xar", where "CC" is the Sun C++ compiler. This is |
4755 | + # necessary to make sure instantiated templates are included |
4756 | + # in the archive. |
4757 | + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' |
4758 | + ;; |
4759 | + esac |
4760 | + ;; |
4761 | + esac |
4762 | + ;; |
4763 | + lynxos*) |
4764 | + # FIXME: insert proper C++ library support |
4765 | + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4766 | + ;; |
4767 | + m88k*) |
4768 | + # FIXME: insert proper C++ library support |
4769 | + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4770 | + ;; |
4771 | + mvs*) |
4772 | + case $cc_basename in |
4773 | + cxx*) |
4774 | + # FIXME: insert proper C++ library support |
4775 | + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4776 | + ;; |
4777 | + *) |
4778 | + # FIXME: insert proper C++ library support |
4779 | + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4780 | + ;; |
4781 | + esac |
4782 | + ;; |
4783 | + netbsd* | netbsdelf*-gnu) |
4784 | + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
4785 | + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
4786 | + wlarc= |
4787 | + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
4788 | + _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
4789 | + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
4790 | + fi |
4791 | + # Workaround some broken pre-1.5 toolchains |
4792 | + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
4793 | + ;; |
4794 | + openbsd2*) |
4795 | + # C++ shared libraries are fairly broken |
4796 | + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4797 | + ;; |
4798 | + openbsd*) |
4799 | + if test -f /usr/libexec/ld.so; then |
4800 | + _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
4801 | + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
4802 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
4803 | + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
4804 | + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
4805 | + _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' |
4806 | + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
4807 | + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
4808 | + fi |
4809 | + output_verbose_link_cmd='echo' |
4810 | + else |
4811 | + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4812 | + fi |
4813 | + ;; |
4814 | + osf3*) |
4815 | + case $cc_basename in |
4816 | + KCC*) |
4817 | + # Kuck and Associates, Inc. (KAI) C++ Compiler |
4818 | + |
4819 | + # KCC will only create a shared library if the output file |
4820 | + # ends with ".so" (or ".sl" for HP-UX), so rename the library |
4821 | + # to its proper name (with version) after linking. |
4822 | + _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' |
4823 | + |
4824 | + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
4825 | + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
4826 | + |
4827 | + # Archives containing C++ object files must be created using |
4828 | + # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
4829 | + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' |
4830 | + |
4831 | + ;; |
4832 | + RCC*) |
4833 | + # Rational C++ 2.4.1 |
4834 | + # FIXME: insert proper C++ library support |
4835 | + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4836 | + ;; |
4837 | + cxx*) |
4838 | + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
4839 | + _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' |
4840 | + |
4841 | + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
4842 | + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
4843 | + |
4844 | + # Commands to make compiler produce verbose output that lists |
4845 | + # what "hidden" libraries, object files and flags are used when |
4846 | + # linking a shared library. |
4847 | + # |
4848 | + # There doesn't appear to be a way to prevent this compiler from |
4849 | + # explicitly linking system object files so we need to strip them |
4850 | + # from the output so that they don't get included in the library |
4851 | + # dependencies. |
4852 | + 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' |
4853 | + ;; |
4854 | + *) |
4855 | + if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
4856 | + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
4857 | + _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' |
4858 | + |
4859 | + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
4860 | + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
4861 | + |
4862 | + # Commands to make compiler produce verbose output that lists |
4863 | + # what "hidden" libraries, object files and flags are used when |
4864 | + # linking a shared library. |
4865 | + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
4866 | + |
4867 | + else |
4868 | + # FIXME: insert proper C++ library support |
4869 | + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4870 | + fi |
4871 | + ;; |
4872 | + esac |
4873 | + ;; |
4874 | + osf4* | osf5*) |
4875 | + case $cc_basename in |
4876 | + KCC*) |
4877 | + # Kuck and Associates, Inc. (KAI) C++ Compiler |
4878 | + |
4879 | + # KCC will only create a shared library if the output file |
4880 | + # ends with ".so" (or ".sl" for HP-UX), so rename the library |
4881 | + # to its proper name (with version) after linking. |
4882 | + _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' |
4883 | + |
4884 | + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
4885 | + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
4886 | + |
4887 | + # Archives containing C++ object files must be created using |
4888 | + # the KAI C++ compiler. |
4889 | + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' |
4890 | + ;; |
4891 | + RCC*) |
4892 | + # Rational C++ 2.4.1 |
4893 | + # FIXME: insert proper C++ library support |
4894 | + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4895 | + ;; |
4896 | + cxx*) |
4897 | + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
4898 | + _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' |
4899 | + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
4900 | + echo "-hidden">> $lib.exp~ |
4901 | + $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~ |
4902 | + $rm $lib.exp' |
4903 | + |
4904 | + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
4905 | + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
4906 | + |
4907 | + # Commands to make compiler produce verbose output that lists |
4908 | + # what "hidden" libraries, object files and flags are used when |
4909 | + # linking a shared library. |
4910 | + # |
4911 | + # There doesn't appear to be a way to prevent this compiler from |
4912 | + # explicitly linking system object files so we need to strip them |
4913 | + # from the output so that they don't get included in the library |
4914 | + # dependencies. |
4915 | + 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' |
4916 | + ;; |
4917 | + *) |
4918 | + if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
4919 | + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
4920 | + _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' |
4921 | + |
4922 | + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
4923 | + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
4924 | + |
4925 | + # Commands to make compiler produce verbose output that lists |
4926 | + # what "hidden" libraries, object files and flags are used when |
4927 | + # linking a shared library. |
4928 | + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
4929 | + |
4930 | + else |
4931 | + # FIXME: insert proper C++ library support |
4932 | + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4933 | + fi |
4934 | + ;; |
4935 | + esac |
4936 | + ;; |
4937 | + psos*) |
4938 | + # FIXME: insert proper C++ library support |
4939 | + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4940 | + ;; |
4941 | + sunos4*) |
4942 | + case $cc_basename in |
4943 | + CC*) |
4944 | + # Sun C++ 4.x |
4945 | + # FIXME: insert proper C++ library support |
4946 | + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4947 | + ;; |
4948 | + lcc*) |
4949 | + # Lucid |
4950 | + # FIXME: insert proper C++ library support |
4951 | + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4952 | + ;; |
4953 | + *) |
4954 | + # FIXME: insert proper C++ library support |
4955 | + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4956 | + ;; |
4957 | + esac |
4958 | + ;; |
4959 | + solaris*) |
4960 | + case $cc_basename in |
4961 | + CC*) |
4962 | + # Sun C++ 4.2, 5.x and Centerline C++ |
4963 | + _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes |
4964 | + _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' |
4965 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
4966 | + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
4967 | + $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
4968 | + |
4969 | + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
4970 | + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
4971 | + case $host_os in |
4972 | + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; |
4973 | + *) |
4974 | + # The compiler driver will combine and reorder linker options, |
4975 | + # but understands `-z linker_flag'. |
4976 | + # Supported since Solaris 2.6 (maybe 2.5.1?) |
4977 | + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' |
4978 | + ;; |
4979 | + esac |
4980 | + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
4981 | + |
4982 | + output_verbose_link_cmd='echo' |
4983 | + |
4984 | + # Archives containing C++ object files must be created using |
4985 | + # "CC -xar", where "CC" is the Sun C++ compiler. This is |
4986 | + # necessary to make sure instantiated templates are included |
4987 | + # in the archive. |
4988 | + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' |
4989 | + ;; |
4990 | + gcx*) |
4991 | + # Green Hills C++ Compiler |
4992 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
4993 | + |
4994 | + # The C++ compiler must be used to create the archive. |
4995 | + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
4996 | + ;; |
4997 | + *) |
4998 | + # GNU C++ compiler with Solaris linker |
4999 | + if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
5000 | + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' |
* debian/changelog
The file should be trimmed to only have one entry mentioning the
initial packaging for Ubuntu and refering the need-packaging bug in LP
(bug 607730):
ceph (0.21-0ubuntu1) maverick; urgency=low
* Initial release based on upstream package (LP: #607730).
* debian/control
The maintainer field should be updated per /wiki.ubuntu. com/DebianMaint ainerField.
https:/
* debian/copyright
I would recommend to format the content of this file according to dep.debian. net/deps/ dep5/.
the 'Machine-readable debian/copyright' DEP - see
http://
The Files: * section has an empty line on line 14.
src/include/ ceph_hash. cc: should also be mentioned as it's copyrighted
under Public Domain.
src/os/ btrfs_ioctl. h: is under GPLv2.
Running 'licensecheck -r .' in the top source directory will output a
good estimate of the license and copyright for each file.
* debian/rules: I'd recommend to properly support autotools in the build doc/autotools- dev/README. Debian. gz available
system. See /usr/share/
from the autotools-dev package.
* Log files should be properly handled as outlined in the Debian Policy
Section 10.8 [1]
[1]: http:// www.debian. org/doc/ debian- policy/ ch-files. html#s10. 8
Log directory should be deleted on package purge.
* Configuration files in /etc/ seem to be sample files given their name
in ceph.install:
etc/ ceph/sample. ceph.conf ceph/sample. fetch_config
etc/
Are these files providing a default working configuration? If so their share/doc/ ceph/ and a default working configuration should be
name should not start with sample. If not they should be shipped under
/usr/
shipped as part of the package.
* AFAICT all commands to create a filesystem are located in /sbin/.
mkcephfs should probably be there as well instead of
usr/sbin/.
* debian/ rados.install is not needed as there isn't any rados package defined
in debian/control.
* Upon installation of the ceph package it seems that there isn't a
default working configuration. Is it possible to provide a default
working configuration?