Merge lp:~brian-murray/lightdm/bug-967229 into lp:lightdm

Proposed by Brian Murray
Status: Superseded
Proposed branch: lp:~brian-murray/lightdm/bug-967229
Merge into: lp:lightdm
Diff against target: 72465 lines (+68593/-1305) (has conflicts)
297 files modified
INSTALL (+365/-0)
Makefile.in (+857/-0)
NEWS (+73/-0)
TODO (+19/-0)
aclocal.m4 (+10619/-0)
compile (+343/-0)
config.guess (+1530/-0)
config.h.in (+89/-0)
config.sub (+1773/-0)
configure (+21213/-0)
configure.ac (+4/-0)
data/Makefile.am (+9/-0)
data/Makefile.in (+836/-0)
data/guest-session.apparmor (+66/-0)
data/init/Makefile.in (+512/-0)
data/pam/lightdm (+19/-0)
data/pam/lightdm-autologin (+19/-0)
data/pam/lightdm-greeter (+0/-16)
debian/changelog (+1353/-0)
debian/compat (+1/-0)
debian/control (+114/-0)
debian/copyright (+76/-0)
debian/gir1.2-lightdm-1.install (+1/-0)
debian/guest-account (+154/-0)
debian/liblightdm-gobject-1-0.install (+1/-0)
debian/liblightdm-gobject-1-0.symbols (+75/-0)
debian/liblightdm-gobject-1-dev.install (+5/-0)
debian/liblightdm-gobject-1-doc.install (+1/-0)
debian/liblightdm-qt-2-0.install (+1/-0)
debian/liblightdm-qt-2-dev.install (+3/-0)
debian/lightdm-greeter-session (+36/-0)
debian/lightdm-session (+98/-0)
debian/lightdm.config (+71/-0)
debian/lightdm.dirs (+3/-0)
debian/lightdm.init (+112/-0)
debian/lightdm.install (+14/-0)
debian/lightdm.lightdm-autologin.pam (+11/-0)
debian/lightdm.lightdm-greeter.pam (+11/-0)
debian/lightdm.pam (+14/-0)
debian/lightdm.postinst (+84/-0)
debian/lightdm.postrm (+47/-0)
debian/lightdm.preinst (+13/-0)
debian/lightdm.prerm (+58/-0)
debian/lightdm.templates (+24/-0)
debian/lightdm.upstart (+59/-0)
debian/patches/01_transition_ubuntu2d_ubuntu_desktop.patch (+21/-0)
debian/patches/03_launch_dbus.patch (+23/-0)
debian/patches/04_language_options.patch (+15/-0)
debian/patches/05_add_xserver_core_option.patch (+36/-0)
debian/patches/08_lp1059510.patch (+21/-0)
debian/patches/09_lp577919-fix-chromium-launch.patch (+264/-0)
debian/patches/10_selective_mlock.patch (+276/-0)
debian/patches/11_runtime_dir_access.patch (+21/-0)
debian/patches/series (+8/-0)
debian/po/POTFILES.in (+1/-0)
debian/po/ca.po (+99/-0)
debian/po/cs.po (+96/-0)
debian/po/da.po (+112/-0)
debian/po/de.po (+111/-0)
debian/po/el.po (+113/-0)
debian/po/es.po (+97/-0)
debian/po/eu.po (+101/-0)
debian/po/fi.po (+38/-0)
debian/po/fr.po (+106/-0)
debian/po/gl.po (+85/-0)
debian/po/it.po (+102/-0)
debian/po/ja.po (+102/-0)
debian/po/ko.po (+77/-0)
debian/po/ml.po (+80/-0)
debian/po/nl.po (+102/-0)
debian/po/pl.po (+80/-0)
debian/po/pothead.in (+30/-0)
debian/po/pt.po (+64/-0)
debian/po/pt_BR.po (+103/-0)
debian/po/ro.po (+112/-0)
debian/po/ru.po (+102/-0)
debian/po/sk.po (+82/-0)
debian/po/sv.po (+103/-0)
debian/po/ta.po (+77/-0)
debian/po/templates.pot (+50/-0)
debian/po/tr.po (+93/-0)
debian/po/vi.po (+89/-0)
debian/po/zh_CN.po (+92/-0)
debian/rules (+41/-0)
debian/source/format (+1/-0)
debian/source_lightdm.py (+28/-0)
debian/tests/control (+3/-0)
debian/tests/upstream-tests (+8/-0)
debian/watch (+3/-0)
depcomp (+708/-0)
doc/Makefile.in (+741/-0)
doc/html/core.html (+56/-0)
doc/html/index.html (+49/-0)
doc/html/index.sgml (+100/-0)
doc/html/lightdm-gobject-1-Greeter-Interface.html (+697/-0)
doc/html/lightdm-gobject-1-Keyboard-Layout.html (+179/-0)
doc/html/lightdm-gobject-1-Languages.html (+191/-0)
doc/html/lightdm-gobject-1-Power-Management.html (+221/-0)
doc/html/lightdm-gobject-1-Sessions.html (+144/-0)
doc/html/lightdm-gobject-1-System-Information.html (+69/-0)
doc/html/lightdm-gobject-1-User-Accounts.html (+411/-0)
doc/html/lightdm-gobject-1.devhelp2 (+89/-0)
doc/html/style.css (+266/-0)
doc/lightdm-gobject-1.types (+0/-5)
doc/tmpl/greeter.sgml (+0/-304)
doc/tmpl/language.sgml (+0/-77)
doc/tmpl/layout.sgml (+0/-75)
doc/tmpl/power.sgml (+0/-94)
doc/tmpl/session.sgml (+0/-58)
doc/tmpl/system.sgml (+0/-31)
doc/tmpl/user.sgml (+0/-191)
gtk-doc.make (+280/-0)
help/C/index.page (+39/-0)
help/C/legal.xml (+9/-0)
help/Makefile.am (+11/-0)
help/Makefile.in (+461/-0)
install-sh (+527/-0)
liblightdm-gobject/Makefile.in (+912/-0)
liblightdm-qt/Makefile.in (+789/-0)
liblightdm-qt/QLightDM/Language (+0/-1)
liblightdm-qt/QLightDM/usersmodel.h (+6/-0)
liblightdm-qt/sessionsmodel.cpp (+3/-0)
ltmain.sh (+9661/-0)
m4/introspection.m4 (+0/-94)
missing (+331/-0)
po/Makefile.in.in (+222/-0)
po/af.po (+100/-0)
po/an.po (+100/-0)
po/ar.po (+5/-0)
po/ast.po (+5/-0)
po/az.po (+100/-0)
po/be.po (+5/-0)
po/bg.po (+5/-0)
po/bn.po (+5/-0)
po/bo.po (+5/-0)
po/br.po (+5/-0)
po/bs.po (+5/-0)
po/ca.po (+5/-0)
po/ca@valencia.po (+5/-0)
po/cs.po (+5/-0)
po/da.po (+5/-0)
po/de.po (+5/-0)
po/el.po (+5/-0)
po/en_AU.po (+5/-0)
po/en_CA.po (+5/-0)
po/en_GB.po (+5/-0)
po/eo.po (+5/-0)
po/es.po (+5/-0)
po/et.po (+5/-0)
po/eu.po (+5/-0)
po/fa.po (+100/-0)
po/fi.po (+5/-0)
po/fo.po (+5/-0)
po/fr.po (+5/-0)
po/fy.po (+5/-0)
po/gd.po (+5/-0)
po/gl.po (+5/-0)
po/he.po (+5/-0)
po/hi.po (+5/-0)
po/hr.po (+5/-0)
po/hu.po (+5/-0)
po/ia.po (+10/-0)
po/id.po (+5/-0)
po/it.po (+5/-0)
po/ja.po (+5/-0)
po/kk.po (+5/-0)
po/km.po (+5/-0)
po/kn.po (+100/-0)
po/ko.po (+5/-0)
po/ku.po (+5/-0)
po/lb.po (+5/-0)
po/lt.po (+5/-0)
po/lv.po (+5/-0)
po/mhr.po (+5/-0)
po/mi.po (+100/-0)
po/ml.po (+5/-0)
po/mr.po (+100/-0)
po/ms.po (+5/-0)
po/my.po (+100/-0)
po/nb.po (+5/-0)
po/nl.po (+5/-0)
po/nn.po (+5/-0)
po/oc.po (+5/-0)
po/pa.po (+100/-0)
po/pl.po (+5/-0)
po/pt.po (+5/-0)
po/pt_BR.po (+5/-0)
po/ro.po (+5/-0)
po/ru.po (+5/-0)
po/sd.po (+5/-0)
po/shn.po (+5/-0)
po/si.po (+5/-0)
po/sk.po (+5/-0)
po/sl.po (+5/-0)
po/sq.po (+5/-0)
po/sr.po (+5/-0)
po/sv.po (+5/-0)
po/ta.po (+5/-0)
po/te.po (+5/-0)
po/th.po (+5/-0)
po/tr.po (+5/-0)
po/ug.po (+5/-0)
po/uk.po (+5/-0)
po/uz.po (+5/-0)
po/vi.po (+5/-0)
po/wae.po (+5/-0)
po/zh_CN.po (+5/-0)
po/zh_HK.po (+5/-0)
po/zh_TW.po (+5/-0)
src/Makefile.in (+1308/-0)
src/greeter.c (+9/-0)
src/ldm-marshal.c (+368/-0)
src/ldm-marshal.h (+68/-0)
src/lightdm.c (+7/-0)
src/session-child.c (+9/-0)
tests/Makefile.am (+42/-0)
tests/Makefile.in (+955/-0)
tests/TODO (+4/-0)
tests/scripts/autologin-guest-timeout.conf (+51/-0)
tests/scripts/autologin-session-error.conf (+44/-0)
tests/scripts/autologin-timeout.conf (+47/-0)
tests/scripts/change-authentication.conf (+38/-0)
tests/scripts/crash-authenticate.conf (+0/-34)
tests/scripts/cred-error.conf (+44/-0)
tests/scripts/cred-expired.conf (+44/-0)
tests/scripts/cred-unavail.conf (+44/-0)
tests/scripts/default-keyboard-layout.conf (+0/-38)
tests/scripts/denied.conf (+0/-34)
tests/scripts/expired.conf (+0/-34)
tests/scripts/group-membership.conf (+34/-0)
tests/scripts/home-dir-on-session.conf (+30/-0)
tests/scripts/keyboard-variants.conf (+0/-50)
tests/scripts/login-info-prompt.conf (+38/-0)
tests/scripts/login-long-password.conf (+35/-0)
tests/scripts/login-long-username.conf (+35/-0)
tests/scripts/login-multi-info-prompt.conf (+40/-0)
tests/scripts/login-multi-prompt.conf (+39/-0)
tests/scripts/login-pam.conf (+44/-0)
tests/scripts/login-remote-session.conf (+50/-0)
tests/scripts/login-two-factor.conf (+37/-0)
tests/scripts/open-file-descriptors.conf (+0/-47)
tests/scripts/pam.conf (+30/-0)
tests/scripts/restart-authentication.conf (+38/-0)
tests/scripts/session-stderr-backup.conf (+91/-0)
tests/scripts/session-stderr-multi-write.conf (+36/-0)
tests/scripts/util-path.conf (+35/-0)
tests/scripts/vnc-open-file-descriptors.conf (+0/-62)
tests/scripts/xdmcp-open-file-descriptors.conf (+0/-57)
tests/src/Makefile.in (+1413/-0)
tests/src/X.c (+6/-1)
tests/src/guest-account.c (+5/-0)
tests/src/initctl.c (+5/-0)
tests/src/libsystem.c (+70/-0)
tests/src/test-runner.c (+10/-0)
tests/test-autologin-gobject-guest-timeout (+2/-0)
tests/test-autologin-gobject-timeout (+2/-0)
tests/test-autologin-python-guest-timeout (+2/-0)
tests/test-autologin-python-timeout (+2/-0)
tests/test-autologin-qt-guest-timeout (+2/-0)
tests/test-autologin-qt-timeout (+2/-0)
tests/test-autologin-session-error (+2/-0)
tests/test-change-authentication (+2/-0)
tests/test-crash-authenticate (+2/-0)
tests/test-cred-error (+2/-0)
tests/test-cred-expired (+2/-0)
tests/test-cred-unavail (+2/-0)
tests/test-denied (+2/-0)
tests/test-expired (+2/-0)
tests/test-group-membership (+2/-0)
tests/test-home-dir-on-session (+2/-0)
tests/test-login-gobject-info-prompt (+2/-0)
tests/test-login-gobject-long-password (+2/-0)
tests/test-login-gobject-long-username (+2/-0)
tests/test-login-gobject-multi-info-prompt (+2/-0)
tests/test-login-gobject-multi-prompt (+2/-0)
tests/test-login-gobject-remote-session (+2/-0)
tests/test-login-gobject-two-factor (+2/-0)
tests/test-login-pam (+2/-0)
tests/test-login-python-info-prompt (+2/-0)
tests/test-login-python-long-password (+2/-0)
tests/test-login-python-long-username (+2/-0)
tests/test-login-python-multi-info-prompt (+2/-0)
tests/test-login-python-remote-session (+2/-0)
tests/test-login-python-two-factor (+2/-0)
tests/test-login-qt-info-prompt (+2/-0)
tests/test-login-qt-long-password (+2/-0)
tests/test-login-qt-long-username (+2/-0)
tests/test-login-qt-multi-info-prompt (+2/-0)
tests/test-login-qt-remote-session (+2/-0)
tests/test-login-qt-two-factor (+2/-0)
tests/test-pam (+2/-0)
tests/test-restart-authentication (+2/-0)
tests/test-session-stderr-backup (+2/-0)
tests/test-session-stderr-multi-write (+2/-0)
tests/test-util-path (+2/-0)
tests/test-vnc-open-file-descriptors (+0/-2)
utils/Makefile.in (+807/-0)
Contents conflict in .bzrignore
Text conflict in NEWS
Text conflict in configure.ac
Text conflict in data/Makefile.am
Text conflict in data/guest-session.apparmor
Conflict: can't delete data/pam.moved because it is not empty.  Not deleting.
Conflict adding file data/pam.  Moved existing file to data/pam.moved.
Conflict because data/pam.moved is not versioned, but has versioned children.  Versioned directory.
Conflict adding file help.  Moved existing file to help.moved.
Text conflict in liblightdm-qt/QLightDM/usersmodel.h
Text conflict in liblightdm-qt/sessionsmodel.cpp
Conflict adding file po/af.po.  Moved existing file to po/af.po.moved.
Conflict adding file po/an.po.  Moved existing file to po/an.po.moved.
Text conflict in po/ar.po
Text conflict in po/ast.po
Conflict adding file po/az.po.  Moved existing file to po/az.po.moved.
Text conflict in po/be.po
Text conflict in po/bg.po
Text conflict in po/bn.po
Text conflict in po/bo.po
Text conflict in po/br.po
Text conflict in po/bs.po
Text conflict in po/ca.po
Text conflict in po/ca@valencia.po
Text conflict in po/cs.po
Text conflict in po/da.po
Text conflict in po/de.po
Text conflict in po/el.po
Text conflict in po/en_AU.po
Text conflict in po/en_CA.po
Text conflict in po/en_GB.po
Text conflict in po/eo.po
Text conflict in po/es.po
Text conflict in po/et.po
Text conflict in po/eu.po
Conflict adding file po/fa.po.  Moved existing file to po/fa.po.moved.
Text conflict in po/fi.po
Text conflict in po/fo.po
Text conflict in po/fr.po
Text conflict in po/fy.po
Text conflict in po/gd.po
Text conflict in po/gl.po
Text conflict in po/he.po
Text conflict in po/hi.po
Text conflict in po/hr.po
Text conflict in po/hu.po
Text conflict in po/ia.po
Text conflict in po/id.po
Text conflict in po/it.po
Text conflict in po/ja.po
Text conflict in po/kk.po
Text conflict in po/km.po
Conflict adding file po/kn.po.  Moved existing file to po/kn.po.moved.
Text conflict in po/ko.po
Text conflict in po/ku.po
Text conflict in po/lb.po
Text conflict in po/lt.po
Text conflict in po/lv.po
Text conflict in po/mhr.po
Conflict adding file po/mi.po.  Moved existing file to po/mi.po.moved.
Text conflict in po/ml.po
Conflict adding file po/mr.po.  Moved existing file to po/mr.po.moved.
Text conflict in po/ms.po
Conflict adding file po/my.po.  Moved existing file to po/my.po.moved.
Text conflict in po/nb.po
Text conflict in po/nl.po
Text conflict in po/nn.po
Text conflict in po/oc.po
Conflict adding file po/pa.po.  Moved existing file to po/pa.po.moved.
Text conflict in po/pl.po
Text conflict in po/pt.po
Text conflict in po/pt_BR.po
Text conflict in po/ro.po
Text conflict in po/ru.po
Text conflict in po/sd.po
Text conflict in po/shn.po
Text conflict in po/si.po
Text conflict in po/sk.po
Text conflict in po/sl.po
Text conflict in po/sq.po
Text conflict in po/sr.po
Text conflict in po/sv.po
Text conflict in po/ta.po
Text conflict in po/te.po
Text conflict in po/th.po
Text conflict in po/tr.po
Text conflict in po/ug.po
Text conflict in po/uk.po
Text conflict in po/uz.po
Text conflict in po/vi.po
Text conflict in po/wae.po
Text conflict in po/zh_CN.po
Text conflict in po/zh_HK.po
Text conflict in po/zh_TW.po
Text conflict in src/greeter.c
Text conflict in src/session-child.c
Text conflict in tests/Makefile.am
Conflict adding file tests/scripts/autologin-guest-timeout.conf.  Moved existing file to tests/scripts/autologin-guest-timeout.conf.moved.
Conflict adding file tests/scripts/autologin-session-error.conf.  Moved existing file to tests/scripts/autologin-session-error.conf.moved.
Conflict adding file tests/scripts/autologin-timeout.conf.  Moved existing file to tests/scripts/autologin-timeout.conf.moved.
Conflict adding file tests/scripts/change-authentication.conf.  Moved existing file to tests/scripts/change-authentication.conf.moved.
Path conflict: tests/scripts/crash-authenticate.conf / <deleted>
Conflict adding file tests/scripts/cred-error.conf.  Moved existing file to tests/scripts/cred-error.conf.moved.
Conflict adding file tests/scripts/cred-expired.conf.  Moved existing file to tests/scripts/cred-expired.conf.moved.
Conflict adding file tests/scripts/cred-unavail.conf.  Moved existing file to tests/scripts/cred-unavail.conf.moved.
Path conflict: tests/scripts/denied.conf / <deleted>
Path conflict: tests/scripts/expired.conf / <deleted>
Conflict adding file tests/scripts/group-membership.conf.  Moved existing file to tests/scripts/group-membership.conf.moved.
Conflict adding file tests/scripts/home-dir-on-session.conf.  Moved existing file to tests/scripts/home-dir-on-session.conf.moved.
Conflict adding file tests/scripts/login-info-prompt.conf.  Moved existing file to tests/scripts/login-info-prompt.conf.moved.
Conflict adding file tests/scripts/login-long-password.conf.  Moved existing file to tests/scripts/login-long-password.conf.moved.
Conflict adding file tests/scripts/login-long-username.conf.  Moved existing file to tests/scripts/login-long-username.conf.moved.
Conflict adding file tests/scripts/login-multi-info-prompt.conf.  Moved existing file to tests/scripts/login-multi-info-prompt.conf.moved.
Conflict adding file tests/scripts/login-multi-prompt.conf.  Moved existing file to tests/scripts/login-multi-prompt.conf.moved.
Conflict adding file tests/scripts/login-pam.conf.  Moved existing file to tests/scripts/login-pam.conf.moved.
Conflict adding file tests/scripts/login-remote-session.conf.  Moved existing file to tests/scripts/login-remote-session.conf.moved.
Conflict adding file tests/scripts/login-two-factor.conf.  Moved existing file to tests/scripts/login-two-factor.conf.moved.
Conflict adding file tests/scripts/pam.conf.  Moved existing file to tests/scripts/pam.conf.moved.
Conflict adding file tests/scripts/restart-authentication.conf.  Moved existing file to tests/scripts/restart-authentication.conf.moved.
Conflict adding file tests/scripts/session-stderr-backup.conf.  Moved existing file to tests/scripts/session-stderr-backup.conf.moved.
Conflict adding file tests/scripts/session-stderr-multi-write.conf.  Moved existing file to tests/scripts/session-stderr-multi-write.conf.moved.
Conflict adding file tests/scripts/util-path.conf.  Moved existing file to tests/scripts/util-path.conf.moved.
Text conflict in tests/src/X.c
Text conflict in tests/src/guest-account.c
Text conflict in tests/src/initctl.c
Text conflict in tests/src/libsystem.c
Contents conflict in tests/src/test-python-greeter
Conflict adding file tests/test-autologin-gobject-guest-timeout.  Moved existing file to tests/test-autologin-gobject-guest-timeout.moved.
Conflict adding file tests/test-autologin-gobject-timeout.  Moved existing file to tests/test-autologin-gobject-timeout.moved.
Conflict adding file tests/test-autologin-python-guest-timeout.  Moved existing file to tests/test-autologin-python-guest-timeout.moved.
Conflict adding file tests/test-autologin-python-timeout.  Moved existing file to tests/test-autologin-python-timeout.moved.
Conflict adding file tests/test-autologin-session-error.  Moved existing file to tests/test-autologin-session-error.moved.
Conflict adding file tests/test-change-authentication.  Moved existing file to tests/test-change-authentication.moved.
Path conflict: tests/test-crash-authenticate / <deleted>
Conflict adding file tests/test-crash-authenticate.  Moved existing file to tests/test-crash-authenticate.moved.
Conflict adding file tests/test-cred-error.  Moved existing file to tests/test-cred-error.moved.
Conflict adding file tests/test-cred-expired.  Moved existing file to tests/test-cred-expired.moved.
Conflict adding file tests/test-cred-unavail.  Moved existing file to tests/test-cred-unavail.moved.
Path conflict: tests/test-denied / <deleted>
Conflict adding file tests/test-denied.  Moved existing file to tests/test-denied.moved.
Path conflict: tests/test-expired / <deleted>
Conflict adding file tests/test-expired.  Moved existing file to tests/test-expired.moved.
Conflict adding file tests/test-group-membership.  Moved existing file to tests/test-group-membership.moved.
Conflict adding file tests/test-home-dir-on-session.  Moved existing file to tests/test-home-dir-on-session.moved.
Conflict adding file tests/test-login-gobject-info-prompt.  Moved existing file to tests/test-login-gobject-info-prompt.moved.
Conflict adding file tests/test-login-gobject-long-password.  Moved existing file to tests/test-login-gobject-long-password.moved.
Conflict adding file tests/test-login-gobject-long-username.  Moved existing file to tests/test-login-gobject-long-username.moved.
Conflict adding file tests/test-login-gobject-multi-info-prompt.  Moved existing file to tests/test-login-gobject-multi-info-prompt.moved.
Conflict adding file tests/test-login-gobject-multi-prompt.  Moved existing file to tests/test-login-gobject-multi-prompt.moved.
Conflict adding file tests/test-login-gobject-remote-session.  Moved existing file to tests/test-login-gobject-remote-session.moved.
Conflict adding file tests/test-login-gobject-two-factor.  Moved existing file to tests/test-login-gobject-two-factor.moved.
Conflict adding file tests/test-login-pam.  Moved existing file to tests/test-login-pam.moved.
Conflict adding file tests/test-login-python-info-prompt.  Moved existing file to tests/test-login-python-info-prompt.moved.
Conflict adding file tests/test-login-python-long-password.  Moved existing file to tests/test-login-python-long-password.moved.
Conflict adding file tests/test-login-python-long-username.  Moved existing file to tests/test-login-python-long-username.moved.
Conflict adding file tests/test-login-python-multi-info-prompt.  Moved existing file to tests/test-login-python-multi-info-prompt.moved.
Conflict adding file tests/test-login-python-remote-session.  Moved existing file to tests/test-login-python-remote-session.moved.
Conflict adding file tests/test-login-python-two-factor.  Moved existing file to tests/test-login-python-two-factor.moved.
Conflict adding file tests/test-pam.  Moved existing file to tests/test-pam.moved.
Conflict adding file tests/test-restart-authentication.  Moved existing file to tests/test-restart-authentication.moved.
Conflict adding file tests/test-session-stderr-backup.  Moved existing file to tests/test-session-stderr-backup.moved.
Conflict adding file tests/test-session-stderr-multi-write.  Moved existing file to tests/test-session-stderr-multi-write.moved.
Conflict adding file tests/test-util-path.  Moved existing file to tests/test-util-path.moved.
To merge this branch: bzr merge lp:~brian-murray/lightdm/bug-967229
Reviewer Review Type Date Requested Status
LightDM Development Team Pending
Review via email: mp+153953@code.launchpad.net

Description of the change

This clears the screen of boot logging messages after lightdm starts so that "garbage" is not displayed if someone switches users, suspends or the x server crashes.

To post a comment you must log in.

Unmerged revisions

1132. By Brian Murray

debian/lightdm.upstart: Clear the virtual terminal after starting lightdm
so startup messages are not displayed when switching users or when
suspending (LP: #967229)

1131. By Martin Pitt

releasing version 1.4.0-0ubuntu5

1130. By Martin Pitt

Add 11_runtime_dir_access.patch: Allow guest session to write
/run/user/<username>/. (LP: #1131139)

1129. By Steve Langasek

releasing version 1.4.0-0ubuntu4

1128. By Steve Langasek

Update pam configs to call pam_env last and use user_readenv=1
explicitly, so that ~/.pam_environment can always be read even when
home directories are encrypted with ecryptfs. LP: #952185.

1127. By Michael Terry

release 1.4.0-0ubuntu3

1126. By Michael Terry

* debian/patches/10_selective_mlock.patch:
  - Backport patch from upstream to not use mlockall for the daemon
    (LP: #1074279)

1125. By Michael Terry

* debian/rules:
  - Use ./autogen.sh when running dh_autoreconf

1124. By Robert Ancell

* debian/lightdm.install:
  - Remove duplicate entry /usr/share/man
  - Install apport hook
* debian/lightdm.postinst:
  - Fix ownership of /var/lib/lightdm
* debian/lightdm.postrm:
  - Correctly remove /var/lib/lightdm on uninstall
* debian/source_lightdm.py:
  - Update apport hook

1123. By Michael Terry

disable tests until next upstream release

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== renamed file '.bzrignore' => '.bzrignore.THIS'
=== added file 'INSTALL'
--- INSTALL 1970-01-01 00:00:00 +0000
+++ INSTALL 2013-03-18 23:03:22 +0000
@@ -0,0 +1,365 @@
1Installation Instructions
2*************************
3
4Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
52006, 2007, 2008, 2009 Free Software Foundation, Inc.
6
7 Copying and distribution of this file, with or without modification,
8are permitted in any medium without royalty provided the copyright
9notice and this notice are preserved. This file is offered as-is,
10without warranty of any kind.
11
12Basic Installation
13==================
14
15 Briefly, the shell commands `./configure; make; make install' should
16configure, build, and install this package. The following
17more-detailed instructions are generic; see the `README' file for
18instructions specific to this package. Some packages provide this
19`INSTALL' file but do not implement all of the features documented
20below. The lack of an optional feature in a given package is not
21necessarily a bug. More recommendations for GNU packages can be found
22in *note Makefile Conventions: (standards)Makefile Conventions.
23
24 The `configure' shell script attempts to guess correct values for
25various system-dependent variables used during compilation. It uses
26those values to create a `Makefile' in each directory of the package.
27It may also create one or more `.h' files containing system-dependent
28definitions. Finally, it creates a shell script `config.status' that
29you can run in the future to recreate the current configuration, and a
30file `config.log' containing compiler output (useful mainly for
31debugging `configure').
32
33 It can also use an optional file (typically called `config.cache'
34and enabled with `--cache-file=config.cache' or simply `-C') that saves
35the results of its tests to speed up reconfiguring. Caching is
36disabled by default to prevent problems with accidental use of stale
37cache files.
38
39 If you need to do unusual things to compile the package, please try
40to figure out how `configure' could check whether to do them, and mail
41diffs or instructions to the address given in the `README' so they can
42be considered for the next release. If you are using the cache, and at
43some point `config.cache' contains results you don't want to keep, you
44may remove or edit it.
45
46 The file `configure.ac' (or `configure.in') is used to create
47`configure' by a program called `autoconf'. You need `configure.ac' if
48you want to change it or regenerate `configure' using a newer version
49of `autoconf'.
50
51 The simplest way to compile this package is:
52
53 1. `cd' to the directory containing the package's source code and type
54 `./configure' to configure the package for your system.
55
56 Running `configure' might take a while. While running, it prints
57 some messages telling which features it is checking for.
58
59 2. Type `make' to compile the package.
60
61 3. Optionally, type `make check' to run any self-tests that come with
62 the package, generally using the just-built uninstalled binaries.
63
64 4. Type `make install' to install the programs and any data files and
65 documentation. When installing into a prefix owned by root, it is
66 recommended that the package be configured and built as a regular
67 user, and only the `make install' phase executed with root
68 privileges.
69
70 5. Optionally, type `make installcheck' to repeat any self-tests, but
71 this time using the binaries in their final installed location.
72 This target does not install anything. Running this target as a
73 regular user, particularly if the prior `make install' required
74 root privileges, verifies that the installation completed
75 correctly.
76
77 6. You can remove the program binaries and object files from the
78 source code directory by typing `make clean'. To also remove the
79 files that `configure' created (so you can compile the package for
80 a different kind of computer), type `make distclean'. There is
81 also a `make maintainer-clean' target, but that is intended mainly
82 for the package's developers. If you use it, you may have to get
83 all sorts of other programs in order to regenerate files that came
84 with the distribution.
85
86 7. Often, you can also type `make uninstall' to remove the installed
87 files again. In practice, not all packages have tested that
88 uninstallation works correctly, even though it is required by the
89 GNU Coding Standards.
90
91 8. Some packages, particularly those that use Automake, provide `make
92 distcheck', which can by used by developers to test that all other
93 targets like `make install' and `make uninstall' work correctly.
94 This target is generally not run by end users.
95
96Compilers and Options
97=====================
98
99 Some systems require unusual options for compilation or linking that
100the `configure' script does not know about. Run `./configure --help'
101for details on some of the pertinent environment variables.
102
103 You can give `configure' initial values for configuration parameters
104by setting variables in the command line or in the environment. Here
105is an example:
106
107 ./configure CC=c99 CFLAGS=-g LIBS=-lposix
108
109 *Note Defining Variables::, for more details.
110
111Compiling For Multiple Architectures
112====================================
113
114 You can compile the package for more than one kind of computer at the
115same time, by placing the object files for each architecture in their
116own directory. To do this, you can use GNU `make'. `cd' to the
117directory where you want the object files and executables to go and run
118the `configure' script. `configure' automatically checks for the
119source code in the directory that `configure' is in and in `..'. This
120is known as a "VPATH" build.
121
122 With a non-GNU `make', it is safer to compile the package for one
123architecture at a time in the source code directory. After you have
124installed the package for one architecture, use `make distclean' before
125reconfiguring for another architecture.
126
127 On MacOS X 10.5 and later systems, you can create libraries and
128executables that work on multiple system types--known as "fat" or
129"universal" binaries--by specifying multiple `-arch' options to the
130compiler but only a single `-arch' option to the preprocessor. Like
131this:
132
133 ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
134 CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
135 CPP="gcc -E" CXXCPP="g++ -E"
136
137 This is not guaranteed to produce working output in all cases, you
138may have to build one architecture at a time and combine the results
139using the `lipo' tool if you have problems.
140
141Installation Names
142==================
143
144 By default, `make install' installs the package's commands under
145`/usr/local/bin', include files under `/usr/local/include', etc. You
146can specify an installation prefix other than `/usr/local' by giving
147`configure' the option `--prefix=PREFIX', where PREFIX must be an
148absolute file name.
149
150 You can specify separate installation prefixes for
151architecture-specific files and architecture-independent files. If you
152pass the option `--exec-prefix=PREFIX' to `configure', the package uses
153PREFIX as the prefix for installing programs and libraries.
154Documentation and other data files still use the regular prefix.
155
156 In addition, if you use an unusual directory layout you can give
157options like `--bindir=DIR' to specify different values for particular
158kinds of files. Run `configure --help' for a list of the directories
159you can set and what kinds of files go in them. In general, the
160default for these options is expressed in terms of `${prefix}', so that
161specifying just `--prefix' will affect all of the other directory
162specifications that were not explicitly provided.
163
164 The most portable way to affect installation locations is to pass the
165correct locations to `configure'; however, many packages provide one or
166both of the following shortcuts of passing variable assignments to the
167`make install' command line to change installation locations without
168having to reconfigure or recompile.
169
170 The first method involves providing an override variable for each
171affected directory. For example, `make install
172prefix=/alternate/directory' will choose an alternate location for all
173directory configuration variables that were expressed in terms of
174`${prefix}'. Any directories that were specified during `configure',
175but not in terms of `${prefix}', must each be overridden at install
176time for the entire installation to be relocated. The approach of
177makefile variable overrides for each directory variable is required by
178the GNU Coding Standards, and ideally causes no recompilation.
179However, some platforms have known limitations with the semantics of
180shared libraries that end up requiring recompilation when using this
181method, particularly noticeable in packages that use GNU Libtool.
182
183 The second method involves providing the `DESTDIR' variable. For
184example, `make install DESTDIR=/alternate/directory' will prepend
185`/alternate/directory' before all installation names. The approach of
186`DESTDIR' overrides is not required by the GNU Coding Standards, and
187does not work on platforms that have drive letters. On the other hand,
188it does better at avoiding recompilation issues, and works well even
189when some directory options were not specified in terms of `${prefix}'
190at `configure' time.
191
192Optional Features
193=================
194
195 If the package supports it, you can cause programs to be installed
196with an extra prefix or suffix on their names by giving `configure' the
197option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
198
199 Some packages pay attention to `--enable-FEATURE' options to
200`configure', where FEATURE indicates an optional part of the package.
201They may also pay attention to `--with-PACKAGE' options, where PACKAGE
202is something like `gnu-as' or `x' (for the X Window System). The
203`README' should mention any `--enable-' and `--with-' options that the
204package recognizes.
205
206 For packages that use the X Window System, `configure' can usually
207find the X include and library files automatically, but if it doesn't,
208you can use the `configure' options `--x-includes=DIR' and
209`--x-libraries=DIR' to specify their locations.
210
211 Some packages offer the ability to configure how verbose the
212execution of `make' will be. For these packages, running `./configure
213--enable-silent-rules' sets the default to minimal output, which can be
214overridden with `make V=1'; while running `./configure
215--disable-silent-rules' sets the default to verbose, which can be
216overridden with `make V=0'.
217
218Particular systems
219==================
220
221 On HP-UX, the default C compiler is not ANSI C compatible. If GNU
222CC is not installed, it is recommended to use the following options in
223order to use an ANSI C compiler:
224
225 ./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
226
227and if that doesn't work, install pre-built binaries of GCC for HP-UX.
228
229 On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
230parse its `<wchar.h>' header file. The option `-nodtk' can be used as
231a workaround. If GNU CC is not installed, it is therefore recommended
232to try
233
234 ./configure CC="cc"
235
236and if that doesn't work, try
237
238 ./configure CC="cc -nodtk"
239
240 On Solaris, don't put `/usr/ucb' early in your `PATH'. This
241directory contains several dysfunctional programs; working variants of
242these programs are available in `/usr/bin'. So, if you need `/usr/ucb'
243in your `PATH', put it _after_ `/usr/bin'.
244
245 On Haiku, software installed for all users goes in `/boot/common',
246not `/usr/local'. It is recommended to use the following options:
247
248 ./configure --prefix=/boot/common
249
250Specifying the System Type
251==========================
252
253 There may be some features `configure' cannot figure out
254automatically, but needs to determine by the type of machine the package
255will run on. Usually, assuming the package is built to be run on the
256_same_ architectures, `configure' can figure that out, but if it prints
257a message saying it cannot guess the machine type, give it the
258`--build=TYPE' option. TYPE can either be a short name for the system
259type, such as `sun4', or a canonical name which has the form:
260
261 CPU-COMPANY-SYSTEM
262
263where SYSTEM can have one of these forms:
264
265 OS
266 KERNEL-OS
267
268 See the file `config.sub' for the possible values of each field. If
269`config.sub' isn't included in this package, then this package doesn't
270need to know the machine type.
271
272 If you are _building_ compiler tools for cross-compiling, you should
273use the option `--target=TYPE' to select the type of system they will
274produce code for.
275
276 If you want to _use_ a cross compiler, that generates code for a
277platform different from the build platform, you should specify the
278"host" platform (i.e., that on which the generated programs will
279eventually be run) with `--host=TYPE'.
280
281Sharing Defaults
282================
283
284 If you want to set default values for `configure' scripts to share,
285you can create a site shell script called `config.site' that gives
286default values for variables like `CC', `cache_file', and `prefix'.
287`configure' looks for `PREFIX/share/config.site' if it exists, then
288`PREFIX/etc/config.site' if it exists. Or, you can set the
289`CONFIG_SITE' environment variable to the location of the site script.
290A warning: not all `configure' scripts look for a site script.
291
292Defining Variables
293==================
294
295 Variables not defined in a site shell script can be set in the
296environment passed to `configure'. However, some packages may run
297configure again during the build, and the customized values of these
298variables may be lost. In order to avoid this problem, you should set
299them in the `configure' command line, using `VAR=value'. For example:
300
301 ./configure CC=/usr/local2/bin/gcc
302
303causes the specified `gcc' to be used as the C compiler (unless it is
304overridden in the site shell script).
305
306Unfortunately, this technique does not work for `CONFIG_SHELL' due to
307an Autoconf bug. Until the bug is fixed you can use this workaround:
308
309 CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
310
311`configure' Invocation
312======================
313
314 `configure' recognizes the following options to control how it
315operates.
316
317`--help'
318`-h'
319 Print a summary of all of the options to `configure', and exit.
320
321`--help=short'
322`--help=recursive'
323 Print a summary of the options unique to this package's
324 `configure', and exit. The `short' variant lists options used
325 only in the top level, while the `recursive' variant lists options
326 also present in any nested packages.
327
328`--version'
329`-V'
330 Print the version of Autoconf used to generate the `configure'
331 script, and exit.
332
333`--cache-file=FILE'
334 Enable the cache: use and save the results of the tests in FILE,
335 traditionally `config.cache'. FILE defaults to `/dev/null' to
336 disable caching.
337
338`--config-cache'
339`-C'
340 Alias for `--cache-file=config.cache'.
341
342`--quiet'
343`--silent'
344`-q'
345 Do not print messages saying which checks are being made. To
346 suppress all normal output, redirect it to `/dev/null' (any error
347 messages will still be shown).
348
349`--srcdir=DIR'
350 Look for the package's source code in directory DIR. Usually
351 `configure' can determine that directory automatically.
352
353`--prefix=DIR'
354 Use DIR as the installation prefix. *note Installation Names::
355 for more details, including other options available for fine-tuning
356 the installation locations.
357
358`--no-create'
359`-n'
360 Run the configure checks, but stop before creating any output
361 files.
362
363`configure' also accepts some other, not widely useful, options. Run
364`configure --help' for more details.
365
0366
=== modified file 'Makefile.am'
=== added file 'Makefile.in'
--- Makefile.in 1970-01-01 00:00:00 +0000
+++ Makefile.in 2013-03-18 23:03:22 +0000
@@ -0,0 +1,857 @@
1# Makefile.in generated by automake 1.11.6 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
6# Foundation, Inc.
7# This Makefile.in is free software; the Free Software Foundation
8# gives unlimited permission to copy and/or distribute it,
9# with or without modifications, as long as this notice is preserved.
10
11# This program is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
13# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
14# PARTICULAR PURPOSE.
15
16@SET_MAKE@
17VPATH = @srcdir@
18am__make_dryrun = \
19 { \
20 am__dry=no; \
21 case $$MAKEFLAGS in \
22 *\\[\ \ ]*) \
23 echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
24 | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
25 *) \
26 for am__flg in $$MAKEFLAGS; do \
27 case $$am__flg in \
28 *=*|--*) ;; \
29 *n*) am__dry=yes; break;; \
30 esac; \
31 done;; \
32 esac; \
33 test $$am__dry = yes; \
34 }
35pkgdatadir = $(datadir)/@PACKAGE@
36pkgincludedir = $(includedir)/@PACKAGE@
37pkglibdir = $(libdir)/@PACKAGE@
38pkglibexecdir = $(libexecdir)/@PACKAGE@
39am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
40install_sh_DATA = $(install_sh) -c -m 644
41install_sh_PROGRAM = $(install_sh) -c
42install_sh_SCRIPT = $(install_sh) -c
43INSTALL_HEADER = $(INSTALL_DATA)
44transform = $(program_transform_name)
45NORMAL_INSTALL = :
46PRE_INSTALL = :
47POST_INSTALL = :
48NORMAL_UNINSTALL = :
49PRE_UNINSTALL = :
50POST_UNINSTALL = :
51build_triplet = @build@
52host_triplet = @host@
53@COMPILE_LIBLIGHTDM_GOBJECT_TRUE@am__append_1 = liblightdm-gobject
54@COMPILE_LIBLIGHTDM_QT_TRUE@am__append_2 = liblightdm-qt
55@COMPILE_TESTS_TRUE@am__append_3 = tests
56subdir = .
57DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
58 $(srcdir)/Makefile.in $(srcdir)/config.h.in \
59 $(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \
60 TODO compile config.guess config.sub depcomp install-sh \
61 ltmain.sh missing
62ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
63am__aclocal_m4_deps = $(top_srcdir)/configure.ac
64am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
65 $(ACLOCAL_M4)
66am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
67 configure.lineno config.status.lineno
68mkinstalldirs = $(install_sh) -d
69CONFIG_HEADER = config.h
70CONFIG_CLEAN_FILES =
71CONFIG_CLEAN_VPATH_FILES =
72AM_V_GEN = $(am__v_GEN_@AM_V@)
73am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
74am__v_GEN_0 = @echo " GEN " $@;
75AM_V_at = $(am__v_at_@AM_V@)
76am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
77am__v_at_0 = @
78SOURCES =
79DIST_SOURCES =
80RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
81 html-recursive info-recursive install-data-recursive \
82 install-dvi-recursive install-exec-recursive \
83 install-html-recursive install-info-recursive \
84 install-pdf-recursive install-ps-recursive install-recursive \
85 installcheck-recursive installdirs-recursive pdf-recursive \
86 ps-recursive uninstall-recursive
87am__can_run_installinfo = \
88 case $$AM_UPDATE_INFO_DIR in \
89 n|no|NO) false;; \
90 *) (install-info --version) >/dev/null 2>&1;; \
91 esac
92RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
93 distclean-recursive maintainer-clean-recursive
94AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
95 $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
96 distdir dist dist-all distcheck
97ETAGS = etags
98CTAGS = ctags
99DIST_SUBDIRS = liblightdm-gobject liblightdm-qt tests data po src doc \
100 help utils
101DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
102distdir = $(PACKAGE)-$(VERSION)
103top_distdir = $(distdir)
104am__remove_distdir = \
105 if test -d "$(distdir)"; then \
106 find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
107 && rm -rf "$(distdir)" \
108 || { sleep 5 && rm -rf "$(distdir)"; }; \
109 else :; fi
110am__relativize = \
111 dir0=`pwd`; \
112 sed_first='s,^\([^/]*\)/.*$$,\1,'; \
113 sed_rest='s,^[^/]*/*,,'; \
114 sed_last='s,^.*/\([^/]*\)$$,\1,'; \
115 sed_butlast='s,/*[^/]*$$,,'; \
116 while test -n "$$dir1"; do \
117 first=`echo "$$dir1" | sed -e "$$sed_first"`; \
118 if test "$$first" != "."; then \
119 if test "$$first" = ".."; then \
120 dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
121 dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
122 else \
123 first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
124 if test "$$first2" = "$$first"; then \
125 dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
126 else \
127 dir2="../$$dir2"; \
128 fi; \
129 dir0="$$dir0"/"$$first"; \
130 fi; \
131 fi; \
132 dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
133 done; \
134 reldir="$$dir2"
135DIST_ARCHIVES = $(distdir).tar.gz
136GZIP_ENV = --best
137distuninstallcheck_listfiles = find . -type f -print
138am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
139 | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
140distcleancheck_listfiles = find . -type f -print
141ACLOCAL = @ACLOCAL@
142ALL_LINGUAS = @ALL_LINGUAS@
143AMTAR = @AMTAR@
144AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
145AR = @AR@
146AUTOCONF = @AUTOCONF@
147AUTOHEADER = @AUTOHEADER@
148AUTOMAKE = @AUTOMAKE@
149AWK = @AWK@
150CC = @CC@
151CCDEPMODE = @CCDEPMODE@
152CFLAGS = @CFLAGS@
153CPP = @CPP@
154CPPFLAGS = @CPPFLAGS@
155CXX = @CXX@
156CXXCPP = @CXXCPP@
157CXXDEPMODE = @CXXDEPMODE@
158CXXFLAGS = @CXXFLAGS@
159CYGPATH_W = @CYGPATH_W@
160DATADIRNAME = @DATADIRNAME@
161DEFS = @DEFS@
162DEPDIR = @DEPDIR@
163DLLTOOL = @DLLTOOL@
164DSYMUTIL = @DSYMUTIL@
165DUMPBIN = @DUMPBIN@
166ECHO_C = @ECHO_C@
167ECHO_N = @ECHO_N@
168ECHO_T = @ECHO_T@
169EGREP = @EGREP@
170EXEEXT = @EXEEXT@
171FGREP = @FGREP@
172GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
173GIO_CFLAGS = @GIO_CFLAGS@
174GIO_LIBS = @GIO_LIBS@
175GIO_UNIX_CFLAGS = @GIO_UNIX_CFLAGS@
176GIO_UNIX_LIBS = @GIO_UNIX_LIBS@
177GLIB_CFLAGS = @GLIB_CFLAGS@
178GLIB_GENMARSHAL = @GLIB_GENMARSHAL@
179GLIB_LIBS = @GLIB_LIBS@
180GMSGFMT = @GMSGFMT@
181GOBJECT_CFLAGS = @GOBJECT_CFLAGS@
182GOBJECT_LIBS = @GOBJECT_LIBS@
183GREETER_SESSION = @GREETER_SESSION@
184GREETER_USER = @GREETER_USER@
185GREP = @GREP@
186GTKDOC_CHECK = @GTKDOC_CHECK@
187GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@
188GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@
189GTKDOC_MKPDF = @GTKDOC_MKPDF@
190GTKDOC_REBASE = @GTKDOC_REBASE@
191HELP_DIR = @HELP_DIR@
192HTML_DIR = @HTML_DIR@
193INSTALL = @INSTALL@
194INSTALL_DATA = @INSTALL_DATA@
195INSTALL_PROGRAM = @INSTALL_PROGRAM@
196INSTALL_SCRIPT = @INSTALL_SCRIPT@
197INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
198INTLTOOL_EXTRACT = @INTLTOOL_EXTRACT@
199INTLTOOL_MERGE = @INTLTOOL_MERGE@
200INTLTOOL_PERL = @INTLTOOL_PERL@
201INTLTOOL_UPDATE = @INTLTOOL_UPDATE@
202INTLTOOL_V_MERGE = @INTLTOOL_V_MERGE@
203INTLTOOL_V_MERGE_OPTIONS = @INTLTOOL_V_MERGE_OPTIONS@
204INTLTOOL__v_MERGE_ = @INTLTOOL__v_MERGE_@
205INTLTOOL__v_MERGE_0 = @INTLTOOL__v_MERGE_0@
206INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@
207INTROSPECTION_COMPILER = @INTROSPECTION_COMPILER@
208INTROSPECTION_GENERATE = @INTROSPECTION_GENERATE@
209INTROSPECTION_GIRDIR = @INTROSPECTION_GIRDIR@
210INTROSPECTION_LIBS = @INTROSPECTION_LIBS@
211INTROSPECTION_MAKEFILE = @INTROSPECTION_MAKEFILE@
212INTROSPECTION_SCANNER = @INTROSPECTION_SCANNER@
213INTROSPECTION_TYPELIBDIR = @INTROSPECTION_TYPELIBDIR@
214ITSTOOL = @ITSTOOL@
215LD = @LD@
216LDFLAGS = @LDFLAGS@
217LIBLIGHTDM_GOBJECT_CFLAGS = @LIBLIGHTDM_GOBJECT_CFLAGS@
218LIBLIGHTDM_GOBJECT_LIBS = @LIBLIGHTDM_GOBJECT_LIBS@
219LIBLIGHTDM_QT_CFLAGS = @LIBLIGHTDM_QT_CFLAGS@
220LIBLIGHTDM_QT_LIBS = @LIBLIGHTDM_QT_LIBS@
221LIBOBJS = @LIBOBJS@
222LIBS = @LIBS@
223LIBTOOL = @LIBTOOL@
224LIGHTDM_CFLAGS = @LIGHTDM_CFLAGS@
225LIGHTDM_LIBS = @LIGHTDM_LIBS@
226LIPO = @LIPO@
227LN_S = @LN_S@
228LTLIBOBJS = @LTLIBOBJS@
229MAINT = @MAINT@
230MAKEINFO = @MAKEINFO@
231MANIFEST_TOOL = @MANIFEST_TOOL@
232MKDIR_P = @MKDIR_P@
233MOC = @MOC@
234MSGFMT = @MSGFMT@
235MSGMERGE = @MSGMERGE@
236NM = @NM@
237NMEDIT = @NMEDIT@
238OBJDUMP = @OBJDUMP@
239OBJEXT = @OBJEXT@
240OTOOL = @OTOOL@
241OTOOL64 = @OTOOL64@
242PACKAGE = @PACKAGE@
243PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
244PACKAGE_NAME = @PACKAGE_NAME@
245PACKAGE_STRING = @PACKAGE_STRING@
246PACKAGE_TARNAME = @PACKAGE_TARNAME@
247PACKAGE_URL = @PACKAGE_URL@
248PACKAGE_VERSION = @PACKAGE_VERSION@
249PATH_SEPARATOR = @PATH_SEPARATOR@
250PKG_CONFIG = @PKG_CONFIG@
251PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
252PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
253RANLIB = @RANLIB@
254SED = @SED@
255SET_MAKE = @SET_MAKE@
256SHELL = @SHELL@
257STRIP = @STRIP@
258USER_SESSION = @USER_SESSION@
259USE_NLS = @USE_NLS@
260VERSION = @VERSION@
261WARN_CFLAGS = @WARN_CFLAGS@
262XCB_CFLAGS = @XCB_CFLAGS@
263XCB_LIBS = @XCB_LIBS@
264XGETTEXT = @XGETTEXT@
265XMLLINT = @XMLLINT@
266abs_builddir = @abs_builddir@
267abs_srcdir = @abs_srcdir@
268abs_top_builddir = @abs_top_builddir@
269abs_top_srcdir = @abs_top_srcdir@
270ac_ct_AR = @ac_ct_AR@
271ac_ct_CC = @ac_ct_CC@
272ac_ct_CXX = @ac_ct_CXX@
273ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
274ac_ct_MOC = @ac_ct_MOC@
275am__include = @am__include@
276am__leading_dot = @am__leading_dot@
277am__quote = @am__quote@
278am__tar = @am__tar@
279am__untar = @am__untar@
280bindir = @bindir@
281build = @build@
282build_alias = @build_alias@
283build_cpu = @build_cpu@
284build_os = @build_os@
285build_vendor = @build_vendor@
286builddir = @builddir@
287datadir = @datadir@
288datarootdir = @datarootdir@
289docdir = @docdir@
290dvidir = @dvidir@
291exec_prefix = @exec_prefix@
292host = @host@
293host_alias = @host_alias@
294host_cpu = @host_cpu@
295host_os = @host_os@
296host_vendor = @host_vendor@
297htmldir = @htmldir@
298includedir = @includedir@
299infodir = @infodir@
300install_sh = @install_sh@
301intltool__v_merge_options_ = @intltool__v_merge_options_@
302intltool__v_merge_options_0 = @intltool__v_merge_options_0@
303libdir = @libdir@
304libexecdir = @libexecdir@
305localedir = @localedir@
306localstatedir = @localstatedir@
307mandir = @mandir@
308mkdir_p = @mkdir_p@
309oldincludedir = @oldincludedir@
310pdfdir = @pdfdir@
311prefix = @prefix@
312program_transform_name = @program_transform_name@
313psdir = @psdir@
314sbindir = @sbindir@
315sharedstatedir = @sharedstatedir@
316srcdir = @srcdir@
317sysconfdir = @sysconfdir@
318target_alias = @target_alias@
319top_build_prefix = @top_build_prefix@
320top_builddir = @top_builddir@
321top_srcdir = @top_srcdir@
322SUBDIRS = $(am__append_1) $(am__append_2) $(am__append_3) data po src \
323 doc help utils
324DISTCHECK_CONFIGURE_FLAGS = --enable-introspection --enable-gtk-doc
325EXTRA_DIST = \
326 autogen.sh \
327 lightdm.doap
328
329DISTCLEANFILES = \
330 Makefile.in \
331 aclocal.m4 \
332 configure \
333 config.h.in \
334 config.h \
335 depcomp \
336 gtk-doc.make \
337 install-sh \
338 missing \
339 mkinstalldirs \
340 omf.make \
341 xmldocs.make \
342 po/Makefile.in.in
343
344all: config.h
345 $(MAKE) $(AM_MAKEFLAGS) all-recursive
346
347.SUFFIXES:
348am--refresh: Makefile
349 @:
350$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
351 @for dep in $?; do \
352 case '$(am__configure_deps)' in \
353 *$$dep*) \
354 echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \
355 $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \
356 && exit 0; \
357 exit 1;; \
358 esac; \
359 done; \
360 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
361 $(am__cd) $(top_srcdir) && \
362 $(AUTOMAKE) --gnu Makefile
363.PRECIOUS: Makefile
364Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
365 @case '$?' in \
366 *config.status*) \
367 echo ' $(SHELL) ./config.status'; \
368 $(SHELL) ./config.status;; \
369 *) \
370 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
371 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
372 esac;
373
374$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
375 $(SHELL) ./config.status --recheck
376
377$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
378 $(am__cd) $(srcdir) && $(AUTOCONF)
379$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
380 $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
381$(am__aclocal_m4_deps):
382
383config.h: stamp-h1
384 @if test ! -f $@; then rm -f stamp-h1; else :; fi
385 @if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) stamp-h1; else :; fi
386
387stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
388 @rm -f stamp-h1
389 cd $(top_builddir) && $(SHELL) ./config.status config.h
390$(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
391 ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
392 rm -f stamp-h1
393 touch $@
394
395distclean-hdr:
396 -rm -f config.h stamp-h1
397
398mostlyclean-libtool:
399 -rm -f *.lo
400
401clean-libtool:
402 -rm -rf .libs _libs
403
404distclean-libtool:
405 -rm -f libtool config.lt
406
407# This directory's subdirectories are mostly independent; you can cd
408# into them and run `make' without going through this Makefile.
409# To change the values of `make' variables: instead of editing Makefiles,
410# (1) if the variable is set in `config.status', edit `config.status'
411# (which will cause the Makefiles to be regenerated when you run `make');
412# (2) otherwise, pass the desired values on the `make' command line.
413$(RECURSIVE_TARGETS):
414 @fail= failcom='exit 1'; \
415 for f in x $$MAKEFLAGS; do \
416 case $$f in \
417 *=* | --[!k]*);; \
418 *k*) failcom='fail=yes';; \
419 esac; \
420 done; \
421 dot_seen=no; \
422 target=`echo $@ | sed s/-recursive//`; \
423 list='$(SUBDIRS)'; for subdir in $$list; do \
424 echo "Making $$target in $$subdir"; \
425 if test "$$subdir" = "."; then \
426 dot_seen=yes; \
427 local_target="$$target-am"; \
428 else \
429 local_target="$$target"; \
430 fi; \
431 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
432 || eval $$failcom; \
433 done; \
434 if test "$$dot_seen" = "no"; then \
435 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
436 fi; test -z "$$fail"
437
438$(RECURSIVE_CLEAN_TARGETS):
439 @fail= failcom='exit 1'; \
440 for f in x $$MAKEFLAGS; do \
441 case $$f in \
442 *=* | --[!k]*);; \
443 *k*) failcom='fail=yes';; \
444 esac; \
445 done; \
446 dot_seen=no; \
447 case "$@" in \
448 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
449 *) list='$(SUBDIRS)' ;; \
450 esac; \
451 rev=''; for subdir in $$list; do \
452 if test "$$subdir" = "."; then :; else \
453 rev="$$subdir $$rev"; \
454 fi; \
455 done; \
456 rev="$$rev ."; \
457 target=`echo $@ | sed s/-recursive//`; \
458 for subdir in $$rev; do \
459 echo "Making $$target in $$subdir"; \
460 if test "$$subdir" = "."; then \
461 local_target="$$target-am"; \
462 else \
463 local_target="$$target"; \
464 fi; \
465 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
466 || eval $$failcom; \
467 done && test -z "$$fail"
468tags-recursive:
469 list='$(SUBDIRS)'; for subdir in $$list; do \
470 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
471 done
472ctags-recursive:
473 list='$(SUBDIRS)'; for subdir in $$list; do \
474 test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
475 done
476
477ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
478 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
479 unique=`for i in $$list; do \
480 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
481 done | \
482 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
483 END { if (nonempty) { for (i in files) print i; }; }'`; \
484 mkid -fID $$unique
485tags: TAGS
486
487TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
488 $(TAGS_FILES) $(LISP)
489 set x; \
490 here=`pwd`; \
491 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
492 include_option=--etags-include; \
493 empty_fix=.; \
494 else \
495 include_option=--include; \
496 empty_fix=; \
497 fi; \
498 list='$(SUBDIRS)'; for subdir in $$list; do \
499 if test "$$subdir" = .; then :; else \
500 test ! -f $$subdir/TAGS || \
501 set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
502 fi; \
503 done; \
504 list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
505 unique=`for i in $$list; do \
506 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
507 done | \
508 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
509 END { if (nonempty) { for (i in files) print i; }; }'`; \
510 shift; \
511 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
512 test -n "$$unique" || unique=$$empty_fix; \
513 if test $$# -gt 0; then \
514 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
515 "$$@" $$unique; \
516 else \
517 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
518 $$unique; \
519 fi; \
520 fi
521ctags: CTAGS
522CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
523 $(TAGS_FILES) $(LISP)
524 list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
525 unique=`for i in $$list; do \
526 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
527 done | \
528 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
529 END { if (nonempty) { for (i in files) print i; }; }'`; \
530 test -z "$(CTAGS_ARGS)$$unique" \
531 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
532 $$unique
533
534GTAGS:
535 here=`$(am__cd) $(top_builddir) && pwd` \
536 && $(am__cd) $(top_srcdir) \
537 && gtags -i $(GTAGS_ARGS) "$$here"
538
539distclean-tags:
540 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
541
542distdir: $(DISTFILES)
543 $(am__remove_distdir)
544 test -d "$(distdir)" || mkdir "$(distdir)"
545 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
546 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
547 list='$(DISTFILES)'; \
548 dist_files=`for file in $$list; do echo $$file; done | \
549 sed -e "s|^$$srcdirstrip/||;t" \
550 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
551 case $$dist_files in \
552 */*) $(MKDIR_P) `echo "$$dist_files" | \
553 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
554 sort -u` ;; \
555 esac; \
556 for file in $$dist_files; do \
557 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
558 if test -d $$d/$$file; then \
559 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
560 if test -d "$(distdir)/$$file"; then \
561 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
562 fi; \
563 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
564 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
565 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
566 fi; \
567 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
568 else \
569 test -f "$(distdir)/$$file" \
570 || cp -p $$d/$$file "$(distdir)/$$file" \
571 || exit 1; \
572 fi; \
573 done
574 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
575 if test "$$subdir" = .; then :; else \
576 $(am__make_dryrun) \
577 || test -d "$(distdir)/$$subdir" \
578 || $(MKDIR_P) "$(distdir)/$$subdir" \
579 || exit 1; \
580 dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
581 $(am__relativize); \
582 new_distdir=$$reldir; \
583 dir1=$$subdir; dir2="$(top_distdir)"; \
584 $(am__relativize); \
585 new_top_distdir=$$reldir; \
586 echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
587 echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
588 ($(am__cd) $$subdir && \
589 $(MAKE) $(AM_MAKEFLAGS) \
590 top_distdir="$$new_top_distdir" \
591 distdir="$$new_distdir" \
592 am__remove_distdir=: \
593 am__skip_length_check=: \
594 am__skip_mode_fix=: \
595 distdir) \
596 || exit 1; \
597 fi; \
598 done
599 -test -n "$(am__skip_mode_fix)" \
600 || find "$(distdir)" -type d ! -perm -755 \
601 -exec chmod u+rwx,go+rx {} \; -o \
602 ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
603 ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
604 ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
605 || chmod -R a+r "$(distdir)"
606dist-gzip: distdir
607 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
608 $(am__remove_distdir)
609
610dist-bzip2: distdir
611 tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
612 $(am__remove_distdir)
613
614dist-lzip: distdir
615 tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz
616 $(am__remove_distdir)
617
618dist-lzma: distdir
619 tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
620 $(am__remove_distdir)
621
622dist-xz: distdir
623 tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
624 $(am__remove_distdir)
625
626dist-tarZ: distdir
627 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
628 $(am__remove_distdir)
629
630dist-shar: distdir
631 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
632 $(am__remove_distdir)
633
634dist-zip: distdir
635 -rm -f $(distdir).zip
636 zip -rq $(distdir).zip $(distdir)
637 $(am__remove_distdir)
638
639dist dist-all: distdir
640 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
641 $(am__remove_distdir)
642
643# This target untars the dist file and tries a VPATH configuration. Then
644# it guarantees that the distribution is self-contained by making another
645# tarfile.
646distcheck: dist
647 case '$(DIST_ARCHIVES)' in \
648 *.tar.gz*) \
649 GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
650 *.tar.bz2*) \
651 bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
652 *.tar.lzma*) \
653 lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
654 *.tar.lz*) \
655 lzip -dc $(distdir).tar.lz | $(am__untar) ;;\
656 *.tar.xz*) \
657 xz -dc $(distdir).tar.xz | $(am__untar) ;;\
658 *.tar.Z*) \
659 uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
660 *.shar.gz*) \
661 GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
662 *.zip*) \
663 unzip $(distdir).zip ;;\
664 esac
665 chmod -R a-w $(distdir); chmod u+w $(distdir)
666 mkdir $(distdir)/_build
667 mkdir $(distdir)/_inst
668 chmod a-w $(distdir)
669 test -d $(distdir)/_build || exit 0; \
670 dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
671 && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
672 && am__cwd=`pwd` \
673 && $(am__cd) $(distdir)/_build \
674 && ../configure --srcdir=.. --prefix="$$dc_install_base" \
675 $(AM_DISTCHECK_CONFIGURE_FLAGS) \
676 $(DISTCHECK_CONFIGURE_FLAGS) \
677 && $(MAKE) $(AM_MAKEFLAGS) \
678 && $(MAKE) $(AM_MAKEFLAGS) dvi \
679 && $(MAKE) $(AM_MAKEFLAGS) check \
680 && $(MAKE) $(AM_MAKEFLAGS) install \
681 && $(MAKE) $(AM_MAKEFLAGS) installcheck \
682 && $(MAKE) $(AM_MAKEFLAGS) uninstall \
683 && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
684 distuninstallcheck \
685 && chmod -R a-w "$$dc_install_base" \
686 && ({ \
687 (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
688 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
689 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
690 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
691 distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
692 } || { rm -rf "$$dc_destdir"; exit 1; }) \
693 && rm -rf "$$dc_destdir" \
694 && $(MAKE) $(AM_MAKEFLAGS) dist \
695 && rm -rf $(DIST_ARCHIVES) \
696 && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
697 && cd "$$am__cwd" \
698 || exit 1
699 $(am__remove_distdir)
700 @(echo "$(distdir) archives ready for distribution: "; \
701 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
702 sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
703distuninstallcheck:
704 @test -n '$(distuninstallcheck_dir)' || { \
705 echo 'ERROR: trying to run $@ with an empty' \
706 '$$(distuninstallcheck_dir)' >&2; \
707 exit 1; \
708 }; \
709 $(am__cd) '$(distuninstallcheck_dir)' || { \
710 echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \
711 exit 1; \
712 }; \
713 test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \
714 || { echo "ERROR: files left after uninstall:" ; \
715 if test -n "$(DESTDIR)"; then \
716 echo " (check DESTDIR support)"; \
717 fi ; \
718 $(distuninstallcheck_listfiles) ; \
719 exit 1; } >&2
720distcleancheck: distclean
721 @if test '$(srcdir)' = . ; then \
722 echo "ERROR: distcleancheck can only run from a VPATH build" ; \
723 exit 1 ; \
724 fi
725 @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
726 || { echo "ERROR: files left in build directory after distclean:" ; \
727 $(distcleancheck_listfiles) ; \
728 exit 1; } >&2
729check-am: all-am
730check: check-recursive
731all-am: Makefile config.h
732installdirs: installdirs-recursive
733installdirs-am:
734install: install-recursive
735install-exec: install-exec-recursive
736install-data: install-data-recursive
737uninstall: uninstall-recursive
738
739install-am: all-am
740 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
741
742installcheck: installcheck-recursive
743install-strip:
744 if test -z '$(STRIP)'; then \
745 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
746 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
747 install; \
748 else \
749 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
750 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
751 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
752 fi
753mostlyclean-generic:
754
755clean-generic:
756
757distclean-generic:
758 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
759 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
760 -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
761
762maintainer-clean-generic:
763 @echo "This command is intended for maintainers to use"
764 @echo "it deletes files that may require special tools to rebuild."
765clean: clean-recursive
766
767clean-am: clean-generic clean-libtool mostlyclean-am
768
769distclean: distclean-recursive
770 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
771 -rm -f Makefile
772distclean-am: clean-am distclean-generic distclean-hdr \
773 distclean-libtool distclean-tags
774
775dvi: dvi-recursive
776
777dvi-am:
778
779html: html-recursive
780
781html-am:
782
783info: info-recursive
784
785info-am:
786
787install-data-am:
788
789install-dvi: install-dvi-recursive
790
791install-dvi-am:
792
793install-exec-am:
794
795install-html: install-html-recursive
796
797install-html-am:
798
799install-info: install-info-recursive
800
801install-info-am:
802
803install-man:
804
805install-pdf: install-pdf-recursive
806
807install-pdf-am:
808
809install-ps: install-ps-recursive
810
811install-ps-am:
812
813installcheck-am:
814
815maintainer-clean: maintainer-clean-recursive
816 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
817 -rm -rf $(top_srcdir)/autom4te.cache
818 -rm -f Makefile
819maintainer-clean-am: distclean-am maintainer-clean-generic
820
821mostlyclean: mostlyclean-recursive
822
823mostlyclean-am: mostlyclean-generic mostlyclean-libtool
824
825pdf: pdf-recursive
826
827pdf-am:
828
829ps: ps-recursive
830
831ps-am:
832
833uninstall-am:
834
835.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \
836 ctags-recursive install-am install-strip tags-recursive
837
838.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
839 all all-am am--refresh check check-am clean clean-generic \
840 clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
841 dist-gzip dist-lzip dist-lzma dist-shar dist-tarZ dist-xz \
842 dist-zip distcheck distclean distclean-generic distclean-hdr \
843 distclean-libtool distclean-tags distcleancheck distdir \
844 distuninstallcheck dvi dvi-am html html-am info info-am \
845 install install-am install-data install-data-am install-dvi \
846 install-dvi-am install-exec install-exec-am install-html \
847 install-html-am install-info install-info-am install-man \
848 install-pdf install-pdf-am install-ps install-ps-am \
849 install-strip installcheck installcheck-am installdirs \
850 installdirs-am maintainer-clean maintainer-clean-generic \
851 mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
852 ps ps-am tags tags-recursive uninstall uninstall-am
853
854
855# Tell versions [3.59,3.63) of GNU make to not export all variables.
856# Otherwise a system limit (for SysV at least) may be exceeded.
857.NOEXPORT:
0858
=== modified file 'NEWS'
--- NEWS 2013-03-07 22:05:11 +0000
+++ NEWS 2013-03-18 23:03:22 +0000
@@ -1,3 +1,4 @@
1<<<<<<< TREE
1Overview of changes in lightdm 1.5.12Overview of changes in lightdm 1.5.1
23
3 * QLightDM: Add Qt5 version of the library: liblightdm-qt5-24 * QLightDM: Add Qt5 version of the library: liblightdm-qt5-2
@@ -91,6 +92,78 @@
91 * Add a seat option greeter-show-manual-login which hints to a greeter if it92 * Add a seat option greeter-show-manual-login which hints to a greeter if it
92 should show a manual username entry if a user list is already present.93 should show a manual username entry if a user list is already present.
9394
95=======
96Overview of changes in lightdm 1.4.0
97
98 * Correctly implement and test autologin timeouts
99 * Add greeter-show-remote-login hint
100 * Correctly annotate enums in vapi file
101 * QLightDM: Add default constructor to Qt power interface
102 * QLightDM: Expose image path in UserModel
103 * QLightDM: Add parameter to session model to show either local or remote
104 sessions
105 * Fix race conditions in tests
106
107Overview of changes in lightdm 1.3.3
108
109 * Add a new remote session type. These sessions create a temporary local
110 account and authenticate against a remote server. The session is an
111 application that accesses that remote session (e.g. VNC, RDP etc)
112 * Support multiple simultaneous PAM prompts
113 * Set utmp ut_host field to the X display address
114 * Correctly reap unused authentication sessions
115
116Overview of changes in lightdm 1.3.2
117
118 * Handle clearenv() not being defined
119 * Fix compilation with GCC 4.7
120 * Expose remaining properties in QLightDM::Greeter
121 * Fix utmp records being written before child process created
122
123Overview of changes in lightdm 1.3.1
124
125 * Fix wrapper path in AppArmor profile (broken since 1.1.1)
126 * Add show-manual-login and allow-guest options to lightdm-set-defaults
127 * Don't set PAM_XDISPLAY or PAM_XAUTHDATA if not supported
128 * Add lock-memory option, enabled by default, to prevent paging memory
129 to disk.
130 * Write utmp records for sessions
131 * Install PAM configuration
132 * Run greeters inside the "lightdm-greeter" PAM service
133 * Handle setresgid and setresuid not being available
134 * Use xsession directory from lightdm.conf in liblightdm
135
136Overview of changes in lightdm 1.2.0
137
138 * Backup .xsession-errors on login
139 * Handle failures in pam_setcred
140 * Open log files in append mode
141 * Add extra checks in liblightdm so that it doesn't send invalid messages
142 to the daemon
143 * Fix gdmflexiserver not being added to the path (broken since 1.1.4)
144 * Fix PAM conversations after authentication from locking up sessions
145 * Fix PAM informational messages locking up autologin
146 * Change XDMCP manage timeout from 10ms to 126s (maximum specified in the
147 XDMCP specification)
148
149Overview of changes in lightdm 1.1.9
150
151 * Add --show-users/--hide-users to lightdm-set-defaults
152 * Call initgroups before pam_setcred - this allows pam_setcred to change
153 group membership correctly
154
155Overview of changes in lightdm 1.1.8
156
157 * Handle PAM interactions that have more than one message in one callback
158
159Overview of changes in lightdm 1.1.7
160
161 * Add a seat option greeter-allow-guest which controls if the greeter should
162 provide an option to access the guest account.
163 * Add a seat option greeter-show-manual-login which hints to a greeter if it
164 should show a manual username entry if a user list is already present.
165
166>>>>>>> MERGE-SOURCE
94Overview of changes in lightdm 1.1.6167Overview of changes in lightdm 1.1.6
95168
96 * Fix session wrapper working the same as it did in 1.1.3169 * Fix session wrapper working the same as it did in 1.1.3
97170
=== added file 'TODO'
--- TODO 1970-01-01 00:00:00 +0000
+++ TODO 2013-03-18 23:03:22 +0000
@@ -0,0 +1,19 @@
1LightDM crashes when quitting after have XDMCP connection in PAMSession?
2Stop being able to log into users on other seats
3Add VNC support
4Test XDMCP client seat
5Per seat guest enable
6Close FDs on starting session (but keep greeter pipe open)
7Merge tests .script and .config
8Rename XAuthorization to XAuthority? And merge in authentication?
9Failsafe X and exponential backoff?
10GET ALL HINTS WORKING
11Always load dmrc from cache
12Make liblightdm-qt use AccountsService
13Fix XDM-AUTHENTICATION-KEY decode, add regression test
14
15***
16Fix guest accounts being created but the session doesn't start
17Add tests to check guest accounts are being created and destroyed
18
19add regression test to check XDG_SESSION_COOKIE is set
0\ No newline at end of file20\ No newline at end of file
121
=== added file 'aclocal.m4'
--- aclocal.m4 1970-01-01 00:00:00 +0000
+++ aclocal.m4 2013-03-18 23:03:22 +0000
@@ -0,0 +1,10619 @@
1# generated automatically by aclocal 1.11.6 -*- Autoconf -*-
2
3# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4# 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation,
5# Inc.
6# This file is free software; the Free Software Foundation
7# gives unlimited permission to copy and/or distribute it,
8# with or without modifications, as long as this notice is preserved.
9
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13# PARTICULAR PURPOSE.
14
15m4_ifndef([AC_AUTOCONF_VERSION],
16 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
17m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
18[m4_warning([this file was generated for autoconf 2.69.
19You have another version of autoconf. It may work, but is not guaranteed to.
20If you have problems, you may need to regenerate the build system entirely.
21To do so, use the procedure documented by the package, typically `autoreconf'.])])
22
23dnl GNOME_COMPILE_WARNINGS
24dnl Turn on many useful compiler warnings
25dnl For now, only works on GCC
26AC_DEFUN([GNOME_COMPILE_WARNINGS],[
27 dnl ******************************
28 dnl More compiler warnings
29 dnl ******************************
30
31 AC_ARG_ENABLE(compile-warnings,
32 AC_HELP_STRING([--enable-compile-warnings=@<:@no/minimum/yes/maximum/error@:>@],
33 [Turn on compiler warnings]),,
34 [enable_compile_warnings="m4_default([$1],[yes])"])
35
36 warnCFLAGS=
37 if test "x$GCC" != xyes; then
38 enable_compile_warnings=no
39 fi
40
41 warning_flags=
42 realsave_CFLAGS="$CFLAGS"
43
44 case "$enable_compile_warnings" in
45 no)
46 warning_flags=
47 ;;
48 minimum)
49 warning_flags="-Wall"
50 ;;
51 yes)
52 warning_flags="-Wall -Wmissing-prototypes"
53 ;;
54 maximum|error)
55 warning_flags="-Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith"
56 CFLAGS="$warning_flags $CFLAGS"
57 for option in -Wno-sign-compare; do
58 SAVE_CFLAGS="$CFLAGS"
59 CFLAGS="$CFLAGS $option"
60 AC_MSG_CHECKING([whether gcc understands $option])
61 AC_TRY_COMPILE([], [],
62 has_option=yes,
63 has_option=no,)
64 CFLAGS="$SAVE_CFLAGS"
65 AC_MSG_RESULT($has_option)
66 if test $has_option = yes; then
67 warning_flags="$warning_flags $option"
68 fi
69 unset has_option
70 unset SAVE_CFLAGS
71 done
72 unset option
73 if test "$enable_compile_warnings" = "error" ; then
74 warning_flags="$warning_flags -Werror"
75 fi
76 ;;
77 *)
78 AC_MSG_ERROR(Unknown argument '$enable_compile_warnings' to --enable-compile-warnings)
79 ;;
80 esac
81 CFLAGS="$realsave_CFLAGS"
82 AC_MSG_CHECKING(what warning flags to pass to the C compiler)
83 AC_MSG_RESULT($warning_flags)
84
85 AC_ARG_ENABLE(iso-c,
86 AC_HELP_STRING([--enable-iso-c],
87 [Try to warn if code is not ISO C ]),,
88 [enable_iso_c=no])
89
90 AC_MSG_CHECKING(what language compliance flags to pass to the C compiler)
91 complCFLAGS=
92 if test "x$enable_iso_c" != "xno"; then
93 if test "x$GCC" = "xyes"; then
94 case " $CFLAGS " in
95 *[\ \ ]-ansi[\ \ ]*) ;;
96 *) complCFLAGS="$complCFLAGS -ansi" ;;
97 esac
98 case " $CFLAGS " in
99 *[\ \ ]-pedantic[\ \ ]*) ;;
100 *) complCFLAGS="$complCFLAGS -pedantic" ;;
101 esac
102 fi
103 fi
104 AC_MSG_RESULT($complCFLAGS)
105
106 WARN_CFLAGS="$warning_flags $complCFLAGS"
107 AC_SUBST(WARN_CFLAGS)
108])
109
110dnl For C++, do basically the same thing.
111
112AC_DEFUN([GNOME_CXX_WARNINGS],[
113 AC_ARG_ENABLE(cxx-warnings,
114 AC_HELP_STRING([--enable-cxx-warnings=@<:@no/minimum/yes@:>@]
115 [Turn on compiler warnings.]),,
116 [enable_cxx_warnings="m4_default([$1],[minimum])"])
117
118 AC_MSG_CHECKING(what warning flags to pass to the C++ compiler)
119 warnCXXFLAGS=
120 if test "x$GXX" != xyes; then
121 enable_cxx_warnings=no
122 fi
123 if test "x$enable_cxx_warnings" != "xno"; then
124 if test "x$GXX" = "xyes"; then
125 case " $CXXFLAGS " in
126 *[\ \ ]-Wall[\ \ ]*) ;;
127 *) warnCXXFLAGS="-Wall -Wno-unused" ;;
128 esac
129
130 ## -W is not all that useful. And it cannot be controlled
131 ## with individual -Wno-xxx flags, unlike -Wall
132 if test "x$enable_cxx_warnings" = "xyes"; then
133 warnCXXFLAGS="$warnCXXFLAGS -Wshadow -Woverloaded-virtual"
134 fi
135 fi
136 fi
137 AC_MSG_RESULT($warnCXXFLAGS)
138
139 AC_ARG_ENABLE(iso-cxx,
140 AC_HELP_STRING([--enable-iso-cxx],
141 [Try to warn if code is not ISO C++ ]),,
142 [enable_iso_cxx=no])
143
144 AC_MSG_CHECKING(what language compliance flags to pass to the C++ compiler)
145 complCXXFLAGS=
146 if test "x$enable_iso_cxx" != "xno"; then
147 if test "x$GXX" = "xyes"; then
148 case " $CXXFLAGS " in
149 *[\ \ ]-ansi[\ \ ]*) ;;
150 *) complCXXFLAGS="$complCXXFLAGS -ansi" ;;
151 esac
152
153 case " $CXXFLAGS " in
154 *[\ \ ]-pedantic[\ \ ]*) ;;
155 *) complCXXFLAGS="$complCXXFLAGS -pedantic" ;;
156 esac
157 fi
158 fi
159 AC_MSG_RESULT($complCXXFLAGS)
160
161 WARN_CXXFLAGS="$CXXFLAGS $warnCXXFLAGS $complCXXFLAGS"
162 AC_SUBST(WARN_CXXFLAGS)
163])
164
165dnl -*- mode: autoconf -*-
166
167# serial 1
168
169dnl Usage:
170dnl GTK_DOC_CHECK([minimum-gtk-doc-version])
171AC_DEFUN([GTK_DOC_CHECK],
172[
173 AC_REQUIRE([PKG_PROG_PKG_CONFIG])
174 AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
175 AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
176
177 dnl check for tools we added during development
178 AC_PATH_PROG([GTKDOC_CHECK],[gtkdoc-check])
179 AC_PATH_PROGS([GTKDOC_REBASE],[gtkdoc-rebase],[true])
180 AC_PATH_PROG([GTKDOC_MKPDF],[gtkdoc-mkpdf])
181
182 dnl for overriding the documentation installation directory
183 AC_ARG_WITH([html-dir],
184 AS_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),,
185 [with_html_dir='${datadir}/gtk-doc/html'])
186 HTML_DIR="$with_html_dir"
187 AC_SUBST([HTML_DIR])
188
189 dnl enable/disable documentation building
190 AC_ARG_ENABLE([gtk-doc],
191 AS_HELP_STRING([--enable-gtk-doc],
192 [use gtk-doc to build documentation [[default=no]]]),,
193 [enable_gtk_doc=no])
194
195 if test x$enable_gtk_doc = xyes; then
196 ifelse([$1],[],
197 [PKG_CHECK_EXISTS([gtk-doc],,
198 AC_MSG_ERROR([gtk-doc not installed and --enable-gtk-doc requested]))],
199 [PKG_CHECK_EXISTS([gtk-doc >= $1],,
200 AC_MSG_ERROR([You need to have gtk-doc >= $1 installed to build $PACKAGE_NAME]))])
201 dnl don't check for glib if we build glib
202 if test "x$PACKAGE_NAME" != "xglib"; then
203 dnl don't fail if someone does not have glib
204 PKG_CHECK_MODULES(GTKDOC_DEPS, glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0,,)
205 fi
206 fi
207
208 AC_MSG_CHECKING([whether to build gtk-doc documentation])
209 AC_MSG_RESULT($enable_gtk_doc)
210
211 dnl enable/disable output formats
212 AC_ARG_ENABLE([gtk-doc-html],
213 AS_HELP_STRING([--enable-gtk-doc-html],
214 [build documentation in html format [[default=yes]]]),,
215 [enable_gtk_doc_html=yes])
216 AC_ARG_ENABLE([gtk-doc-pdf],
217 AS_HELP_STRING([--enable-gtk-doc-pdf],
218 [build documentation in pdf format [[default=no]]]),,
219 [enable_gtk_doc_pdf=no])
220
221 if test -z "$GTKDOC_MKPDF"; then
222 enable_gtk_doc_pdf=no
223 fi
224
225
226 AM_CONDITIONAL([ENABLE_GTK_DOC], [test x$enable_gtk_doc = xyes])
227 AM_CONDITIONAL([GTK_DOC_BUILD_HTML], [test x$enable_gtk_doc_html = xyes])
228 AM_CONDITIONAL([GTK_DOC_BUILD_PDF], [test x$enable_gtk_doc_pdf = xyes])
229 AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], [test -n "$LIBTOOL"])
230 AM_CONDITIONAL([GTK_DOC_USE_REBASE], [test -n "$GTKDOC_REBASE"])
231])
232
233
234dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
235# serial 42 IT_PROG_INTLTOOL
236AC_DEFUN([IT_PROG_INTLTOOL], [
237AC_PREREQ([2.50])dnl
238AC_REQUIRE([AM_NLS])dnl
239
240case "$am__api_version" in
241 1.[01234])
242 AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
243 ;;
244 *)
245 ;;
246esac
247
248INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
249INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
250INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
251if test -n "$1"; then
252 AC_MSG_CHECKING([for intltool >= $1])
253 AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
254 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
255 AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.])
256fi
257
258AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
259AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
260AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
261if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
262 AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
263fi
264
265if test -z "$AM_DEFAULT_VERBOSITY"; then
266 AM_DEFAULT_VERBOSITY=1
267fi
268AC_SUBST([AM_DEFAULT_VERBOSITY])
269
270INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))'
271INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))'
272INTLTOOL__v_MERGE_0='@echo " ITMRG " [$]@;'
273AC_SUBST(INTLTOOL_V_MERGE)
274AC_SUBST(INTLTOOL__v_MERGE_)
275AC_SUBST(INTLTOOL__v_MERGE_0)
276
277INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))'
278intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))'
279intltool__v_merge_options_0='-q'
280AC_SUBST(INTLTOOL_V_MERGE_OPTIONS)
281AC_SUBST(intltool__v_merge_options_)
282AC_SUBST(intltool__v_merge_options_0)
283
284 INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
285INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
286 INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
287 INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
288 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< [$]@'
289 INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
290 INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
291 INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
292INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
293 INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
294 INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
295if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then
296 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< [$]@'
297else
298 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.[$][$]RANDOM && mkdir [$][$]_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u [$][$]_it_tmp_dir $< [$]@ && rmdir [$][$]_it_tmp_dir'
299fi
300 INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
301 INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
302 INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
303 INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
304 INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
305 INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
306 INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
307
308_IT_SUBST(INTLTOOL_DESKTOP_RULE)
309_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
310_IT_SUBST(INTLTOOL_KEYS_RULE)
311_IT_SUBST(INTLTOOL_PROP_RULE)
312_IT_SUBST(INTLTOOL_OAF_RULE)
313_IT_SUBST(INTLTOOL_PONG_RULE)
314_IT_SUBST(INTLTOOL_SERVER_RULE)
315_IT_SUBST(INTLTOOL_SHEET_RULE)
316_IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
317_IT_SUBST(INTLTOOL_UI_RULE)
318_IT_SUBST(INTLTOOL_XAM_RULE)
319_IT_SUBST(INTLTOOL_KBD_RULE)
320_IT_SUBST(INTLTOOL_XML_RULE)
321_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
322_IT_SUBST(INTLTOOL_CAVES_RULE)
323_IT_SUBST(INTLTOOL_SCHEMAS_RULE)
324_IT_SUBST(INTLTOOL_THEME_RULE)
325_IT_SUBST(INTLTOOL_SERVICE_RULE)
326_IT_SUBST(INTLTOOL_POLICY_RULE)
327
328# Check the gettext tools to make sure they are GNU
329AC_PATH_PROG(XGETTEXT, xgettext)
330AC_PATH_PROG(MSGMERGE, msgmerge)
331AC_PATH_PROG(MSGFMT, msgfmt)
332AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
333if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
334 AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
335fi
336xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
337mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
338mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
339if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
340 AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
341fi
342
343AC_PATH_PROG(INTLTOOL_PERL, perl)
344if test -z "$INTLTOOL_PERL"; then
345 AC_MSG_ERROR([perl not found])
346fi
347AC_MSG_CHECKING([for perl >= 5.8.1])
348$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
349if test $? -ne 0; then
350 AC_MSG_ERROR([perl 5.8.1 is required for intltool])
351else
352 IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"`
353 AC_MSG_RESULT([$IT_PERL_VERSION])
354fi
355if test "x$2" != "xno-xml"; then
356 AC_MSG_CHECKING([for XML::Parser])
357 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
358 AC_MSG_RESULT([ok])
359 else
360 AC_MSG_ERROR([XML::Parser perl module is required for intltool])
361 fi
362fi
363
364# Substitute ALL_LINGUAS so we can use it in po/Makefile
365AC_SUBST(ALL_LINGUAS)
366
367# Set DATADIRNAME correctly if it is not set yet
368# (copied from glib-gettext.m4)
369if test -z "$DATADIRNAME"; then
370 AC_LINK_IFELSE(
371 [AC_LANG_PROGRAM([[]],
372 [[extern int _nl_msg_cat_cntr;
373 return _nl_msg_cat_cntr]])],
374 [DATADIRNAME=share],
375 [case $host in
376 *-*-solaris*)
377 dnl On Solaris, if bind_textdomain_codeset is in libc,
378 dnl GNU format message catalog is always supported,
379 dnl since both are added to the libc all together.
380 dnl Hence, we'd like to go with DATADIRNAME=share
381 dnl in this case.
382 AC_CHECK_FUNC(bind_textdomain_codeset,
383 [DATADIRNAME=share], [DATADIRNAME=lib])
384 ;;
385 *)
386 [DATADIRNAME=lib]
387 ;;
388 esac])
389fi
390AC_SUBST(DATADIRNAME)
391
392IT_PO_SUBDIR([po])
393
394])
395
396
397# IT_PO_SUBDIR(DIRNAME)
398# ---------------------
399# All po subdirs have to be declared with this macro; the subdir "po" is
400# declared by IT_PROG_INTLTOOL.
401#
402AC_DEFUN([IT_PO_SUBDIR],
403[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
404dnl
405dnl The following CONFIG_COMMANDS should be executed at the very end
406dnl of config.status.
407AC_CONFIG_COMMANDS_PRE([
408 AC_CONFIG_COMMANDS([$1/stamp-it], [
409 if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
410 AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
411 fi
412 rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
413 >"$1/stamp-it.tmp"
414 [sed '/^#/d
415 s/^[[].*] *//
416 /^[ ]*$/d
417 '"s|^| $ac_top_srcdir/|" \
418 "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
419 ]
420 [sed '/^POTFILES =/,/[^\\]$/ {
421 /^POTFILES =/!d
422 r $1/POTFILES
423 }
424 ' "$1/Makefile.in" >"$1/Makefile"]
425 rm -f "$1/Makefile.tmp"
426 mv "$1/stamp-it.tmp" "$1/stamp-it"
427 ])
428])dnl
429])
430
431# _IT_SUBST(VARIABLE)
432# -------------------
433# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
434#
435AC_DEFUN([_IT_SUBST],
436[
437AC_SUBST([$1])
438m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
439]
440)
441
442# deprecated macros
443AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
444# A hint is needed for aclocal from Automake <= 1.9.4:
445# AC_DEFUN([AC_PROG_INTLTOOL], ...)
446
447
448dnl -*- mode: autoconf -*-
449dnl Copyright 2009 Johan Dahlin
450dnl
451dnl This file is free software; the author(s) gives unlimited
452dnl permission to copy and/or distribute it, with or without
453dnl modifications, as long as this notice is preserved.
454dnl
455
456# serial 1
457
458m4_define([_GOBJECT_INTROSPECTION_CHECK_INTERNAL],
459[
460 AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
461 AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
462 AC_BEFORE([LT_INIT],[$0])dnl setup libtool first
463
464 dnl enable/disable introspection
465 m4_if([$2], [require],
466 [dnl
467 enable_introspection=yes
468 ],[dnl
469 AC_ARG_ENABLE(introspection,
470 AS_HELP_STRING([--enable-introspection[=@<:@no/auto/yes@:>@]],
471 [Enable introspection for this build]),,
472 [enable_introspection=auto])
473 ])dnl
474
475 AC_MSG_CHECKING([for gobject-introspection])
476
477 dnl presence/version checking
478 AS_CASE([$enable_introspection],
479 [no], [dnl
480 found_introspection="no (disabled, use --enable-introspection to enable)"
481 ],dnl
482 [yes],[dnl
483 PKG_CHECK_EXISTS([gobject-introspection-1.0],,
484 AC_MSG_ERROR([gobject-introspection-1.0 is not installed]))
485 PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1],
486 found_introspection=yes,
487 AC_MSG_ERROR([You need to have gobject-introspection >= $1 installed to build AC_PACKAGE_NAME]))
488 ],dnl
489 [auto],[dnl
490 PKG_CHECK_EXISTS([gobject-introspection-1.0 >= $1], found_introspection=yes, found_introspection=no)
491 dnl Canonicalize enable_introspection
492 enable_introspection=$found_introspection
493 ],dnl
494 [dnl
495 AC_MSG_ERROR([invalid argument passed to --enable-introspection, should be one of @<:@no/auto/yes@:>@])
496 ])dnl
497
498 AC_MSG_RESULT([$found_introspection])
499
500 INTROSPECTION_SCANNER=
501 INTROSPECTION_COMPILER=
502 INTROSPECTION_GENERATE=
503 INTROSPECTION_GIRDIR=
504 INTROSPECTION_TYPELIBDIR=
505 if test "x$found_introspection" = "xyes"; then
506 INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
507 INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
508 INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
509 INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
510 INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
511 INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
512 INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
513 INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
514 fi
515 AC_SUBST(INTROSPECTION_SCANNER)
516 AC_SUBST(INTROSPECTION_COMPILER)
517 AC_SUBST(INTROSPECTION_GENERATE)
518 AC_SUBST(INTROSPECTION_GIRDIR)
519 AC_SUBST(INTROSPECTION_TYPELIBDIR)
520 AC_SUBST(INTROSPECTION_CFLAGS)
521 AC_SUBST(INTROSPECTION_LIBS)
522 AC_SUBST(INTROSPECTION_MAKEFILE)
523
524 AM_CONDITIONAL(HAVE_INTROSPECTION, test "x$found_introspection" = "xyes")
525])
526
527
528dnl Usage:
529dnl GOBJECT_INTROSPECTION_CHECK([minimum-g-i-version])
530
531AC_DEFUN([GOBJECT_INTROSPECTION_CHECK],
532[
533 _GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1])
534])
535
536dnl Usage:
537dnl GOBJECT_INTROSPECTION_REQUIRE([minimum-g-i-version])
538
539
540AC_DEFUN([GOBJECT_INTROSPECTION_REQUIRE],
541[
542 _GOBJECT_INTROSPECTION_CHECK_INTERNAL([$1], [require])
543])
544
545# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
546#
547# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
548# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
549# Foundation, Inc.
550# Written by Gordon Matzigkeit, 1996
551#
552# This file is free software; the Free Software Foundation gives
553# unlimited permission to copy and/or distribute it, with or without
554# modifications, as long as this notice is preserved.
555
556m4_define([_LT_COPYING], [dnl
557# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
558# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
559# Foundation, Inc.
560# Written by Gordon Matzigkeit, 1996
561#
562# This file is part of GNU Libtool.
563#
564# GNU Libtool is free software; you can redistribute it and/or
565# modify it under the terms of the GNU General Public License as
566# published by the Free Software Foundation; either version 2 of
567# the License, or (at your option) any later version.
568#
569# As a special exception to the GNU General Public License,
570# if you distribute this file as part of a program or library that
571# is built using GNU Libtool, you may include this file under the
572# same distribution terms that you use for the rest of that program.
573#
574# GNU Libtool is distributed in the hope that it will be useful,
575# but WITHOUT ANY WARRANTY; without even the implied warranty of
576# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
577# GNU General Public License for more details.
578#
579# You should have received a copy of the GNU General Public License
580# along with GNU Libtool; see the file COPYING. If not, a copy
581# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
582# obtained by writing to the Free Software Foundation, Inc.,
583# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
584])
585
586# serial 57 LT_INIT
587
588
589# LT_PREREQ(VERSION)
590# ------------------
591# Complain and exit if this libtool version is less that VERSION.
592m4_defun([LT_PREREQ],
593[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
594 [m4_default([$3],
595 [m4_fatal([Libtool version $1 or higher is required],
596 63)])],
597 [$2])])
598
599
600# _LT_CHECK_BUILDDIR
601# ------------------
602# Complain if the absolute build directory name contains unusual characters
603m4_defun([_LT_CHECK_BUILDDIR],
604[case `pwd` in
605 *\ * | *\ *)
606 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
607esac
608])
609
610
611# LT_INIT([OPTIONS])
612# ------------------
613AC_DEFUN([LT_INIT],
614[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
615AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
616AC_BEFORE([$0], [LT_LANG])dnl
617AC_BEFORE([$0], [LT_OUTPUT])dnl
618AC_BEFORE([$0], [LTDL_INIT])dnl
619m4_require([_LT_CHECK_BUILDDIR])dnl
620
621dnl Autoconf doesn't catch unexpanded LT_ macros by default:
622m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
623m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
624dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
625dnl unless we require an AC_DEFUNed macro:
626AC_REQUIRE([LTOPTIONS_VERSION])dnl
627AC_REQUIRE([LTSUGAR_VERSION])dnl
628AC_REQUIRE([LTVERSION_VERSION])dnl
629AC_REQUIRE([LTOBSOLETE_VERSION])dnl
630m4_require([_LT_PROG_LTMAIN])dnl
631
632_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
633
634dnl Parse OPTIONS
635_LT_SET_OPTIONS([$0], [$1])
636
637# This can be used to rebuild libtool when needed
638LIBTOOL_DEPS="$ltmain"
639
640# Always use our own libtool.
641LIBTOOL='$(SHELL) $(top_builddir)/libtool'
642AC_SUBST(LIBTOOL)dnl
643
644_LT_SETUP
645
646# Only expand once:
647m4_define([LT_INIT])
648])# LT_INIT
649
650# Old names:
651AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
652AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
653dnl aclocal-1.4 backwards compatibility:
654dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
655dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
656
657
658# _LT_CC_BASENAME(CC)
659# -------------------
660# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
661m4_defun([_LT_CC_BASENAME],
662[for cc_temp in $1""; do
663 case $cc_temp in
664 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
665 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
666 \-*) ;;
667 *) break;;
668 esac
669done
670cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
671])
672
673
674# _LT_FILEUTILS_DEFAULTS
675# ----------------------
676# It is okay to use these file commands and assume they have been set
677# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
678m4_defun([_LT_FILEUTILS_DEFAULTS],
679[: ${CP="cp -f"}
680: ${MV="mv -f"}
681: ${RM="rm -f"}
682])# _LT_FILEUTILS_DEFAULTS
683
684
685# _LT_SETUP
686# ---------
687m4_defun([_LT_SETUP],
688[AC_REQUIRE([AC_CANONICAL_HOST])dnl
689AC_REQUIRE([AC_CANONICAL_BUILD])dnl
690AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
691AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
692
693_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
694dnl
695_LT_DECL([], [host_alias], [0], [The host system])dnl
696_LT_DECL([], [host], [0])dnl
697_LT_DECL([], [host_os], [0])dnl
698dnl
699_LT_DECL([], [build_alias], [0], [The build system])dnl
700_LT_DECL([], [build], [0])dnl
701_LT_DECL([], [build_os], [0])dnl
702dnl
703AC_REQUIRE([AC_PROG_CC])dnl
704AC_REQUIRE([LT_PATH_LD])dnl
705AC_REQUIRE([LT_PATH_NM])dnl
706dnl
707AC_REQUIRE([AC_PROG_LN_S])dnl
708test -z "$LN_S" && LN_S="ln -s"
709_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
710dnl
711AC_REQUIRE([LT_CMD_MAX_LEN])dnl
712_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
713_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
714dnl
715m4_require([_LT_FILEUTILS_DEFAULTS])dnl
716m4_require([_LT_CHECK_SHELL_FEATURES])dnl
717m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
718m4_require([_LT_CMD_RELOAD])dnl
719m4_require([_LT_CHECK_MAGIC_METHOD])dnl
720m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
721m4_require([_LT_CMD_OLD_ARCHIVE])dnl
722m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
723m4_require([_LT_WITH_SYSROOT])dnl
724
725_LT_CONFIG_LIBTOOL_INIT([
726# See if we are running on zsh, and set the options which allow our
727# commands through without removal of \ escapes INIT.
728if test -n "\${ZSH_VERSION+set}" ; then
729 setopt NO_GLOB_SUBST
730fi
731])
732if test -n "${ZSH_VERSION+set}" ; then
733 setopt NO_GLOB_SUBST
734fi
735
736_LT_CHECK_OBJDIR
737
738m4_require([_LT_TAG_COMPILER])dnl
739
740case $host_os in
741aix3*)
742 # AIX sometimes has problems with the GCC collect2 program. For some
743 # reason, if we set the COLLECT_NAMES environment variable, the problems
744 # vanish in a puff of smoke.
745 if test "X${COLLECT_NAMES+set}" != Xset; then
746 COLLECT_NAMES=
747 export COLLECT_NAMES
748 fi
749 ;;
750esac
751
752# Global variables:
753ofile=libtool
754can_build_shared=yes
755
756# All known linkers require a `.a' archive for static linking (except MSVC,
757# which needs '.lib').
758libext=a
759
760with_gnu_ld="$lt_cv_prog_gnu_ld"
761
762old_CC="$CC"
763old_CFLAGS="$CFLAGS"
764
765# Set sane defaults for various variables
766test -z "$CC" && CC=cc
767test -z "$LTCC" && LTCC=$CC
768test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
769test -z "$LD" && LD=ld
770test -z "$ac_objext" && ac_objext=o
771
772_LT_CC_BASENAME([$compiler])
773
774# Only perform the check for file, if the check method requires it
775test -z "$MAGIC_CMD" && MAGIC_CMD=file
776case $deplibs_check_method in
777file_magic*)
778 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
779 _LT_PATH_MAGIC
780 fi
781 ;;
782esac
783
784# Use C for the default configuration in the libtool script
785LT_SUPPORTED_TAG([CC])
786_LT_LANG_C_CONFIG
787_LT_LANG_DEFAULT_CONFIG
788_LT_CONFIG_COMMANDS
789])# _LT_SETUP
790
791
792# _LT_PREPARE_SED_QUOTE_VARS
793# --------------------------
794# Define a few sed substitution that help us do robust quoting.
795m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
796[# Backslashify metacharacters that are still active within
797# double-quoted strings.
798sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
799
800# Same as above, but do not quote variable references.
801double_quote_subst='s/\([["`\\]]\)/\\\1/g'
802
803# Sed substitution to delay expansion of an escaped shell variable in a
804# double_quote_subst'ed string.
805delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
806
807# Sed substitution to delay expansion of an escaped single quote.
808delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
809
810# Sed substitution to avoid accidental globbing in evaled expressions
811no_glob_subst='s/\*/\\\*/g'
812])
813
814# _LT_PROG_LTMAIN
815# ---------------
816# Note that this code is called both from `configure', and `config.status'
817# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
818# `config.status' has no value for ac_aux_dir unless we are using Automake,
819# so we pass a copy along to make sure it has a sensible value anyway.
820m4_defun([_LT_PROG_LTMAIN],
821[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
822_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
823ltmain="$ac_aux_dir/ltmain.sh"
824])# _LT_PROG_LTMAIN
825
826
827
828# So that we can recreate a full libtool script including additional
829# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
830# in macros and then make a single call at the end using the `libtool'
831# label.
832
833
834# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
835# ----------------------------------------
836# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
837m4_define([_LT_CONFIG_LIBTOOL_INIT],
838[m4_ifval([$1],
839 [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
840 [$1
841])])])
842
843# Initialize.
844m4_define([_LT_OUTPUT_LIBTOOL_INIT])
845
846
847# _LT_CONFIG_LIBTOOL([COMMANDS])
848# ------------------------------
849# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
850m4_define([_LT_CONFIG_LIBTOOL],
851[m4_ifval([$1],
852 [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
853 [$1
854])])])
855
856# Initialize.
857m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
858
859
860# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
861# -----------------------------------------------------
862m4_defun([_LT_CONFIG_SAVE_COMMANDS],
863[_LT_CONFIG_LIBTOOL([$1])
864_LT_CONFIG_LIBTOOL_INIT([$2])
865])
866
867
868# _LT_FORMAT_COMMENT([COMMENT])
869# -----------------------------
870# Add leading comment marks to the start of each line, and a trailing
871# full-stop to the whole comment if one is not present already.
872m4_define([_LT_FORMAT_COMMENT],
873[m4_ifval([$1], [
874m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
875 [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
876)])
877
878
879
880
881
882# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
883# -------------------------------------------------------------------
884# CONFIGNAME is the name given to the value in the libtool script.
885# VARNAME is the (base) name used in the configure script.
886# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
887# VARNAME. Any other value will be used directly.
888m4_define([_LT_DECL],
889[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
890 [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
891 [m4_ifval([$1], [$1], [$2])])
892 lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
893 m4_ifval([$4],
894 [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
895 lt_dict_add_subkey([lt_decl_dict], [$2],
896 [tagged?], [m4_ifval([$5], [yes], [no])])])
897])
898
899
900# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
901# --------------------------------------------------------
902m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
903
904
905# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
906# ------------------------------------------------
907m4_define([lt_decl_tag_varnames],
908[_lt_decl_filter([tagged?], [yes], $@)])
909
910
911# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
912# ---------------------------------------------------------
913m4_define([_lt_decl_filter],
914[m4_case([$#],
915 [0], [m4_fatal([$0: too few arguments: $#])],
916 [1], [m4_fatal([$0: too few arguments: $#: $1])],
917 [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
918 [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
919 [lt_dict_filter([lt_decl_dict], $@)])[]dnl
920])
921
922
923# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
924# --------------------------------------------------
925m4_define([lt_decl_quote_varnames],
926[_lt_decl_filter([value], [1], $@)])
927
928
929# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
930# ---------------------------------------------------
931m4_define([lt_decl_dquote_varnames],
932[_lt_decl_filter([value], [2], $@)])
933
934
935# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
936# ---------------------------------------------------
937m4_define([lt_decl_varnames_tagged],
938[m4_assert([$# <= 2])dnl
939_$0(m4_quote(m4_default([$1], [[, ]])),
940 m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
941 m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
942m4_define([_lt_decl_varnames_tagged],
943[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
944
945
946# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
947# ------------------------------------------------
948m4_define([lt_decl_all_varnames],
949[_$0(m4_quote(m4_default([$1], [[, ]])),
950 m4_if([$2], [],
951 m4_quote(lt_decl_varnames),
952 m4_quote(m4_shift($@))))[]dnl
953])
954m4_define([_lt_decl_all_varnames],
955[lt_join($@, lt_decl_varnames_tagged([$1],
956 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
957])
958
959
960# _LT_CONFIG_STATUS_DECLARE([VARNAME])
961# ------------------------------------
962# Quote a variable value, and forward it to `config.status' so that its
963# declaration there will have the same value as in `configure'. VARNAME
964# must have a single quote delimited value for this to work.
965m4_define([_LT_CONFIG_STATUS_DECLARE],
966[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
967
968
969# _LT_CONFIG_STATUS_DECLARATIONS
970# ------------------------------
971# We delimit libtool config variables with single quotes, so when
972# we write them to config.status, we have to be sure to quote all
973# embedded single quotes properly. In configure, this macro expands
974# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
975#
976# <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
977m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
978[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
979 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
980
981
982# _LT_LIBTOOL_TAGS
983# ----------------
984# Output comment and list of tags supported by the script
985m4_defun([_LT_LIBTOOL_TAGS],
986[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
987available_tags="_LT_TAGS"dnl
988])
989
990
991# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
992# -----------------------------------
993# Extract the dictionary values for VARNAME (optionally with TAG) and
994# expand to a commented shell variable setting:
995#
996# # Some comment about what VAR is for.
997# visible_name=$lt_internal_name
998m4_define([_LT_LIBTOOL_DECLARE],
999[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
1000 [description])))[]dnl
1001m4_pushdef([_libtool_name],
1002 m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
1003m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
1004 [0], [_libtool_name=[$]$1],
1005 [1], [_libtool_name=$lt_[]$1],
1006 [2], [_libtool_name=$lt_[]$1],
1007 [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
1008m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
1009])
1010
1011
1012# _LT_LIBTOOL_CONFIG_VARS
1013# -----------------------
1014# Produce commented declarations of non-tagged libtool config variables
1015# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
1016# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
1017# section) are produced by _LT_LIBTOOL_TAG_VARS.
1018m4_defun([_LT_LIBTOOL_CONFIG_VARS],
1019[m4_foreach([_lt_var],
1020 m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
1021 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
1022
1023
1024# _LT_LIBTOOL_TAG_VARS(TAG)
1025# -------------------------
1026m4_define([_LT_LIBTOOL_TAG_VARS],
1027[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
1028 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
1029
1030
1031# _LT_TAGVAR(VARNAME, [TAGNAME])
1032# ------------------------------
1033m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
1034
1035
1036# _LT_CONFIG_COMMANDS
1037# -------------------
1038# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
1039# variables for single and double quote escaping we saved from calls
1040# to _LT_DECL, we can put quote escaped variables declarations
1041# into `config.status', and then the shell code to quote escape them in
1042# for loops in `config.status'. Finally, any additional code accumulated
1043# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
1044m4_defun([_LT_CONFIG_COMMANDS],
1045[AC_PROVIDE_IFELSE([LT_OUTPUT],
1046 dnl If the libtool generation code has been placed in $CONFIG_LT,
1047 dnl instead of duplicating it all over again into config.status,
1048 dnl then we will have config.status run $CONFIG_LT later, so it
1049 dnl needs to know what name is stored there:
1050 [AC_CONFIG_COMMANDS([libtool],
1051 [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
1052 dnl If the libtool generation code is destined for config.status,
1053 dnl expand the accumulated commands and init code now:
1054 [AC_CONFIG_COMMANDS([libtool],
1055 [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
1056])#_LT_CONFIG_COMMANDS
1057
1058
1059# Initialize.
1060m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
1061[
1062
1063# The HP-UX ksh and POSIX shell print the target directory to stdout
1064# if CDPATH is set.
1065(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1066
1067sed_quote_subst='$sed_quote_subst'
1068double_quote_subst='$double_quote_subst'
1069delay_variable_subst='$delay_variable_subst'
1070_LT_CONFIG_STATUS_DECLARATIONS
1071LTCC='$LTCC'
1072LTCFLAGS='$LTCFLAGS'
1073compiler='$compiler_DEFAULT'
1074
1075# A function that is used when there is no print builtin or printf.
1076func_fallback_echo ()
1077{
1078 eval 'cat <<_LTECHO_EOF
1079\$[]1
1080_LTECHO_EOF'
1081}
1082
1083# Quote evaled strings.
1084for var in lt_decl_all_varnames([[ \
1085]], lt_decl_quote_varnames); do
1086 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1087 *[[\\\\\\\`\\"\\\$]]*)
1088 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1089 ;;
1090 *)
1091 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1092 ;;
1093 esac
1094done
1095
1096# Double-quote double-evaled strings.
1097for var in lt_decl_all_varnames([[ \
1098]], lt_decl_dquote_varnames); do
1099 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1100 *[[\\\\\\\`\\"\\\$]]*)
1101 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1102 ;;
1103 *)
1104 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1105 ;;
1106 esac
1107done
1108
1109_LT_OUTPUT_LIBTOOL_INIT
1110])
1111
1112# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
1113# ------------------------------------
1114# Generate a child script FILE with all initialization necessary to
1115# reuse the environment learned by the parent script, and make the
1116# file executable. If COMMENT is supplied, it is inserted after the
1117# `#!' sequence but before initialization text begins. After this
1118# macro, additional text can be appended to FILE to form the body of
1119# the child script. The macro ends with non-zero status if the
1120# file could not be fully written (such as if the disk is full).
1121m4_ifdef([AS_INIT_GENERATED],
1122[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
1123[m4_defun([_LT_GENERATED_FILE_INIT],
1124[m4_require([AS_PREPARE])]dnl
1125[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
1126[lt_write_fail=0
1127cat >$1 <<_ASEOF || lt_write_fail=1
1128#! $SHELL
1129# Generated by $as_me.
1130$2
1131SHELL=\${CONFIG_SHELL-$SHELL}
1132export SHELL
1133_ASEOF
1134cat >>$1 <<\_ASEOF || lt_write_fail=1
1135AS_SHELL_SANITIZE
1136_AS_PREPARE
1137exec AS_MESSAGE_FD>&1
1138_ASEOF
1139test $lt_write_fail = 0 && chmod +x $1[]dnl
1140m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
1141
1142# LT_OUTPUT
1143# ---------
1144# This macro allows early generation of the libtool script (before
1145# AC_OUTPUT is called), incase it is used in configure for compilation
1146# tests.
1147AC_DEFUN([LT_OUTPUT],
1148[: ${CONFIG_LT=./config.lt}
1149AC_MSG_NOTICE([creating $CONFIG_LT])
1150_LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
1151[# Run this file to recreate a libtool stub with the current configuration.])
1152
1153cat >>"$CONFIG_LT" <<\_LTEOF
1154lt_cl_silent=false
1155exec AS_MESSAGE_LOG_FD>>config.log
1156{
1157 echo
1158 AS_BOX([Running $as_me.])
1159} >&AS_MESSAGE_LOG_FD
1160
1161lt_cl_help="\
1162\`$as_me' creates a local libtool stub from the current configuration,
1163for use in further configure time tests before the real libtool is
1164generated.
1165
1166Usage: $[0] [[OPTIONS]]
1167
1168 -h, --help print this help, then exit
1169 -V, --version print version number, then exit
1170 -q, --quiet do not print progress messages
1171 -d, --debug don't remove temporary files
1172
1173Report bugs to <bug-libtool@gnu.org>."
1174
1175lt_cl_version="\
1176m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
1177m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
1178configured by $[0], generated by m4_PACKAGE_STRING.
1179
1180Copyright (C) 2011 Free Software Foundation, Inc.
1181This config.lt script is free software; the Free Software Foundation
1182gives unlimited permision to copy, distribute and modify it."
1183
1184while test $[#] != 0
1185do
1186 case $[1] in
1187 --version | --v* | -V )
1188 echo "$lt_cl_version"; exit 0 ;;
1189 --help | --h* | -h )
1190 echo "$lt_cl_help"; exit 0 ;;
1191 --debug | --d* | -d )
1192 debug=: ;;
1193 --quiet | --q* | --silent | --s* | -q )
1194 lt_cl_silent=: ;;
1195
1196 -*) AC_MSG_ERROR([unrecognized option: $[1]
1197Try \`$[0] --help' for more information.]) ;;
1198
1199 *) AC_MSG_ERROR([unrecognized argument: $[1]
1200Try \`$[0] --help' for more information.]) ;;
1201 esac
1202 shift
1203done
1204
1205if $lt_cl_silent; then
1206 exec AS_MESSAGE_FD>/dev/null
1207fi
1208_LTEOF
1209
1210cat >>"$CONFIG_LT" <<_LTEOF
1211_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
1212_LTEOF
1213
1214cat >>"$CONFIG_LT" <<\_LTEOF
1215AC_MSG_NOTICE([creating $ofile])
1216_LT_OUTPUT_LIBTOOL_COMMANDS
1217AS_EXIT(0)
1218_LTEOF
1219chmod +x "$CONFIG_LT"
1220
1221# configure is writing to config.log, but config.lt does its own redirection,
1222# appending to config.log, which fails on DOS, as config.log is still kept
1223# open by configure. Here we exec the FD to /dev/null, effectively closing
1224# config.log, so it can be properly (re)opened and appended to by config.lt.
1225lt_cl_success=:
1226test "$silent" = yes &&
1227 lt_config_lt_args="$lt_config_lt_args --quiet"
1228exec AS_MESSAGE_LOG_FD>/dev/null
1229$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
1230exec AS_MESSAGE_LOG_FD>>config.log
1231$lt_cl_success || AS_EXIT(1)
1232])# LT_OUTPUT
1233
1234
1235# _LT_CONFIG(TAG)
1236# ---------------
1237# If TAG is the built-in tag, create an initial libtool script with a
1238# default configuration from the untagged config vars. Otherwise add code
1239# to config.status for appending the configuration named by TAG from the
1240# matching tagged config vars.
1241m4_defun([_LT_CONFIG],
1242[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1243_LT_CONFIG_SAVE_COMMANDS([
1244 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
1245 m4_if(_LT_TAG, [C], [
1246 # See if we are running on zsh, and set the options which allow our
1247 # commands through without removal of \ escapes.
1248 if test -n "${ZSH_VERSION+set}" ; then
1249 setopt NO_GLOB_SUBST
1250 fi
1251
1252 cfgfile="${ofile}T"
1253 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
1254 $RM "$cfgfile"
1255
1256 cat <<_LT_EOF >> "$cfgfile"
1257#! $SHELL
1258
1259# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
1260# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1261# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1262# NOTE: Changes made to this file will be lost: look at ltmain.sh.
1263#
1264_LT_COPYING
1265_LT_LIBTOOL_TAGS
1266
1267# ### BEGIN LIBTOOL CONFIG
1268_LT_LIBTOOL_CONFIG_VARS
1269_LT_LIBTOOL_TAG_VARS
1270# ### END LIBTOOL CONFIG
1271
1272_LT_EOF
1273
1274 case $host_os in
1275 aix3*)
1276 cat <<\_LT_EOF >> "$cfgfile"
1277# AIX sometimes has problems with the GCC collect2 program. For some
1278# reason, if we set the COLLECT_NAMES environment variable, the problems
1279# vanish in a puff of smoke.
1280if test "X${COLLECT_NAMES+set}" != Xset; then
1281 COLLECT_NAMES=
1282 export COLLECT_NAMES
1283fi
1284_LT_EOF
1285 ;;
1286 esac
1287
1288 _LT_PROG_LTMAIN
1289
1290 # We use sed instead of cat because bash on DJGPP gets confused if
1291 # if finds mixed CR/LF and LF-only lines. Since sed operates in
1292 # text mode, it properly converts lines to CR/LF. This bash problem
1293 # is reportedly fixed, but why not run on old versions too?
1294 sed '$q' "$ltmain" >> "$cfgfile" \
1295 || (rm -f "$cfgfile"; exit 1)
1296
1297 _LT_PROG_REPLACE_SHELLFNS
1298
1299 mv -f "$cfgfile" "$ofile" ||
1300 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1301 chmod +x "$ofile"
1302],
1303[cat <<_LT_EOF >> "$ofile"
1304
1305dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
1306dnl in a comment (ie after a #).
1307# ### BEGIN LIBTOOL TAG CONFIG: $1
1308_LT_LIBTOOL_TAG_VARS(_LT_TAG)
1309# ### END LIBTOOL TAG CONFIG: $1
1310_LT_EOF
1311])dnl /m4_if
1312],
1313[m4_if([$1], [], [
1314 PACKAGE='$PACKAGE'
1315 VERSION='$VERSION'
1316 TIMESTAMP='$TIMESTAMP'
1317 RM='$RM'
1318 ofile='$ofile'], [])
1319])dnl /_LT_CONFIG_SAVE_COMMANDS
1320])# _LT_CONFIG
1321
1322
1323# LT_SUPPORTED_TAG(TAG)
1324# ---------------------
1325# Trace this macro to discover what tags are supported by the libtool
1326# --tag option, using:
1327# autoconf --trace 'LT_SUPPORTED_TAG:$1'
1328AC_DEFUN([LT_SUPPORTED_TAG], [])
1329
1330
1331# C support is built-in for now
1332m4_define([_LT_LANG_C_enabled], [])
1333m4_define([_LT_TAGS], [])
1334
1335
1336# LT_LANG(LANG)
1337# -------------
1338# Enable libtool support for the given language if not already enabled.
1339AC_DEFUN([LT_LANG],
1340[AC_BEFORE([$0], [LT_OUTPUT])dnl
1341m4_case([$1],
1342 [C], [_LT_LANG(C)],
1343 [C++], [_LT_LANG(CXX)],
1344 [Go], [_LT_LANG(GO)],
1345 [Java], [_LT_LANG(GCJ)],
1346 [Fortran 77], [_LT_LANG(F77)],
1347 [Fortran], [_LT_LANG(FC)],
1348 [Windows Resource], [_LT_LANG(RC)],
1349 [m4_ifdef([_LT_LANG_]$1[_CONFIG],
1350 [_LT_LANG($1)],
1351 [m4_fatal([$0: unsupported language: "$1"])])])dnl
1352])# LT_LANG
1353
1354
1355# _LT_LANG(LANGNAME)
1356# ------------------
1357m4_defun([_LT_LANG],
1358[m4_ifdef([_LT_LANG_]$1[_enabled], [],
1359 [LT_SUPPORTED_TAG([$1])dnl
1360 m4_append([_LT_TAGS], [$1 ])dnl
1361 m4_define([_LT_LANG_]$1[_enabled], [])dnl
1362 _LT_LANG_$1_CONFIG($1)])dnl
1363])# _LT_LANG
1364
1365
1366m4_ifndef([AC_PROG_GO], [
1367# NOTE: This macro has been submitted for inclusion into #
1368# GNU Autoconf as AC_PROG_GO. When it is available in #
1369# a released version of Autoconf we should remove this #
1370# macro and use it instead. #
1371m4_defun([AC_PROG_GO],
1372[AC_LANG_PUSH(Go)dnl
1373AC_ARG_VAR([GOC], [Go compiler command])dnl
1374AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
1375_AC_ARG_VAR_LDFLAGS()dnl
1376AC_CHECK_TOOL(GOC, gccgo)
1377if test -z "$GOC"; then
1378 if test -n "$ac_tool_prefix"; then
1379 AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
1380 fi
1381fi
1382if test -z "$GOC"; then
1383 AC_CHECK_PROG(GOC, gccgo, gccgo, false)
1384fi
1385])#m4_defun
1386])#m4_ifndef
1387
1388
1389# _LT_LANG_DEFAULT_CONFIG
1390# -----------------------
1391m4_defun([_LT_LANG_DEFAULT_CONFIG],
1392[AC_PROVIDE_IFELSE([AC_PROG_CXX],
1393 [LT_LANG(CXX)],
1394 [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
1395
1396AC_PROVIDE_IFELSE([AC_PROG_F77],
1397 [LT_LANG(F77)],
1398 [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
1399
1400AC_PROVIDE_IFELSE([AC_PROG_FC],
1401 [LT_LANG(FC)],
1402 [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
1403
1404dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
1405dnl pulling things in needlessly.
1406AC_PROVIDE_IFELSE([AC_PROG_GCJ],
1407 [LT_LANG(GCJ)],
1408 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
1409 [LT_LANG(GCJ)],
1410 [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
1411 [LT_LANG(GCJ)],
1412 [m4_ifdef([AC_PROG_GCJ],
1413 [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
1414 m4_ifdef([A][M_PROG_GCJ],
1415 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
1416 m4_ifdef([LT_PROG_GCJ],
1417 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
1418
1419AC_PROVIDE_IFELSE([AC_PROG_GO],
1420 [LT_LANG(GO)],
1421 [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
1422
1423AC_PROVIDE_IFELSE([LT_PROG_RC],
1424 [LT_LANG(RC)],
1425 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
1426])# _LT_LANG_DEFAULT_CONFIG
1427
1428# Obsolete macros:
1429AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
1430AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
1431AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
1432AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
1433AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
1434dnl aclocal-1.4 backwards compatibility:
1435dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
1436dnl AC_DEFUN([AC_LIBTOOL_F77], [])
1437dnl AC_DEFUN([AC_LIBTOOL_FC], [])
1438dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
1439dnl AC_DEFUN([AC_LIBTOOL_RC], [])
1440
1441
1442# _LT_TAG_COMPILER
1443# ----------------
1444m4_defun([_LT_TAG_COMPILER],
1445[AC_REQUIRE([AC_PROG_CC])dnl
1446
1447_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
1448_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
1449_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
1450_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
1451
1452# If no C compiler was specified, use CC.
1453LTCC=${LTCC-"$CC"}
1454
1455# If no C compiler flags were specified, use CFLAGS.
1456LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1457
1458# Allow CC to be a program name with arguments.
1459compiler=$CC
1460])# _LT_TAG_COMPILER
1461
1462
1463# _LT_COMPILER_BOILERPLATE
1464# ------------------------
1465# Check for compiler boilerplate output or warnings with
1466# the simple compiler test code.
1467m4_defun([_LT_COMPILER_BOILERPLATE],
1468[m4_require([_LT_DECL_SED])dnl
1469ac_outfile=conftest.$ac_objext
1470echo "$lt_simple_compile_test_code" >conftest.$ac_ext
1471eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1472_lt_compiler_boilerplate=`cat conftest.err`
1473$RM conftest*
1474])# _LT_COMPILER_BOILERPLATE
1475
1476
1477# _LT_LINKER_BOILERPLATE
1478# ----------------------
1479# Check for linker boilerplate output or warnings with
1480# the simple link test code.
1481m4_defun([_LT_LINKER_BOILERPLATE],
1482[m4_require([_LT_DECL_SED])dnl
1483ac_outfile=conftest.$ac_objext
1484echo "$lt_simple_link_test_code" >conftest.$ac_ext
1485eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1486_lt_linker_boilerplate=`cat conftest.err`
1487$RM -r conftest*
1488])# _LT_LINKER_BOILERPLATE
1489
1490# _LT_REQUIRED_DARWIN_CHECKS
1491# -------------------------
1492m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
1493 case $host_os in
1494 rhapsody* | darwin*)
1495 AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
1496 AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
1497 AC_CHECK_TOOL([LIPO], [lipo], [:])
1498 AC_CHECK_TOOL([OTOOL], [otool], [:])
1499 AC_CHECK_TOOL([OTOOL64], [otool64], [:])
1500 _LT_DECL([], [DSYMUTIL], [1],
1501 [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
1502 _LT_DECL([], [NMEDIT], [1],
1503 [Tool to change global to local symbols on Mac OS X])
1504 _LT_DECL([], [LIPO], [1],
1505 [Tool to manipulate fat objects and archives on Mac OS X])
1506 _LT_DECL([], [OTOOL], [1],
1507 [ldd/readelf like tool for Mach-O binaries on Mac OS X])
1508 _LT_DECL([], [OTOOL64], [1],
1509 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
1510
1511 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
1512 [lt_cv_apple_cc_single_mod=no
1513 if test -z "${LT_MULTI_MODULE}"; then
1514 # By default we will add the -single_module flag. You can override
1515 # by either setting the environment variable LT_MULTI_MODULE
1516 # non-empty at configure time, or by adding -multi_module to the
1517 # link flags.
1518 rm -rf libconftest.dylib*
1519 echo "int foo(void){return 1;}" > conftest.c
1520 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1521-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
1522 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1523 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
1524 _lt_result=$?
1525 # If there is a non-empty error log, and "single_module"
1526 # appears in it, assume the flag caused a linker warning
1527 if test -s conftest.err && $GREP single_module conftest.err; then
1528 cat conftest.err >&AS_MESSAGE_LOG_FD
1529 # Otherwise, if the output was created with a 0 exit code from
1530 # the compiler, it worked.
1531 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
1532 lt_cv_apple_cc_single_mod=yes
1533 else
1534 cat conftest.err >&AS_MESSAGE_LOG_FD
1535 fi
1536 rm -rf libconftest.dylib*
1537 rm -f conftest.*
1538 fi])
1539
1540 AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1541 [lt_cv_ld_exported_symbols_list],
1542 [lt_cv_ld_exported_symbols_list=no
1543 save_LDFLAGS=$LDFLAGS
1544 echo "_main" > conftest.sym
1545 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1546 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
1547 [lt_cv_ld_exported_symbols_list=yes],
1548 [lt_cv_ld_exported_symbols_list=no])
1549 LDFLAGS="$save_LDFLAGS"
1550 ])
1551
1552 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
1553 [lt_cv_ld_force_load=no
1554 cat > conftest.c << _LT_EOF
1555int forced_loaded() { return 2;}
1556_LT_EOF
1557 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
1558 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
1559 echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
1560 $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
1561 echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
1562 $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
1563 cat > conftest.c << _LT_EOF
1564int main() { return 0;}
1565_LT_EOF
1566 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
1567 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
1568 _lt_result=$?
1569 if test -s conftest.err && $GREP force_load conftest.err; then
1570 cat conftest.err >&AS_MESSAGE_LOG_FD
1571 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
1572 lt_cv_ld_force_load=yes
1573 else
1574 cat conftest.err >&AS_MESSAGE_LOG_FD
1575 fi
1576 rm -f conftest.err libconftest.a conftest conftest.c
1577 rm -rf conftest.dSYM
1578 ])
1579 case $host_os in
1580 rhapsody* | darwin1.[[012]])
1581 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1582 darwin1.*)
1583 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1584 darwin*) # darwin 5.x on
1585 # if running on 10.5 or later, the deployment target defaults
1586 # to the OS version, if on x86, and 10.4, the deployment
1587 # target defaults to 10.4. Don't you love it?
1588 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
1589 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1590 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1591 10.[[012]]*)
1592 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1593 10.*)
1594 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1595 esac
1596 ;;
1597 esac
1598 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
1599 _lt_dar_single_mod='$single_module'
1600 fi
1601 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
1602 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
1603 else
1604 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1605 fi
1606 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
1607 _lt_dsymutil='~$DSYMUTIL $lib || :'
1608 else
1609 _lt_dsymutil=
1610 fi
1611 ;;
1612 esac
1613])
1614
1615
1616# _LT_DARWIN_LINKER_FEATURES([TAG])
1617# ---------------------------------
1618# Checks for linker and compiler features on darwin
1619m4_defun([_LT_DARWIN_LINKER_FEATURES],
1620[
1621 m4_require([_LT_REQUIRED_DARWIN_CHECKS])
1622 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
1623 _LT_TAGVAR(hardcode_direct, $1)=no
1624 _LT_TAGVAR(hardcode_automatic, $1)=yes
1625 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1626 if test "$lt_cv_ld_force_load" = "yes"; then
1627 _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
1628 m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
1629 [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
1630 else
1631 _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1632 fi
1633 _LT_TAGVAR(link_all_deplibs, $1)=yes
1634 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1635 case $cc_basename in
1636 ifort*) _lt_dar_can_shared=yes ;;
1637 *) _lt_dar_can_shared=$GCC ;;
1638 esac
1639 if test "$_lt_dar_can_shared" = "yes"; then
1640 output_verbose_link_cmd=func_echo_all
1641 _LT_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}"
1642 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1643 _LT_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}"
1644 _LT_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}"
1645 m4_if([$1], [CXX],
1646[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1647 _LT_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}"
1648 _LT_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}"
1649 fi
1650],[])
1651 else
1652 _LT_TAGVAR(ld_shlibs, $1)=no
1653 fi
1654])
1655
1656# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
1657# ----------------------------------
1658# Links a minimal program and checks the executable
1659# for the system default hardcoded library path. In most cases,
1660# this is /usr/lib:/lib, but when the MPI compilers are used
1661# the location of the communication and MPI libs are included too.
1662# If we don't find anything, use the default library path according
1663# to the aix ld manual.
1664# Store the results from the different compilers for each TAGNAME.
1665# Allow to override them for all tags through lt_cv_aix_libpath.
1666m4_defun([_LT_SYS_MODULE_PATH_AIX],
1667[m4_require([_LT_DECL_SED])dnl
1668if test "${lt_cv_aix_libpath+set}" = set; then
1669 aix_libpath=$lt_cv_aix_libpath
1670else
1671 AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
1672 [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
1673 lt_aix_libpath_sed='[
1674 /Import File Strings/,/^$/ {
1675 /^0/ {
1676 s/^0 *\([^ ]*\) *$/\1/
1677 p
1678 }
1679 }]'
1680 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1681 # Check for a 64-bit object if we didn't find anything.
1682 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1683 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1684 fi],[])
1685 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1686 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
1687 fi
1688 ])
1689 aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
1690fi
1691])# _LT_SYS_MODULE_PATH_AIX
1692
1693
1694# _LT_SHELL_INIT(ARG)
1695# -------------------
1696m4_define([_LT_SHELL_INIT],
1697[m4_divert_text([M4SH-INIT], [$1
1698])])# _LT_SHELL_INIT
1699
1700
1701
1702# _LT_PROG_ECHO_BACKSLASH
1703# -----------------------
1704# Find how we can fake an echo command that does not interpret backslash.
1705# In particular, with Autoconf 2.60 or later we add some code to the start
1706# of the generated configure script which will find a shell with a builtin
1707# printf (which we can use as an echo command).
1708m4_defun([_LT_PROG_ECHO_BACKSLASH],
1709[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1710ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1711ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1712
1713AC_MSG_CHECKING([how to print strings])
1714# Test print first, because it will be a builtin if present.
1715if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
1716 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
1717 ECHO='print -r --'
1718elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
1719 ECHO='printf %s\n'
1720else
1721 # Use this function as a fallback that always works.
1722 func_fallback_echo ()
1723 {
1724 eval 'cat <<_LTECHO_EOF
1725$[]1
1726_LTECHO_EOF'
1727 }
1728 ECHO='func_fallback_echo'
1729fi
1730
1731# func_echo_all arg...
1732# Invoke $ECHO with all args, space-separated.
1733func_echo_all ()
1734{
1735 $ECHO "$*"
1736}
1737
1738case "$ECHO" in
1739 printf*) AC_MSG_RESULT([printf]) ;;
1740 print*) AC_MSG_RESULT([print -r]) ;;
1741 *) AC_MSG_RESULT([cat]) ;;
1742esac
1743
1744m4_ifdef([_AS_DETECT_SUGGESTED],
1745[_AS_DETECT_SUGGESTED([
1746 test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
1747 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1748 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1749 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1750 PATH=/empty FPATH=/empty; export PATH FPATH
1751 test "X`printf %s $ECHO`" = "X$ECHO" \
1752 || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
1753
1754_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1755_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
1756])# _LT_PROG_ECHO_BACKSLASH
1757
1758
1759# _LT_WITH_SYSROOT
1760# ----------------
1761AC_DEFUN([_LT_WITH_SYSROOT],
1762[AC_MSG_CHECKING([for sysroot])
1763AC_ARG_WITH([sysroot],
1764[ --with-sysroot[=DIR] Search for dependent libraries within DIR
1765 (or the compiler's sysroot if not specified).],
1766[], [with_sysroot=no])
1767
1768dnl lt_sysroot will always be passed unquoted. We quote it here
1769dnl in case the user passed a directory name.
1770lt_sysroot=
1771case ${with_sysroot} in #(
1772 yes)
1773 if test "$GCC" = yes; then
1774 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
1775 fi
1776 ;; #(
1777 /*)
1778 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
1779 ;; #(
1780 no|'')
1781 ;; #(
1782 *)
1783 AC_MSG_RESULT([${with_sysroot}])
1784 AC_MSG_ERROR([The sysroot must be an absolute path.])
1785 ;;
1786esac
1787
1788 AC_MSG_RESULT([${lt_sysroot:-no}])
1789_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
1790[dependent libraries, and in which our libraries should be installed.])])
1791
1792# _LT_ENABLE_LOCK
1793# ---------------
1794m4_defun([_LT_ENABLE_LOCK],
1795[AC_ARG_ENABLE([libtool-lock],
1796 [AS_HELP_STRING([--disable-libtool-lock],
1797 [avoid locking (might break parallel builds)])])
1798test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1799
1800# Some flags need to be propagated to the compiler or linker for good
1801# libtool support.
1802case $host in
1803ia64-*-hpux*)
1804 # Find out which ABI we are using.
1805 echo 'int i;' > conftest.$ac_ext
1806 if AC_TRY_EVAL(ac_compile); then
1807 case `/usr/bin/file conftest.$ac_objext` in
1808 *ELF-32*)
1809 HPUX_IA64_MODE="32"
1810 ;;
1811 *ELF-64*)
1812 HPUX_IA64_MODE="64"
1813 ;;
1814 esac
1815 fi
1816 rm -rf conftest*
1817 ;;
1818*-*-irix6*)
1819 # Find out which ABI we are using.
1820 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
1821 if AC_TRY_EVAL(ac_compile); then
1822 if test "$lt_cv_prog_gnu_ld" = yes; then
1823 case `/usr/bin/file conftest.$ac_objext` in
1824 *32-bit*)
1825 LD="${LD-ld} -melf32bsmip"
1826 ;;
1827 *N32*)
1828 LD="${LD-ld} -melf32bmipn32"
1829 ;;
1830 *64-bit*)
1831 LD="${LD-ld} -melf64bmip"
1832 ;;
1833 esac
1834 else
1835 case `/usr/bin/file conftest.$ac_objext` in
1836 *32-bit*)
1837 LD="${LD-ld} -32"
1838 ;;
1839 *N32*)
1840 LD="${LD-ld} -n32"
1841 ;;
1842 *64-bit*)
1843 LD="${LD-ld} -64"
1844 ;;
1845 esac
1846 fi
1847 fi
1848 rm -rf conftest*
1849 ;;
1850
1851x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
1852s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1853 # Find out which ABI we are using.
1854 echo 'int i;' > conftest.$ac_ext
1855 if AC_TRY_EVAL(ac_compile); then
1856 case `/usr/bin/file conftest.o` in
1857 *32-bit*)
1858 case $host in
1859 x86_64-*kfreebsd*-gnu)
1860 LD="${LD-ld} -m elf_i386_fbsd"
1861 ;;
1862 x86_64-*linux*)
1863 LD="${LD-ld} -m elf_i386"
1864 ;;
1865 ppc64-*linux*|powerpc64-*linux*)
1866 LD="${LD-ld} -m elf32ppclinux"
1867 ;;
1868 s390x-*linux*)
1869 LD="${LD-ld} -m elf_s390"
1870 ;;
1871 sparc64-*linux*)
1872 LD="${LD-ld} -m elf32_sparc"
1873 ;;
1874 esac
1875 ;;
1876 *64-bit*)
1877 case $host in
1878 x86_64-*kfreebsd*-gnu)
1879 LD="${LD-ld} -m elf_x86_64_fbsd"
1880 ;;
1881 x86_64-*linux*)
1882 LD="${LD-ld} -m elf_x86_64"
1883 ;;
1884 ppc*-*linux*|powerpc*-*linux*)
1885 LD="${LD-ld} -m elf64ppc"
1886 ;;
1887 s390*-*linux*|s390*-*tpf*)
1888 LD="${LD-ld} -m elf64_s390"
1889 ;;
1890 sparc*-*linux*)
1891 LD="${LD-ld} -m elf64_sparc"
1892 ;;
1893 esac
1894 ;;
1895 esac
1896 fi
1897 rm -rf conftest*
1898 ;;
1899
1900*-*-sco3.2v5*)
1901 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1902 SAVE_CFLAGS="$CFLAGS"
1903 CFLAGS="$CFLAGS -belf"
1904 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1905 [AC_LANG_PUSH(C)
1906 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1907 AC_LANG_POP])
1908 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1909 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1910 CFLAGS="$SAVE_CFLAGS"
1911 fi
1912 ;;
1913*-*solaris*)
1914 # Find out which ABI we are using.
1915 echo 'int i;' > conftest.$ac_ext
1916 if AC_TRY_EVAL(ac_compile); then
1917 case `/usr/bin/file conftest.o` in
1918 *64-bit*)
1919 case $lt_cv_prog_gnu_ld in
1920 yes*)
1921 case $host in
1922 i?86-*-solaris*)
1923 LD="${LD-ld} -m elf_x86_64"
1924 ;;
1925 sparc*-*-solaris*)
1926 LD="${LD-ld} -m elf64_sparc"
1927 ;;
1928 esac
1929 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
1930 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
1931 LD="${LD-ld}_sol2"
1932 fi
1933 ;;
1934 *)
1935 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1936 LD="${LD-ld} -64"
1937 fi
1938 ;;
1939 esac
1940 ;;
1941 esac
1942 fi
1943 rm -rf conftest*
1944 ;;
1945esac
1946
1947need_locks="$enable_libtool_lock"
1948])# _LT_ENABLE_LOCK
1949
1950
1951# _LT_PROG_AR
1952# -----------
1953m4_defun([_LT_PROG_AR],
1954[AC_CHECK_TOOLS(AR, [ar], false)
1955: ${AR=ar}
1956: ${AR_FLAGS=cru}
1957_LT_DECL([], [AR], [1], [The archiver])
1958_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
1959
1960AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
1961 [lt_cv_ar_at_file=no
1962 AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
1963 [echo conftest.$ac_objext > conftest.lst
1964 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
1965 AC_TRY_EVAL([lt_ar_try])
1966 if test "$ac_status" -eq 0; then
1967 # Ensure the archiver fails upon bogus file names.
1968 rm -f conftest.$ac_objext libconftest.a
1969 AC_TRY_EVAL([lt_ar_try])
1970 if test "$ac_status" -ne 0; then
1971 lt_cv_ar_at_file=@
1972 fi
1973 fi
1974 rm -f conftest.* libconftest.a
1975 ])
1976 ])
1977
1978if test "x$lt_cv_ar_at_file" = xno; then
1979 archiver_list_spec=
1980else
1981 archiver_list_spec=$lt_cv_ar_at_file
1982fi
1983_LT_DECL([], [archiver_list_spec], [1],
1984 [How to feed a file listing to the archiver])
1985])# _LT_PROG_AR
1986
1987
1988# _LT_CMD_OLD_ARCHIVE
1989# -------------------
1990m4_defun([_LT_CMD_OLD_ARCHIVE],
1991[_LT_PROG_AR
1992
1993AC_CHECK_TOOL(STRIP, strip, :)
1994test -z "$STRIP" && STRIP=:
1995_LT_DECL([], [STRIP], [1], [A symbol stripping program])
1996
1997AC_CHECK_TOOL(RANLIB, ranlib, :)
1998test -z "$RANLIB" && RANLIB=:
1999_LT_DECL([], [RANLIB], [1],
2000 [Commands used to install an old-style archive])
2001
2002# Determine commands to create old-style static archives.
2003old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
2004old_postinstall_cmds='chmod 644 $oldlib'
2005old_postuninstall_cmds=
2006
2007if test -n "$RANLIB"; then
2008 case $host_os in
2009 openbsd*)
2010 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
2011 ;;
2012 *)
2013 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
2014 ;;
2015 esac
2016 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
2017fi
2018
2019case $host_os in
2020 darwin*)
2021 lock_old_archive_extraction=yes ;;
2022 *)
2023 lock_old_archive_extraction=no ;;
2024esac
2025_LT_DECL([], [old_postinstall_cmds], [2])
2026_LT_DECL([], [old_postuninstall_cmds], [2])
2027_LT_TAGDECL([], [old_archive_cmds], [2],
2028 [Commands used to build an old-style archive])
2029_LT_DECL([], [lock_old_archive_extraction], [0],
2030 [Whether to use a lock for old archive extraction])
2031])# _LT_CMD_OLD_ARCHIVE
2032
2033
2034# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2035# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
2036# ----------------------------------------------------------------
2037# Check whether the given compiler option works
2038AC_DEFUN([_LT_COMPILER_OPTION],
2039[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2040m4_require([_LT_DECL_SED])dnl
2041AC_CACHE_CHECK([$1], [$2],
2042 [$2=no
2043 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
2044 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2045 lt_compiler_flag="$3"
2046 # Insert the option either (1) after the last *FLAGS variable, or
2047 # (2) before a word containing "conftest.", or (3) at the end.
2048 # Note that $ac_compile itself does not contain backslashes and begins
2049 # with a dollar sign (not a hyphen), so the echo should work correctly.
2050 # The option is referenced via a variable to avoid confusing sed.
2051 lt_compile=`echo "$ac_compile" | $SED \
2052 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2053 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2054 -e 's:$: $lt_compiler_flag:'`
2055 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2056 (eval "$lt_compile" 2>conftest.err)
2057 ac_status=$?
2058 cat conftest.err >&AS_MESSAGE_LOG_FD
2059 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2060 if (exit $ac_status) && test -s "$ac_outfile"; then
2061 # The compiler can only warn and ignore the option if not recognized
2062 # So say no if there are warnings other than the usual output.
2063 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
2064 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2065 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
2066 $2=yes
2067 fi
2068 fi
2069 $RM conftest*
2070])
2071
2072if test x"[$]$2" = xyes; then
2073 m4_if([$5], , :, [$5])
2074else
2075 m4_if([$6], , :, [$6])
2076fi
2077])# _LT_COMPILER_OPTION
2078
2079# Old name:
2080AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
2081dnl aclocal-1.4 backwards compatibility:
2082dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
2083
2084
2085# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2086# [ACTION-SUCCESS], [ACTION-FAILURE])
2087# ----------------------------------------------------
2088# Check whether the given linker option works
2089AC_DEFUN([_LT_LINKER_OPTION],
2090[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2091m4_require([_LT_DECL_SED])dnl
2092AC_CACHE_CHECK([$1], [$2],
2093 [$2=no
2094 save_LDFLAGS="$LDFLAGS"
2095 LDFLAGS="$LDFLAGS $3"
2096 echo "$lt_simple_link_test_code" > conftest.$ac_ext
2097 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
2098 # The linker can only warn and ignore the option if not recognized
2099 # So say no if there are warnings
2100 if test -s conftest.err; then
2101 # Append any errors to the config.log.
2102 cat conftest.err 1>&AS_MESSAGE_LOG_FD
2103 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
2104 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2105 if diff conftest.exp conftest.er2 >/dev/null; then
2106 $2=yes
2107 fi
2108 else
2109 $2=yes
2110 fi
2111 fi
2112 $RM -r conftest*
2113 LDFLAGS="$save_LDFLAGS"
2114])
2115
2116if test x"[$]$2" = xyes; then
2117 m4_if([$4], , :, [$4])
2118else
2119 m4_if([$5], , :, [$5])
2120fi
2121])# _LT_LINKER_OPTION
2122
2123# Old name:
2124AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
2125dnl aclocal-1.4 backwards compatibility:
2126dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
2127
2128
2129# LT_CMD_MAX_LEN
2130#---------------
2131AC_DEFUN([LT_CMD_MAX_LEN],
2132[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2133# find the maximum length of command line arguments
2134AC_MSG_CHECKING([the maximum length of command line arguments])
2135AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
2136 i=0
2137 teststring="ABCD"
2138
2139 case $build_os in
2140 msdosdjgpp*)
2141 # On DJGPP, this test can blow up pretty badly due to problems in libc
2142 # (any single argument exceeding 2000 bytes causes a buffer overrun
2143 # during glob expansion). Even if it were fixed, the result of this
2144 # check would be larger than it should be.
2145 lt_cv_sys_max_cmd_len=12288; # 12K is about right
2146 ;;
2147
2148 gnu*)
2149 # Under GNU Hurd, this test is not required because there is
2150 # no limit to the length of command line arguments.
2151 # Libtool will interpret -1 as no limit whatsoever
2152 lt_cv_sys_max_cmd_len=-1;
2153 ;;
2154
2155 cygwin* | mingw* | cegcc*)
2156 # On Win9x/ME, this test blows up -- it succeeds, but takes
2157 # about 5 minutes as the teststring grows exponentially.
2158 # Worse, since 9x/ME are not pre-emptively multitasking,
2159 # you end up with a "frozen" computer, even though with patience
2160 # the test eventually succeeds (with a max line length of 256k).
2161 # Instead, let's just punt: use the minimum linelength reported by
2162 # all of the supported platforms: 8192 (on NT/2K/XP).
2163 lt_cv_sys_max_cmd_len=8192;
2164 ;;
2165
2166 mint*)
2167 # On MiNT this can take a long time and run out of memory.
2168 lt_cv_sys_max_cmd_len=8192;
2169 ;;
2170
2171 amigaos*)
2172 # On AmigaOS with pdksh, this test takes hours, literally.
2173 # So we just punt and use a minimum line length of 8192.
2174 lt_cv_sys_max_cmd_len=8192;
2175 ;;
2176
2177 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
2178 # This has been around since 386BSD, at least. Likely further.
2179 if test -x /sbin/sysctl; then
2180 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
2181 elif test -x /usr/sbin/sysctl; then
2182 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
2183 else
2184 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
2185 fi
2186 # And add a safety zone
2187 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
2188 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
2189 ;;
2190
2191 interix*)
2192 # We know the value 262144 and hardcode it with a safety zone (like BSD)
2193 lt_cv_sys_max_cmd_len=196608
2194 ;;
2195
2196 os2*)
2197 # The test takes a long time on OS/2.
2198 lt_cv_sys_max_cmd_len=8192
2199 ;;
2200
2201 osf*)
2202 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
2203 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
2204 # nice to cause kernel panics so lets avoid the loop below.
2205 # First set a reasonable default.
2206 lt_cv_sys_max_cmd_len=16384
2207 #
2208 if test -x /sbin/sysconfig; then
2209 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
2210 *1*) lt_cv_sys_max_cmd_len=-1 ;;
2211 esac
2212 fi
2213 ;;
2214 sco3.2v5*)
2215 lt_cv_sys_max_cmd_len=102400
2216 ;;
2217 sysv5* | sco5v6* | sysv4.2uw2*)
2218 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
2219 if test -n "$kargmax"; then
2220 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
2221 else
2222 lt_cv_sys_max_cmd_len=32768
2223 fi
2224 ;;
2225 *)
2226 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
2227 if test -n "$lt_cv_sys_max_cmd_len"; then
2228 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
2229 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
2230 else
2231 # Make teststring a little bigger before we do anything with it.
2232 # a 1K string should be a reasonable start.
2233 for i in 1 2 3 4 5 6 7 8 ; do
2234 teststring=$teststring$teststring
2235 done
2236 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
2237 # If test is not a shell built-in, we'll probably end up computing a
2238 # maximum length that is only half of the actual maximum length, but
2239 # we can't tell.
2240 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
2241 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
2242 test $i != 17 # 1/2 MB should be enough
2243 do
2244 i=`expr $i + 1`
2245 teststring=$teststring$teststring
2246 done
2247 # Only check the string length outside the loop.
2248 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
2249 teststring=
2250 # Add a significant safety factor because C++ compilers can tack on
2251 # massive amounts of additional arguments before passing them to the
2252 # linker. It appears as though 1/2 is a usable value.
2253 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
2254 fi
2255 ;;
2256 esac
2257])
2258if test -n $lt_cv_sys_max_cmd_len ; then
2259 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
2260else
2261 AC_MSG_RESULT(none)
2262fi
2263max_cmd_len=$lt_cv_sys_max_cmd_len
2264_LT_DECL([], [max_cmd_len], [0],
2265 [What is the maximum length of a command?])
2266])# LT_CMD_MAX_LEN
2267
2268# Old name:
2269AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
2270dnl aclocal-1.4 backwards compatibility:
2271dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
2272
2273
2274# _LT_HEADER_DLFCN
2275# ----------------
2276m4_defun([_LT_HEADER_DLFCN],
2277[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
2278])# _LT_HEADER_DLFCN
2279
2280
2281# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
2282# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
2283# ----------------------------------------------------------------
2284m4_defun([_LT_TRY_DLOPEN_SELF],
2285[m4_require([_LT_HEADER_DLFCN])dnl
2286if test "$cross_compiling" = yes; then :
2287 [$4]
2288else
2289 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
2290 lt_status=$lt_dlunknown
2291 cat > conftest.$ac_ext <<_LT_EOF
2292[#line $LINENO "configure"
2293#include "confdefs.h"
2294
2295#if HAVE_DLFCN_H
2296#include <dlfcn.h>
2297#endif
2298
2299#include <stdio.h>
2300
2301#ifdef RTLD_GLOBAL
2302# define LT_DLGLOBAL RTLD_GLOBAL
2303#else
2304# ifdef DL_GLOBAL
2305# define LT_DLGLOBAL DL_GLOBAL
2306# else
2307# define LT_DLGLOBAL 0
2308# endif
2309#endif
2310
2311/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
2312 find out it does not work in some platform. */
2313#ifndef LT_DLLAZY_OR_NOW
2314# ifdef RTLD_LAZY
2315# define LT_DLLAZY_OR_NOW RTLD_LAZY
2316# else
2317# ifdef DL_LAZY
2318# define LT_DLLAZY_OR_NOW DL_LAZY
2319# else
2320# ifdef RTLD_NOW
2321# define LT_DLLAZY_OR_NOW RTLD_NOW
2322# else
2323# ifdef DL_NOW
2324# define LT_DLLAZY_OR_NOW DL_NOW
2325# else
2326# define LT_DLLAZY_OR_NOW 0
2327# endif
2328# endif
2329# endif
2330# endif
2331#endif
2332
2333/* When -fvisbility=hidden is used, assume the code has been annotated
2334 correspondingly for the symbols needed. */
2335#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
2336int fnord () __attribute__((visibility("default")));
2337#endif
2338
2339int fnord () { return 42; }
2340int main ()
2341{
2342 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
2343 int status = $lt_dlunknown;
2344
2345 if (self)
2346 {
2347 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
2348 else
2349 {
2350 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
2351 else puts (dlerror ());
2352 }
2353 /* dlclose (self); */
2354 }
2355 else
2356 puts (dlerror ());
2357
2358 return status;
2359}]
2360_LT_EOF
2361 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
2362 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
2363 lt_status=$?
2364 case x$lt_status in
2365 x$lt_dlno_uscore) $1 ;;
2366 x$lt_dlneed_uscore) $2 ;;
2367 x$lt_dlunknown|x*) $3 ;;
2368 esac
2369 else :
2370 # compilation failed
2371 $3
2372 fi
2373fi
2374rm -fr conftest*
2375])# _LT_TRY_DLOPEN_SELF
2376
2377
2378# LT_SYS_DLOPEN_SELF
2379# ------------------
2380AC_DEFUN([LT_SYS_DLOPEN_SELF],
2381[m4_require([_LT_HEADER_DLFCN])dnl
2382if test "x$enable_dlopen" != xyes; then
2383 enable_dlopen=unknown
2384 enable_dlopen_self=unknown
2385 enable_dlopen_self_static=unknown
2386else
2387 lt_cv_dlopen=no
2388 lt_cv_dlopen_libs=
2389
2390 case $host_os in
2391 beos*)
2392 lt_cv_dlopen="load_add_on"
2393 lt_cv_dlopen_libs=
2394 lt_cv_dlopen_self=yes
2395 ;;
2396
2397 mingw* | pw32* | cegcc*)
2398 lt_cv_dlopen="LoadLibrary"
2399 lt_cv_dlopen_libs=
2400 ;;
2401
2402 cygwin*)
2403 lt_cv_dlopen="dlopen"
2404 lt_cv_dlopen_libs=
2405 ;;
2406
2407 darwin*)
2408 # if libdl is installed we need to link against it
2409 AC_CHECK_LIB([dl], [dlopen],
2410 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
2411 lt_cv_dlopen="dyld"
2412 lt_cv_dlopen_libs=
2413 lt_cv_dlopen_self=yes
2414 ])
2415 ;;
2416
2417 *)
2418 AC_CHECK_FUNC([shl_load],
2419 [lt_cv_dlopen="shl_load"],
2420 [AC_CHECK_LIB([dld], [shl_load],
2421 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
2422 [AC_CHECK_FUNC([dlopen],
2423 [lt_cv_dlopen="dlopen"],
2424 [AC_CHECK_LIB([dl], [dlopen],
2425 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
2426 [AC_CHECK_LIB([svld], [dlopen],
2427 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
2428 [AC_CHECK_LIB([dld], [dld_link],
2429 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
2430 ])
2431 ])
2432 ])
2433 ])
2434 ])
2435 ;;
2436 esac
2437
2438 if test "x$lt_cv_dlopen" != xno; then
2439 enable_dlopen=yes
2440 else
2441 enable_dlopen=no
2442 fi
2443
2444 case $lt_cv_dlopen in
2445 dlopen)
2446 save_CPPFLAGS="$CPPFLAGS"
2447 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
2448
2449 save_LDFLAGS="$LDFLAGS"
2450 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
2451
2452 save_LIBS="$LIBS"
2453 LIBS="$lt_cv_dlopen_libs $LIBS"
2454
2455 AC_CACHE_CHECK([whether a program can dlopen itself],
2456 lt_cv_dlopen_self, [dnl
2457 _LT_TRY_DLOPEN_SELF(
2458 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
2459 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
2460 ])
2461
2462 if test "x$lt_cv_dlopen_self" = xyes; then
2463 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
2464 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
2465 lt_cv_dlopen_self_static, [dnl
2466 _LT_TRY_DLOPEN_SELF(
2467 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
2468 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
2469 ])
2470 fi
2471
2472 CPPFLAGS="$save_CPPFLAGS"
2473 LDFLAGS="$save_LDFLAGS"
2474 LIBS="$save_LIBS"
2475 ;;
2476 esac
2477
2478 case $lt_cv_dlopen_self in
2479 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
2480 *) enable_dlopen_self=unknown ;;
2481 esac
2482
2483 case $lt_cv_dlopen_self_static in
2484 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
2485 *) enable_dlopen_self_static=unknown ;;
2486 esac
2487fi
2488_LT_DECL([dlopen_support], [enable_dlopen], [0],
2489 [Whether dlopen is supported])
2490_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
2491 [Whether dlopen of programs is supported])
2492_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
2493 [Whether dlopen of statically linked programs is supported])
2494])# LT_SYS_DLOPEN_SELF
2495
2496# Old name:
2497AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
2498dnl aclocal-1.4 backwards compatibility:
2499dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
2500
2501
2502# _LT_COMPILER_C_O([TAGNAME])
2503# ---------------------------
2504# Check to see if options -c and -o are simultaneously supported by compiler.
2505# This macro does not hard code the compiler like AC_PROG_CC_C_O.
2506m4_defun([_LT_COMPILER_C_O],
2507[m4_require([_LT_DECL_SED])dnl
2508m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2509m4_require([_LT_TAG_COMPILER])dnl
2510AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
2511 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
2512 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
2513 $RM -r conftest 2>/dev/null
2514 mkdir conftest
2515 cd conftest
2516 mkdir out
2517 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2518
2519 lt_compiler_flag="-o out/conftest2.$ac_objext"
2520 # Insert the option either (1) after the last *FLAGS variable, or
2521 # (2) before a word containing "conftest.", or (3) at the end.
2522 # Note that $ac_compile itself does not contain backslashes and begins
2523 # with a dollar sign (not a hyphen), so the echo should work correctly.
2524 lt_compile=`echo "$ac_compile" | $SED \
2525 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2526 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2527 -e 's:$: $lt_compiler_flag:'`
2528 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2529 (eval "$lt_compile" 2>out/conftest.err)
2530 ac_status=$?
2531 cat out/conftest.err >&AS_MESSAGE_LOG_FD
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2533 if (exit $ac_status) && test -s out/conftest2.$ac_objext
2534 then
2535 # The compiler can only warn and ignore the option if not recognized
2536 # So say no if there are warnings
2537 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
2538 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
2539 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2540 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2541 fi
2542 fi
2543 chmod u+w . 2>&AS_MESSAGE_LOG_FD
2544 $RM conftest*
2545 # SGI C++ compiler will create directory out/ii_files/ for
2546 # template instantiation
2547 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
2548 $RM out/* && rmdir out
2549 cd ..
2550 $RM -r conftest
2551 $RM conftest*
2552])
2553_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
2554 [Does compiler simultaneously support -c and -o options?])
2555])# _LT_COMPILER_C_O
2556
2557
2558# _LT_COMPILER_FILE_LOCKS([TAGNAME])
2559# ----------------------------------
2560# Check to see if we can do hard links to lock some files if needed
2561m4_defun([_LT_COMPILER_FILE_LOCKS],
2562[m4_require([_LT_ENABLE_LOCK])dnl
2563m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2564_LT_COMPILER_C_O([$1])
2565
2566hard_links="nottested"
2567if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
2568 # do not overwrite the value of need_locks provided by the user
2569 AC_MSG_CHECKING([if we can lock with hard links])
2570 hard_links=yes
2571 $RM conftest*
2572 ln conftest.a conftest.b 2>/dev/null && hard_links=no
2573 touch conftest.a
2574 ln conftest.a conftest.b 2>&5 || hard_links=no
2575 ln conftest.a conftest.b 2>/dev/null && hard_links=no
2576 AC_MSG_RESULT([$hard_links])
2577 if test "$hard_links" = no; then
2578 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
2579 need_locks=warn
2580 fi
2581else
2582 need_locks=no
2583fi
2584_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
2585])# _LT_COMPILER_FILE_LOCKS
2586
2587
2588# _LT_CHECK_OBJDIR
2589# ----------------
2590m4_defun([_LT_CHECK_OBJDIR],
2591[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
2592[rm -f .libs 2>/dev/null
2593mkdir .libs 2>/dev/null
2594if test -d .libs; then
2595 lt_cv_objdir=.libs
2596else
2597 # MS-DOS does not allow filenames that begin with a dot.
2598 lt_cv_objdir=_libs
2599fi
2600rmdir .libs 2>/dev/null])
2601objdir=$lt_cv_objdir
2602_LT_DECL([], [objdir], [0],
2603 [The name of the directory that contains temporary libtool files])dnl
2604m4_pattern_allow([LT_OBJDIR])dnl
2605AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
2606 [Define to the sub-directory in which libtool stores uninstalled libraries.])
2607])# _LT_CHECK_OBJDIR
2608
2609
2610# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
2611# --------------------------------------
2612# Check hardcoding attributes.
2613m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
2614[AC_MSG_CHECKING([how to hardcode library paths into programs])
2615_LT_TAGVAR(hardcode_action, $1)=
2616if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
2617 test -n "$_LT_TAGVAR(runpath_var, $1)" ||
2618 test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
2619
2620 # We can hardcode non-existent directories.
2621 if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
2622 # If the only mechanism to avoid hardcoding is shlibpath_var, we
2623 # have to relink, otherwise we might link with an installed library
2624 # when we should be linking with a yet-to-be-installed one
2625 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2626 test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
2627 # Linking always hardcodes the temporary library directory.
2628 _LT_TAGVAR(hardcode_action, $1)=relink
2629 else
2630 # We can link without hardcoding, and we can hardcode nonexisting dirs.
2631 _LT_TAGVAR(hardcode_action, $1)=immediate
2632 fi
2633else
2634 # We cannot hardcode anything, or else we can only hardcode existing
2635 # directories.
2636 _LT_TAGVAR(hardcode_action, $1)=unsupported
2637fi
2638AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
2639
2640if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
2641 test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
2642 # Fast installation is not supported
2643 enable_fast_install=no
2644elif test "$shlibpath_overrides_runpath" = yes ||
2645 test "$enable_shared" = no; then
2646 # Fast installation is not necessary
2647 enable_fast_install=needless
2648fi
2649_LT_TAGDECL([], [hardcode_action], [0],
2650 [How to hardcode a shared library path into an executable])
2651])# _LT_LINKER_HARDCODE_LIBPATH
2652
2653
2654# _LT_CMD_STRIPLIB
2655# ----------------
2656m4_defun([_LT_CMD_STRIPLIB],
2657[m4_require([_LT_DECL_EGREP])
2658striplib=
2659old_striplib=
2660AC_MSG_CHECKING([whether stripping libraries is possible])
2661if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
2662 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2663 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2664 AC_MSG_RESULT([yes])
2665else
2666# FIXME - insert some real tests, host_os isn't really good enough
2667 case $host_os in
2668 darwin*)
2669 if test -n "$STRIP" ; then
2670 striplib="$STRIP -x"
2671 old_striplib="$STRIP -S"
2672 AC_MSG_RESULT([yes])
2673 else
2674 AC_MSG_RESULT([no])
2675 fi
2676 ;;
2677 *)
2678 AC_MSG_RESULT([no])
2679 ;;
2680 esac
2681fi
2682_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
2683_LT_DECL([], [striplib], [1])
2684])# _LT_CMD_STRIPLIB
2685
2686
2687# _LT_SYS_DYNAMIC_LINKER([TAG])
2688# -----------------------------
2689# PORTME Fill in your ld.so characteristics
2690m4_defun([_LT_SYS_DYNAMIC_LINKER],
2691[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2692m4_require([_LT_DECL_EGREP])dnl
2693m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2694m4_require([_LT_DECL_OBJDUMP])dnl
2695m4_require([_LT_DECL_SED])dnl
2696m4_require([_LT_CHECK_SHELL_FEATURES])dnl
2697AC_MSG_CHECKING([dynamic linker characteristics])
2698m4_if([$1],
2699 [], [
2700if test "$GCC" = yes; then
2701 case $host_os in
2702 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2703 *) lt_awk_arg="/^libraries:/" ;;
2704 esac
2705 case $host_os in
2706 mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
2707 *) lt_sed_strip_eq="s,=/,/,g" ;;
2708 esac
2709 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
2710 case $lt_search_path_spec in
2711 *\;*)
2712 # if the path contains ";" then we assume it to be the separator
2713 # otherwise default to the standard path separator (i.e. ":") - it is
2714 # assumed that no part of a normal pathname contains ";" but that should
2715 # okay in the real world where ";" in dirpaths is itself problematic.
2716 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
2717 ;;
2718 *)
2719 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
2720 ;;
2721 esac
2722 # Ok, now we have the path, separated by spaces, we can step through it
2723 # and add multilib dir if necessary.
2724 lt_tmp_lt_search_path_spec=
2725 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2726 for lt_sys_path in $lt_search_path_spec; do
2727 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
2728 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
2729 else
2730 test -d "$lt_sys_path" && \
2731 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2732 fi
2733 done
2734 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
2735BEGIN {RS=" "; FS="/|\n";} {
2736 lt_foo="";
2737 lt_count=0;
2738 for (lt_i = NF; lt_i > 0; lt_i--) {
2739 if ($lt_i != "" && $lt_i != ".") {
2740 if ($lt_i == "..") {
2741 lt_count++;
2742 } else {
2743 if (lt_count == 0) {
2744 lt_foo="/" $lt_i lt_foo;
2745 } else {
2746 lt_count--;
2747 }
2748 }
2749 }
2750 }
2751 if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2752 if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2753}'`
2754 # AWK program above erroneously prepends '/' to C:/dos/paths
2755 # for these hosts.
2756 case $host_os in
2757 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
2758 $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
2759 esac
2760 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
2761else
2762 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2763fi])
2764library_names_spec=
2765libname_spec='lib$name'
2766soname_spec=
2767shrext_cmds=".so"
2768postinstall_cmds=
2769postuninstall_cmds=
2770finish_cmds=
2771finish_eval=
2772shlibpath_var=
2773shlibpath_overrides_runpath=unknown
2774version_type=none
2775dynamic_linker="$host_os ld.so"
2776sys_lib_dlsearch_path_spec="/lib /usr/lib"
2777need_lib_prefix=unknown
2778hardcode_into_libs=no
2779
2780# when you set need_version to no, make sure it does not cause -set_version
2781# flags to be left without arguments
2782need_version=unknown
2783
2784case $host_os in
2785aix3*)
2786 version_type=linux # correct to gnu/linux during the next big refactor
2787 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2788 shlibpath_var=LIBPATH
2789
2790 # AIX 3 has no versioning support, so we append a major version to the name.
2791 soname_spec='${libname}${release}${shared_ext}$major'
2792 ;;
2793
2794aix[[4-9]]*)
2795 version_type=linux # correct to gnu/linux during the next big refactor
2796 need_lib_prefix=no
2797 need_version=no
2798 hardcode_into_libs=yes
2799 if test "$host_cpu" = ia64; then
2800 # AIX 5 supports IA64
2801 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2802 shlibpath_var=LD_LIBRARY_PATH
2803 else
2804 # With GCC up to 2.95.x, collect2 would create an import file
2805 # for dependence libraries. The import file would start with
2806 # the line `#! .'. This would cause the generated library to
2807 # depend on `.', always an invalid library. This was fixed in
2808 # development snapshots of GCC prior to 3.0.
2809 case $host_os in
2810 aix4 | aix4.[[01]] | aix4.[[01]].*)
2811 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2812 echo ' yes '
2813 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
2814 :
2815 else
2816 can_build_shared=no
2817 fi
2818 ;;
2819 esac
2820 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2821 # soname into executable. Probably we can add versioning support to
2822 # collect2, so additional links can be useful in future.
2823 if test "$aix_use_runtimelinking" = yes; then
2824 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
2825 # instead of lib<name>.a to let people know that these are not
2826 # typical AIX shared libraries.
2827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2828 else
2829 # We preserve .a as extension for shared libraries through AIX4.2
2830 # and later when we are not doing run time linking.
2831 library_names_spec='${libname}${release}.a $libname.a'
2832 soname_spec='${libname}${release}${shared_ext}$major'
2833 fi
2834 shlibpath_var=LIBPATH
2835 fi
2836 ;;
2837
2838amigaos*)
2839 case $host_cpu in
2840 powerpc)
2841 # Since July 2007 AmigaOS4 officially supports .so libraries.
2842 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2844 ;;
2845 m68k)
2846 library_names_spec='$libname.ixlibrary $libname.a'
2847 # Create ${libname}_ixlibrary.a entries in /sys/libs.
2848 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
2849 ;;
2850 esac
2851 ;;
2852
2853beos*)
2854 library_names_spec='${libname}${shared_ext}'
2855 dynamic_linker="$host_os ld.so"
2856 shlibpath_var=LIBRARY_PATH
2857 ;;
2858
2859bsdi[[45]]*)
2860 version_type=linux # correct to gnu/linux during the next big refactor
2861 need_version=no
2862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2863 soname_spec='${libname}${release}${shared_ext}$major'
2864 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2865 shlibpath_var=LD_LIBRARY_PATH
2866 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2867 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2868 # the default ld.so.conf also contains /usr/contrib/lib and
2869 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2870 # libtool to hard-code these into programs
2871 ;;
2872
2873cygwin* | mingw* | pw32* | cegcc*)
2874 version_type=windows
2875 shrext_cmds=".dll"
2876 need_version=no
2877 need_lib_prefix=no
2878
2879 case $GCC,$cc_basename in
2880 yes,*)
2881 # gcc
2882 library_names_spec='$libname.dll.a'
2883 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2884 postinstall_cmds='base_file=`basename \${file}`~
2885 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2886 dldir=$destdir/`dirname \$dlpath`~
2887 test -d \$dldir || mkdir -p \$dldir~
2888 $install_prog $dir/$dlname \$dldir/$dlname~
2889 chmod a+x \$dldir/$dlname~
2890 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2891 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
2892 fi'
2893 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2894 dlpath=$dir/\$dldll~
2895 $RM \$dlpath'
2896 shlibpath_overrides_runpath=yes
2897
2898 case $host_os in
2899 cygwin*)
2900 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2901 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2902m4_if([$1], [],[
2903 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
2904 ;;
2905 mingw* | cegcc*)
2906 # MinGW DLLs use traditional 'lib' prefix
2907 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2908 ;;
2909 pw32*)
2910 # pw32 DLLs use 'pw' prefix rather than 'lib'
2911 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2912 ;;
2913 esac
2914 dynamic_linker='Win32 ld.exe'
2915 ;;
2916
2917 *,cl*)
2918 # Native MSVC
2919 libname_spec='$name'
2920 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2921 library_names_spec='${libname}.dll.lib'
2922
2923 case $build_os in
2924 mingw*)
2925 sys_lib_search_path_spec=
2926 lt_save_ifs=$IFS
2927 IFS=';'
2928 for lt_path in $LIB
2929 do
2930 IFS=$lt_save_ifs
2931 # Let DOS variable expansion print the short 8.3 style file name.
2932 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
2933 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
2934 done
2935 IFS=$lt_save_ifs
2936 # Convert to MSYS style.
2937 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
2938 ;;
2939 cygwin*)
2940 # Convert to unix form, then to dos form, then back to unix form
2941 # but this time dos style (no spaces!) so that the unix form looks
2942 # like /cygdrive/c/PROGRA~1:/cygdr...
2943 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
2944 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
2945 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2946 ;;
2947 *)
2948 sys_lib_search_path_spec="$LIB"
2949 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2950 # It is most probably a Windows format PATH.
2951 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2952 else
2953 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2954 fi
2955 # FIXME: find the short name or the path components, as spaces are
2956 # common. (e.g. "Program Files" -> "PROGRA~1")
2957 ;;
2958 esac
2959
2960 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2961 postinstall_cmds='base_file=`basename \${file}`~
2962 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2963 dldir=$destdir/`dirname \$dlpath`~
2964 test -d \$dldir || mkdir -p \$dldir~
2965 $install_prog $dir/$dlname \$dldir/$dlname'
2966 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2967 dlpath=$dir/\$dldll~
2968 $RM \$dlpath'
2969 shlibpath_overrides_runpath=yes
2970 dynamic_linker='Win32 link.exe'
2971 ;;
2972
2973 *)
2974 # Assume MSVC wrapper
2975 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2976 dynamic_linker='Win32 ld.exe'
2977 ;;
2978 esac
2979 # FIXME: first we should search . and the directory the executable is in
2980 shlibpath_var=PATH
2981 ;;
2982
2983darwin* | rhapsody*)
2984 dynamic_linker="$host_os dyld"
2985 version_type=darwin
2986 need_lib_prefix=no
2987 need_version=no
2988 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2989 soname_spec='${libname}${release}${major}$shared_ext'
2990 shlibpath_overrides_runpath=yes
2991 shlibpath_var=DYLD_LIBRARY_PATH
2992 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2993m4_if([$1], [],[
2994 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
2995 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2996 ;;
2997
2998dgux*)
2999 version_type=linux # correct to gnu/linux during the next big refactor
3000 need_lib_prefix=no
3001 need_version=no
3002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
3003 soname_spec='${libname}${release}${shared_ext}$major'
3004 shlibpath_var=LD_LIBRARY_PATH
3005 ;;
3006
3007freebsd* | dragonfly*)
3008 # DragonFly does not have aout. When/if they implement a new
3009 # versioning mechanism, adjust this.
3010 if test -x /usr/bin/objformat; then
3011 objformat=`/usr/bin/objformat`
3012 else
3013 case $host_os in
3014 freebsd[[23]].*) objformat=aout ;;
3015 *) objformat=elf ;;
3016 esac
3017 fi
3018 version_type=freebsd-$objformat
3019 case $version_type in
3020 freebsd-elf*)
3021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
3022 need_version=no
3023 need_lib_prefix=no
3024 ;;
3025 freebsd-*)
3026 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
3027 need_version=yes
3028 ;;
3029 esac
3030 shlibpath_var=LD_LIBRARY_PATH
3031 case $host_os in
3032 freebsd2.*)
3033 shlibpath_overrides_runpath=yes
3034 ;;
3035 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
3036 shlibpath_overrides_runpath=yes
3037 hardcode_into_libs=yes
3038 ;;
3039 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
3040 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
3041 shlibpath_overrides_runpath=no
3042 hardcode_into_libs=yes
3043 ;;
3044 *) # from 4.6 on, and DragonFly
3045 shlibpath_overrides_runpath=yes
3046 hardcode_into_libs=yes
3047 ;;
3048 esac
3049 ;;
3050
3051gnu*)
3052 version_type=linux # correct to gnu/linux during the next big refactor
3053 need_lib_prefix=no
3054 need_version=no
3055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
3056 soname_spec='${libname}${release}${shared_ext}$major'
3057 shlibpath_var=LD_LIBRARY_PATH
3058 shlibpath_overrides_runpath=no
3059 hardcode_into_libs=yes
3060 ;;
3061
3062haiku*)
3063 version_type=linux # correct to gnu/linux during the next big refactor
3064 need_lib_prefix=no
3065 need_version=no
3066 dynamic_linker="$host_os runtime_loader"
3067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
3068 soname_spec='${libname}${release}${shared_ext}$major'
3069 shlibpath_var=LIBRARY_PATH
3070 shlibpath_overrides_runpath=yes
3071 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
3072 hardcode_into_libs=yes
3073 ;;
3074
3075hpux9* | hpux10* | hpux11*)
3076 # Give a soname corresponding to the major version so that dld.sl refuses to
3077 # link against other versions.
3078 version_type=sunos
3079 need_lib_prefix=no
3080 need_version=no
3081 case $host_cpu in
3082 ia64*)
3083 shrext_cmds='.so'
3084 hardcode_into_libs=yes
3085 dynamic_linker="$host_os dld.so"
3086 shlibpath_var=LD_LIBRARY_PATH
3087 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
3088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3089 soname_spec='${libname}${release}${shared_ext}$major'
3090 if test "X$HPUX_IA64_MODE" = X32; then
3091 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
3092 else
3093 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
3094 fi
3095 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3096 ;;
3097 hppa*64*)
3098 shrext_cmds='.sl'
3099 hardcode_into_libs=yes
3100 dynamic_linker="$host_os dld.sl"
3101 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
3102 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
3103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3104 soname_spec='${libname}${release}${shared_ext}$major'
3105 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
3106 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3107 ;;
3108 *)
3109 shrext_cmds='.sl'
3110 dynamic_linker="$host_os dld.sl"
3111 shlibpath_var=SHLIB_PATH
3112 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
3113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3114 soname_spec='${libname}${release}${shared_ext}$major'
3115 ;;
3116 esac
3117 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
3118 postinstall_cmds='chmod 555 $lib'
3119 # or fails outright, so override atomically:
3120 install_override_mode=555
3121 ;;
3122
3123interix[[3-9]]*)
3124 version_type=linux # correct to gnu/linux during the next big refactor
3125 need_lib_prefix=no
3126 need_version=no
3127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3128 soname_spec='${libname}${release}${shared_ext}$major'
3129 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
3130 shlibpath_var=LD_LIBRARY_PATH
3131 shlibpath_overrides_runpath=no
3132 hardcode_into_libs=yes
3133 ;;
3134
3135irix5* | irix6* | nonstopux*)
3136 case $host_os in
3137 nonstopux*) version_type=nonstopux ;;
3138 *)
3139 if test "$lt_cv_prog_gnu_ld" = yes; then
3140 version_type=linux # correct to gnu/linux during the next big refactor
3141 else
3142 version_type=irix
3143 fi ;;
3144 esac
3145 need_lib_prefix=no
3146 need_version=no
3147 soname_spec='${libname}${release}${shared_ext}$major'
3148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
3149 case $host_os in
3150 irix5* | nonstopux*)
3151 libsuff= shlibsuff=
3152 ;;
3153 *)
3154 case $LD in # libtool.m4 will add one of these switches to LD
3155 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
3156 libsuff= shlibsuff= libmagic=32-bit;;
3157 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
3158 libsuff=32 shlibsuff=N32 libmagic=N32;;
3159 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
3160 libsuff=64 shlibsuff=64 libmagic=64-bit;;
3161 *) libsuff= shlibsuff= libmagic=never-match;;
3162 esac
3163 ;;
3164 esac
3165 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
3166 shlibpath_overrides_runpath=no
3167 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
3168 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
3169 hardcode_into_libs=yes
3170 ;;
3171
3172# No shared lib support for Linux oldld, aout, or coff.
3173linux*oldld* | linux*aout* | linux*coff*)
3174 dynamic_linker=no
3175 ;;
3176
3177# This must be glibc/ELF.
3178linux* | k*bsd*-gnu | kopensolaris*-gnu)
3179 version_type=linux # correct to gnu/linux during the next big refactor
3180 need_lib_prefix=no
3181 need_version=no
3182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3183 soname_spec='${libname}${release}${shared_ext}$major'
3184 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
3185 shlibpath_var=LD_LIBRARY_PATH
3186 shlibpath_overrides_runpath=no
3187
3188 # Some binutils ld are patched to set DT_RUNPATH
3189 AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
3190 [lt_cv_shlibpath_overrides_runpath=no
3191 save_LDFLAGS=$LDFLAGS
3192 save_libdir=$libdir
3193 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
3194 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
3195 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
3196 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
3197 [lt_cv_shlibpath_overrides_runpath=yes])])
3198 LDFLAGS=$save_LDFLAGS
3199 libdir=$save_libdir
3200 ])
3201 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
3202
3203 # This implies no fast_install, which is unacceptable.
3204 # Some rework will be needed to allow for fast_install
3205 # before this can be enabled.
3206 hardcode_into_libs=yes
3207
3208 # Append ld.so.conf contents to the search path
3209 if test -f /etc/ld.so.conf; then
3210 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;s/"//g;/^$/d' | tr '\n' ' '`
3211 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
3212 fi
3213
3214 # We used to test for /lib/ld.so.1 and disable shared libraries on
3215 # powerpc, because MkLinux only supported shared libraries with the
3216 # GNU dynamic linker. Since this was broken with cross compilers,
3217 # most powerpc-linux boxes support dynamic linking these days and
3218 # people can always --disable-shared, the test was removed, and we
3219 # assume the GNU/Linux dynamic linker is in use.
3220 dynamic_linker='GNU/Linux ld.so'
3221 ;;
3222
3223netbsdelf*-gnu)
3224 version_type=linux
3225 need_lib_prefix=no
3226 need_version=no
3227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3228 soname_spec='${libname}${release}${shared_ext}$major'
3229 shlibpath_var=LD_LIBRARY_PATH
3230 shlibpath_overrides_runpath=no
3231 hardcode_into_libs=yes
3232 dynamic_linker='NetBSD ld.elf_so'
3233 ;;
3234
3235netbsd*)
3236 version_type=sunos
3237 need_lib_prefix=no
3238 need_version=no
3239 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
3240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3241 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3242 dynamic_linker='NetBSD (a.out) ld.so'
3243 else
3244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3245 soname_spec='${libname}${release}${shared_ext}$major'
3246 dynamic_linker='NetBSD ld.elf_so'
3247 fi
3248 shlibpath_var=LD_LIBRARY_PATH
3249 shlibpath_overrides_runpath=yes
3250 hardcode_into_libs=yes
3251 ;;
3252
3253newsos6)
3254 version_type=linux # correct to gnu/linux during the next big refactor
3255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3256 shlibpath_var=LD_LIBRARY_PATH
3257 shlibpath_overrides_runpath=yes
3258 ;;
3259
3260*nto* | *qnx*)
3261 version_type=qnx
3262 need_lib_prefix=no
3263 need_version=no
3264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3265 soname_spec='${libname}${release}${shared_ext}$major'
3266 shlibpath_var=LD_LIBRARY_PATH
3267 shlibpath_overrides_runpath=no
3268 hardcode_into_libs=yes
3269 dynamic_linker='ldqnx.so'
3270 ;;
3271
3272openbsd*)
3273 version_type=sunos
3274 sys_lib_dlsearch_path_spec="/usr/lib"
3275 need_lib_prefix=no
3276 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
3277 case $host_os in
3278 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
3279 *) need_version=no ;;
3280 esac
3281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3282 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3283 shlibpath_var=LD_LIBRARY_PATH
3284 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3285 case $host_os in
3286 openbsd2.[[89]] | openbsd2.[[89]].*)
3287 shlibpath_overrides_runpath=no
3288 ;;
3289 *)
3290 shlibpath_overrides_runpath=yes
3291 ;;
3292 esac
3293 else
3294 shlibpath_overrides_runpath=yes
3295 fi
3296 ;;
3297
3298os2*)
3299 libname_spec='$name'
3300 shrext_cmds=".dll"
3301 need_lib_prefix=no
3302 library_names_spec='$libname${shared_ext} $libname.a'
3303 dynamic_linker='OS/2 ld.exe'
3304 shlibpath_var=LIBPATH
3305 ;;
3306
3307osf3* | osf4* | osf5*)
3308 version_type=osf
3309 need_lib_prefix=no
3310 need_version=no
3311 soname_spec='${libname}${release}${shared_ext}$major'
3312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3313 shlibpath_var=LD_LIBRARY_PATH
3314 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
3315 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
3316 ;;
3317
3318rdos*)
3319 dynamic_linker=no
3320 ;;
3321
3322solaris*)
3323 version_type=linux # correct to gnu/linux during the next big refactor
3324 need_lib_prefix=no
3325 need_version=no
3326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3327 soname_spec='${libname}${release}${shared_ext}$major'
3328 shlibpath_var=LD_LIBRARY_PATH
3329 shlibpath_overrides_runpath=yes
3330 hardcode_into_libs=yes
3331 # ldd complains unless libraries are executable
3332 postinstall_cmds='chmod +x $lib'
3333 ;;
3334
3335sunos4*)
3336 version_type=sunos
3337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3338 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
3339 shlibpath_var=LD_LIBRARY_PATH
3340 shlibpath_overrides_runpath=yes
3341 if test "$with_gnu_ld" = yes; then
3342 need_lib_prefix=no
3343 fi
3344 need_version=yes
3345 ;;
3346
3347sysv4 | sysv4.3*)
3348 version_type=linux # correct to gnu/linux during the next big refactor
3349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3350 soname_spec='${libname}${release}${shared_ext}$major'
3351 shlibpath_var=LD_LIBRARY_PATH
3352 case $host_vendor in
3353 sni)
3354 shlibpath_overrides_runpath=no
3355 need_lib_prefix=no
3356 runpath_var=LD_RUN_PATH
3357 ;;
3358 siemens)
3359 need_lib_prefix=no
3360 ;;
3361 motorola)
3362 need_lib_prefix=no
3363 need_version=no
3364 shlibpath_overrides_runpath=no
3365 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
3366 ;;
3367 esac
3368 ;;
3369
3370sysv4*MP*)
3371 if test -d /usr/nec ;then
3372 version_type=linux # correct to gnu/linux during the next big refactor
3373 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
3374 soname_spec='$libname${shared_ext}.$major'
3375 shlibpath_var=LD_LIBRARY_PATH
3376 fi
3377 ;;
3378
3379sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3380 version_type=freebsd-elf
3381 need_lib_prefix=no
3382 need_version=no
3383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
3384 soname_spec='${libname}${release}${shared_ext}$major'
3385 shlibpath_var=LD_LIBRARY_PATH
3386 shlibpath_overrides_runpath=yes
3387 hardcode_into_libs=yes
3388 if test "$with_gnu_ld" = yes; then
3389 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
3390 else
3391 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
3392 case $host_os in
3393 sco3.2v5*)
3394 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
3395 ;;
3396 esac
3397 fi
3398 sys_lib_dlsearch_path_spec='/usr/lib'
3399 ;;
3400
3401tpf*)
3402 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
3403 version_type=linux # correct to gnu/linux during the next big refactor
3404 need_lib_prefix=no
3405 need_version=no
3406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3407 shlibpath_var=LD_LIBRARY_PATH
3408 shlibpath_overrides_runpath=no
3409 hardcode_into_libs=yes
3410 ;;
3411
3412uts4*)
3413 version_type=linux # correct to gnu/linux during the next big refactor
3414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3415 soname_spec='${libname}${release}${shared_ext}$major'
3416 shlibpath_var=LD_LIBRARY_PATH
3417 ;;
3418
3419*)
3420 dynamic_linker=no
3421 ;;
3422esac
3423AC_MSG_RESULT([$dynamic_linker])
3424test "$dynamic_linker" = no && can_build_shared=no
3425
3426variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
3427if test "$GCC" = yes; then
3428 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
3429fi
3430
3431if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
3432 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
3433fi
3434if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
3435 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
3436fi
3437
3438_LT_DECL([], [variables_saved_for_relink], [1],
3439 [Variables whose values should be saved in libtool wrapper scripts and
3440 restored at link time])
3441_LT_DECL([], [need_lib_prefix], [0],
3442 [Do we need the "lib" prefix for modules?])
3443_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
3444_LT_DECL([], [version_type], [0], [Library versioning type])
3445_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
3446_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
3447_LT_DECL([], [shlibpath_overrides_runpath], [0],
3448 [Is shlibpath searched before the hard-coded library search path?])
3449_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
3450_LT_DECL([], [library_names_spec], [1],
3451 [[List of archive names. First name is the real one, the rest are links.
3452 The last name is the one that the linker finds with -lNAME]])
3453_LT_DECL([], [soname_spec], [1],
3454 [[The coded name of the library, if different from the real name]])
3455_LT_DECL([], [install_override_mode], [1],
3456 [Permission mode override for installation of shared libraries])
3457_LT_DECL([], [postinstall_cmds], [2],
3458 [Command to use after installation of a shared archive])
3459_LT_DECL([], [postuninstall_cmds], [2],
3460 [Command to use after uninstallation of a shared archive])
3461_LT_DECL([], [finish_cmds], [2],
3462 [Commands used to finish a libtool library installation in a directory])
3463_LT_DECL([], [finish_eval], [1],
3464 [[As "finish_cmds", except a single script fragment to be evaled but
3465 not shown]])
3466_LT_DECL([], [hardcode_into_libs], [0],
3467 [Whether we should hardcode library paths into libraries])
3468_LT_DECL([], [sys_lib_search_path_spec], [2],
3469 [Compile-time system search path for libraries])
3470_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
3471 [Run-time system search path for libraries])
3472])# _LT_SYS_DYNAMIC_LINKER
3473
3474
3475# _LT_PATH_TOOL_PREFIX(TOOL)
3476# --------------------------
3477# find a file program which can recognize shared library
3478AC_DEFUN([_LT_PATH_TOOL_PREFIX],
3479[m4_require([_LT_DECL_EGREP])dnl
3480AC_MSG_CHECKING([for $1])
3481AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
3482[case $MAGIC_CMD in
3483[[\\/*] | ?:[\\/]*])
3484 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3485 ;;
3486*)
3487 lt_save_MAGIC_CMD="$MAGIC_CMD"
3488 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3489dnl $ac_dummy forces splitting on constant user-supplied paths.
3490dnl POSIX.2 word splitting is done only on the output of word expansions,
3491dnl not every word. This closes a longstanding sh security hole.
3492 ac_dummy="m4_if([$2], , $PATH, [$2])"
3493 for ac_dir in $ac_dummy; do
3494 IFS="$lt_save_ifs"
3495 test -z "$ac_dir" && ac_dir=.
3496 if test -f $ac_dir/$1; then
3497 lt_cv_path_MAGIC_CMD="$ac_dir/$1"
3498 if test -n "$file_magic_test_file"; then
3499 case $deplibs_check_method in
3500 "file_magic "*)
3501 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
3502 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3503 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3504 $EGREP "$file_magic_regex" > /dev/null; then
3505 :
3506 else
3507 cat <<_LT_EOF 1>&2
3508
3509*** Warning: the command libtool uses to detect shared libraries,
3510*** $file_magic_cmd, produces output that libtool cannot recognize.
3511*** The result is that libtool may fail to recognize shared libraries
3512*** as such. This will affect the creation of libtool libraries that
3513*** depend on shared libraries, but programs linked with such libtool
3514*** libraries will work regardless of this problem. Nevertheless, you
3515*** may want to report the problem to your system manager and/or to
3516*** bug-libtool@gnu.org
3517
3518_LT_EOF
3519 fi ;;
3520 esac
3521 fi
3522 break
3523 fi
3524 done
3525 IFS="$lt_save_ifs"
3526 MAGIC_CMD="$lt_save_MAGIC_CMD"
3527 ;;
3528esac])
3529MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3530if test -n "$MAGIC_CMD"; then
3531 AC_MSG_RESULT($MAGIC_CMD)
3532else
3533 AC_MSG_RESULT(no)
3534fi
3535_LT_DECL([], [MAGIC_CMD], [0],
3536 [Used to examine libraries when file_magic_cmd begins with "file"])dnl
3537])# _LT_PATH_TOOL_PREFIX
3538
3539# Old name:
3540AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
3541dnl aclocal-1.4 backwards compatibility:
3542dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
3543
3544
3545# _LT_PATH_MAGIC
3546# --------------
3547# find a file program which can recognize a shared library
3548m4_defun([_LT_PATH_MAGIC],
3549[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3550if test -z "$lt_cv_path_MAGIC_CMD"; then
3551 if test -n "$ac_tool_prefix"; then
3552 _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3553 else
3554 MAGIC_CMD=:
3555 fi
3556fi
3557])# _LT_PATH_MAGIC
3558
3559
3560# LT_PATH_LD
3561# ----------
3562# find the pathname to the GNU or non-GNU linker
3563AC_DEFUN([LT_PATH_LD],
3564[AC_REQUIRE([AC_PROG_CC])dnl
3565AC_REQUIRE([AC_CANONICAL_HOST])dnl
3566AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3567m4_require([_LT_DECL_SED])dnl
3568m4_require([_LT_DECL_EGREP])dnl
3569m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
3570
3571AC_ARG_WITH([gnu-ld],
3572 [AS_HELP_STRING([--with-gnu-ld],
3573 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3574 [test "$withval" = no || with_gnu_ld=yes],
3575 [with_gnu_ld=no])dnl
3576
3577ac_prog=ld
3578if test "$GCC" = yes; then
3579 # Check if gcc -print-prog-name=ld gives a path.
3580 AC_MSG_CHECKING([for ld used by $CC])
3581 case $host in
3582 *-*-mingw*)
3583 # gcc leaves a trailing carriage return which upsets mingw
3584 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3585 *)
3586 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3587 esac
3588 case $ac_prog in
3589 # Accept absolute paths.
3590 [[\\/]]* | ?:[[\\/]]*)
3591 re_direlt='/[[^/]][[^/]]*/\.\./'
3592 # Canonicalize the pathname of ld
3593 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3594 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3595 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3596 done
3597 test -z "$LD" && LD="$ac_prog"
3598 ;;
3599 "")
3600 # If it fails, then pretend we aren't using GCC.
3601 ac_prog=ld
3602 ;;
3603 *)
3604 # If it is relative, then search for the first ld in PATH.
3605 with_gnu_ld=unknown
3606 ;;
3607 esac
3608elif test "$with_gnu_ld" = yes; then
3609 AC_MSG_CHECKING([for GNU ld])
3610else
3611 AC_MSG_CHECKING([for non-GNU ld])
3612fi
3613AC_CACHE_VAL(lt_cv_path_LD,
3614[if test -z "$LD"; then
3615 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3616 for ac_dir in $PATH; do
3617 IFS="$lt_save_ifs"
3618 test -z "$ac_dir" && ac_dir=.
3619 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3620 lt_cv_path_LD="$ac_dir/$ac_prog"
3621 # Check to see if the program is GNU ld. I'd rather use --version,
3622 # but apparently some variants of GNU ld only accept -v.
3623 # Break only if it was the GNU/non-GNU ld that we prefer.
3624 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3625 *GNU* | *'with BFD'*)
3626 test "$with_gnu_ld" != no && break
3627 ;;
3628 *)
3629 test "$with_gnu_ld" != yes && break
3630 ;;
3631 esac
3632 fi
3633 done
3634 IFS="$lt_save_ifs"
3635else
3636 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3637fi])
3638LD="$lt_cv_path_LD"
3639if test -n "$LD"; then
3640 AC_MSG_RESULT($LD)
3641else
3642 AC_MSG_RESULT(no)
3643fi
3644test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3645_LT_PATH_LD_GNU
3646AC_SUBST([LD])
3647
3648_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
3649])# LT_PATH_LD
The diff has been truncated for viewing.

Subscribers

People subscribed via source and target branches