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