From 983af412dbea72586031b2079931cc64bb7e70b5 Mon Sep 17 00:00:00 2001 From: Marco Fargetta Date: Fri, 17 Nov 2023 13:38:10 +0100 Subject: [PATCH] Drop legacy code C and perl code in this repository is not actively maintained/built/used. It is not part of CI tests and the build scripts are not tested on modern version of supported OSes. The code is already present in the archived repository (https://github.com/dogtagpki/ldap-sdk-legacy) so it could be removed from here to make more clear there is not active work on that. --- README-csdk-source-tgz | 23 - README-ldapjdk-source-tgz | 19 - c-sdk/Makefile.in | 62 - c-sdk/README.configure | 55 - c-sdk/README.rpm | 86 - c-sdk/aclocal.m4 | 43 - c-sdk/build.mk | 572 - c-sdk/build_mozldap_rpm | 188 - c-sdk/component_versions.mk | 83 - c-sdk/config/AIX.mk | 179 - c-sdk/config/BSD_OS.mk | 95 - c-sdk/config/BeOS.mk | 142 - c-sdk/config/DGUX.mk | 67 - c-sdk/config/FreeBSD.mk | 86 - c-sdk/config/HP-UX.mk | 256 - c-sdk/config/IRIX.mk | 162 - c-sdk/config/Linux.mk | 137 - c-sdk/config/Makefile.client | 134 - c-sdk/config/Makefile.in | 143 - c-sdk/config/NCR.mk | 101 - c-sdk/config/NEC.mk | 65 - c-sdk/config/NEWS-OS.mk | 78 - c-sdk/config/NEXTSTEP.mk | 72 - c-sdk/config/NTO.mk | 94 - c-sdk/config/NetBSD.mk | 91 - c-sdk/config/OS2.mk | 117 - c-sdk/config/OSF1.mk | 135 - c-sdk/config/OpenBSD.mk | 75 - c-sdk/config/OpenVMS.mk | 54 - c-sdk/config/QNX.mk | 61 - c-sdk/config/README | 46 - c-sdk/config/Rhapsody.mk | 87 - c-sdk/config/SCOOS.mk | 67 - c-sdk/config/SINIX.mk | 112 - c-sdk/config/SunOS.mk | 46 - c-sdk/config/SunOS4.mk | 72 - c-sdk/config/SunOS5.8_i86pc.mk | 53 - c-sdk/config/SunOS5.9.mk | 49 - c-sdk/config/SunOS5.9_i86pc.mk | 53 - c-sdk/config/SunOS5.mk | 221 - c-sdk/config/UNIX.mk | 113 - c-sdk/config/UNIXWARE.mk | 75 - c-sdk/config/WIN32.mk | 176 - c-sdk/config/WIN95.mk | 42 - c-sdk/config/WINNT.mk | 42 - c-sdk/config/arch.mk | 302 - c-sdk/config/autoconf.mk.in | 162 - c-sdk/config/autoconf/acwinpaths.m4 | 65 - c-sdk/config/autoconf/config.guess | 1481 -- c-sdk/config/autoconf/config.sub | 1592 -- c-sdk/config/autoconf/install-sh | 119 - c-sdk/config/autoconf/nspr.m4 | 180 - c-sdk/config/autoconf/nss.m4 | 179 - c-sdk/config/autoconf/sasl.m4 | 147 - c-sdk/config/autoconf/svrcore.m4 | 128 - c-sdk/config/config.mk | 226 - c-sdk/config/cygwin-wrapper | 85 - c-sdk/config/libc_r.h | 158 - c-sdk/config/module.df | 44 - c-sdk/config/nfspwd | 50 - c-sdk/config/nfspwd.pl | 50 - c-sdk/config/now.c | 114 - c-sdk/config/nsinstall.c | 597 - c-sdk/config/pathsub.h | 78 - c-sdk/config/prdepend.h | 45 - c-sdk/config/prmkdir.bat | 38 - c-sdk/config/rules.mk | 471 - c-sdk/config/win16.mk | 119 - c-sdk/configure | 7273 ------ c-sdk/configure.in | 2667 -- c-sdk/gmakefile.win | 97 - c-sdk/ldap/Makefile.client | 78 - c-sdk/ldap/Makefile.in | 61 - c-sdk/ldap/build/compver.sh | 98 - c-sdk/ldap/build/genexports.pl | 272 - c-sdk/ldap/build/my_overrides.mk | 40 - c-sdk/ldap/build/nsftp.sh | 76 - c-sdk/ldap/build/replace.pl | 60 - c-sdk/ldap/build/replace.pm | 77 - c-sdk/ldap/clients/tools/Makefile.client | 329 - c-sdk/ldap/clients/tools/Makefile.in | 278 - c-sdk/ldap/clients/tools/Options.txt | 96 - c-sdk/ldap/clients/tools/argpin.c | 164 - c-sdk/ldap/clients/tools/argpin.h | 51 - c-sdk/ldap/clients/tools/common.c | 2773 --- c-sdk/ldap/clients/tools/convutf8.cpp | 321 - .../tools/examples-from-ldif-spec.ldif | 218 - c-sdk/ldap/clients/tools/fileurl.c | 508 - c-sdk/ldap/clients/tools/fileurl.h | 99 - c-sdk/ldap/clients/tools/ldapcmp.c | 623 - c-sdk/ldap/clients/tools/ldapcompare.c | 238 - c-sdk/ldap/clients/tools/ldapdelete.c | 162 - c-sdk/ldap/clients/tools/ldapmodify.c | 1049 - c-sdk/ldap/clients/tools/ldapmodrdn.c | 185 - c-sdk/ldap/clients/tools/ldappasswd.c | 265 - c-sdk/ldap/clients/tools/ldapsearch.c | 1306 - c-sdk/ldap/clients/tools/ldaptool-sasl.c | 278 - c-sdk/ldap/clients/tools/ldaptool-sasl.h | 46 - c-sdk/ldap/clients/tools/ldaptool.h | 209 - c-sdk/ldap/clients/tools/ntuserpin.c | 130 - c-sdk/ldap/clients/tools/ntuserpin.h | 58 - c-sdk/ldap/docs/ldap-c-api-internet-draft.txt | 4647 ---- c-sdk/ldap/examples/README | 169 - c-sdk/ldap/examples/add.c | 190 - c-sdk/ldap/examples/asearch.c | 166 - c-sdk/ldap/examples/authzid.c | 151 - c-sdk/ldap/examples/compare.c | 99 - c-sdk/ldap/examples/crtfilt.c | 185 - c-sdk/ldap/examples/csearch.c | 151 - c-sdk/ldap/examples/del.c | 127 - c-sdk/ldap/examples/effright.c | 142 - c-sdk/ldap/examples/examples.h | 122 - c-sdk/ldap/examples/getattrs.c | 105 - c-sdk/ldap/examples/getfilt.c | 139 - .../examples/macintosh/asearch (2i).68k.u | Bin 15329 -> 0 bytes .../examples/macintosh/asearch (4i).68k.u | Bin 15329 -> 0 bytes c-sdk/ldap/examples/macintosh/asearch PPC.u | Bin 32115 -> 0 bytes c-sdk/ldap/examples/modattrs.c | 96 - c-sdk/ldap/examples/modrdn.c | 182 - c-sdk/ldap/examples/nsprio.c | 183 - c-sdk/ldap/examples/nsprsasl.c | 156 - c-sdk/ldap/examples/nsprsaslsearch.c | 226 - c-sdk/ldap/examples/passwordpolicy.c | 157 - c-sdk/ldap/examples/ppolicy.c | 225 - c-sdk/ldap/examples/psearch.c | 228 - c-sdk/ldap/examples/pwdextop.c | 101 - c-sdk/ldap/examples/rdentry.c | 97 - c-sdk/ldap/examples/realattr.c | 144 - c-sdk/ldap/examples/sasl.c | 155 - c-sdk/ldap/examples/saslsearch.c | 225 - c-sdk/ldap/examples/search.c | 102 - c-sdk/ldap/examples/srvrsort.c | 179 - c-sdk/ldap/examples/ssearch.c | 136 - c-sdk/ldap/examples/ssnoauth.c | 123 - c-sdk/ldap/examples/starttls.c | 107 - c-sdk/ldap/examples/userstatus.c | 168 - c-sdk/ldap/examples/virtattr.c | 144 - c-sdk/ldap/examples/whoami.c | 86 - c-sdk/ldap/examples/win32.mak | 179 - .../ldap/examples/windows/winldap/ConnDlg.cpp | 82 - c-sdk/ldap/examples/windows/winldap/ConnDlg.h | 72 - .../ldap/examples/windows/winldap/LdapDoc.cpp | 112 - c-sdk/ldap/examples/windows/winldap/LdapDoc.h | 78 - .../examples/windows/winldap/LdapView.cpp | 226 - .../ldap/examples/windows/winldap/LdapView.h | 96 - .../ldap/examples/windows/winldap/MainFrm.cpp | 121 - c-sdk/ldap/examples/windows/winldap/MainFrm.h | 79 - .../ldap/examples/windows/winldap/PropDlg.cpp | 114 - c-sdk/ldap/examples/windows/winldap/PropDlg.h | 81 - .../ldap/examples/windows/winldap/Resource.h | 68 - .../ldap/examples/windows/winldap/SrchDlg.cpp | 125 - c-sdk/ldap/examples/windows/winldap/SrchDlg.h | 83 - .../ldap/examples/windows/winldap/StdAfx.cpp | 42 - c-sdk/ldap/examples/windows/winldap/StdAfx.h | 54 - .../examples/windows/winldap/res/LdapDoc.ico | Bin 1078 -> 0 bytes .../examples/windows/winldap/res/Toolbar.bmp | Bin 1078 -> 0 bytes .../examples/windows/winldap/res/winldap.ico | Bin 1078 -> 0 bytes .../examples/windows/winldap/res/winldap.rc2 | 49 - .../ldap/examples/windows/winldap/winldap.cpp | 335 - c-sdk/ldap/examples/windows/winldap/winldap.h | 97 - .../ldap/examples/windows/winldap/winldap.mak | 441 - .../ldap/examples/windows/winldap/winldap.rc | 442 - c-sdk/ldap/examples/xmplflt.conf | 81 - c-sdk/ldap/include/MANIFEST | 11 - c-sdk/ldap/include/Makefile.client | 115 - c-sdk/ldap/include/Makefile.in | 104 - c-sdk/ldap/include/disptmpl.h | 379 - c-sdk/ldap/include/iutil.h | 72 - c-sdk/ldap/include/lber.h | 339 - c-sdk/ldap/include/lcache.h | 94 - c-sdk/ldap/include/ldap-deprecated.h | 201 - c-sdk/ldap/include/ldap-extension.h | 853 - c-sdk/ldap/include/ldap-platform.h | 91 - c-sdk/ldap/include/ldap-standard-tmpl.h | 458 - c-sdk/ldap/include/ldap-to-be-deprecated.h | 193 - c-sdk/ldap/include/ldap.h | 62 - c-sdk/ldap/include/ldap_ssl.h | 254 - c-sdk/ldap/include/ldaplog.h | 106 - c-sdk/ldap/include/ldappr.h | 273 - c-sdk/ldap/include/ldaprot.h | 203 - c-sdk/ldap/include/ldif.h | 114 - c-sdk/ldap/include/portable.h | 468 - c-sdk/ldap/include/proto-ntutil.h | 99 - c-sdk/ldap/include/regex.h | 95 - c-sdk/ldap/include/srchpref.h | 154 - c-sdk/ldap/libraries/Makefile.client | 75 - c-sdk/ldap/libraries/Makefile.in | 55 - c-sdk/ldap/libraries/genMakefile.client | 169 - c-sdk/ldap/libraries/libiutil/Makefile.client | 119 - c-sdk/ldap/libraries/libiutil/Makefile.in | 110 - c-sdk/ldap/libraries/libiutil/README | 40 - c-sdk/ldap/libraries/libiutil/iutil-lock.c | 103 - c-sdk/ldap/libraries/liblber/Makefile.client | 116 - c-sdk/ldap/libraries/liblber/Makefile.in | 104 - c-sdk/ldap/libraries/liblber/bprint.c | 102 - c-sdk/ldap/libraries/liblber/decode.c | 833 - c-sdk/ldap/libraries/liblber/dtest.c | 113 - c-sdk/ldap/libraries/liblber/encode.c | 699 - c-sdk/ldap/libraries/liblber/etest.c | 193 - c-sdk/ldap/libraries/liblber/idtest.c | 100 - c-sdk/ldap/libraries/liblber/io.c | 1757 -- c-sdk/ldap/libraries/liblber/lber-int.h | 305 - c-sdk/ldap/libraries/libldap.ex | 344 - c-sdk/ldap/libraries/libldap/Makefile.client | 282 - c-sdk/ldap/libraries/libldap/Makefile.in | 375 - c-sdk/ldap/libraries/libldap/abandon.c | 303 - c-sdk/ldap/libraries/libldap/add.c | 225 - c-sdk/ldap/libraries/libldap/authzidctrl.c | 157 - c-sdk/ldap/libraries/libldap/bind.c | 170 - c-sdk/ldap/libraries/libldap/cache.c | 145 - c-sdk/ldap/libraries/libldap/charray.c | 248 - c-sdk/ldap/libraries/libldap/charset.c | 1845 -- c-sdk/ldap/libraries/libldap/cldap.c | 585 - c-sdk/ldap/libraries/libldap/compare.c | 194 - c-sdk/ldap/libraries/libldap/compat.c | 108 - c-sdk/ldap/libraries/libldap/control.c | 559 - c-sdk/ldap/libraries/libldap/countvalues.c | 67 - c-sdk/ldap/libraries/libldap/delete.c | 169 - c-sdk/ldap/libraries/libldap/disptmpl.c | 770 - c-sdk/ldap/libraries/libldap/dllmain.c | 178 - c-sdk/ldap/libraries/libldap/dsparse.c | 227 - c-sdk/ldap/libraries/libldap/error.c | 490 - c-sdk/ldap/libraries/libldap/extendop.c | 275 - c-sdk/ldap/libraries/libldap/fdsetsize.txt | 106 - c-sdk/ldap/libraries/libldap/free.c | 156 - c-sdk/ldap/libraries/libldap/freevalues.c | 73 - c-sdk/ldap/libraries/libldap/friendly.c | 151 - c-sdk/ldap/libraries/libldap/getattr.c | 150 - c-sdk/ldap/libraries/libldap/getdn.c | 371 - c-sdk/ldap/libraries/libldap/getdxbyname.c | 279 - .../libldap/geteffectiverightsctrl.c | 109 - c-sdk/ldap/libraries/libldap/getentry.c | 141 - c-sdk/ldap/libraries/libldap/getfilter.c | 557 - c-sdk/ldap/libraries/libldap/getoption.c | 475 - c-sdk/ldap/libraries/libldap/getvalues.c | 480 - c-sdk/ldap/libraries/libldap/ldap-int.h | 888 - c-sdk/ldap/libraries/libldap/ldapfilter.conf | 142 - c-sdk/ldap/libraries/libldap/ldapfriendly | 278 - .../libraries/libldap/ldapsearchprefs.conf | 193 - .../ldap/libraries/libldap/ldaptemplates.conf | 714 - c-sdk/ldap/libraries/libldap/memcache.c | 2244 -- c-sdk/ldap/libraries/libldap/message.c | 105 - c-sdk/ldap/libraries/libldap/modify.c | 226 - c-sdk/ldap/libraries/libldap/mozock.c | 714 - c-sdk/ldap/libraries/libldap/nsprthreadtest.c | 621 - c-sdk/ldap/libraries/libldap/open.c | 912 - c-sdk/ldap/libraries/libldap/os-ip.c | 1862 -- c-sdk/ldap/libraries/libldap/proxyauthctrl.c | 164 - c-sdk/ldap/libraries/libldap/psearch.c | 190 - c-sdk/ldap/libraries/libldap/pthreadtest.c | 1028 - c-sdk/ldap/libraries/libldap/pwmodext.c | 265 - c-sdk/ldap/libraries/libldap/pwpctrl.c | 315 - c-sdk/ldap/libraries/libldap/referral.c | 177 - c-sdk/ldap/libraries/libldap/regex.c | 920 - c-sdk/ldap/libraries/libldap/rename.c | 265 - c-sdk/ldap/libraries/libldap/request.c | 1659 -- c-sdk/ldap/libraries/libldap/reslist.c | 86 - c-sdk/ldap/libraries/libldap/result.c | 1473 -- c-sdk/ldap/libraries/libldap/saslbind.c | 877 - c-sdk/ldap/libraries/libldap/saslio.c | 635 - c-sdk/ldap/libraries/libldap/sbind.c | 214 - c-sdk/ldap/libraries/libldap/search.c | 1022 - c-sdk/ldap/libraries/libldap/setoption.c | 411 - c-sdk/ldap/libraries/libldap/sort.c | 349 - c-sdk/ldap/libraries/libldap/sortctrl.c | 438 - c-sdk/ldap/libraries/libldap/srchpref.c | 434 - c-sdk/ldap/libraries/libldap/test.c | 1898 -- c-sdk/ldap/libraries/libldap/tmplout.c | 1144 - c-sdk/ldap/libraries/libldap/tmpltest.c | 319 - c-sdk/ldap/libraries/libldap/ufn.c | 563 - c-sdk/ldap/libraries/libldap/unbind.c | 248 - c-sdk/ldap/libraries/libldap/unescape.c | 81 - c-sdk/ldap/libraries/libldap/url.c | 527 - c-sdk/ldap/libraries/libldap/userstatusctrl.c | 228 - c-sdk/ldap/libraries/libldap/utf8.c | 282 - c-sdk/ldap/libraries/libldap/vlistctrl.c | 259 - c-sdk/ldap/libraries/libldap/whoami.c | 130 - c-sdk/ldap/libraries/libldap_ssl.ex | 56 - c-sdk/ldap/libraries/libldif.ex | 48 - c-sdk/ldap/libraries/libldif/Makefile.client | 111 - c-sdk/ldap/libraries/libldif/Makefile.in | 166 - c-sdk/ldap/libraries/libldif/line64.c | 612 - .../ldap/libraries/libprldap/Makefile.client | 208 - c-sdk/ldap/libraries/libprldap/Makefile.in | 250 - c-sdk/ldap/libraries/libprldap/ldappr-dns.c | 166 - c-sdk/ldap/libraries/libprldap/ldappr-error.c | 335 - c-sdk/ldap/libraries/libprldap/ldappr-int.h | 139 - c-sdk/ldap/libraries/libprldap/ldappr-io.c | 744 - .../ldap/libraries/libprldap/ldappr-public.c | 454 - .../ldap/libraries/libprldap/ldappr-threads.c | 643 - c-sdk/ldap/libraries/libprldap/libprldap.ex | 48 - .../ldap/libraries/libssldap/Makefile.client | 223 - c-sdk/ldap/libraries/libssldap/Makefile.in | 243 - c-sdk/ldap/libraries/libssldap/clientinit.c | 601 - c-sdk/ldap/libraries/libssldap/errormap.c | 204 - c-sdk/ldap/libraries/libssldap/ldapsinit.c | 1580 -- c-sdk/ldap/libraries/libssldap/prerrstrs.h | 169 - c-sdk/ldap/libraries/libssldap/secerrstrs.h | 427 - c-sdk/ldap/libraries/libssldap/sslerrstrs.h | 378 - c-sdk/ldap/libraries/libutil/Makefile.client | 112 - c-sdk/ldap/libraries/libutil/Makefile.in | 85 - c-sdk/ldap/libraries/libutil/getopt.c | 146 - c-sdk/ldap/libraries/macintosh/LDAPClient.exp | 310 - c-sdk/ldap/libraries/macintosh/LDAPClient.mcp | Bin 100197 -> 0 bytes c-sdk/ldap/libraries/macintosh/LDAPClient.xml | 7474 ------ .../libraries/macintosh/LDAPClientDebugDefs.h | 65 - .../ldap/libraries/macintosh/LDAPClientDefs.h | 63 - .../ldap/libraries/macintosh/LDAPPRClient.exp | 49 - .../libraries/macintosh/LDAPSSLClient.exp | 57 - c-sdk/ldap/libraries/macintosh/getopt.c | 140 - .../ldap/libraries/macintosh/kerberos-macos.c | 113 - .../libraries/macintosh/ldap-macos-defs.h | 43 - c-sdk/ldap/libraries/macintosh/ldap-macos.h | 113 - c-sdk/ldap/libraries/macintosh/libldap-PPC.r | 46 - c-sdk/ldap/libraries/macintosh/macos-ip.c | 503 - c-sdk/ldap/libraries/macintosh/strings.c | 133 - .../libraries/macintosh/tcp-univhdrs/tcp.c | 675 - .../libraries/macintosh/tcp-univhdrs/tcp.h | 88 - c-sdk/ldap/libraries/msdos/winsock/ldap32.def | 320 - c-sdk/ldap/libraries/msdos/winsock/ldap32.tdf | 46 - .../ldap/libraries/msdos/winsock/ldapssl.def | 62 - .../ldap/libraries/msdos/winsock/ldapssl.tdf | 40 - .../ldap/libraries/msdos/winsock/libldap.def | 323 - .../ldap/libraries/msdos/winsock/libldap.tdf | 49 - c-sdk/ldap/libraries/msdos/winsock/mozock.c | 685 - c-sdk/ldap/libraries/msdos/winsock/nsldap.def | 323 - c-sdk/ldap/libraries/msdos/winsock/nsldap.rc | 92 - c-sdk/ldap/libraries/msdos/winsock/nsldap.tdf | 49 - .../ldap/libraries/msdos/winsock/nsldap32.def | 357 - .../ldap/libraries/msdos/winsock/nsldap32.tdf | 46 - .../libraries/msdos/winsock/nsldappr-incl.def | 55 - .../libraries/msdos/winsock/nsldappr-incl.tdf | 40 - .../libraries/msdos/winsock/nsldappr32.def | 63 - .../libraries/msdos/winsock/nsldappr32.tdf | 46 - .../libraries/msdos/winsock/nsldapssl32.def | 71 - .../libraries/msdos/winsock/nsldapssl32.tdf | 46 - .../ldap/libraries/msdos/winsock/nsldif32.def | 63 - .../ldap/libraries/msdos/winsock/nsldif32.tdf | 46 - .../libraries/msdos/winsock/nssldap32.def | 68 - .../libraries/msdos/winsock/nssldap32.tdf | 46 - c-sdk/mozldap.pc.in | 16 - c-sdk/mozldap.spec | 237 - c-sdk/package.mk | 244 - docs/ldapcsdk/00-Programmers-Guide.book | 114 - docs/ldapcsdk/abstract.sgm | 20 - docs/ldapcsdk/best-practices.sgm | 378 - docs/ldapcsdk/choose-api.sgm | 98 - docs/ldapcsdk/csdk-api.sgm | 1465 -- docs/ldapcsdk/csdk-client.sgm | 768 - docs/ldapcsdk/csdk-compare.sgm | 438 - docs/ldapcsdk/csdk-controls.sgm | 2028 -- docs/ldapcsdk/csdk-datatypes.sgm | 3580 --- docs/ldapcsdk/csdk-extendop.sgm | 389 - docs/ldapcsdk/csdk-filter-conf.sgm | 375 - docs/ldapcsdk/csdk-functions.sgm | 20727 ---------------- docs/ldapcsdk/csdk-ldap-urls.sgm | 312 - docs/ldapcsdk/csdk-multithread.sgm | 807 - docs/ldapcsdk/csdk-quickstart.sgm | 171 - docs/ldapcsdk/csdk-resultcodes.sgm | 1480 -- docs/ldapcsdk/csdk-sasl.sgm | 222 - docs/ldapcsdk/csdk-search.sgm | 1738 -- docs/ldapcsdk/csdk-server-info.sgm | 374 - docs/ldapcsdk/csdk-ssl.sgm | 382 - docs/ldapcsdk/csdk-understanding.sgm | 970 - docs/ldapcsdk/csdk-whatsnew.sgm | 178 - docs/ldapcsdk/csdk-write.sgm | 2118 -- docs/ldapcsdk/figures/hierovrw.eps | Bin 378039 -> 0 bytes docs/ldapcsdk/legal.sgm | 113 - docs/ldapcsdk/license.txt | 226 - docs/ldapcsdk/preface.sgm | 375 - docs/ldapcsdk/understanding-ldap.sgm | 274 - ds-plugins/README | 7 - ds-plugins/lulu.c | 267 - ds-plugins/lulu.h | 120 - ds-plugins/rex_filt.c | 300 - ds-plugins/url_filt.c | 426 - ldapsdk.mak | 211 - ldapsdk.mk | 87 - perldap/API.pm | 2857 --- perldap/API.xs | 1813 -- perldap/CREDITS | 48 - perldap/ChangeLog | 611 - perldap/Conn.pm | 1268 - perldap/Entry.pm | 1224 - perldap/INSTALL | 98 - perldap/LDIF.pm | 1317 - perldap/MANIFEST | 39 - perldap/MPL-1.1.txt | 567 - perldap/Makefile.PL | 218 - perldap/README | 131 - perldap/RELEASE | 79 - perldap/Utils.pm | 404 - perldap/constant.h | 973 - perldap/examples/ChangeLog | 35 - perldap/examples/changes2ldif.pl | 135 - perldap/examples/ldappasswd.pl | 121 - perldap/examples/lfinger.pl | 145 - perldap/examples/modattr.pl | 348 - perldap/examples/monitor.pl | 84 - perldap/examples/psoftsync.pl | 632 - perldap/examples/qsearch.pl | 115 - perldap/examples/rand_mods.pl | 156 - perldap/examples/rename.pl | 115 - perldap/examples/rmentry.pl | 112 - perldap/examples/tabdump.pl | 99 - perldap/perl-Mozilla-LDAP.spec | 70 - perldap/t/ChangeLog | 14 - perldap/t/api.t | 4 - perldap/t/conn.pl | Bin 9246 -> 0 bytes perldap/t/conn.t | 4 - perldap/t/entry.pl | 167 - perldap/t/entry.t | 4 - perldap/t/ldif.t | 4 - perldap/t/utils.t | 4 - perldap/test_api/api.pl | 297 - perldap/test_api/search.pl | 148 - perldap/test_api/write.pl | 127 - perldap/typemap | 87 - .../sun-ldapcsdk-dev.psf.template | 112 - .../sun-ldapcsdk-libs.psf.template | 75 - .../sun-ldapcsdk-tools.psf.template | 84 - pkg/solaris/Makefile.com | 64 - pkg/solaris/Makefile.ldkd | 88 - pkg/solaris/Makefile.ldku | 97 - pkg/solaris/Makefile.targ | 89 - pkg/solaris/SUNWldapcsdk-dev/pkgdepend | 60 - pkg/solaris/SUNWldapcsdk-dev/pkginfo.tmpl | 64 - pkg/solaris/SUNWldapcsdk-dev/prototype_com | 107 - pkg/solaris/SUNWldapcsdk-dev/prototype_i386 | 62 - pkg/solaris/SUNWldapcsdk-dev/prototype_i86pc | 56 - pkg/solaris/SUNWldapcsdk-dev/prototype_sparc | 62 - pkg/solaris/SUNWldapcsdk-libs/pkgdepend | 56 - pkg/solaris/SUNWldapcsdk-libs/pkginfo.tmpl | 64 - pkg/solaris/SUNWldapcsdk-libs/prototype_com | 60 - pkg/solaris/SUNWldapcsdk-libs/prototype_i386 | 68 - pkg/solaris/SUNWldapcsdk-libs/prototype_i86pc | 56 - pkg/solaris/SUNWldapcsdk-libs/prototype_sparc | 68 - pkg/solaris/SUNWldapcsdk-tools/pkgdepend | 58 - pkg/solaris/SUNWldapcsdk-tools/pkginfo.tmpl | 64 - pkg/solaris/SUNWldapcsdk-tools/prototype_com | 63 - pkg/solaris/SUNWldapcsdk-tools/prototype_i386 | 71 - .../SUNWldapcsdk-tools/prototype_i86pc | 56 - .../SUNWldapcsdk-tools/prototype_sparc | 71 - pkg/solaris/awk_pkginfo-i386 | 57 - pkg/solaris/awk_pkginfo-sparc | 57 - pkg/solaris/bld_awk_pkginfo | 146 - pkg/solaris/bld_awk_pkginfo.ksh | 146 - pkg/solaris/common_files/pkgdepend | 55 - pkg/solaris/common_files/pkgdepend_5_6 | 54 - pkg/solaris/common_files/pkgdepend_64bit | 55 - tools/README | 1 - tools/cvs-tools/cvscleanlog | 56 - tools/cvs-tools/cvsco | 114 - tools/cvs-tools/cvsdl | 146 - tools/cvs-tools/cvslb | 220 - tools/ldap/ldaperr2string/ldaperr2string.c | 54 - tools/ldap/test-c-sdk | 598 - tools/ldap/unfoldldif/unfoldldif.c | 69 - tools/ldap/utc | 279 - tools/misc/alarm | 160 - tools/misc/connect.pl | 75 - tools/misc/csh-aliases | 123 - tools/misc/csh-env | 61 - tools/misc/datemsk | 10 - tools/misc/demangle/demangle.c | 82 - tools/misc/getdate.c | 80 - tools/misc/numberlines.c | 87 - tools/misc/physmem.c | 61 - tools/misc/stat.c | 93 - tools/misc/winkill/winkill.c | 108 - 470 files changed, 172496 deletions(-) delete mode 100644 README-csdk-source-tgz delete mode 100644 README-ldapjdk-source-tgz delete mode 100644 c-sdk/Makefile.in delete mode 100644 c-sdk/README.configure delete mode 100644 c-sdk/README.rpm delete mode 100644 c-sdk/aclocal.m4 delete mode 100644 c-sdk/build.mk delete mode 100755 c-sdk/build_mozldap_rpm delete mode 100644 c-sdk/component_versions.mk delete mode 100644 c-sdk/config/AIX.mk delete mode 100644 c-sdk/config/BSD_OS.mk delete mode 100644 c-sdk/config/BeOS.mk delete mode 100644 c-sdk/config/DGUX.mk delete mode 100644 c-sdk/config/FreeBSD.mk delete mode 100644 c-sdk/config/HP-UX.mk delete mode 100644 c-sdk/config/IRIX.mk delete mode 100644 c-sdk/config/Linux.mk delete mode 100644 c-sdk/config/Makefile.client delete mode 100644 c-sdk/config/Makefile.in delete mode 100644 c-sdk/config/NCR.mk delete mode 100644 c-sdk/config/NEC.mk delete mode 100644 c-sdk/config/NEWS-OS.mk delete mode 100644 c-sdk/config/NEXTSTEP.mk delete mode 100644 c-sdk/config/NTO.mk delete mode 100644 c-sdk/config/NetBSD.mk delete mode 100644 c-sdk/config/OS2.mk delete mode 100644 c-sdk/config/OSF1.mk delete mode 100644 c-sdk/config/OpenBSD.mk delete mode 100644 c-sdk/config/OpenVMS.mk delete mode 100644 c-sdk/config/QNX.mk delete mode 100644 c-sdk/config/README delete mode 100644 c-sdk/config/Rhapsody.mk delete mode 100644 c-sdk/config/SCOOS.mk delete mode 100644 c-sdk/config/SINIX.mk delete mode 100644 c-sdk/config/SunOS.mk delete mode 100644 c-sdk/config/SunOS4.mk delete mode 100644 c-sdk/config/SunOS5.8_i86pc.mk delete mode 100755 c-sdk/config/SunOS5.9.mk delete mode 100755 c-sdk/config/SunOS5.9_i86pc.mk delete mode 100644 c-sdk/config/SunOS5.mk delete mode 100644 c-sdk/config/UNIX.mk delete mode 100644 c-sdk/config/UNIXWARE.mk delete mode 100644 c-sdk/config/WIN32.mk delete mode 100644 c-sdk/config/WIN95.mk delete mode 100644 c-sdk/config/WINNT.mk delete mode 100644 c-sdk/config/arch.mk delete mode 100644 c-sdk/config/autoconf.mk.in delete mode 100644 c-sdk/config/autoconf/acwinpaths.m4 delete mode 100644 c-sdk/config/autoconf/config.guess delete mode 100644 c-sdk/config/autoconf/config.sub delete mode 100644 c-sdk/config/autoconf/install-sh delete mode 100644 c-sdk/config/autoconf/nspr.m4 delete mode 100644 c-sdk/config/autoconf/nss.m4 delete mode 100644 c-sdk/config/autoconf/sasl.m4 delete mode 100644 c-sdk/config/autoconf/svrcore.m4 delete mode 100644 c-sdk/config/config.mk delete mode 100755 c-sdk/config/cygwin-wrapper delete mode 100644 c-sdk/config/libc_r.h delete mode 100644 c-sdk/config/module.df delete mode 100755 c-sdk/config/nfspwd delete mode 100644 c-sdk/config/nfspwd.pl delete mode 100644 c-sdk/config/now.c delete mode 100644 c-sdk/config/nsinstall.c delete mode 100644 c-sdk/config/pathsub.h delete mode 100644 c-sdk/config/prdepend.h delete mode 100755 c-sdk/config/prmkdir.bat delete mode 100644 c-sdk/config/rules.mk delete mode 100644 c-sdk/config/win16.mk delete mode 100755 c-sdk/configure delete mode 100644 c-sdk/configure.in delete mode 100644 c-sdk/gmakefile.win delete mode 100644 c-sdk/ldap/Makefile.client delete mode 100644 c-sdk/ldap/Makefile.in delete mode 100755 c-sdk/ldap/build/compver.sh delete mode 100755 c-sdk/ldap/build/genexports.pl delete mode 100644 c-sdk/ldap/build/my_overrides.mk delete mode 100644 c-sdk/ldap/build/nsftp.sh delete mode 100755 c-sdk/ldap/build/replace.pl delete mode 100644 c-sdk/ldap/build/replace.pm delete mode 100644 c-sdk/ldap/clients/tools/Makefile.client delete mode 100644 c-sdk/ldap/clients/tools/Makefile.in delete mode 100644 c-sdk/ldap/clients/tools/Options.txt delete mode 100644 c-sdk/ldap/clients/tools/argpin.c delete mode 100644 c-sdk/ldap/clients/tools/argpin.h delete mode 100644 c-sdk/ldap/clients/tools/common.c delete mode 100644 c-sdk/ldap/clients/tools/convutf8.cpp delete mode 100644 c-sdk/ldap/clients/tools/examples-from-ldif-spec.ldif delete mode 100644 c-sdk/ldap/clients/tools/fileurl.c delete mode 100644 c-sdk/ldap/clients/tools/fileurl.h delete mode 100644 c-sdk/ldap/clients/tools/ldapcmp.c delete mode 100644 c-sdk/ldap/clients/tools/ldapcompare.c delete mode 100644 c-sdk/ldap/clients/tools/ldapdelete.c delete mode 100644 c-sdk/ldap/clients/tools/ldapmodify.c delete mode 100644 c-sdk/ldap/clients/tools/ldapmodrdn.c delete mode 100644 c-sdk/ldap/clients/tools/ldappasswd.c delete mode 100644 c-sdk/ldap/clients/tools/ldapsearch.c delete mode 100755 c-sdk/ldap/clients/tools/ldaptool-sasl.c delete mode 100644 c-sdk/ldap/clients/tools/ldaptool-sasl.h delete mode 100644 c-sdk/ldap/clients/tools/ldaptool.h delete mode 100644 c-sdk/ldap/clients/tools/ntuserpin.c delete mode 100644 c-sdk/ldap/clients/tools/ntuserpin.h delete mode 100755 c-sdk/ldap/docs/ldap-c-api-internet-draft.txt delete mode 100644 c-sdk/ldap/examples/README delete mode 100644 c-sdk/ldap/examples/add.c delete mode 100644 c-sdk/ldap/examples/asearch.c delete mode 100644 c-sdk/ldap/examples/authzid.c delete mode 100644 c-sdk/ldap/examples/compare.c delete mode 100644 c-sdk/ldap/examples/crtfilt.c delete mode 100644 c-sdk/ldap/examples/csearch.c delete mode 100644 c-sdk/ldap/examples/del.c delete mode 100644 c-sdk/ldap/examples/effright.c delete mode 100644 c-sdk/ldap/examples/examples.h delete mode 100644 c-sdk/ldap/examples/getattrs.c delete mode 100644 c-sdk/ldap/examples/getfilt.c delete mode 100755 c-sdk/ldap/examples/macintosh/asearch (2i).68k.u delete mode 100755 c-sdk/ldap/examples/macintosh/asearch (4i).68k.u delete mode 100755 c-sdk/ldap/examples/macintosh/asearch PPC.u delete mode 100644 c-sdk/ldap/examples/modattrs.c delete mode 100644 c-sdk/ldap/examples/modrdn.c delete mode 100644 c-sdk/ldap/examples/nsprio.c delete mode 100644 c-sdk/ldap/examples/nsprsasl.c delete mode 100644 c-sdk/ldap/examples/nsprsaslsearch.c delete mode 100644 c-sdk/ldap/examples/passwordpolicy.c delete mode 100644 c-sdk/ldap/examples/ppolicy.c delete mode 100644 c-sdk/ldap/examples/psearch.c delete mode 100644 c-sdk/ldap/examples/pwdextop.c delete mode 100644 c-sdk/ldap/examples/rdentry.c delete mode 100644 c-sdk/ldap/examples/realattr.c delete mode 100644 c-sdk/ldap/examples/sasl.c delete mode 100644 c-sdk/ldap/examples/saslsearch.c delete mode 100644 c-sdk/ldap/examples/search.c delete mode 100644 c-sdk/ldap/examples/srvrsort.c delete mode 100644 c-sdk/ldap/examples/ssearch.c delete mode 100644 c-sdk/ldap/examples/ssnoauth.c delete mode 100644 c-sdk/ldap/examples/starttls.c delete mode 100644 c-sdk/ldap/examples/userstatus.c delete mode 100644 c-sdk/ldap/examples/virtattr.c delete mode 100644 c-sdk/ldap/examples/whoami.c delete mode 100644 c-sdk/ldap/examples/win32.mak delete mode 100644 c-sdk/ldap/examples/windows/winldap/ConnDlg.cpp delete mode 100644 c-sdk/ldap/examples/windows/winldap/ConnDlg.h delete mode 100644 c-sdk/ldap/examples/windows/winldap/LdapDoc.cpp delete mode 100644 c-sdk/ldap/examples/windows/winldap/LdapDoc.h delete mode 100644 c-sdk/ldap/examples/windows/winldap/LdapView.cpp delete mode 100644 c-sdk/ldap/examples/windows/winldap/LdapView.h delete mode 100644 c-sdk/ldap/examples/windows/winldap/MainFrm.cpp delete mode 100644 c-sdk/ldap/examples/windows/winldap/MainFrm.h delete mode 100644 c-sdk/ldap/examples/windows/winldap/PropDlg.cpp delete mode 100644 c-sdk/ldap/examples/windows/winldap/PropDlg.h delete mode 100644 c-sdk/ldap/examples/windows/winldap/Resource.h delete mode 100644 c-sdk/ldap/examples/windows/winldap/SrchDlg.cpp delete mode 100644 c-sdk/ldap/examples/windows/winldap/SrchDlg.h delete mode 100644 c-sdk/ldap/examples/windows/winldap/StdAfx.cpp delete mode 100644 c-sdk/ldap/examples/windows/winldap/StdAfx.h delete mode 100644 c-sdk/ldap/examples/windows/winldap/res/LdapDoc.ico delete mode 100644 c-sdk/ldap/examples/windows/winldap/res/Toolbar.bmp delete mode 100644 c-sdk/ldap/examples/windows/winldap/res/winldap.ico delete mode 100644 c-sdk/ldap/examples/windows/winldap/res/winldap.rc2 delete mode 100644 c-sdk/ldap/examples/windows/winldap/winldap.cpp delete mode 100644 c-sdk/ldap/examples/windows/winldap/winldap.h delete mode 100644 c-sdk/ldap/examples/windows/winldap/winldap.mak delete mode 100644 c-sdk/ldap/examples/windows/winldap/winldap.rc delete mode 100644 c-sdk/ldap/examples/xmplflt.conf delete mode 100644 c-sdk/ldap/include/MANIFEST delete mode 100644 c-sdk/ldap/include/Makefile.client delete mode 100644 c-sdk/ldap/include/Makefile.in delete mode 100644 c-sdk/ldap/include/disptmpl.h delete mode 100644 c-sdk/ldap/include/iutil.h delete mode 100644 c-sdk/ldap/include/lber.h delete mode 100644 c-sdk/ldap/include/lcache.h delete mode 100644 c-sdk/ldap/include/ldap-deprecated.h delete mode 100644 c-sdk/ldap/include/ldap-extension.h delete mode 100644 c-sdk/ldap/include/ldap-platform.h delete mode 100644 c-sdk/ldap/include/ldap-standard-tmpl.h delete mode 100644 c-sdk/ldap/include/ldap-to-be-deprecated.h delete mode 100644 c-sdk/ldap/include/ldap.h delete mode 100755 c-sdk/ldap/include/ldap_ssl.h delete mode 100644 c-sdk/ldap/include/ldaplog.h delete mode 100755 c-sdk/ldap/include/ldappr.h delete mode 100644 c-sdk/ldap/include/ldaprot.h delete mode 100644 c-sdk/ldap/include/ldif.h delete mode 100644 c-sdk/ldap/include/portable.h delete mode 100755 c-sdk/ldap/include/proto-ntutil.h delete mode 100644 c-sdk/ldap/include/regex.h delete mode 100644 c-sdk/ldap/include/srchpref.h delete mode 100644 c-sdk/ldap/libraries/Makefile.client delete mode 100644 c-sdk/ldap/libraries/Makefile.in delete mode 100644 c-sdk/ldap/libraries/genMakefile.client delete mode 100644 c-sdk/ldap/libraries/libiutil/Makefile.client delete mode 100644 c-sdk/ldap/libraries/libiutil/Makefile.in delete mode 100644 c-sdk/ldap/libraries/libiutil/README delete mode 100644 c-sdk/ldap/libraries/libiutil/iutil-lock.c delete mode 100644 c-sdk/ldap/libraries/liblber/Makefile.client delete mode 100644 c-sdk/ldap/libraries/liblber/Makefile.in delete mode 100644 c-sdk/ldap/libraries/liblber/bprint.c delete mode 100644 c-sdk/ldap/libraries/liblber/decode.c delete mode 100644 c-sdk/ldap/libraries/liblber/dtest.c delete mode 100644 c-sdk/ldap/libraries/liblber/encode.c delete mode 100644 c-sdk/ldap/libraries/liblber/etest.c delete mode 100644 c-sdk/ldap/libraries/liblber/idtest.c delete mode 100644 c-sdk/ldap/libraries/liblber/io.c delete mode 100644 c-sdk/ldap/libraries/liblber/lber-int.h delete mode 100644 c-sdk/ldap/libraries/libldap.ex delete mode 100644 c-sdk/ldap/libraries/libldap/Makefile.client delete mode 100644 c-sdk/ldap/libraries/libldap/Makefile.in delete mode 100644 c-sdk/ldap/libraries/libldap/abandon.c delete mode 100644 c-sdk/ldap/libraries/libldap/add.c delete mode 100644 c-sdk/ldap/libraries/libldap/authzidctrl.c delete mode 100644 c-sdk/ldap/libraries/libldap/bind.c delete mode 100644 c-sdk/ldap/libraries/libldap/cache.c delete mode 100644 c-sdk/ldap/libraries/libldap/charray.c delete mode 100644 c-sdk/ldap/libraries/libldap/charset.c delete mode 100644 c-sdk/ldap/libraries/libldap/cldap.c delete mode 100644 c-sdk/ldap/libraries/libldap/compare.c delete mode 100644 c-sdk/ldap/libraries/libldap/compat.c delete mode 100644 c-sdk/ldap/libraries/libldap/control.c delete mode 100644 c-sdk/ldap/libraries/libldap/countvalues.c delete mode 100644 c-sdk/ldap/libraries/libldap/delete.c delete mode 100644 c-sdk/ldap/libraries/libldap/disptmpl.c delete mode 100644 c-sdk/ldap/libraries/libldap/dllmain.c delete mode 100644 c-sdk/ldap/libraries/libldap/dsparse.c delete mode 100644 c-sdk/ldap/libraries/libldap/error.c delete mode 100644 c-sdk/ldap/libraries/libldap/extendop.c delete mode 100644 c-sdk/ldap/libraries/libldap/fdsetsize.txt delete mode 100644 c-sdk/ldap/libraries/libldap/free.c delete mode 100644 c-sdk/ldap/libraries/libldap/freevalues.c delete mode 100644 c-sdk/ldap/libraries/libldap/friendly.c delete mode 100644 c-sdk/ldap/libraries/libldap/getattr.c delete mode 100644 c-sdk/ldap/libraries/libldap/getdn.c delete mode 100644 c-sdk/ldap/libraries/libldap/getdxbyname.c delete mode 100644 c-sdk/ldap/libraries/libldap/geteffectiverightsctrl.c delete mode 100644 c-sdk/ldap/libraries/libldap/getentry.c delete mode 100644 c-sdk/ldap/libraries/libldap/getfilter.c delete mode 100644 c-sdk/ldap/libraries/libldap/getoption.c delete mode 100644 c-sdk/ldap/libraries/libldap/getvalues.c delete mode 100644 c-sdk/ldap/libraries/libldap/ldap-int.h delete mode 100644 c-sdk/ldap/libraries/libldap/ldapfilter.conf delete mode 100644 c-sdk/ldap/libraries/libldap/ldapfriendly delete mode 100644 c-sdk/ldap/libraries/libldap/ldapsearchprefs.conf delete mode 100644 c-sdk/ldap/libraries/libldap/ldaptemplates.conf delete mode 100644 c-sdk/ldap/libraries/libldap/memcache.c delete mode 100644 c-sdk/ldap/libraries/libldap/message.c delete mode 100644 c-sdk/ldap/libraries/libldap/modify.c delete mode 100644 c-sdk/ldap/libraries/libldap/mozock.c delete mode 100644 c-sdk/ldap/libraries/libldap/nsprthreadtest.c delete mode 100644 c-sdk/ldap/libraries/libldap/open.c delete mode 100644 c-sdk/ldap/libraries/libldap/os-ip.c delete mode 100644 c-sdk/ldap/libraries/libldap/proxyauthctrl.c delete mode 100644 c-sdk/ldap/libraries/libldap/psearch.c delete mode 100644 c-sdk/ldap/libraries/libldap/pthreadtest.c delete mode 100644 c-sdk/ldap/libraries/libldap/pwmodext.c delete mode 100644 c-sdk/ldap/libraries/libldap/pwpctrl.c delete mode 100644 c-sdk/ldap/libraries/libldap/referral.c delete mode 100644 c-sdk/ldap/libraries/libldap/regex.c delete mode 100644 c-sdk/ldap/libraries/libldap/rename.c delete mode 100644 c-sdk/ldap/libraries/libldap/request.c delete mode 100644 c-sdk/ldap/libraries/libldap/reslist.c delete mode 100644 c-sdk/ldap/libraries/libldap/result.c delete mode 100644 c-sdk/ldap/libraries/libldap/saslbind.c delete mode 100644 c-sdk/ldap/libraries/libldap/saslio.c delete mode 100644 c-sdk/ldap/libraries/libldap/sbind.c delete mode 100644 c-sdk/ldap/libraries/libldap/search.c delete mode 100644 c-sdk/ldap/libraries/libldap/setoption.c delete mode 100644 c-sdk/ldap/libraries/libldap/sort.c delete mode 100644 c-sdk/ldap/libraries/libldap/sortctrl.c delete mode 100644 c-sdk/ldap/libraries/libldap/srchpref.c delete mode 100644 c-sdk/ldap/libraries/libldap/test.c delete mode 100644 c-sdk/ldap/libraries/libldap/tmplout.c delete mode 100644 c-sdk/ldap/libraries/libldap/tmpltest.c delete mode 100644 c-sdk/ldap/libraries/libldap/ufn.c delete mode 100644 c-sdk/ldap/libraries/libldap/unbind.c delete mode 100644 c-sdk/ldap/libraries/libldap/unescape.c delete mode 100644 c-sdk/ldap/libraries/libldap/url.c delete mode 100644 c-sdk/ldap/libraries/libldap/userstatusctrl.c delete mode 100644 c-sdk/ldap/libraries/libldap/utf8.c delete mode 100644 c-sdk/ldap/libraries/libldap/vlistctrl.c delete mode 100644 c-sdk/ldap/libraries/libldap/whoami.c delete mode 100644 c-sdk/ldap/libraries/libldap_ssl.ex delete mode 100644 c-sdk/ldap/libraries/libldif.ex delete mode 100644 c-sdk/ldap/libraries/libldif/Makefile.client delete mode 100644 c-sdk/ldap/libraries/libldif/Makefile.in delete mode 100755 c-sdk/ldap/libraries/libldif/line64.c delete mode 100644 c-sdk/ldap/libraries/libprldap/Makefile.client delete mode 100644 c-sdk/ldap/libraries/libprldap/Makefile.in delete mode 100644 c-sdk/ldap/libraries/libprldap/ldappr-dns.c delete mode 100644 c-sdk/ldap/libraries/libprldap/ldappr-error.c delete mode 100644 c-sdk/ldap/libraries/libprldap/ldappr-int.h delete mode 100644 c-sdk/ldap/libraries/libprldap/ldappr-io.c delete mode 100644 c-sdk/ldap/libraries/libprldap/ldappr-public.c delete mode 100644 c-sdk/ldap/libraries/libprldap/ldappr-threads.c delete mode 100644 c-sdk/ldap/libraries/libprldap/libprldap.ex delete mode 100644 c-sdk/ldap/libraries/libssldap/Makefile.client delete mode 100644 c-sdk/ldap/libraries/libssldap/Makefile.in delete mode 100644 c-sdk/ldap/libraries/libssldap/clientinit.c delete mode 100644 c-sdk/ldap/libraries/libssldap/errormap.c delete mode 100644 c-sdk/ldap/libraries/libssldap/ldapsinit.c delete mode 100644 c-sdk/ldap/libraries/libssldap/prerrstrs.h delete mode 100644 c-sdk/ldap/libraries/libssldap/secerrstrs.h delete mode 100644 c-sdk/ldap/libraries/libssldap/sslerrstrs.h delete mode 100644 c-sdk/ldap/libraries/libutil/Makefile.client delete mode 100644 c-sdk/ldap/libraries/libutil/Makefile.in delete mode 100755 c-sdk/ldap/libraries/libutil/getopt.c delete mode 100644 c-sdk/ldap/libraries/macintosh/LDAPClient.exp delete mode 100644 c-sdk/ldap/libraries/macintosh/LDAPClient.mcp delete mode 100644 c-sdk/ldap/libraries/macintosh/LDAPClient.xml delete mode 100644 c-sdk/ldap/libraries/macintosh/LDAPClientDebugDefs.h delete mode 100644 c-sdk/ldap/libraries/macintosh/LDAPClientDefs.h delete mode 100644 c-sdk/ldap/libraries/macintosh/LDAPPRClient.exp delete mode 100644 c-sdk/ldap/libraries/macintosh/LDAPSSLClient.exp delete mode 100644 c-sdk/ldap/libraries/macintosh/getopt.c delete mode 100644 c-sdk/ldap/libraries/macintosh/kerberos-macos.c delete mode 100644 c-sdk/ldap/libraries/macintosh/ldap-macos-defs.h delete mode 100644 c-sdk/ldap/libraries/macintosh/ldap-macos.h delete mode 100644 c-sdk/ldap/libraries/macintosh/libldap-PPC.r delete mode 100644 c-sdk/ldap/libraries/macintosh/macos-ip.c delete mode 100644 c-sdk/ldap/libraries/macintosh/strings.c delete mode 100644 c-sdk/ldap/libraries/macintosh/tcp-univhdrs/tcp.c delete mode 100644 c-sdk/ldap/libraries/macintosh/tcp-univhdrs/tcp.h delete mode 100644 c-sdk/ldap/libraries/msdos/winsock/ldap32.def delete mode 100644 c-sdk/ldap/libraries/msdos/winsock/ldap32.tdf delete mode 100644 c-sdk/ldap/libraries/msdos/winsock/ldapssl.def delete mode 100644 c-sdk/ldap/libraries/msdos/winsock/ldapssl.tdf delete mode 100644 c-sdk/ldap/libraries/msdos/winsock/libldap.def delete mode 100644 c-sdk/ldap/libraries/msdos/winsock/libldap.tdf delete mode 100644 c-sdk/ldap/libraries/msdos/winsock/mozock.c delete mode 100644 c-sdk/ldap/libraries/msdos/winsock/nsldap.def delete mode 100644 c-sdk/ldap/libraries/msdos/winsock/nsldap.rc delete mode 100644 c-sdk/ldap/libraries/msdos/winsock/nsldap.tdf delete mode 100644 c-sdk/ldap/libraries/msdos/winsock/nsldap32.def delete mode 100644 c-sdk/ldap/libraries/msdos/winsock/nsldap32.tdf delete mode 100644 c-sdk/ldap/libraries/msdos/winsock/nsldappr-incl.def delete mode 100755 c-sdk/ldap/libraries/msdos/winsock/nsldappr-incl.tdf delete mode 100644 c-sdk/ldap/libraries/msdos/winsock/nsldappr32.def delete mode 100755 c-sdk/ldap/libraries/msdos/winsock/nsldappr32.tdf delete mode 100644 c-sdk/ldap/libraries/msdos/winsock/nsldapssl32.def delete mode 100644 c-sdk/ldap/libraries/msdos/winsock/nsldapssl32.tdf delete mode 100644 c-sdk/ldap/libraries/msdos/winsock/nsldif32.def delete mode 100644 c-sdk/ldap/libraries/msdos/winsock/nsldif32.tdf delete mode 100644 c-sdk/ldap/libraries/msdos/winsock/nssldap32.def delete mode 100644 c-sdk/ldap/libraries/msdos/winsock/nssldap32.tdf delete mode 100644 c-sdk/mozldap.pc.in delete mode 100644 c-sdk/mozldap.spec delete mode 100644 c-sdk/package.mk delete mode 100644 docs/ldapcsdk/00-Programmers-Guide.book delete mode 100644 docs/ldapcsdk/abstract.sgm delete mode 100644 docs/ldapcsdk/best-practices.sgm delete mode 100644 docs/ldapcsdk/choose-api.sgm delete mode 100644 docs/ldapcsdk/csdk-api.sgm delete mode 100644 docs/ldapcsdk/csdk-client.sgm delete mode 100644 docs/ldapcsdk/csdk-compare.sgm delete mode 100644 docs/ldapcsdk/csdk-controls.sgm delete mode 100644 docs/ldapcsdk/csdk-datatypes.sgm delete mode 100644 docs/ldapcsdk/csdk-extendop.sgm delete mode 100644 docs/ldapcsdk/csdk-filter-conf.sgm delete mode 100644 docs/ldapcsdk/csdk-functions.sgm delete mode 100644 docs/ldapcsdk/csdk-ldap-urls.sgm delete mode 100644 docs/ldapcsdk/csdk-multithread.sgm delete mode 100644 docs/ldapcsdk/csdk-quickstart.sgm delete mode 100644 docs/ldapcsdk/csdk-resultcodes.sgm delete mode 100644 docs/ldapcsdk/csdk-sasl.sgm delete mode 100644 docs/ldapcsdk/csdk-search.sgm delete mode 100644 docs/ldapcsdk/csdk-server-info.sgm delete mode 100644 docs/ldapcsdk/csdk-ssl.sgm delete mode 100644 docs/ldapcsdk/csdk-understanding.sgm delete mode 100644 docs/ldapcsdk/csdk-whatsnew.sgm delete mode 100644 docs/ldapcsdk/csdk-write.sgm delete mode 100644 docs/ldapcsdk/figures/hierovrw.eps delete mode 100644 docs/ldapcsdk/legal.sgm delete mode 100644 docs/ldapcsdk/license.txt delete mode 100644 docs/ldapcsdk/preface.sgm delete mode 100644 docs/ldapcsdk/understanding-ldap.sgm delete mode 100644 ds-plugins/README delete mode 100644 ds-plugins/lulu.c delete mode 100644 ds-plugins/lulu.h delete mode 100644 ds-plugins/rex_filt.c delete mode 100644 ds-plugins/url_filt.c delete mode 100644 ldapsdk.mak delete mode 100644 ldapsdk.mk delete mode 100644 perldap/API.pm delete mode 100644 perldap/API.xs delete mode 100644 perldap/CREDITS delete mode 100644 perldap/ChangeLog delete mode 100644 perldap/Conn.pm delete mode 100644 perldap/Entry.pm delete mode 100644 perldap/INSTALL delete mode 100644 perldap/LDIF.pm delete mode 100644 perldap/MANIFEST delete mode 100644 perldap/MPL-1.1.txt delete mode 100644 perldap/Makefile.PL delete mode 100644 perldap/README delete mode 100644 perldap/RELEASE delete mode 100644 perldap/Utils.pm delete mode 100644 perldap/constant.h delete mode 100644 perldap/examples/ChangeLog delete mode 100755 perldap/examples/changes2ldif.pl delete mode 100755 perldap/examples/ldappasswd.pl delete mode 100755 perldap/examples/lfinger.pl delete mode 100755 perldap/examples/modattr.pl delete mode 100755 perldap/examples/monitor.pl delete mode 100755 perldap/examples/psoftsync.pl delete mode 100755 perldap/examples/qsearch.pl delete mode 100755 perldap/examples/rand_mods.pl delete mode 100755 perldap/examples/rename.pl delete mode 100755 perldap/examples/rmentry.pl delete mode 100755 perldap/examples/tabdump.pl delete mode 100644 perldap/perl-Mozilla-LDAP.spec delete mode 100644 perldap/t/ChangeLog delete mode 100644 perldap/t/api.t delete mode 100755 perldap/t/conn.pl delete mode 100644 perldap/t/conn.t delete mode 100755 perldap/t/entry.pl delete mode 100644 perldap/t/entry.t delete mode 100644 perldap/t/ldif.t delete mode 100644 perldap/t/utils.t delete mode 100755 perldap/test_api/api.pl delete mode 100755 perldap/test_api/search.pl delete mode 100755 perldap/test_api/write.pl delete mode 100644 perldap/typemap delete mode 100644 pkg/hpux/sun-ldapcsdk-dev/sun-ldapcsdk-dev.psf.template delete mode 100644 pkg/hpux/sun-ldapcsdk-libs/sun-ldapcsdk-libs.psf.template delete mode 100644 pkg/hpux/sun-ldapcsdk-tools/sun-ldapcsdk-tools.psf.template delete mode 100755 pkg/solaris/Makefile.com delete mode 100644 pkg/solaris/Makefile.ldkd delete mode 100644 pkg/solaris/Makefile.ldku delete mode 100755 pkg/solaris/Makefile.targ delete mode 100755 pkg/solaris/SUNWldapcsdk-dev/pkgdepend delete mode 100755 pkg/solaris/SUNWldapcsdk-dev/pkginfo.tmpl delete mode 100755 pkg/solaris/SUNWldapcsdk-dev/prototype_com delete mode 100755 pkg/solaris/SUNWldapcsdk-dev/prototype_i386 delete mode 100644 pkg/solaris/SUNWldapcsdk-dev/prototype_i86pc delete mode 100755 pkg/solaris/SUNWldapcsdk-dev/prototype_sparc delete mode 100755 pkg/solaris/SUNWldapcsdk-libs/pkgdepend delete mode 100755 pkg/solaris/SUNWldapcsdk-libs/pkginfo.tmpl delete mode 100755 pkg/solaris/SUNWldapcsdk-libs/prototype_com delete mode 100755 pkg/solaris/SUNWldapcsdk-libs/prototype_i386 delete mode 100644 pkg/solaris/SUNWldapcsdk-libs/prototype_i86pc delete mode 100755 pkg/solaris/SUNWldapcsdk-libs/prototype_sparc delete mode 100755 pkg/solaris/SUNWldapcsdk-tools/pkgdepend delete mode 100755 pkg/solaris/SUNWldapcsdk-tools/pkginfo.tmpl delete mode 100755 pkg/solaris/SUNWldapcsdk-tools/prototype_com delete mode 100755 pkg/solaris/SUNWldapcsdk-tools/prototype_i386 delete mode 100644 pkg/solaris/SUNWldapcsdk-tools/prototype_i86pc delete mode 100755 pkg/solaris/SUNWldapcsdk-tools/prototype_sparc delete mode 100644 pkg/solaris/awk_pkginfo-i386 delete mode 100644 pkg/solaris/awk_pkginfo-sparc delete mode 100755 pkg/solaris/bld_awk_pkginfo delete mode 100755 pkg/solaris/bld_awk_pkginfo.ksh delete mode 100755 pkg/solaris/common_files/pkgdepend delete mode 100755 pkg/solaris/common_files/pkgdepend_5_6 delete mode 100755 pkg/solaris/common_files/pkgdepend_64bit delete mode 100644 tools/README delete mode 100755 tools/cvs-tools/cvscleanlog delete mode 100755 tools/cvs-tools/cvsco delete mode 100755 tools/cvs-tools/cvsdl delete mode 100755 tools/cvs-tools/cvslb delete mode 100644 tools/ldap/ldaperr2string/ldaperr2string.c delete mode 100755 tools/ldap/test-c-sdk delete mode 100644 tools/ldap/unfoldldif/unfoldldif.c delete mode 100755 tools/ldap/utc delete mode 100755 tools/misc/alarm delete mode 100755 tools/misc/connect.pl delete mode 100644 tools/misc/csh-aliases delete mode 100644 tools/misc/csh-env delete mode 100644 tools/misc/datemsk delete mode 100644 tools/misc/demangle/demangle.c delete mode 100644 tools/misc/getdate.c delete mode 100644 tools/misc/numberlines.c delete mode 100644 tools/misc/physmem.c delete mode 100644 tools/misc/stat.c delete mode 100644 tools/misc/winkill/winkill.c diff --git a/README-csdk-source-tgz b/README-csdk-source-tgz deleted file mode 100644 index e2443cb..0000000 --- a/README-csdk-source-tgz +++ /dev/null @@ -1,23 +0,0 @@ -This is the first source release produced from the mercurial repo. The -source tarball was produced by the following steps: - - hg clone http://hg.mozilla.org/projects/ldap-sdks - cd ldap-sdks - hg archive -p mozldap-6.0.7 -r LDAPCSDK_6_0_7_RTM -t tgz -I ldapsdk.mak -I ldapsdk.mk -I c-sdk mozldap-6.0.7.tar.gz - -NOTE: the format of the .tar.gz file has changed. The file/directory layout used to look like this: - -mozldap-VER/mozilla/directory/ -mozldap-VER/mozilla/directory/Makefile -mozldap-VER/mozilla/directory/ldapsdk.mak -mozldap-VER/mozilla/directory/ldapsdk.mk -mozldap-VER/mozilla/directory/c-sdk/ - -I have collapsed the directories to be this instead: - -mozldap-VER/ -mozldap-VER/ldapsdk.mak -mozldap-VER/ldapsdk.mk -mozldap-VER/c-sdk/ - -The top level Makefile has disappeared from the hg repo - I don't think it was needed. diff --git a/README-ldapjdk-source-tgz b/README-ldapjdk-source-tgz deleted file mode 100644 index 5e661b5..0000000 --- a/README-ldapjdk-source-tgz +++ /dev/null @@ -1,19 +0,0 @@ -Produce a source tarball from the mercurial repo using the following steps: - - hg clone http://hg.mozilla.org/projects/ldap-sdks - cd ldap-sdks - hg archive -p ldapjdk-4.19 -r default -t tgz -I buildjsdk.txt -I java-sdk ldapjdk-4.19.tar.gz - -NOTE: the format of the .tar.gz file has changed. The file/directory layout use -d to look like this: - -mozldap-4.18/mozilla/directory/ -mozldap-4.18/mozilla/directory/buildjsdk.txt -mozldap-4.18/mozilla/directory/java-sdk/ - -I have collapsed the directories to be this instead: - -mozldap-4-19/ -mozldap-4-19/buildjsdk.txt -mozldap-4-19/java-sdk/ - diff --git a/c-sdk/Makefile.in b/c-sdk/Makefile.in deleted file mode 100644 index 570f5da..0000000 --- a/c-sdk/Makefile.in +++ /dev/null @@ -1,62 +0,0 @@ -# -# ***** BEGIN LICENSE BLOCK ***** -# Version: MPL 1.1/GPL 2.0/LGPL 2.1 -# -# The contents of this file are subject to the Mozilla Public License Version -# 1.1 (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS IS" basis, -# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -# for the specific language governing rights and limitations under the -# License. -# -# The Original Code is mozilla.org code. -# -# The Initial Developer of the Original Code is -# Netscape Communications Corporation. -# Portions created by the Initial Developer are Copyright (C) 2002 -# the Initial Developer. All Rights Reserved. -# -# Contributor(s): -# -# Alternatively, the contents of this file may be used under the terms of -# either of the GNU General Public License Version 2 or later (the "GPL"), -# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -# in which case the provisions of the GPL or the LGPL are applicable instead -# of those above. If you wish to allow use of your version of this file only -# under the terms of either the GPL or the LGPL, and not to allow others to -# use your version of this file under the terms of the MPL, indicate your -# decision by deleting the provisions above and replace them with the notice -# and other provisions required by the GPL or the LGPL. If you do not delete -# the provisions above, a recipient may use your version of this file under -# the terms of any one of the MPL, the GPL or the LGPL. -# -# ***** END LICENSE BLOCK ***** - -MOD_DEPTH = . -topsrcdir = @top_srcdir@ -srcdir = @srcdir@ - -include $(MOD_DEPTH)/config/autoconf.mk - -DIRS = config ldap - -DIST_GARBAGE = config.cache config.log config.status - -include $(topsrcdir)/config/rules.mk - -# dummy target to allow platforms without a compiler-based depend (like GCC -# has) to call "make depend" here and not fail, at the cost of actual -# dependencies on such builds possibly being incorrect. A nasty hack, but -# this build system is going away soon. -# -depend: - -FORCE: - -distclean:: - rm -f $(DIST_GARBAGE) - rm -f config/autoconf.mk - rm -f `cat unallmakefiles` unallmakefiles diff --git a/c-sdk/README.configure b/c-sdk/README.configure deleted file mode 100644 index d3edfa0..0000000 --- a/c-sdk/README.configure +++ /dev/null @@ -1,55 +0,0 @@ -# -# ***** BEGIN LICENSE BLOCK ***** -# Version: MPL 1.1/GPL 2.0/LGPL 2.1 -# -# The contents of this file are subject to the Mozilla Public License Version -# 1.1 (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS IS" basis, -# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -# for the specific language governing rights and limitations under the -# License. -# -# The Original Code is mozilla.org code. -# -# The Initial Developer of the Original Code is -# Netscape Communications Corporation. -# Portions created by the Initial Developer are Copyright (C) 2002 -# the Initial Developer. All Rights Reserved. -# -# Contributor(s): -# -# Alternatively, the contents of this file may be used under the terms of -# either of the GNU General Public License Version 2 or later (the "GPL"), -# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -# in which case the provisions of the GPL or the LGPL are applicable instead -# of those above. If you wish to allow use of your version of this file only -# under the terms of either the GPL or the LGPL, and not to allow others to -# use your version of this file under the terms of the MPL, indicate your -# decision by deleting the provisions above and replace them with the notice -# and other provisions required by the GPL or the LGPL. If you do not delete -# the provisions above, a recipient may use your version of this file under -# the terms of any one of the MPL, the GPL or the LGPL. -# -# ***** END LICENSE BLOCK ***** - -The autoconf files here are a minimal shim to allow the LDAP C SDK to -build with autoconf. These are currently just a slightly modified -version of the existing Makefile.client-based build system, merged -with a copy of the NSPR autoconf stuff. As in the main browser tree, -I've checked in the (generated) configure script so that autoconf -isn't a prerequisite to build. - -My hope is that the owners of the C SDK will be interested in -migrating to this build system, so that over time it can evolve into a -true autoconf-style build system with all the goodies that go with -that (ie configure-time feature tests for faster porting to new -platforms, cross-compilation support, etc.). - -Comments to , -please. - -Dan Mosedale - diff --git a/c-sdk/README.rpm b/c-sdk/README.rpm deleted file mode 100644 index 1386cc6..0000000 --- a/c-sdk/README.rpm +++ /dev/null @@ -1,86 +0,0 @@ -# -# ***** BEGIN LICENSE BLOCK ***** -# Version: MPL 1.1/GPL 2.0/LGPL 2.1 -# -# The contents of this file are subject to the Mozilla Public License Version -# 1.1 (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS IS" basis, -# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -# for the specific language governing rights and limitations under the -# License. -# -# The Original Code is mozilla.org code. -# -# The Initial Developer of the Original Code is -# Netscape Communications Corporation. -# Portions created by the Initial Developer are Copyright (C) 2002 -# the Initial Developer. All Rights Reserved. -# -# Contributor(s): -# -# Alternatively, the contents of this file may be used under the terms of -# either of the GNU General Public License Version 2 or later (the "GPL"), -# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -# in which case the provisions of the GPL or the LGPL are applicable instead -# of those above. If you wish to allow use of your version of this file only -# under the terms of either the GPL or the LGPL, and not to allow others to -# use your version of this file under the terms of the MPL, indicate your -# decision by deleting the provisions above and replace them with the notice -# and other provisions required by the GPL or the LGPL. If you do not delete -# the provisions above, a recipient may use your version of this file under -# the terms of any one of the MPL, the GPL or the LGPL. -# -# ***** END LICENSE BLOCK ***** - -The mozldap.spec file can be used to build an RPM package. This -spec file produces 3 packages: - -mozldap - the core runtime shared libraries libssldap50.so, -libprldap50.so, and libldap50.so, along with major and minor -version symlinks (see the %files section). These files are -placed in the system LIBDIR (usually /usr/lib or /usr/lib64). - -mozldap-tools - the command line tools ldapsearch, ldapmodify, -ldapdelete, ldapcmp, ldapcompare - these are placed in a -subdirectory of LIBDIR called mozldap, so as not to conflict -with the OpenLDAP versions of ldapsearch, ldapmodify, etc. -which are present in almost every linux distro in /usr/bin -(the libs don't conflict because they have different names). -This package is not required if you only need the libs for -application support (e.g. Thunderbird), but it is a good -idea if you need to test some LDAP client feature that is -not supported by the OpenLDAP tools, or want to use NSS -for crypto with ldapsearch et. al. - -mozldap-devel - the include files, example code, config files, -and pkg-config .pc file. The include files are placed in a -mozldap subdirectory of the system INCDIR (usually /usr/include) -so as not to conflict with the OpenLDAP include files in -/usr/include. The example code and config files go into the -/usr/share/mozldap directory. The mozldap.pc file goes into -the usual pkg-config directory, so you can get information -about the lib and include directories when building other -applications that use mozldap, e.g. - /usr/bin/pkg-config --cflags-only-I mozldap - -Build Dependencies: nspr-devel, nss-devel, and svrcore-devel -Runtime Dependencies: nspr, nss - -These packages should be available for download from ftp.mozilla.org -or from your favorite RPM/yum repository. If these packages are -installed, and have the proper pkg-config installed, the rpmbuild -will automatically find them - see config/autoconf/*.m4. - -This RPM uses NSS for crypto and SVRCORE for secure PIN -management, which in turn depend on NSPR. If you do not want that, -you can create a new mozldap.spec file that removes those -dependencies (edit Requires: and BuildRequires:) and removes those -from the build (e.g. use --without-nss for the configure command). - -Comments to , -please. - -- Rich Megginson diff --git a/c-sdk/aclocal.m4 b/c-sdk/aclocal.m4 deleted file mode 100644 index cf091e8..0000000 --- a/c-sdk/aclocal.m4 +++ /dev/null @@ -1,43 +0,0 @@ -dnl -dnl ***** BEGIN LICENSE BLOCK ***** -dnl Version: MPL 1.1/GPL 2.0/LGPL 2.1 -dnl -dnl The contents of this file are subject to the Mozilla Public License Version -dnl 1.1 (the "License"); you may not use this file except in compliance with -dnl the License. You may obtain a copy of the License at -dnl http://www.mozilla.org/MPL/ -dnl -dnl Software distributed under the License is distributed on an "AS IS" basis, -dnl WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -dnl for the specific language governing rights and limitations under the -dnl License. -dnl -dnl The Original Code is mozilla.org code. -dnl -dnl The Initial Developer of the Original Code is -dnl Netscape Communications Corporation. -dnl Portions created by the Initial Developer are Copyright (C) 2002 -dnl the Initial Developer. All Rights Reserved. -dnl -dnl Contributor(s): -dnl Dan Mosedale -dnl -dnl Alternatively, the contents of this file may be used under the terms of -dnl either of the GNU General Public License Version 2 or later (the "GPL"), -dnl or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -dnl in which case the provisions of the GPL or the LGPL are applicable instead -dnl of those above. If you wish to allow use of your version of this file only -dnl under the terms of either the GPL or the LGPL, and not to allow others to -dnl use your version of this file under the terms of the MPL, indicate your -dnl decision by deleting the provisions above and replace them with the notice -dnl and other provisions required by the GPL or the LGPL. If you do not delete -dnl the provisions above, a recipient may use your version of this file under -dnl the terms of any one of the MPL, the GPL or the LGPL. -dnl -dnl ***** END LICENSE BLOCK ***** - -builtin(include, config/autoconf/nspr.m4)dnl -builtin(include, config/autoconf/nss.m4)dnl -builtin(include, config/autoconf/svrcore.m4)dnl -builtin(include, config/autoconf/sasl.m4)dnl -builtin(include, config/autoconf/acwinpaths.m4)dnl diff --git a/c-sdk/build.mk b/c-sdk/build.mk deleted file mode 100644 index dcac83f..0000000 --- a/c-sdk/build.mk +++ /dev/null @@ -1,572 +0,0 @@ -# -# ***** BEGIN LICENSE BLOCK ***** -# Version: MPL 1.1/GPL 2.0/LGPL 2.1 -# -# The contents of this file are subject to the Mozilla Public License Version -# 1.1 (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS IS" basis, -# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -# for the specific language governing rights and limitations under the -# License. -# -# The Original Code is Mozilla Communicator client code, released -# March 31, 1998. -# -# The Initial Developer of the Original Code is -# Netscape Communications Corporation. -# Portions created by the Initial Developer are Copyright (C) 1998-1999 -# the Initial Developer. All Rights Reserved. -# -# Contributor(s): -# -# Alternatively, the contents of this file may be used under the terms of -# either of the GNU General Public License Version 2 or later (the "GPL"), -# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -# in which case the provisions of the GPL or the LGPL are applicable instead -# of those above. If you wish to allow use of your version of this file only -# under the terms of either the GPL or the LGPL, and not to allow others to -# use your version of this file under the terms of the MPL, indicate your -# decision by deleting the provisions above and replace them with the notice -# and other provisions required by the GPL or the LGPL. If you do not delete -# the provisions above, a recipient may use your version of this file under -# the terms of any one of the MPL, the GPL or the LGPL. -# -# ***** END LICENSE BLOCK ***** - -# some vendors may wish to override COMPVERSIONDIR from the command-line -# -ifdef USE_AUTOCONF -COMPVERSIONDIR = $(topsrcdir) -else -COMPVERSIONDIR = $(DEPTH)/directory/c-sdk -endif - -DEFAULT_VENDOR_NAME=mozilla.org -DEFAULT_VENDOR_VERSION=607 - -ifndef VENDOR_NAME -VENDOR_NAME = $(DEFAULT_VENDOR_NAME) -endif - -ifndef VENDOR_VERSION -VENDOR_VERSION = $(DEFAULT_VENDOR_VERSION) -endif - -ifeq ($(OS_ARCH), WINNT) - COMPONENT_PULL_METHOD=FTP - win_srcdir:=$(subst $(topsrcdir),$(WIN_TOP_SRC),$(srcdir)) -endif - -# component tags for internal build only -include $(COMPVERSIONDIR)/component_versions.mk - -# Ldap library -ifeq ($(OS_ARCH), WINNT) -LDAP_LIBNAME = nsldap32v$(LDAPVERS) -else -LDAP_LIBNAME = ldap$(LDAPVERS) -endif -DIR_VERSION = $(LDAPVERS_SUFFIX) -DIRSDK_VERSION = $(LDAPVERS_SUFFIX) - -# PrLdap library -ifeq ($(OS_ARCH), WINNT) -PRLDAP_LIBNAME = nsldappr32v$(PRLDAPVERS) -else -PRLDAP_LIBNAME = prldap$(PRLDAPVERS) -endif - -# lber library -ifeq ($(OS_ARCH), WINNT) -LBER_LIBNAME = nslber32v$(LBERVERS) -else -LBER_LIBNAME = lber$(LBERVERS) -endif - -# ldif library -ifeq ($(OS_ARCH), WINNT) -LDIF_LIBNAME = nsldif32v$(LDIFVERS) -else -LDIF_LIBNAME = ldif$(LDIFVERS) -endif - -# iutil library -ifeq ($(OS_ARCH), WINNT) -IUTIL_LIBNAME = nsiutil32v$(IUTILVERS) -else -IUTIL_LIBNAME = iutil$(IUTILVERS) -endif - -# util library -ifeq ($(OS_ARCH), WINNT) -UTIL_LIBNAME = nsutil32v$(UTILVERS) -else -UTIL_LIBNAME = util$(UTILVERS) -endif - -# ssl library -ifeq ($(OS_ARCH), WINNT) -SSLDAP_LIBNAME = nsldapssl32v$(SSLDAPVERS) -else -SSLDAP_LIBNAME = ssldap$(SSLDAPVERS) -endif - -# nss library -NSS_LIBNAME = nss$(NSSVERS) -ifeq ($(NSS_DYNAMIC_SOFTOKN),1) -SOFTOKN_LIBNAME = softokn$(NSSVERS) -endif -SSL_LIBNAME = ssl$(NSSVERS) - -ifeq ($(OS_ARCH), WINNT) -DYNAMICNSS = $(addsuffix .$(LIB_SUFFIX),$(SSL_LIBNAME) $(NSS_LIBNAME)) -else -DYNAMICNSS = $(addprefix -l,$(SSL_LIBNAME) $(NSS_LIBNAME) $(SOFTOKN_LIBNAME)) -endif -NSSLINK = $(NSS_LIBS) $(DYNAMICNSS) - -HYBRID_LIBNAME = freebl_hybrid_$(NSSVERS) -PURE32_LIBNAME = freebl_pure32_$(NSSVERS) - -ifneq ($(USE_64), 1) -ifeq ($(OS_ARCH), SunOS) -ifneq ($(OS_TEST),i86pc) -COPYFREEBL = 1 -endif -endif -ifeq ($(OS_ARCH), HP-UX) -ifneq ($(OS_TEST),ia64) -COPYFREEBL = 1 -endif -endif -endif - -# svrcore library -SVRCOREVERS = -SVRCOREVERS_SUFFIX = -SVRCORE_LIBNAME = svrcore$(SVRCOREVERS) -ifeq ($(OS_ARCH), WINNT) -SVRCORE_LINK = $(SVRCORE_LIBS) $(SVRCORE_LIBNAME).$(LIB_SUFFIX) -else -SVRCORE_LINK = $(SVRCORE_LIBS) -l$(SVRCORE_LIBNAME) -endif - -# sasl library -ifdef SASL_LIBS -SASL_LINK = $(SASL_LIBS) -endif - -# -# NSPR library -# - -PLCBASE=plc$(NSPR_LIBVERSION) -PLDSBASE=plds$(NSPR_LIBVERSION) -NSPRBASE=nspr$(NSPR_LIBVERSION) - -ifeq ($(OS_ARCH), WINNT) -PLC_BASENAME=lib$(PLCBASE) -PLDS_BASENAME=lib$(PLDSBASE) -NSPR_BASENAME=lib$(NSPRBASE) -DYNAMICNSPR = $(PLC_BASENAME).$(LIB_SUFFIX) $(PLDS_BASENAME).$(LIB_SUFFIX) $(NSPR_BASENAME).$(LIB_SUFFIX) -else -PLC_BASENAME=$(PLCBASE) -PLDS_BASENAME=$(PLDSBASE) -NSPR_BASENAME=$(NSPRBASE) -DYNAMICNSPR = -l$(PLCBASE) -l$(PLDSBASE) -l$(NSPRBASE) -endif - -# use the NSPRLINK macro in other makefiles to define the linker command line -# the mozilla client build likes to set the makefile macro directly -ifdef LIBS_ALREADY_SET -NSPRLINK = $(NSPR_LIBS) -else -NSPRLINK = $(NSPR_LIBS) $(DYNAMICNSPR) -endif - -# why the redundant definitions? apparently, all of these basename/libname macros are so that -# the ldapsdk can create a package containing all of the nspr shared libs/dlls - I don't think -# we should do this anymore, we should just depend on the user installing nspr first - then we -# can get rid of all of this junk -PLC_LIBNAME=$(PLCBASE) -PLDS_LIBNAME=$(PLDSBASE) -NSPR_LIBNAME=$(NSPRBASE) - -RM = rm -f -SED = sed - -# uncomment to enable support for LDAP referrals -LDAP_REFERRALS = -DLDAP_REFERRALS -DEFNETSSL = -DNET_SSL -NOLIBLCACHE = -DNO_LIBLCACHE -NSDOMESTIC = -DNS_DOMESTIC - - -ifdef BUILD_OPT -LDAP_DEBUG = -else -LDAP_DEBUG = -DLDAP_DEBUG -endif - - -ifdef BUILD_CLU -BUILDCLU = 1 -else -BUILDCLU = -endif - -# -# DEFS are included in CFLAGS -# -DEFS = $(PLATFORMCFLAGS) $(LDAP_DEBUG) \ - $(CLDAP) $(DEFNETSSL) $(NOLIBLCACHE) \ - $(LDAP_REFERRALS) $(LDAP_DNS) $(STR_TRANSLATION) \ - $(LIBLDAP_CHARSETS) $(LIBLDAP_DEF_CHARSET) \ - $(NSDOMESTIC) $(LDAPSSLIO) - - -ifeq ($(OS_ARCH), WINNT) -DIRVER_PROG=$(COMMON_OBJDIR)/dirver.exe -else -DIRVER_PROG=$(COMMON_OBJDIR)/dirver -endif - -ifeq ($(OS_ARCH), WINNT) -EXE_SUFFIX=.exe -RSC=rc -ifdef NS_USE_GCC -OFFLAG=-o # -else -OFFLAG=/Fo -MT = mt.exe -endif -else -OFFLAG=-o -endif - -ifeq ($(OS_ARCH), Linux) -DEFS += -DLINUX2_0 -DLINUX1_2 -DLINUX2_1 -endif - -ifeq ($(OS_ARCH), WINNT) -ifndef NS_USE_GCC -DLLEXPORTS_PREFIX=-DEF: -USE_DLL_EXPORTS_FILE = 1 -endif -endif - -ifeq ($(OS_ARCH), OS2) -USE_DLL_EXPORTS_FILE = 1 -endif - -ifeq ($(OS_ARCH), SunOS) -ifndef NS_USE_GCC -DLLEXPORTS_PREFIX=-Blocal -M -USE_DLL_EXPORTS_FILE = 1 -# else -# use the --version-script GNU ld argument - need to add support for -# GNU (linux and solaris and ???) to genexports.pl et. al. -endif # NS_USE_GCC -endif - -ifeq ($(OS_ARCH), IRIX) -DLLEXPORTS_PREFIX=-exports_file -USE_DLL_EXPORTS_FILE = 1 -endif - -ifeq ($(OS_ARCH), HP-UX) -DEFS += -Dhpux -D_REENTRANT -endif - -ifeq ($(OS_ARCH),AIX) -DLLEXPORTS_PREFIX=-bE: -DL=-ldl -USE_DLL_EXPORTS_FILE = 1 -endif - -ifeq ($(OS_ARCH),OSF1) -DEFS += -DOSF1V4 -DL= -endif - -ifeq ($(OS_ARCH),ReliantUNIX) -DL=-ldl -ifdef RPATHFLAG -USE_LD_RUN_PATH=1 -endif -USE_CCC_TO_LINK=1 -CCC=$(CXX) -endif - -ifeq ($(OS_ARCH),UnixWare) -DL= -endif - -ifeq ($(OS_ARCH), SunOS) - -# flag to pass to cc when linking to set runtime shared library search path -# this is used like this, for example: $(RPATHFLAG_PREFIX)../.. -# Also, use the C++ compiler to link for 64-bit builds. -ifeq ($(USE_64), 1) -USE_CCC_TO_LINK=1 -ifdef RPATHFLAG -RPATHFLAG_PREFIX=-R: -endif -else -ifdef RPATHFLAG -RPATHFLAG_PREFIX=-Wl,-R, -endif -endif - -ifdef NS_USE_GCC -USE_CCC_TO_LINK=1 -ifdef RPATHFLAG -RPATHFLAG_PREFIX=-Wl,-R, -endif -endif - -# flag to pass to ld when linking to set runtime shared library search path -# this is used like this, for example: $(LDRPATHFLAG_PREFIX)../.. -ifdef RPATHFLAG -LDRPATHFLAG_PREFIX=-R -endif - -# OS network libraries -PLATFORMLIBS+=-lresolv -lsocket -lnsl -lgen -ldl -lposix4 -endif - -ifeq ($(OS_ARCH), OSF1) -# Use the C++ compiler to link -USE_CCC_TO_LINK=1 - -# flag to pass to cc when linking to set runtime shared library search path -# this is used like this, for example: $(RPATHFLAG_PREFIX)../.. -ifdef RPATHFLAG -RPATHFLAG_PREFIX=-Wl,-rpath, - -# flag to pass to ld when linking to set runtime shared library search path -# this is used like this, for example: $(LDRPATHFLAG_PREFIX)../.. -LDRPATHFLAG_PREFIX=-rpath -endif - -# allow for unresolved symbols -DLL_LDFLAGS += -expect_unresolved "*" -endif # OSF1 - -ifeq ($(OS_ARCH), AIX) -# Flags to set runtime shared library search path. For example: -# $(CC) $(RPATHFLAG_PREFIX)../..$(RPATHFLAG_EXTRAS) -ifdef RPATHFLAG -RPATHFLAG_PREFIX=-blibpath: -RPATHFLAG_EXTRAS=:/usr/lib:/lib - -# flag to pass to ld when linking to set runtime shared library search path -# this is used like this, for example: $(LDRPATHFLAG_PREFIX)../.. -LDRPATHFLAG_PREFIX=-blibpath:/usr/lib:/lib: -endif - -DLL_LDFLAGS= -bM:SRE -bnoentry \ - -L.:/usr/lib/threads:/usr/lpp/xlC/lib:/usr/lib:/lib -DLL_EXTRA_LIBS= -bI:/usr/lib/lowsys.exp -lC_r -lC -lpthreads -lc_r -lm \ - /usr/lib/libc.a - -EXE_EXTRA_LIBS= -bI:/usr/lib/syscalls.exp -lsvld -lpthreads -endif # AIX - -ifeq ($(OS_ARCH), HP-UX) -# Use the C++ compiler to link -USE_CCC_TO_LINK=1 - -ifdef RPATHFLAG -# flag to pass to cc when linking to set runtime shared library search path -# this is used like this, for example: $(RPATHFLAG_PREFIX)../.. -RPATHFLAG_PREFIX=-Wl,+s,+b, - -# flag to pass to ld when linking to set runtime shared library search path -# this is used like this, for example: $(LDRPATHFLAG_PREFIX)../.. -LDRPATHFLAG_PREFIX=+s +b -endif - -# we need to link in the rt library to get sem_*() -PLATFORMLIBS += -lrt -PLATFORMCFLAGS= - -endif # HP-UX - -ifeq ($(OS_ARCH), Linux) -# Use the C++ compiler to link -USE_CCC_TO_LINK=1 - -# flag to pass to cc when linking to set runtime shared library search path -# this is used like this, for example: $(RPATHFLAG_PREFIX)../.. -ifdef RPATHFLAG -RPATHFLAG_PREFIX=-Wl,-rpath, - -# flag to pass to ld when linking to set runtime shared library search path -# this is used like this, for example: $(LDRPATHFLAG_PREFIX)../.. -# note, there is a trailing space -LDRPATHFLAG_PREFIX=-rpath -endif # RPATHFLAG -endif # Linux - -ifeq ($(OS_ARCH), Darwin) -# Darwin doesn't use RPATH. -#ifdef RPATHFLAG -RPATHFLAG_PREFIX= -#endif - -# Use the C++ compiler to link -USE_CCC_TO_LINK=1 -endif # Darwin - -# Use the C++ compiler to link... or not. -ifdef USE_CCC_TO_LINK -CC_FOR_LINK=$(CCC) -else -CC_FOR_LINK=$(CC) -endif - - -# -# XXX: does anyone know of a better way to solve the "LINK_LIB2" problem? -mcs -# -# Link to produce a console/windows exe on Windows -# - -ifeq ($(OS_ARCH), WINNT) - -ifdef NS_USE_GCC -LINK_EXE = $(CC_FOR_LINK) -o $@ $(LDFLAGS) $(LCFLAGS) $(DEPLIBS) \ - $(filter %.$(OBJ_SUFFIX),$^) $(OBJS) $(EXTRA_LIBS) $(PLATFORMLIBS) -LINK_LIB = $(AR) cr $@ $(OBJS) -LINK_DLL = $(CC_FOR_LINK) -shared -Wl,--export-all-symbols -Wl,--out-implib -Wl,$(@:.$(DLL_SUFFIX)=.$(LIB_SUFFIX)) $(LLFLAGS) $(DLL_LDFLAGS) -o $@ $(OBJS) $(EXTRA_LIBS) $(EXTRA_DLL_LIBS) -else -SUBSYSTEM=CONSOLE - -LINK_EXE = $(CYGWIN_WRAPPER) link $(DLLFLAGS) -OUT:"$@" -MAP $(ALDFLAGS) $(LDFLAGS) $(ML_DEBUG) \ - $(LCFLAGS) -NOLOGO $(DEBUG_FLAGS) -INCREMENTAL:NO \ - -NODEFAULTLIB:MSVCRTD -SUBSYSTEM:$(SUBSYSTEM) $(DEPLIBS) \ - $(filter %.$(OBJ_SUFFIX),$^) $(OBJS) $(EXTRA_LIBS) $(PLATFORMLIBS) msvcrt.lib - -ifdef MT -LINK_EXE += ; if test -f $@.manifest ; then \ -$(MT) -NOLOGO -MANIFEST $@.manifest -OUTPUTRESOURCE:$@\;1; \ -rm -f $@.manifest ; fi -endif # MSVC with manifest tool - from NSS rules.mk - -# AR is set when doing an autoconf build -ifdef AR -LINK_LIB = $(CYGWIN_WRAPPER) $(AR) $(OBJS) -else -LINK_LIB = $(CYGWIN_WRAPPER) lib -OUT:"$@" $(OBJS) -endif - -ifndef LD -LD=link -endif - -LINK_DLL = $(CYGWIN_WRAPPER) $(LD) $(DLLFLAGS) -MAP $(OS_DLLFLAGS) \ - $(ML_DEBUG) -SUBSYSTEM:$(SUBSYSTEM) $(LLFLAGS) $(DLL_LDFLAGS) \ - $(EXTRA_LIBS) -out:"$@" $(OBJS) -endif # NS_USE_GCC -else # WINNT -# -# UNIX link commands -# -ifeq ($(OS_ARCH),OS2) -LINK_LIB = -$(RM) $@ && $(AR) $(AR_FLAGS) $(OBJS) && $(RANLIB) $@ -LINK_LIB2 = -$(RM) $@ && $(AR) $@ $(OBJS2) && $(RANLIB) $@ -LINK_DLL = $(LD) $(DSO_LDOPTS) $(ALDFLAGS) $(DLL_LDFLAGS) $(DLL_EXPORT_FLAGS) \ - -o $@ $(OBJS) - -else - -LINK_LIB = $(RM) $@; $(AR) $(AR_FLAGS) $(OBJS); $(RANLIB) $@ -LINK_LIB2 = $(RM) $@; $(AR) $@ $(OBJS2); $(RANLIB) $@ -ifneq ($(LD),$(CC)) -ifdef SONAMEFLAG_PREFIX -LINK_DLL = $(LD) $(DSO_LDOPTS) $(LDRPATHFLAG_PREFIX)$(RPATHFLAG) $(ALDFLAGS) \ - $(DLL_LDFLAGS) $(DLL_EXPORT_FLAGS) \ - -o $@ $(SONAMEFLAG_PREFIX)$(notdir $@) $(OBJS) -else # SONAMEFLAG_PREFIX -LINK_DLL = $(LD) $(DSO_LDOPTS) $(LDRPATHFLAG_PREFIX)$(RPATHFLAG) $(ALDFLAGS) \ - $(DLL_LDFLAGS) $(DLL_EXPORT_FLAGS) \ - -o $@ $(OBJS) -endif # SONAMEFLAG_PREFIX -else # $(CC) is used to link libs -ifdef SONAMEFLAG_PREFIX -LINK_DLL = $(LD) $(DSO_LDOPTS) $(RPATHFLAG_PREFIX)$(RPATHFLAG) $(ALDFLAGS) \ - $(DLL_LDFLAGS) $(DLL_EXPORT_FLAGS) \ - -o $@ $(SONAMEFLAG_PREFIX)$(notdir $@) $(OBJS) -else # SONAMEFLAG_PREFIX -LINK_DLL = $(LD) $(DSO_LDOPTS) $(RPATHFLAG_PREFIX)$(RPATHFLAG) $(ALDFLAGS) \ - $(DLL_LDFLAGS) $(DLL_EXPORT_FLAGS) \ - -o $@ $(OBJS) -endif # SONAMEFLAG_PREFIX -endif # LD!CC -endif #!os2 - -ifeq ($(OS_ARCH), OSF1) -# The linker on OSF/1 gets confused if it finds an so_locations file -# that doesn't meet its expectations, so we arrange to remove it before -# linking. -SO_FILES_TO_REMOVE=so_locations -endif - -ifneq (,$(filter BeOS Darwin NetBSD,$(OS_ARCH))) -LINK_DLL = $(MKSHLIB) $(OBJS) -endif - -ifeq ($(OS_ARCH), HP-UX) -# On HPUX, we need a couple of changes: -# 1) Use the C++ compiler for linking, which will pass the +eh flag on down to the -# linker so the correct exception-handling-aware libC gets used (libnshttpd.sl -# needs this). -# 2) Add a "-Wl,-E" option so the linker gets a "-E" flag. This makes symbols -# in an executable visible to shared libraries loaded at runtime. -LINK_EXE = $(CC_FOR_LINK) -Wl,-E $(ALDFLAGS) $(LDFLAGS) $(RPATHFLAG_PREFIX)$(RPATHFLAG) -o $@ $(filter %.$(OBJ_SUFFIX),$^) $(OBJS) $(EXTRA_LIBS) $(PLATFORMLIBS) - -ifeq ($(USE_64), 1) -ifeq ($(OS_RELEASE), B.11.23) -LINK_EXE = $(CC_FOR_LINK) -DHPUX_ACC -D__STDC_EXT__ -D_POSIX_C_SOURCE=199506L +DD64 -Wl,-E $(ALDFLAGS) $(LDFLAGS) $(RPATHFLAG_PREFIX)$(RPATHFLAG) -o $@ $(filter %.$(OBJ_SUFFIX),$^) $(OBJS) $(EXTRA_LIBS) $(PLATFORMLIBS) -else -LINK_EXE = $(CC_FOR_LINK) -DHPUX_ACC -D__STDC_EXT__ -D_POSIX_C_SOURCE=199506L +DA2.0W +DS2.0 -Wl,-E $(ALDFLAGS) $(LDFLAGS) $(RPATHFLAG_PREFIX)$(RPATHFLAG) -o $@ $(filter %.$(OBJ_SUFFIX),$^) $(OBJS) $(EXTRA_LIBS) $(PLATFORMLIBS) -endif -endif - -else # HP-UX -# everything except HPUX - -ifdef USE_LD_RUN_PATH -#does RPATH differently. instead we export RPATHFLAG as LD_RUN_PATH -#see ns/netsite/ldap/clients/tools/Makefile for an example -export LD_RUN_PATH=$(RPATHFLAG) -LINK_EXE = $(CC_FOR_LINK) $(ALDFLAGS) $(LDFLAGS) \ - -o $@ $(filter %.$(OBJ_SUFFIX),$^) $(OBJS) $(EXTRA_LIBS) $(PLATFORMLIBS) -LINK_EXE_NOLIBSOBJS = $(CC_FOR_LINK) $(ALDFLAGS) $(LDFLAGS) -o $@ -else # USE_LD_RUN_PATH -LINK_EXE = $(CC_FOR_LINK) $(ALDFLAGS) $(LDFLAGS) \ - $(RPATHFLAG_PREFIX)$(RPATHFLAG)$(RPATHFLAG_EXTRAS) \ - -o $@ $(filter %.$(OBJ_SUFFIX),$^) $(OBJS) $(EXTRA_LIBS) $(PLATFORMLIBS) -LINK_EXE_NOLIBSOBJS = $(CC_FOR_LINK) $(ALDFLAGS) $(LDFLAGS) \ - $(RPATHFLAG_PREFIX)$(RPATHFLAG)$(RPATHFLAG_EXTRAS) -o $@ -endif # USE_LD_RUN_PATH -endif # HP-UX -endif # WINNT - -ifndef PERL -PERL = perl -endif - -# -# shared library symbol export definitions -# -ifeq ($(OS_ARCH), WINNT) -GENEXPORTS=cmd /c $(PERL) $(LDAP_SRC)/build/genexports.pl -else -GENEXPORTS=$(PERL) $(LDAP_SRC)/build/genexports.pl -endif - diff --git a/c-sdk/build_mozldap_rpm b/c-sdk/build_mozldap_rpm deleted file mode 100755 index a804f92..0000000 --- a/c-sdk/build_mozldap_rpm +++ /dev/null @@ -1,188 +0,0 @@ -#!/bin/sh -# ***** BEGIN LICENSE BLOCK ***** -# Version: MPL 1.1/GPL 2.0/LGPL 2.1 -# -# The contents of this file are subject to the Mozilla Public License Version -# 1.1 (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS IS" basis, -# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -# for the specific language governing rights and limitations under the -# License. -# -# The Original Code is the Netscape svrcore library. -# -# The Initial Developer of the Original Code is -# Red Hat -# Portions created by the Initial Developer are Copyright (C) 2006 -# the Initial Developer. All Rights Reserved. -# -# Contributor(s): Rich Megginson -# -# Alternatively, the contents of this file may be used under the terms of -# either the GNU General Public License Version 2 or later (the "GPL"), or -# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -# in which case the provisions of the GPL or the LGPL are applicable instead -# of those above. If you wish to allow use of your version of this file only -# under the terms of either the GPL or the LGPL, and not to allow others to -# use your version of this file under the terms of the MPL, indicate your -# decision by deleting the provisions above and replace them with the notice -# and other provisions required by the GPL or the LGPL. If you do not delete -# the provisions above, a recipient may use your version of this file under -# the terms of any one of the MPL, the GPL or the LGPL. -# -# ***** END LICENSE BLOCK ***** -# This script can be used to build the mozldap rpms and srpm. It assumes -# you begin with nothing but this script. You must have nspr, nspr-devel, -# nss, and nss-devel, and svrcore-devel installed on your system in order to run this script. Not -# only will the script check, but the rpmbuild will also check and bomb out if -# those dependencies are not present. The script allows you to build the rpm -# as a non root user and puts the build files under the current directory. This -# script does not install the rpm. -# -# You may need to edit this script to change: -# the versions of nspr and nss and svrcore used -# the CVS tag for pulling mozldap -# the mozldap version and release - these should match the spec file - -# Always switch into the base directory of this -# shell script prior to executing it so that all -# of its output is written to this directory -cd `dirname $0` - -# This script may ONLY be run on Linux! -OS=`uname` -if [ ${OS} != "Linux" ]; then - echo "The '$0' script is ONLY executable on a 'Linux' machine!" - exit 255 -fi - -# This script may ONLY be executed on either -# an 'i386' platform or an 'x86_64' platform! -PLATFORM=`uname -i` -if [ ${PLATFORM} = "i386" ]; then - BITSIZE=32-bit -elif [ ${PLATFORM} = "x86_64" ]; then - BITSIZE=64-bit -else - echo "The '$0' script is ONLY executable on either" - echo "an 'i386' platform or an 'x86_64' platform!" - exit 255 -fi - -# initialize environment variables for this script -unset LD_LIBRARY_PATH - -CVSROOT=:pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot -export CVSROOT - -# define the remaining variables -PACKAGE=mozldap6 -VERSION=6.0.0 -RELEASE=1 -MOZLDAP_TAG=LDAPCSDK_6_0_0_RTM -PRJ=${PACKAGE}-${VERSION} -RPM_HOME=`pwd` -SPEC_FILENAME=${PACKAGE}.spec - -# define subroutines for this script -usage() { - echo - echo "Usage: $0" - echo -} - -mkdirs() { - for d in "$@" ; do - if [ -d $d ]; then - mv $d $d.deleted - rm -rf $d.deleted & - fi - mkdir -p $d - done -} - -# check the number of arguments supplied to this script -if [ $# -ne 0 ] ; then - usage - exit 255 -fi - -# remove any old RPM directories -echo "Removing any old RPM directories . . ." -if [ -d ${RPM_HOME}/BUILD ]; then - rm -rf ${RPM_HOME}/BUILD -fi -if [ -d ${RPM_HOME}/SOURCES ]; then - rm -rf ${RPM_HOME}/SOURCES -fi -if [ -d ${RPM_HOME}/SPECS ]; then - rm -rf ${RPM_HOME}/SPECS -fi -echo "Finished." - -echo "Changing current working directory to ${RPM_HOME}." -cd ${RPM_HOME} - -# create new RPM directories -echo "Creating new RPM directories . . ." -mkdirs BUILD -if [ ! -d ${RPM_HOME}/RPMS ]; then - mkdirs ${RPM_HOME}/RPMS -fi -if [ ! -d ${RPM_HOME}/SGTARS ]; then - mkdirs ${RPM_HOME}/SGTARS -fi -mkdirs SOURCES SPECS -if [ ! -d ${RPM_HOME}/SRPMS ]; then - mkdirs ${RPM_HOME}/SRPMS -fi -echo "Finished." - -# check out MOZLDAP code -echo "Checking out MOZLDAP source code . . ." -cvs -z3 export -r ${MOZLDAP_TAG} -d ${PRJ} -N DirectorySDKSourceC -echo "Finished." - -# create a tarball from the checked out code -echo "Creating tarball of MOZLDAP source code . . ." -tar cf - ${PRJ} | gzip > SOURCES/${PRJ}.tar.gz -echo "Finished." - -# remove the checked out code -echo "Removing checked out MOZLDAP source code . . ." -rm -rf ${PRJ} -echo "Finished." - -# create a spec file from the MOZLDAP template -cp mozldap.spec SPECS/${SPEC_FILENAME} - -# build the ${BITSIZE} RPM and Source RPM -echo "Executing ${BITSIZE} rpmbuild of ${SPEC_FILENAME} file . . . " -if [ ! -f SRPMS/${PACKAGE}-${VERSION}-${RELEASE}.src.rpm ]; then - rpmbuild --define="_topdir ${RPM_HOME}" --target ${PLATFORM} -ba --clean --rmsource --rmspec SPECS/${SPEC_FILENAME} -else - rpmbuild --define="_topdir ${RPM_HOME}" --target ${PLATFORM} -bb --clean --rmsource --rmspec SPECS/${SPEC_FILENAME} -fi -echo "Finished doing ${BITSIZE} rpmbuild of ${SPEC_FILENAME} file." - -echo "Removing BUILD directory . . ." -if [ -d ${RPM_HOME}/BUILD ]; then - rm -rf ${RPM_HOME}/BUILD -fi -echo "Finished." - -echo "Removing SOURCES directory . . ." -if [ -d ${RPM_HOME}/SOURCES ]; then - rm -rf ${RPM_HOME}/SOURCES -fi -echo "Finished." - -echo "Removing SPECS directory . . ." -if [ -d ${RPM_HOME}/SPECS ]; then - rm -rf ${RPM_HOME}/SPECS -fi -echo "Finished." - diff --git a/c-sdk/component_versions.mk b/c-sdk/component_versions.mk deleted file mode 100644 index 2ad6347..0000000 --- a/c-sdk/component_versions.mk +++ /dev/null @@ -1,83 +0,0 @@ -# -# ***** BEGIN LICENSE BLOCK ***** -# Version: MPL 1.1/GPL 2.0/LGPL 2.1 -# -# The contents of this file are subject to the Mozilla Public License Version -# 1.1 (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS IS" basis, -# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -# for the specific language governing rights and limitations under the -# License. -# -# The Original Code is Mozilla Communicator client code, released -# March 31, 1998. -# -# The Initial Developer of the Original Code is -# Netscape Communications Corporation. -# Portions created by the Initial Developer are Copyright (C) 1998-1999 -# the Initial Developer. All Rights Reserved. -# -# Contributor(s): -# -# Alternatively, the contents of this file may be used under the terms of -# either of the GNU General Public License Version 2 or later (the "GPL"), -# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -# in which case the provisions of the GPL or the LGPL are applicable instead -# of those above. If you wish to allow use of your version of this file only -# under the terms of either the GPL or the LGPL, and not to allow others to -# use your version of this file under the terms of the MPL, indicate your -# decision by deleting the provisions above and replace them with the notice -# and other provisions required by the GPL or the LGPL. If you do not delete -# the provisions above, a recipient may use your version of this file under -# the terms of any one of the MPL, the GPL or the LGPL. -# -# ***** END LICENSE BLOCK ***** - -COMPONENTS_DIR = /share/builds/components - -# NSPR - Netscape Portable Runtime -NSPR_LIBVERSION = 4 -NSPR_RELEASE_TAG = v4.4.1 -NSPR_RELEASE_TREE = $(COMPONENTS_DIR) - -# NSS - Network Security Services -NSSVERS = 3 -NSS_RELEASE_TAG = NSS_3_9_3_RTM -NSS_DYNAMIC_SOFTOKN = 1 -NSS_RELEASE_TREE = $(COMPONENTS_DIR) - -# SVRCORE - Client/server utility library -SVRCORE_RELEASE_TAG = SVRCORE_4_0_RTM -SVRCORE_RELEASE_TREE = $(COMPONENTS_DIR) - -# LDAP library -LDAPVERS = 60 -LDAPVERS_SUFFIX = 6.0 - -# PRLDAP library -PRLDAPVERS = 60 -PRLDAPVERS_SUFFIX = 6.0 - -# LBER library -LBERVERS = 60 -LBERVERS_SUFFIX = 6.0 - -# ldif library -LDIFVERS = 60 -LDIFVERS_SUFFIX = 6.0 - -# iutil library -IUTILVERS = 60 -IUTILVERS_SUFFIX = 6.0 - -# util library -UTILVERS = 60 -UTILVERS_SUFFIX = 6.0 - -# ssl library -SSLDAPVERS = 60 -SSLDAPVERS_SUFFIX = 6.0 - diff --git a/c-sdk/config/AIX.mk b/c-sdk/config/AIX.mk deleted file mode 100644 index 73b3e3a..0000000 --- a/c-sdk/config/AIX.mk +++ /dev/null @@ -1,179 +0,0 @@ -# -# ***** BEGIN LICENSE BLOCK ***** -# Version: MPL 1.1/GPL 2.0/LGPL 2.1 -# -# The contents of this file are subject to the Mozilla Public License Version -# 1.1 (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS IS" basis, -# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -# for the specific language governing rights and limitations under the -# License. -# -# The Original Code is the Netscape Portable Runtime (NSPR). -# -# The Initial Developer of the Original Code is -# Netscape Communications Corporation. -# Portions created by the Initial Developer are Copyright (C) 1998-2000 -# the Initial Developer. All Rights Reserved. -# -# Contributor(s): -# -# Alternatively, the contents of this file may be used under the terms of -# either of the GNU General Public License Version 2 or later (the "GPL"), -# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -# in which case the provisions of the GPL or the LGPL are applicable instead -# of those above. If you wish to allow use of your version of this file only -# under the terms of either the GPL or the LGPL, and not to allow others to -# use your version of this file under the terms of the MPL, indicate your -# decision by deleting the provisions above and replace them with the notice -# and other provisions required by the GPL or the LGPL. If you do not delete -# the provisions above, a recipient may use your version of this file under -# the terms of any one of the MPL, the GPL or the LGPL. -# -# ***** END LICENSE BLOCK ***** - -# -# Config stuff for AIX. -# - -include $(MOD_DEPTH)/config/UNIX.mk - -# -# XXX -# Temporary define for the Client; to be removed when binary release is used -# -ifdef MOZILLA_CLIENT -ifneq ($(USE_PTHREADS),1) -CLASSIC_NSPR = 1 -endif -endif - -# -# There are three implementation strategies available on AIX: -# pthreads, classic, and pthreads-user. -# -# On AIX 3.2, classic nspr is the default (and only) implementation -# strategy. On AIX 4.1 and later, the default is pthreads. -# -ifeq ($(OS_RELEASE),3.2) -CLASSIC_NSPR = 1 -endif - -ifeq ($(CLASSIC_NSPR),1) - PTHREADS_USER = - USE_PTHREADS = - IMPL_STRATEGY = _EMU - DEFINES += -D_PR_LOCAL_THREADS_ONLY -else -ifeq ($(PTHREADS_USER),1) - USE_PTHREADS = - IMPL_STRATEGY = _PTH_USER -else - USE_PTHREADS = 1 -ifeq ($(HAVE_CCONF), 1) - IMPL_STRATEGY = -else - IMPL_STRATEGY = _PTH -endif -endif -endif - -# IPv6 support part of the standard AIX 4.3 release. -ifneq (,$(filter-out 3.2 4.1 4.2,$(OS_RELEASE))) -USE_IPV6 = 1 -endif - -ifeq ($(CLASSIC_NSPR),1) -CC = xlC -CCC = xlC -else -CC = xlC_r -CCC = xlC_r -endif -OS_CFLAGS = -qro -qroconst -ifeq ($(USE_64),1) -OBJECT_MODE = 64 -export OBJECT_MODE -COMPILER_TAG = _64 -else -ifeq ($(HAVE_CCONF), 1) -COMPILER_TAG = -else -COMPILER_TAG = _32 -endif -endif - -CPU_ARCH = rs6000 - -RANLIB = ranlib - -OS_CFLAGS += -DAIX -DSYSV -ifeq ($(CC),xlC_r) -OS_CFLAGS += -qarch=com -endif - -ifneq ($(OS_RELEASE),3.2) -OS_CFLAGS += -DAIX_HAVE_ATOMIC_OP_H -DAIX_TIMERS -endif - -ifeq (,$(filter-out 3.2 4.1,$(OS_RELEASE))) -ifndef USE_PTHREADS -OS_CFLAGS += -DAIX_RENAME_SELECT -endif -endif - -ifeq (,$(filter-out 3.2 4.1,$(OS_RELEASE))) -OS_CFLAGS += -D_PR_NO_LARGE_FILES -else -OS_CFLAGS += -D_PR_HAVE_OFF64_T -D_LARGEFILE64_SOURCE -endif - -ifeq ($(OS_RELEASE),4.1) -OS_CFLAGS += -DAIX4_1 -else -DSO_LDOPTS = -brtl -bM:SRE -bnoentry -bexpall -MKSHLIB = $(LD) $(DSO_LDOPTS) -ifeq ($(OS_RELEASE),4.3) -OS_CFLAGS += -DAIX4_3 -endif -endif - -# Have the socklen_t data type -ifeq ($(OS_RELEASE),4.3) -OS_CFLAGS += -DHAVE_SOCKLEN_T -endif - -ifeq (,$(filter-out 4.2 4.3,$(OS_RELEASE))) -# On these OS revisions, localtime_r() is declared if _THREAD_SAFE -# is defined. -ifneq ($(CLASSIC_NSPR),1) -OS_CFLAGS += -DHAVE_POINTER_LOCALTIME_R -endif -endif - -ifeq (,$(filter-out 4.3,$(OS_RELEASE))) -# On these OS revisions, gethostbyXXX() returns result in thread -# specific storage. -ifeq ($(USE_PTHREADS),1) -OS_CFLAGS += -D_PR_HAVE_THREADSAFE_GETHOST -endif -endif - -# -# Special link info for constructing AIX programs. On AIX we have to -# statically link programs that use NSPR into a single .o, rewriting the -# calls to select to call "aix". Once that is done we then can -# link that .o with a .o built in nspr which implements the system call. -# -ifneq (,$(filter-out 3.2 4.1,$(OS_RELEASE))) -AIX_LINK_OPTS = -brtl -bnso -berok -else -AIX_LINK_OPTS = -bnso -berok -#AIX_LINK_OPTS = -bnso -berok -brename:.select,.wrap_select -brename:.poll,.wrap_poll -bI:/usr/lib/syscalls.exp -endif - -AIX_WRAP = $(DIST)/lib/aixwrap.o -AIX_TMP = $(OBJDIR)/_aix_tmp.o diff --git a/c-sdk/config/BSD_OS.mk b/c-sdk/config/BSD_OS.mk deleted file mode 100644 index 895643e..0000000 --- a/c-sdk/config/BSD_OS.mk +++ /dev/null @@ -1,95 +0,0 @@ -# -# ***** BEGIN LICENSE BLOCK ***** -# Version: MPL 1.1/GPL 2.0/LGPL 2.1 -# -# The contents of this file are subject to the Mozilla Public License Version -# 1.1 (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS IS" basis, -# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -# for the specific language governing rights and limitations under the -# License. -# -# The Original Code is the Netscape Portable Runtime (NSPR). -# -# The Initial Developer of the Original Code is -# Netscape Communications Corporation. -# Portions created by the Initial Developer are Copyright (C) 1998-2000 -# the Initial Developer. All Rights Reserved. -# -# Contributor(s): -# -# Alternatively, the contents of this file may be used under the terms of -# either of the GNU General Public License Version 2 or later (the "GPL"), -# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -# in which case the provisions of the GPL or the LGPL are applicable instead -# of those above. If you wish to allow use of your version of this file only -# under the terms of either the GPL or the LGPL, and not to allow others to -# use your version of this file under the terms of the MPL, indicate your -# decision by deleting the provisions above and replace them with the notice -# and other provisions required by the GPL or the LGPL. If you do not delete -# the provisions above, a recipient may use your version of this file under -# the terms of any one of the MPL, the GPL or the LGPL. -# -# ***** END LICENSE BLOCK ***** - -# -# Config stuff for BSD/OS Unix. -# - -include $(MOD_DEPTH)/config/UNIX.mk - -ifeq (,$(filter-out 1.1 4.%,$(OS_RELEASE))) -CC = gcc -Wall -Wno-format -CCC = g++ -else -CC = shlicc2 -CCC = shlicc2 -endif -RANLIB = ranlib - -ifeq ($(USE_PTHREADS),1) -IMPL_STRATEGY = _PTH -DEFINES += -D_PR_NEED_PTHREAD_INIT -else -IMPL_STRATEGY = _EMU -DEFINES += -D_PR_LOCAL_THREADS_ONLY -endif - -OS_CFLAGS = $(DSO_CFLAGS) -DBSDI -DHAVE_STRERROR -DNEED_BSDREGEX - -ifeq (86,$(findstring 86,$(OS_TEST))) -CPU_ARCH = x86 -endif -ifeq (sparc,$(findstring sparc,$(OS_TEST))) -CPU_ARCH = sparc -endif - -ifeq ($(OS_RELEASE),2.1) -OS_CFLAGS += -D_PR_TIMESPEC_HAS_TS_SEC -endif - -ifeq (,$(filter-out 1.1 2.1,$(OS_RELEASE))) -OS_CFLAGS += -D_PR_BSDI_JMPBUF_IS_ARRAY -else -OS_CFLAGS += -D_PR_SELECT_CONST_TIMEVAL -D_PR_BSDI_JMPBUF_IS_STRUCT -endif - -NOSUCHFILE = /no-such-file - -ifeq ($(OS_RELEASE),1.1) -OS_CFLAGS += -D_PR_STAT_HAS_ONLY_ST_ATIME -D_PR_NEED_H_ERRNO -else -OS_CFLAGS += -DHAVE_DLL -DUSE_DLFCN -D_PR_STAT_HAS_ST_ATIMESPEC -OS_LIBS = -ldl -ifeq (,$(filter-out 4.%,$(OS_RELEASE))) -MKSHLIB = $(CC) $(DSO_LDOPTS) -DSO_CFLAGS = -fPIC -DSO_LDOPTS = -shared -Wl,-soname,$(@:$(OBJDIR)/%.so=%.so) -else -MKSHLIB = $(LD) $(DSO_LDOPTS) -DSO_LDOPTS = -r -endif -endif diff --git a/c-sdk/config/BeOS.mk b/c-sdk/config/BeOS.mk deleted file mode 100644 index 7bd0562..0000000 --- a/c-sdk/config/BeOS.mk +++ /dev/null @@ -1,142 +0,0 @@ -# -# ***** BEGIN LICENSE BLOCK ***** -# Version: MPL 1.1/GPL 2.0/LGPL 2.1 -# -# The contents of this file are subject to the Mozilla Public License Version -# 1.1 (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS IS" basis, -# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -# for the specific language governing rights and limitations under the -# License. -# -# The Original Code is the Netscape Portable Runtime (NSPR). -# -# The Initial Developer of the Original Code is -# Netscape Communications Corporation. -# Portions created by the Initial Developer are Copyright (C) 1998-2000 -# the Initial Developer. All Rights Reserved. -# -# Contributor(s): -# -# Alternatively, the contents of this file may be used under the terms of -# either of the GNU General Public License Version 2 or later (the "GPL"), -# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -# in which case the provisions of the GPL or the LGPL are applicable instead -# of those above. If you wish to allow use of your version of this file only -# under the terms of either the GPL or the LGPL, and not to allow others to -# use your version of this file under the terms of the MPL, indicate your -# decision by deleting the provisions above and replace them with the notice -# and other provisions required by the GPL or the LGPL. If you do not delete -# the provisions above, a recipient may use your version of this file under -# the terms of any one of the MPL, the GPL or the LGPL. -# -# ***** END LICENSE BLOCK ***** - - -###################################################################### -# Config stuff for BeOS (all architectures) -###################################################################### - -###################################################################### -# Version-independent -###################################################################### - -DEFINES += -XP_DEFINE = -DXP_BEOS - -OBJ_SUFFIX = o -LIB_SUFFIX = a -DLL_SUFFIX = so -AR = ar cr $@ - -ifdef BUILD_OPT -DEFINES = -UDEBUG -DNDEBUG -OBJDIR_TAG = _OPT -else -DEFINES = -DDEBUG -UNDEBUG -OBJDIR_TAG = _DBG -endif - -ifeq (PC,$(findstring PC,$(OS_TEST))) -CPU_ARCH = x86 -CC = gcc -CCC = g++ -LD = gcc -RANLIB = ranlib -DSO_LDOPTS = -nostart -PORT_FLAGS = -DHAVE_STRERROR -ifdef BUILD_OPT -OPTIMIZER = -O2 -LDFLAGS += -s -else -OPTIMIZER = -gdwarf-2 -O0 -endif -else -CPU_ARCH = ppc -CC = mwcc -CCC = mwcc -LD = mwld -RANLIB = ranlib -DSO_LDOPTS = -xms -export pragma \ - -init _init_routine_ \ - -term _term_routine_ \ - -lroot -lnet \ - /boot/develop/lib/ppc/glue-noinit.a \ - /boot/develop/lib/ppc/init_term_dyn.o \ - /boot/develop/lib/ppc/start_dyn.o - -PORT_FLAGS = -DHAVE_STRERROR -D_POSIX_SOURCE -ifdef BUILD_OPT -OPTIMIZER = -O2 -else -OPTIMIZER = -g -O0 -endif -endif -CPU_ARCH_TAG = _$(CPU_ARCH) - -OS_INCLUDES = -I- -I. -#G++INCLUDES = -I/usr/include/g++ - -PLATFORM_FLAGS = -DBeOS -DBEOS $(OS_INCLUDES) - -OS_CFLAGS = $(DSO_CFLAGS) $(PLATFORM_FLAGS) $(PORT_FLAGS) - -USE_BTHREADS = 1 - -MKSHLIB = $(LD) $(DSO_LDOPTS) - -OBJDIR_NAME = $(OS_CONFIG)_$(CPU_ARCH)$(OBJDIR_TAG).OBJ - -#################################################################### -# -# One can define the makefile variable NSDISTMODE to control -# how files are published to the 'dist' directory. If not -# defined, the default is "install using relative symbolic -# links". The two possible values are "copy", which copies files -# but preserves source mtime, and "absolute_symlink", which -# installs using absolute symbolic links. The "absolute_symlink" -# option requires NFSPWD. -# -#################################################################### - -NSINSTALL = $(MOD_DEPTH)/config/$(OBJDIR_NAME)/nsinstall - -ifeq ($(NSDISTMODE),copy) -# copy files, but preserve source mtime -INSTALL = $(NSINSTALL) -t -else -ifeq ($(NSDISTMODE),absolute_symlink) -# install using absolute symbolic links -INSTALL = $(NSINSTALL) -L `$(NFSPWD)` -else -# install using relative symbolic links -INSTALL = $(NSINSTALL) -R -endif -endif - -define MAKE_OBJDIR -if test ! -d $(@D); then rm -rf $(@D); $(NSINSTALL) -D $(@D); fi -endef diff --git a/c-sdk/config/DGUX.mk b/c-sdk/config/DGUX.mk deleted file mode 100644 index 7487589..0000000 --- a/c-sdk/config/DGUX.mk +++ /dev/null @@ -1,67 +0,0 @@ -# -# ***** BEGIN LICENSE BLOCK ***** -# Version: MPL 1.1/GPL 2.0/LGPL 2.1 -# -# The contents of this file are subject to the Mozilla Public License Version -# 1.1 (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS IS" basis, -# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -# for the specific language governing rights and limitations under the -# License. -# -# The Original Code is the Netscape Portable Runtime (NSPR). -# -# The Initial Developer of the Original Code is -# Netscape Communications Corporation. -# Portions created by the Initial Developer are Copyright (C) 1998-2000 -# the Initial Developer. All Rights Reserved. -# -# Contributor(s): -# -# Alternatively, the contents of this file may be used under the terms of -# either of the GNU General Public License Version 2 or later (the "GPL"), -# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -# in which case the provisions of the GPL or the LGPL are applicable instead -# of those above. If you wish to allow use of your version of this file only -# under the terms of either the GPL or the LGPL, and not to allow others to -# use your version of this file under the terms of the MPL, indicate your -# decision by deleting the provisions above and replace them with the notice -# and other provisions required by the GPL or the LGPL. If you do not delete -# the provisions above, a recipient may use your version of this file under -# the terms of any one of the MPL, the GPL or the LGPL. -# -# ***** END LICENSE BLOCK ***** - -# -# Config stuff for Data General DG/UX -# -# Initial DG/UX port by Marc Fraioli -# - -include $(MOD_DEPTH)/config/UNIX.mk - -CC = gcc -CCC = g++ - -RANLIB = true - -DEFINES += -D_PR_LOCAL_THREADS_ONLY -OS_CFLAGS = -DSVR4 -DSYSV -DDGUX -D_DGUX_SOURCE -D_POSIX4A_DRAFT6_SOURCE - -MKSHLIB = $(LD) $(DSO_LDOPTS) -DSO_LDOPTS = -G - -CPU_ARCH = x86 -ARCH = dgux - -NOSUCHFILE = /no-such-file - -ifdef BUILD_OPT -OPTIMIZER = -O2 -else -# -g would produce a huge executable. -OPTIMIZER = -endif diff --git a/c-sdk/config/FreeBSD.mk b/c-sdk/config/FreeBSD.mk deleted file mode 100644 index e36d4cd..0000000 --- a/c-sdk/config/FreeBSD.mk +++ /dev/null @@ -1,86 +0,0 @@ -# -# ***** BEGIN LICENSE BLOCK ***** -# Version: MPL 1.1/GPL 2.0/LGPL 2.1 -# -# The contents of this file are subject to the Mozilla Public License Version -# 1.1 (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS IS" basis, -# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -# for the specific language governing rights and limitations under the -# License. -# -# The Original Code is the Netscape Portable Runtime (NSPR). -# -# The Initial Developer of the Original Code is -# Netscape Communications Corporation. -# Portions created by the Initial Developer are Copyright (C) 1998-2000 -# the Initial Developer. All Rights Reserved. -# -# Contributor(s): -# -# Alternatively, the contents of this file may be used under the terms of -# either of the GNU General Public License Version 2 or later (the "GPL"), -# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -# in which case the provisions of the GPL or the LGPL are applicable instead -# of those above. If you wish to allow use of your version of this file only -# under the terms of either the GPL or the LGPL, and not to allow others to -# use your version of this file under the terms of the MPL, indicate your -# decision by deleting the provisions above and replace them with the notice -# and other provisions required by the GPL or the LGPL. If you do not delete -# the provisions above, a recipient may use your version of this file under -# the terms of any one of the MPL, the GPL or the LGPL. -# -# ***** END LICENSE BLOCK ***** - -# -# Config stuff for FreeBSD -# - -include $(MOD_DEPTH)/config/UNIX.mk - -CC = gcc -CCC = g++ -RANLIB = ranlib - -ifeq ($(OS_TEST),alpha) -CPU_ARCH = alpha -else -OS_REL_CFLAGS = -Di386 -CPU_ARCH = x86 -endif -CPU_ARCH_TAG = _$(CPU_ARCH) - -OS_CFLAGS = $(DSO_CFLAGS) $(OS_REL_CFLAGS) -ansi -Wall -pipe $(THREAD_FLAG) -DFREEBSD -DHAVE_STRERROR -DHAVE_BSD_FLOCK - -# -# The default implementation strategy for FreeBSD is pthreads. -# -ifeq ($(CLASSIC_NSPR),1) -IMPL_STRATEGY = _EMU -DEFINES += -D_PR_LOCAL_THREADS_ONLY -else -USE_PTHREADS = 1 -IMPL_STRATEGY = _PTH -DEFINES += -D_THREAD_SAFE -THREAD_FLAG += -pthread -endif - -ARCH = freebsd - -MOZ_OBJFORMAT := $(shell test -x /usr/bin/objformat && /usr/bin/objformat || echo elf) - -ifeq ($(MOZ_OBJFORMAT),elf) -DLL_SUFFIX = so -else -DLL_SUFFIX = so.1.0 -endif - -DSO_CFLAGS = -fPIC -DSO_LDOPTS = -shared -Wl,-soname,$(notdir $@) - -MKSHLIB = $(CC) $(DSO_LDOPTS) - -G++INCLUDES = -I/usr/include/g++ diff --git a/c-sdk/config/HP-UX.mk b/c-sdk/config/HP-UX.mk deleted file mode 100644 index 3140f88..0000000 --- a/c-sdk/config/HP-UX.mk +++ /dev/null @@ -1,256 +0,0 @@ -# -# ***** BEGIN LICENSE BLOCK ***** -# Version: MPL 1.1/GPL 2.0/LGPL 2.1 -# -# The contents of this file are subject to the Mozilla Public License Version -# 1.1 (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS IS" basis, -# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -# for the specific language governing rights and limitations under the -# License. -# -# The Original Code is the Netscape Portable Runtime (NSPR). -# -# The Initial Developer of the Original Code is -# Netscape Communications Corporation. -# Portions created by the Initial Developer are Copyright (C) 1998-2000 -# the Initial Developer. All Rights Reserved. -# -# Contributor(s): -# -# Alternatively, the contents of this file may be used under the terms of -# either of the GNU General Public License Version 2 or later (the "GPL"), -# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -# in which case the provisions of the GPL or the LGPL are applicable instead -# of those above. If you wish to allow use of your version of this file only -# under the terms of either the GPL or the LGPL, and not to allow others to -# use your version of this file under the terms of the MPL, indicate your -# decision by deleting the provisions above and replace them with the notice -# and other provisions required by the GPL or the LGPL. If you do not delete -# the provisions above, a recipient may use your version of this file under -# the terms of any one of the MPL, the GPL or the LGPL. -# -# ***** END LICENSE BLOCK ***** - -# -# Config stuff for HP-UX -# - -include $(MOD_DEPTH)/config/UNIX.mk -ifeq ($(OS_TEST),ia64) -DLL_SUFFIX = so -else -DLL_SUFFIX = sl -endif - -ifeq ($(NS_USE_GCC), 1) - CC = gcc - CCC = g++ - OS_CFLAGS = - COMPILER_TAG = _gcc -else - CC = cc -Ae - CCC = CC -ext -ifeq ($(OS_RELEASE),B.11.23) - OS_CFLAGS = +Olit=all -else - OS_CFLAGS = +ESlit -endif -endif - -RANLIB = echo - -CPU_ARCH = hppa - -OS_CFLAGS += $(DSO_CFLAGS) -DHPUX -D$(CPU_ARCH) -D_HPUX_SOURCE - -# -# The header netdb.h on HP-UX 9 does not declare h_errno. -# On 10.10 and 10.20, netdb.h declares h_errno only if -# _XOPEN_SOURCE_EXTENDED is defined. So we need to declare -# h_errno ourselves. -# -ifeq ($(basename $(OS_RELEASE)),A.09) -OS_CFLAGS += -D_PR_NEED_H_ERRNO -endif -ifeq (,$(filter-out B.10.10 B.10.20,$(OS_RELEASE))) -OS_CFLAGS += -D_PR_NEED_H_ERRNO -endif - -# Do we have localtime_r()? Does it return 'int' or 'struct tm *'? -ifeq (,$(filter-out B.10.10 B.10.20,$(OS_RELEASE))) -OS_CFLAGS += -DHAVE_INT_LOCALTIME_R -endif -ifeq (,$(filter-out B.10.30 B.11.00 B.11.23,$(OS_RELEASE))) -OS_CFLAGS += -DHAVE_POINTER_LOCALTIME_R -endif - -# -# XXX -# Temporary define for the Client; to be removed when binary release is used -# -ifdef MOZILLA_CLIENT -CLASSIC_NSPR = 1 -endif - -# -# On HP-UX 9, the default (and only) implementation strategy is -# classic nspr. -# -# On HP-UX 10.10 and 10.20, the default implementation strategy is -# pthreads (actually DCE threads). Classic nspr is also available. -# -# On HP-UX 10.30 and 11.00, the default implementation strategy is -# pthreads. Classic nspr and pthreads-user are also available. -# -ifeq ($(basename $(OS_RELEASE)),A.09) -OS_CFLAGS += -DHPUX9 -DEFAULT_IMPL_STRATEGY = _EMU -endif - -ifeq ($(OS_RELEASE),B.10.01) -OS_CFLAGS += -DHPUX10 -DEFAULT_IMPL_STRATEGY = _EMU -endif - -ifeq ($(OS_RELEASE),B.10.10) -OS_CFLAGS += -DHPUX10 -DHPUX10_10 -DEFAULT_IMPL_STRATEGY = _PTH -endif - -ifeq ($(OS_RELEASE),B.10.20) -OS_CFLAGS += -DHPUX10 -DHPUX10_20 -ifneq ($(NS_USE_GCC), 1) -OS_CFLAGS += +DAportable -endif -DEFAULT_IMPL_STRATEGY = _PTH -endif - -# -# On 10.30 and 11.00, we use the new ANSI C++ compiler aCC. -# - -ifeq ($(OS_RELEASE),B.10.30) -ifneq ($(NS_USE_GCC), 1) -CCC = /opt/aCC/bin/aCC -ext -OS_CFLAGS += +DAportable +DS1.1 -endif -OS_CFLAGS += -DHPUX10 -DHPUX10_30 -DEFAULT_IMPL_STRATEGY = _PTH -endif - -# 11.00 is similar to 10.30. -ifeq ($(OS_RELEASE),B.11.00) -MODERN_HPUX=1 -endif -ifeq ($(OS_RELEASE),B.11.11) -MODERN_HPUX=1 -endif -ifeq ($(OS_RELEASE),B.11.23) -MODERN_HPUX=1 -endif - -ifdef MODERN_HPUX - ifneq ($(NS_USE_GCC), 1) - CCC = /opt/aCC/bin/aCC -ext - ifeq ($(USE_64),1) - OS_CFLAGS += +DA2.0W +DS2.0 +DD64 - COMPILER_TAG = _64 - else - OS_CFLAGS += +DAportable +DS2.0 -ifeq ($(HAVE_CCONF), 1) - COMPILER_TAG = -else - COMPILER_TAG = _32 -endif - endif - endif -OS_CFLAGS += -DHPUX10 -DHPUX11 -D_LARGEFILE64_SOURCE -D_PR_HAVE_OFF64_T -ifeq ($(HAVE_CCONF), 1) -DEFAULT_IMPL_STRATEGY = -else -DEFAULT_IMPL_STRATEGY = _PTH -endif -endif - -# 11.23 is similar to 11.00. -ifeq ($(OS_RELEASE),B.11.23) - ifneq ($(NS_USE_GCC), 1) - CCC = /opt/aCC/bin/aCC -AP -ext - ifeq ($(USE_64),1) - OS_CFLAGS += +DD64 - #COMPILER_TAG = _64 - else - OS_CFLAGS += +DD32 -ifeq ($(HAVE_CCONF), 1) - COMPILER_TAG = -else - COMPILER_TAG = _32 -endif - endif - endif -OS_CFLAGS += -DHPUX10 -DHPUX11 -D_LARGEFILE64_SOURCE -D_PR_HAVE_OFF64_T -ifeq ($(HAVE_CCONF), 1) -DEFAULT_IMPL_STRATEGY = -else -DEFAULT_IMPL_STRATEGY = _PTH -endif -endif - -ifeq ($(DEFAULT_IMPL_STRATEGY),_EMU) -CLASSIC_NSPR = 1 -endif - -ifeq ($(DEFAULT_IMPL_STRATEGY),_PTH) -USE_PTHREADS = 1 -IMPL_STRATEGY = _PTH -ifeq ($(CLASSIC_NSPR),1) -USE_PTHREADS = -IMPL_STRATEGY = _EMU -endif -ifeq ($(PTHREADS_USER),1) -USE_PTHREADS = -IMPL_STRATEGY = _PTH_USER -endif -endif - -ifeq ($(CLASSIC_NSPR),1) -DEFINES += -D_PR_LOCAL_THREADS_ONLY -endif - -ifeq (,$(filter-out A.09 B.10,$(basename $(OS_RELEASE)))) -DEFINES += -D_PR_NO_LARGE_FILES -endif - -# -# To use the true pthread (kernel thread) library on 10.30 and -# 11.00, we should define _POSIX_C_SOURCE to be 199506L. -# The _REENTRANT macro is deprecated. -# - -ifdef USE_PTHREADS -ifeq (,$(filter-out B.10.10 B.10.20,$(OS_RELEASE))) -OS_CFLAGS += -D_REENTRANT -D_PR_DCETHREADS -else -OS_CFLAGS += -D_POSIX_C_SOURCE=199506L -D_PR_HAVE_THREADSAFE_GETHOST -endif -endif - -ifdef PTHREADS_USER -OS_CFLAGS += -D_POSIX_C_SOURCE=199506L -endif - -MKSHLIB = $(LD) $(DSO_LDOPTS) - -DSO_LDOPTS = -b +h $(notdir $@) - -# -fPIC or +Z generates position independent code for use in shared -# libraries. -ifeq ($(NS_USE_GCC), 1) -DSO_CFLAGS = -fPIC -else -DSO_CFLAGS = +Z -endif diff --git a/c-sdk/config/IRIX.mk b/c-sdk/config/IRIX.mk deleted file mode 100644 index bfbc74b..0000000 --- a/c-sdk/config/IRIX.mk +++ /dev/null @@ -1,162 +0,0 @@ -# -# ***** BEGIN LICENSE BLOCK ***** -# Version: MPL 1.1/GPL 2.0/LGPL 2.1 -# -# The contents of this file are subject to the Mozilla Public License Version -# 1.1 (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS IS" basis, -# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -# for the specific language governing rights and limitations under the -# License. -# -# The Original Code is the Netscape Portable Runtime (NSPR). -# -# The Initial Developer of the Original Code is -# Netscape Communications Corporation. -# Portions created by the Initial Developer are Copyright (C) 1998-2000 -# the Initial Developer. All Rights Reserved. -# -# Contributor(s): -# -# Alternatively, the contents of this file may be used under the terms of -# either of the GNU General Public License Version 2 or later (the "GPL"), -# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -# in which case the provisions of the GPL or the LGPL are applicable instead -# of those above. If you wish to allow use of your version of this file only -# under the terms of either the GPL or the LGPL, and not to allow others to -# use your version of this file under the terms of the MPL, indicate your -# decision by deleting the provisions above and replace them with the notice -# and other provisions required by the GPL or the LGPL. If you do not delete -# the provisions above, a recipient may use your version of this file under -# the terms of any one of the MPL, the GPL or the LGPL. -# -# ***** END LICENSE BLOCK ***** - -# -# Config stuff for IRIX -# - -include $(MOD_DEPTH)/config/UNIX.mk - -# -# XXX -# Temporary define for the Client; to be removed when binary release is used -# -ifdef MOZILLA_CLIENT -ifneq ($(USE_PTHREADS),1) -CLASSIC_NSPR = 1 -endif -endif - -# -# On IRIX 5.x, classic nspr (user-level threads on top of sprocs) -# is the default (and only) implementation strategy. -# -# On IRIX 6.x and later, the default implementation strategy is -# pthreads. Classic nspr is also available. -# -ifeq ($(basename $(OS_RELEASE)),5) -CLASSIC_NSPR = 1 -endif - -ifeq ($(CLASSIC_NSPR),1) - IMPL_STRATEGY = _MxN -else - USE_PTHREADS = 1 - USE_N32 = 1 - IMPL_STRATEGY = _PTH -endif - -ifeq ($(NS_USE_GCC), 1) - CC = gcc - COMPILER_TAG = _gcc - AS = $(CC) -x assembler-with-cpp -D_ASM -mips2 - ODD_CFLAGS = -Wall -Wno-format - ifdef BUILD_OPT - OPTIMIZER = -O6 - endif -else - CC = cc - CCC = CC - ODD_CFLAGS = -fullwarn -xansi - ifdef BUILD_OPT - ifneq ($(USE_N32),1) - OPTIMIZER = -O -Olimit 4000 - else - OPTIMIZER = -O -OPT:Olimit=4000 - endif - endif - -# -# The default behavior is still -o32 generation, hence the explicit tests -# for -n32 and -64 and implicitly assuming -o32. If that changes, ... -# - ifeq ($(basename $(OS_RELEASE)),6) - ODD_CFLAGS += -multigot - SHLIB_LD_OPTS = -no_unresolved - ifeq ($(USE_N32),1) - ODD_CFLAGS += -n32 -woff 1209 - COMPILER_TAG = _n32 - LDOPTS += -n32 - SHLIB_LD_OPTS += -n32 - ifeq ($(OS_RELEASE), 6_2) - LDOPTS += -Wl,-woff,85 - SHLIB_LD_OPTS += -woff 85 - endif - else - ifeq ($(USE_64),1) - ODD_CFLAGS += -64 - COMPILER_TAG = _64 - else - ODD_CFLAGS += -32 - COMPILER_TAG = _o32 - endif - endif - else - ODD_CFLAGS += -xgot - endif -endif - -ODD_CFLAGS += -DSVR4 -DIRIX - -CPU_ARCH = mips - -RANLIB = /bin/true - -# For purify -# XXX: should always define _SGI_MP_SOURCE -NOMD_OS_CFLAGS = $(ODD_CFLAGS) -D_SGI_MP_SOURCE - -ifeq ($(OS_RELEASE),5.3) -OS_CFLAGS += -DIRIX5_3 -endif - -ifneq ($(basename $(OS_RELEASE)),5) -OS_CFLAGS += -D_PR_HAVE_SGI_PRDA_PROCMASK -endif - -ifeq (,$(filter-out 6.5,$(OS_RELEASE))) -ifneq ($(NS_USE_GCC), 1) -OS_CFLAGS += -mips3 -endif -OS_CFLAGS += -D_PR_HAVE_GETPROTO_R -D_PR_HAVE_GETPROTO_R_POINTER -ifeq ($(USE_PTHREADS),1) -OS_CFLAGS += -D_PR_HAVE_GETHOST_R -D_PR_HAVE_GETHOST_R_POINTER -endif -endif - -ifndef NO_MDUPDATE -OS_CFLAGS += $(NOMD_OS_CFLAGS) -MDupdate $(DEPENDENCIES) -else -OS_CFLAGS += $(NOMD_OS_CFLAGS) -endif - -# -rdata_shared is an ld option that puts string constants and -# const data into the text segment, where they will be shared -# across processes and be read-only. -MKSHLIB = $(LD) $(SHLIB_LD_OPTS) -rdata_shared -shared -soname $(notdir $@) - -DSO_LDOPTS = -elf -shared -all diff --git a/c-sdk/config/Linux.mk b/c-sdk/config/Linux.mk deleted file mode 100644 index f28e5d1..0000000 --- a/c-sdk/config/Linux.mk +++ /dev/null @@ -1,137 +0,0 @@ -# -# ***** BEGIN LICENSE BLOCK ***** -# Version: MPL 1.1/GPL 2.0/LGPL 2.1 -# -# The contents of this file are subject to the Mozilla Public License Version -# 1.1 (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS IS" basis, -# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -# for the specific language governing rights and limitations under the -# License. -# -# The Original Code is the Netscape Portable Runtime (NSPR). -# -# The Initial Developer of the Original Code is -# Netscape Communications Corporation. -# Portions created by the Initial Developer are Copyright (C) 1998-2000 -# the Initial Developer. All Rights Reserved. -# -# Contributor(s): -# -# Alternatively, the contents of this file may be used under the terms of -# either of the GNU General Public License Version 2 or later (the "GPL"), -# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -# in which case the provisions of the GPL or the LGPL are applicable instead -# of those above. If you wish to allow use of your version of this file only -# under the terms of either the GPL or the LGPL, and not to allow others to -# use your version of this file under the terms of the MPL, indicate your -# decision by deleting the provisions above and replace them with the notice -# and other provisions required by the GPL or the LGPL. If you do not delete -# the provisions above, a recipient may use your version of this file under -# the terms of any one of the MPL, the GPL or the LGPL. -# -# ***** END LICENSE BLOCK ***** - -###################################################################### -# Config stuff for Linux (all architectures) -###################################################################### - -###################################################################### -# Version-independent -###################################################################### - -include $(MOD_DEPTH)/config/UNIX.mk - -# -# XXX -# Temporary define for the Client; to be removed when binary release is used -# -ifdef MOZILLA_CLIENT -ifneq ($(USE_PTHREADS),1) -CLASSIC_NSPR = 1 -endif -endif - -# -# The default implementation strategy for Linux is pthreads. -# -ifeq ($(CLASSIC_NSPR),1) -IMPL_STRATEGY = _EMU -DEFINES += -D_PR_LOCAL_THREADS_ONLY -else -USE_PTHREADS = 1 -ifeq ($(HAVE_CCONF), 1) -IMPL_STRATEGY = _glibc_PTH -else -IMPL_STRATEGY = _PTH -endif -DEFINES += -D_REENTRANT -endif - -ifeq (86,$(findstring 86,$(OS_TEST))) -CPU_ARCH := x86 -else -ifeq (,$(filter-out arm% sa110,$(OS_TEST))) -CPU_ARCH := arm -else -CPU_ARCH := $(OS_TEST) -endif -endif -CPU_ARCH_TAG = _$(CPU_ARCH) - -CC = gcc -CCC = g++ -RANLIB = ranlib - -OS_INCLUDES = -G++INCLUDES = -I/usr/include/g++ - -PLATFORM_FLAGS = -ansi -Wall -pipe -DLINUX -Dlinux -D_LARGEFILE64_SOURCE -PORT_FLAGS = -D_POSIX_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -DHAVE_STRERROR - -OS_CFLAGS = $(DSO_CFLAGS) $(PLATFORM_FLAGS) $(PORT_FLAGS) - -###################################################################### -# Version-specific stuff -###################################################################### - -ifeq ($(CPU_ARCH),alpha) -PLATFORM_FLAGS += -D_ALPHA_ -D__alpha -mieee -endif -ifeq ($(CPU_ARCH),x86) -PLATFORM_FLAGS += -Di386 -endif -ifeq ($(CPU_ARCH),m68k) -# -# gcc on Linux/m68k either has a bug or triggers a code-sequence -# bug in the 68060 which causes gcc to crash. The simplest way to -# avoid this is to enable a minimum level of optimization. -# -ifndef BUILD_OPT -OPTIMIZER += -O -endif -PLATFORM_FLAGS += -m68020-40 -endif - -# -# Linux 2.x has shared libraries. -# - -MKSHLIB = $(LD) $(DSO_LDOPTS) -soname $(notdir $@) -ifdef BUILD_OPT -OPTIMIZER = -O2 -endif - -###################################################################### -# Overrides for defaults in config.mk (or wherever) -###################################################################### - -###################################################################### -# Other -###################################################################### - -DSO_CFLAGS = -fPIC -DSO_LDOPTS = -shared diff --git a/c-sdk/config/Makefile.client b/c-sdk/config/Makefile.client deleted file mode 100644 index 71572ae..0000000 --- a/c-sdk/config/Makefile.client +++ /dev/null @@ -1,134 +0,0 @@ -#! gmake -# -# ***** BEGIN LICENSE BLOCK ***** -# Version: MPL 1.1/GPL 2.0/LGPL 2.1 -# -# The contents of this file are subject to the Mozilla Public License Version -# 1.1 (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS IS" basis, -# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -# for the specific language governing rights and limitations under the -# License. -# -# The Original Code is the Netscape Portable Runtime (NSPR). -# -# The Initial Developer of the Original Code is -# Netscape Communications Corporation. -# Portions created by the Initial Developer are Copyright (C) 1998-2000 -# the Initial Developer. All Rights Reserved. -# -# Contributor(s): -# -# Alternatively, the contents of this file may be used under the terms of -# either of the GNU General Public License Version 2 or later (the "GPL"), -# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -# in which case the provisions of the GPL or the LGPL are applicable instead -# of those above. If you wish to allow use of your version of this file only -# under the terms of either the GPL or the LGPL, and not to allow others to -# use your version of this file under the terms of the MPL, indicate your -# decision by deleting the provisions above and replace them with the notice -# and other provisions required by the GPL or the LGPL. If you do not delete -# the provisions above, a recipient may use your version of this file under -# the terms of any one of the MPL, the GPL or the LGPL. -# -# ***** END LICENSE BLOCK ***** - -MOD_DEPTH = .. - -# Indicate that this directory builds build tools. -INTERNAL_TOOLS = 1 - -include $(MOD_DEPTH)/config/config.mk - -CSRCS = now.c - -# This version hasn't been ported for us; the one in mozilla/config has -ifneq ($(OS_ARCH),OS2) -CSRCS += nsinstall.c - -PLSRCS = nfspwd.pl -endif - -ifeq (,$(filter-out WINNT OS2,$(OS_ARCH))) -PROG_SUFFIX = .exe -else -PROG_SUFFIX = -endif - -# Temporary workaround to disable the generation of -# library build time because now.c uses the 'long long' -# data type that's not available on some platforms. -ifeq (,$(filter-out NEC NEXTSTEP QNX SCOOS UNIXWARE,$(OS_ARCH))) -DEFINES += -DOMIT_LIB_BUILD_TIME -endif - -ifeq ($(OS_ARCH), IRIX) - ifeq ($(basename $(OS_RELEASE)),6) - ifeq ($(USE_N32),1) - XLDOPTS += -n32 -Wl,-woff,85 - ifeq ($(OS_RELEASE), 6_2) - XLDOPTS += -Wl,-woff,85 - endif - else - ifeq ($(USE_64),1) - XLDOPTS += -64 - else - XLDOPTS += -32 - endif - endif - endif -endif - -ifeq ($(OS_ARCH), HP-UX) - ifeq ($(OS_RELEASE), B.11.23) - ifeq ($(USE_64),1) - XLDOPTS += +DD64 - else - XLDOPTS += +DD32 - endif - else - ifeq ($(USE_64),1) - XLDOPTS += +DA2.0W - endif - endif -endif - -ifeq ($(OS_ARCH), OS2) -XCFLAGS = $(OS_EXE_CFLAGS) -XLDOPTS = -Zlinker /PM:VIO -endif - -include $(MOD_DEPTH)/config/rules.mk - -PROGS = $(OBJDIR)/now$(PROG_SUFFIX) - -ifeq (,$(filter-out OS2 WINNT,$(OS_ARCH))) -TARGETS = $(PROGS) -else -PROGS += $(OBJDIR)/nsinstall$(PROG_SUFFIX) -TARGETS = $(PROGS) $(PLSRCS:.pl=) -endif - -OUTOPTION = -o # end of the line -ifeq (,$(filter-out WINNT WIN95,$(OS_TARGET))) -OUTOPTION = /Fe -endif - -# Redefine MAKE_OBJDIR for just this directory -define MAKE_OBJDIR -if test ! -d $(@D); then rm -rf $(@D); mkdir $(@D); else true; fi -endef - -export:: $(TARGETS) - -$(OBJDIR)/%$(PROG_SUFFIX): $(OBJDIR)/%.$(OBJ_SUFFIX) - @$(MAKE_OBJDIR) - $(CC) $(XCFLAGS) $< $(XLDOPTS) $(OUTOPTION)$@ - -cleanconfig: FORCE - $(RM) -r $(OBJDIR) - -FORCE: diff --git a/c-sdk/config/Makefile.in b/c-sdk/config/Makefile.in deleted file mode 100644 index ffb7e5f..0000000 --- a/c-sdk/config/Makefile.in +++ /dev/null @@ -1,143 +0,0 @@ -#! gmake -# -# ***** BEGIN LICENSE BLOCK ***** -# Version: MPL 1.1/GPL 2.0/LGPL 2.1 -# -# The contents of this file are subject to the Mozilla Public License Version -# 1.1 (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS IS" basis, -# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -# for the specific language governing rights and limitations under the -# License. -# -# The Original Code is the Netscape Portable Runtime (NSPR). -# -# The Initial Developer of the Original Code is -# Netscape Communications Corporation. -# Portions created by the Initial Developer are Copyright (C) 1998-2000 -# the Initial Developer. All Rights Reserved. -# -# Contributor(s): -# -# Alternatively, the contents of this file may be used under the terms of -# either of the GNU General Public License Version 2 or later (the "GPL"), -# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -# in which case the provisions of the GPL or the LGPL are applicable instead -# of those above. If you wish to allow use of your version of this file only -# under the terms of either the GPL or the LGPL, and not to allow others to -# use your version of this file under the terms of the MPL, indicate your -# decision by deleting the provisions above and replace them with the notice -# and other provisions required by the GPL or the LGPL. If you do not delete -# the provisions above, a recipient may use your version of this file under -# the terms of any one of the MPL, the GPL or the LGPL. -# -# ***** END LICENSE BLOCK ***** - -MOD_DEPTH = .. -topsrcdir = @top_srcdir@ -srcdir = @srcdir@ -VPATH = @srcdir@ - -include $(MOD_DEPTH)/config/autoconf.mk - -# Indicate that this directory builds build tools. -INTERNAL_TOOLS = 1 - -# autoconf.mk must be deleted last (from the top-level directory) -# because it is included by every makefile. -DIST_GARBAGE = - -include $(topsrcdir)/config/config.mk - -ifndef MOZILLA_CLIENT -CSRCS = nsinstall.c -endif - -CSRCS += now.c - -PLSRCS = nfspwd.pl - -ifeq (,$(CROSS_COMPILE)$(filter-out WINNT OS2,$(OS_ARCH))) -PROG_SUFFIX = .exe -else -PROG_SUFFIX = -endif - -# Temporary workaround to disable the generation of -# library build time because now.c uses the 'long long' -# data type that's not available on some platforms. -ifeq (,$(filter-out NEC NEXTSTEP QNX SCOOS UNIXWARE,$(OS_ARCH))) -DEFINES += -DOMIT_LIB_BUILD_TIME -endif - -ifeq ($(OS_ARCH), IRIX) - ifeq ($(basename $(OS_RELEASE)),6) - ifeq ($(USE_N32),1) - XLDOPTS += -n32 -Wl,-woff,85 - ifeq ($(OS_RELEASE), 6_2) - XLDOPTS += -Wl,-woff,85 - endif - else - ifeq ($(USE_64),1) - XLDOPTS += -64 - else - XLDOPTS += -32 - endif - endif - endif -endif - -ifeq ($(OS_ARCH), HP-UX) - ifeq ($(OS_RELEASE), B.11.23) - ifeq ($(USE_64),1) - XLDOPTS += +DD64 - else - XLDOPTS += +DD32 - endif - else - ifeq ($(USE_64),1) - XLDOPTS += +DA2.0W - endif - endif -endif - -ifeq ($(OS_ARCH), OpenVMS) - XLDOPTS += $(LDFLAGS) -endif - -ifeq ($(OS_ARCH),OS2) -XCFLAGS = $(OS_EXE_CFLAGS) -XLDOPTS = -Zomf -Zlinker -PM:VIO -endif - -include $(topsrcdir)/config/rules.mk - -PROGS = $(OBJDIR)/now$(PROG_SUFFIX) - -ifeq (,$(CROSS_COMPILE)$(filter-out WINNT OS2,$(OS_ARCH))) -TARGETS = $(PROGS) -else -PROGS += $(OBJDIR)/nsinstall$(PROG_SUFFIX) -TARGETS = $(PROGS) $(PLSRCS:.pl=) -endif - -OUTOPTION = -o # end of the line -ifeq (,$(filter-out WINNT OS2,$(OS_ARCH))) -ifndef NS_USE_GCC -OUTOPTION = -Fe -endif -endif - -# Redefine MAKE_OBJDIR for just this directory -define MAKE_OBJDIR -if test ! -d $(@D); then rm -rf $(@D); mkdir $(@D); else true; fi -endef - -export:: $(TARGETS) - -$(OBJDIR)/%$(PROG_SUFFIX): $(OBJDIR)/%.$(OBJ_SUFFIX) - @$(MAKE_OBJDIR) - $(CC) $(XCFLAGS) $< $(XLDOPTS) $(OUTOPTION)$@ diff --git a/c-sdk/config/NCR.mk b/c-sdk/config/NCR.mk deleted file mode 100644 index 5b63915..0000000 --- a/c-sdk/config/NCR.mk +++ /dev/null @@ -1,101 +0,0 @@ -# -# ***** BEGIN LICENSE BLOCK ***** -# Version: MPL 1.1/GPL 2.0/LGPL 2.1 -# -# The contents of this file are subject to the Mozilla Public License Version -# 1.1 (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS IS" basis, -# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -# for the specific language governing rights and limitations under the -# License. -# -# The Original Code is the Netscape Portable Runtime (NSPR). -# -# The Initial Developer of the Original Code is -# Netscape Communications Corporation. -# Portions created by the Initial Developer are Copyright (C) 1998-2000 -# the Initial Developer. All Rights Reserved. -# -# Contributor(s): -# -# Alternatively, the contents of this file may be used under the terms of -# either of the GNU General Public License Version 2 or later (the "GPL"), -# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -# in which case the provisions of the GPL or the LGPL are applicable instead -# of those above. If you wish to allow use of your version of this file only -# under the terms of either the GPL or the LGPL, and not to allow others to -# use your version of this file under the terms of the MPL, indicate your -# decision by deleting the provisions above and replace them with the notice -# and other provisions required by the GPL or the LGPL. If you do not delete -# the provisions above, a recipient may use your version of this file under -# the terms of any one of the MPL, the GPL or the LGPL. -# -# ***** END LICENSE BLOCK ***** - -# -# Config stuff for NCR SVR4 MP-RAS -# - -include $(MOD_DEPTH)/config/UNIX.mk -### -NS_USE_NATIVE = 1 - -# NS_USE_GCC = 1 - -export PATH:=$(PATH):/opt/ncc/bin -### - -RANLIB = true -GCC_FLAGS_EXTRA = -pipe - -DEFINES += -DSVR4 -DSYSV -DHAVE_STRERROR -DNCR -D_PR_LOCAL_THREADS_ONLY - -ifeq (,$(filter-out 2.03,$(OS_RELEASE))) -DEFINES += -D_PR_STAT_HAS_ST_ATIM -else -DEFINES += -D_PR_STAT_HAS_ST_ATIM_UNION -endif - -ifdef NS_USE_NATIVE -CC = cc -CCC = ncc -OS_CFLAGS = -Hnocopyr -#OS_LIBS = -L/opt/ncc/lib -else -#OS_LIBS = -endif - -CCC = g++ - -#OS_LIBS += -lsocket -lnsl -ldl -lc - -MKSHLIB = $(LD) $(DSO_LDOPTS) -#DSO_LDOPTS = -G -z defs -DSO_LDOPTS = -G - -CPU_ARCH = x86 -ARCH = ncr - -NOSUCHFILE = /no-such-file - -# now take care of default GCC (rus@5/5/97) - -ifdef NS_USE_GCC -# if gcc-settings are redefined already - don't touch it -# -ifeq (,$(findstring gcc, $(CC))) -CC = gcc -CCC = g++ -CXX = g++ -COMPILER_TAG = _gcc -# always use -fPIC - some makefiles are still broken and don't distinguish -# situation when they build shared and static libraries -CFLAGS += -fPIC -Wall $(GCC_FLAGS_EXTRA) -#OS_LIBS += -L/usr/local/lib -lstdc++ -lg++ -lgcc -endif -endif -### - diff --git a/c-sdk/config/NEC.mk b/c-sdk/config/NEC.mk deleted file mode 100644 index 55601b8..0000000 --- a/c-sdk/config/NEC.mk +++ /dev/null @@ -1,65 +0,0 @@ -# -# ***** BEGIN LICENSE BLOCK ***** -# Version: MPL 1.1/GPL 2.0/LGPL 2.1 -# -# The contents of this file are subject to the Mozilla Public License Version -# 1.1 (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS IS" basis, -# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -# for the specific language governing rights and limitations under the -# License. -# -# The Original Code is the Netscape Portable Runtime (NSPR). -# -# The Initial Developer of the Original Code is -# Netscape Communications Corporation. -# Portions created by the Initial Developer are Copyright (C) 1998-2000 -# the Initial Developer. All Rights Reserved. -# -# Contributor(s): -# -# Alternatively, the contents of this file may be used under the terms of -# either of the GNU General Public License Version 2 or later (the "GPL"), -# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -# in which case the provisions of the GPL or the LGPL are applicable instead -# of those above. If you wish to allow use of your version of this file only -# under the terms of either the GPL or the LGPL, and not to allow others to -# use your version of this file under the terms of the MPL, indicate your -# decision by deleting the provisions above and replace them with the notice -# and other provisions required by the GPL or the LGPL. If you do not delete -# the provisions above, a recipient may use your version of this file under -# the terms of any one of the MPL, the GPL or the LGPL. -# -# ***** END LICENSE BLOCK ***** - -# -# Config stuff for NEC Mips SYSV -# - -include $(MOD_DEPTH)/config/UNIX.mk - -CPU_ARCH = mips - -ifdef NS_USE_GCC -CC = gcc -CCC = g++ -else -CC = $(NSDEPTH)/build/hcc cc -Xa -KGnum=0 -KOlimit=4000 -CCC = g++ -endif - -MKSHLIB = $(LD) $(DSO_LDOPTS) - -RANLIB = /bin/true - -DEFINES += -D_PR_LOCAL_THREADS_ONLY -OS_CFLAGS = $(ODD_CFLAGS) -DSVR4 -D__SVR4 -DNEC -Dnec_ews -DHAVE_STRERROR -OS_LIBS = -lsocket -lnsl -ldl $(LDOPTIONS) -LDOPTIONS = -lc -L/usr/ucblib -lucb - -NOSUCHFILE = /no-such-file - -DSO_LDOPTS = -G diff --git a/c-sdk/config/NEWS-OS.mk b/c-sdk/config/NEWS-OS.mk deleted file mode 100644 index 76a91ed..0000000 --- a/c-sdk/config/NEWS-OS.mk +++ /dev/null @@ -1,78 +0,0 @@ -# -# ***** BEGIN LICENSE BLOCK ***** -# Version: MPL 1.1/GPL 2.0/LGPL 2.1 -# -# The contents of this file are subject to the Mozilla Public License Version -# 1.1 (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS IS" basis, -# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -# for the specific language governing rights and limitations under the -# License. -# -# The Original Code is the Netscape Portable Runtime (NSPR). -# -# The Initial Developer of the Original Code is -# Netscape Communications Corporation. -# Portions created by the Initial Developer are Copyright (C) 1998-2000 -# the Initial Developer. All Rights Reserved. -# -# Contributor(s): -# -# Alternatively, the contents of this file may be used under the terms of -# either of the GNU General Public License Version 2 or later (the "GPL"), -# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -# in which case the provisions of the GPL or the LGPL are applicable instead -# of those above. If you wish to allow use of your version of this file only -# under the terms of either the GPL or the LGPL, and not to allow others to -# use your version of this file under the terms of the MPL, indicate your -# decision by deleting the provisions above and replace them with the notice -# and other provisions required by the GPL or the LGPL. If you do not delete -# the provisions above, a recipient may use your version of this file under -# the terms of any one of the MPL, the GPL or the LGPL. -# -# ***** END LICENSE BLOCK ***** - -###################################################################### -# Config stuff for Sony NEWS-OS -###################################################################### - -###################################################################### -# Version-independent -###################################################################### - -include $(MOD_DEPTH)/config/UNIX.mk - -ARCH := sony -CPU_ARCH := mips - -CC = cc -CCC = CC -RANLIB = /bin/true - -OS_INCLUDES = -I/usr/include -G++INCLUDES = -#OS_LIBS = -lsocket -lnsl -lgen -lresolv - -PLATFORM_FLAGS = -Xa -fullwarn -DSONY -PORT_FLAGS = -DSYSV -DSVR4 -D__svr4 -D__svr4__ -D_PR_LOCAL_THREADS_ONLY -DHAVE_SVID_GETTOD - -OS_CFLAGS = $(PLATFORM_FLAGS) $(PORT_FLAGS) - -###################################################################### -# Version-specific stuff -###################################################################### - -###################################################################### -# Overrides for defaults in config.mk (or wherever) -###################################################################### - -###################################################################### -# Other -###################################################################### - -MKSHLIB = $(LD) $(DSO_LDOPTS) - -DSO_LDOPTS = -G diff --git a/c-sdk/config/NEXTSTEP.mk b/c-sdk/config/NEXTSTEP.mk deleted file mode 100644 index 46ebe52..0000000 --- a/c-sdk/config/NEXTSTEP.mk +++ /dev/null @@ -1,72 +0,0 @@ -# -# ***** BEGIN LICENSE BLOCK ***** -# Version: MPL 1.1/GPL 2.0/LGPL 2.1 -# -# The contents of this file are subject to the Mozilla Public License Version -# 1.1 (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS IS" basis, -# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -# for the specific language governing rights and limitations under the -# License. -# -# The Original Code is the Netscape Portable Runtime (NSPR). -# -# The Initial Developer of the Original Code is -# Netscape Communications Corporation. -# Portions created by the Initial Developer are Copyright (C) 1998-2000 -# the Initial Developer. All Rights Reserved. -# -# Contributor(s): -# -# Alternatively, the contents of this file may be used under the terms of -# either of the GNU General Public License Version 2 or later (the "GPL"), -# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -# in which case the provisions of the GPL or the LGPL are applicable instead -# of those above. If you wish to allow use of your version of this file only -# under the terms of either the GPL or the LGPL, and not to allow others to -# use your version of this file under the terms of the MPL, indicate your -# decision by deleting the provisions above and replace them with the notice -# and other provisions required by the GPL or the LGPL. If you do not delete -# the provisions above, a recipient may use your version of this file under -# the terms of any one of the MPL, the GPL or the LGPL. -# -# ***** END LICENSE BLOCK ***** - -# -# Config stuff for NEXTSTEP -# - -include $(MOD_DEPTH)/config/UNIX.mk - -CC = cc -CCC = cc++ - -RANLIB = ranlib - -OS_REL_CFLAGS = -D$(shell uname -p) -CPU_ARCH := $(shell uname -p) - -# "Commons" are tentative definitions in a global scope, like this: -# int x; -# The meaning of a common is ambiguous. It may be a true definition: -# int x = 0; -# or it may be a declaration of a symbol defined in another file: -# extern int x; -# Use the -fno-common option to force all commons to become true -# definitions so that the linker can catch multiply-defined symbols. -# Also, common symbols are not allowed with Rhapsody dynamic libraries. - -OS_CFLAGS = $(DSO_CFLAGS) $(OS_REL_CFLAGS) -Wall -fno-common -pipe -DNEXTSTEP -DHAVE_STRERROR -DHAVE_BSD_FLOCK -D_POSIX_SOURCE -traditional-cpp -posix - -DEFINES += -D_PR_LOCAL_THREADS_ONLY - -ARCH = $(CPU_ARCH) - -# May override this with -bundle to create a loadable module. -#DSO_LDOPTS = -dynamiclib - -#MKSHLIB = $(CC) -arch $(CPU_ARCH) $(DSO_LDOPTS) -DLL_SUFFIX = dylib diff --git a/c-sdk/config/NTO.mk b/c-sdk/config/NTO.mk deleted file mode 100644 index d7176c7..0000000 --- a/c-sdk/config/NTO.mk +++ /dev/null @@ -1,94 +0,0 @@ -# -# ***** BEGIN LICENSE BLOCK ***** -# Version: MPL 1.1/GPL 2.0/LGPL 2.1 -# -# The contents of this file are subject to the Mozilla Public License Version -# 1.1 (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS IS" basis, -# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -# for the specific language governing rights and limitations under the -# License. -# -# The Original Code is the Netscape Portable Runtime (NSPR). -# -# The Initial Developer of the Original Code is -# Netscape Communications Corporation. -# Portions created by the Initial Developer are Copyright (C) 1999-2000 -# the Initial Developer. All Rights Reserved. -# -# Contributor(s): -# -# Alternatively, the contents of this file may be used under the terms of -# either of the GNU General Public License Version 2 or later (the "GPL"), -# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -# in which case the provisions of the GPL or the LGPL are applicable instead -# of those above. If you wish to allow use of your version of this file only -# under the terms of either the GPL or the LGPL, and not to allow others to -# use your version of this file under the terms of the MPL, indicate your -# decision by deleting the provisions above and replace them with the notice -# and other provisions required by the GPL or the LGPL. If you do not delete -# the provisions above, a recipient may use your version of this file under -# the terms of any one of the MPL, the GPL or the LGPL. -# -# ***** END LICENSE BLOCK ***** - -###################################################################### -# Config stuff for Neutrino -###################################################################### - -include $(MOD_DEPTH)/config/UNIX.mk - -# -# XXX -# Temporary define for the Client; to be removed when binary release is used -# -ifdef MOZILLA_CLIENT -ifneq ($(USE_PTHREADS),1) -CLASSIC_NSPR = 1 -endif -endif - -# -# The default implementation strategy for Linux is pthreads. -# -ifeq ($(CLASSIC_NSPR),1) -IMPL_STRATEGY = _EMU -DEFINES += -D_PR_LOCAL_THREADS_ONLY -else -USE_PTHREADS = 1 -IMPL_STRATEGY = _PTH -DEFINES += -D_REENTRANT -endif - - -AR = qcc -Vgcc_ntox86 -M -a $@ -CC = qcc -Vgcc_ntox86 -LD = $(CC) -CCC = $(CC) - -# Old Flags -DNO_REGEX -DSTRINGS_ALIGNED - -OS_CFLAGS = -Wc,-Wall -Wc,-Wno-parentheses -DNTO \ - -D_QNX_SOURCE -DHAVE_POINTER_LOCALTIME_R -shared - -COMPILER_TAG = _qcc -MKSHLIB = qcc -Vgcc_ntox86 -shared -Wl,-h$(@:$(OBJDIR)/%.so=%.so) -M - -RANLIB = ranlib -G++INCLUDES = -OS_LIBS = -EXTRA_LIBS = -lsocket - -ifdef BUILD_OPT -OPTIMIZER = -O1 -else -OPTIMIZER = -O1 -gstabs -endif - -NOSUCHFILE = /no-such-file - -GARBAGE += *.map - diff --git a/c-sdk/config/NetBSD.mk b/c-sdk/config/NetBSD.mk deleted file mode 100644 index bc73f04..0000000 --- a/c-sdk/config/NetBSD.mk +++ /dev/null @@ -1,91 +0,0 @@ -# -# ***** BEGIN LICENSE BLOCK ***** -# Version: MPL 1.1/GPL 2.0/LGPL 2.1 -# -# The contents of this file are subject to the Mozilla Public License Version -# 1.1 (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS IS" basis, -# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -# for the specific language governing rights and limitations under the -# License. -# -# The Original Code is the Netscape Portable Runtime (NSPR). -# -# The Initial Developer of the Original Code is -# Netscape Communications Corporation. -# Portions created by the Initial Developer are Copyright (C) 1998-2000 -# the Initial Developer. All Rights Reserved. -# -# Contributor(s): -# -# Alternatively, the contents of this file may be used under the terms of -# either of the GNU General Public License Version 2 or later (the "GPL"), -# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -# in which case the provisions of the GPL or the LGPL are applicable instead -# of those above. If you wish to allow use of your version of this file only -# under the terms of either the GPL or the LGPL, and not to allow others to -# use your version of this file under the terms of the MPL, indicate your -# decision by deleting the provisions above and replace them with the notice -# and other provisions required by the GPL or the LGPL. If you do not delete -# the provisions above, a recipient may use your version of this file under -# the terms of any one of the MPL, the GPL or the LGPL. -# -# ***** END LICENSE BLOCK ***** - -# -# Config stuff for NetBSD -# - -include $(MOD_DEPTH)/config/UNIX.mk - -CC = gcc -CCC = g++ -RANLIB = ranlib - -ifndef OBJECT_FMT -OBJECT_FMT := $(shell if echo __ELF__ | $${CC:-cc} -E - | grep -q __ELF__ ; then echo a.out ; else echo ELF ; fi) -endif - -OS_REL_CFLAGS = -ifeq (86,$(findstring 86,$(OS_TEST))) -CPU_ARCH = x86 -else -CPU_ARCH = $(OS_TEST) -endif - -OS_CFLAGS = $(DSO_CFLAGS) $(OS_REL_CFLAGS) -ansi -Wall -pipe -DNETBSD -DHAVE_STRERROR -DHAVE_BSD_FLOCK - -ifeq ($(USE_PTHREADS),1) -OS_LIBS = -lc_r -# XXX probably should define _THREAD_SAFE too. -else -OS_LIBS = -lc -DEFINES += -D_PR_LOCAL_THREADS_ONLY -endif - -ARCH = netbsd - -ifeq ($(OBJECT_FMT),ELF) -DLL_SUFFIX = so -else -DLL_SUFFIX = so.1.0 -# XXX work around a bug in the a.out ld(1). -OS_LIBS = -endif - -DSO_CFLAGS = -fPIC -DPIC -DSO_LDOPTS = -shared -ifeq ($(OBJECT_FMT),ELF) -DSO_LDOPTS +=-Wl,-soname,lib$(LIBRARY_NAME)$(LIBRARY_VERSION).$(DLL_SUFFIX) -endif - -ifdef LIBRUNPATH -DSO_LDOPTS += -Wl,-R$(LIBRUNPATH) -endif - -MKSHLIB = $(CC) $(DSO_LDOPTS) - -G++INCLUDES = -I/usr/include/g++ diff --git a/c-sdk/config/OS2.mk b/c-sdk/config/OS2.mk deleted file mode 100644 index b2fee04..0000000 --- a/c-sdk/config/OS2.mk +++ /dev/null @@ -1,117 +0,0 @@ -# -# ***** BEGIN LICENSE BLOCK ***** -# Version: MPL 1.1/GPL 2.0/LGPL 2.1 -# -# The contents of this file are subject to the Mozilla Public License Version -# 1.1 (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS IS" basis, -# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -# for the specific language governing rights and limitations under the -# License. -# -# The Original Code is the Netscape Portable Runtime (NSPR). -# -# The Initial Developer of the Original Code is -# Netscape Communications Corporation. -# Portions created by the Initial Developer are Copyright (C) 1998-2000 -# the Initial Developer. All Rights Reserved. -# -# Contributor(s): -# -# Alternatively, the contents of this file may be used under the terms of -# either of the GNU General Public License Version 2 or later (the "GPL"), -# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -# in which case the provisions of the GPL or the LGPL are applicable instead -# of those above. If you wish to allow use of your version of this file only -# under the terms of either the GPL or the LGPL, and not to allow others to -# use your version of this file under the terms of the MPL, indicate your -# decision by deleting the provisions above and replace them with the notice -# and other provisions required by the GPL or the LGPL. If you do not delete -# the provisions above, a recipient may use your version of this file under -# the terms of any one of the MPL, the GPL or the LGPL. -# -# ***** END LICENSE BLOCK ***** - -# -# Configuration common to all (supported) versions of OS/2 -# -# OS_CFLAGS is the command line options for the compiler when -# building the .DLL object files. -# OS_EXE_CFLAGS is the command line options for the compiler -# when building the .EXE object files; this is for the test -# programs. -# the macro OS_CFLAGS is set to OS_EXE_CFLAGS inside of the -# makefile for the pr/tests directory. ... Hack. - -# Specify toolset. -XP_OS2 = 1 - -# -# On OS/2 we use ash... -# -SHELL = ASH.EXE - -RANLIB = @echo RANLIB -BSDECHO = @echo BSDECHO -NSINSTALL = nsinstall -INSTALL = $(NSINSTALL) -MAKE_OBJDIR = if test ! -d $(OBJDIR); then mkdir $(OBJDIR); fi - -GARBAGE = - -XP_DEFINE = -DXP_PC -DLL_SUFFIX = dll -OBJ_SUFFIX = o - - -# Name of the binary code directories -ifdef MOZ_LITE -OBJDIR_NAME = $(subst OS2,NAV,$(OS_CONFIG))_$(MOZ_OS2_TOOLS)$(OBJDIR_TAG).OBJ -else -OBJDIR_NAME = $(OS_CONFIG)_$(MOZ_OS2_TOOLS)$(OBJDIR_TAG).OBJ -endif - -OS_DLLFLAGS = -nologo -DLL -FREE -NOE - -CC = gcc -CCC = gcc -LINK = gcc -RC = rc.exe -FILTER = emxexp -IMPLIB = emximp -o - -OMF_FLAG = -Zomf -AR = emxomfar r $@ -LIB_SUFFIX = lib - -# if we compile with GCC we can also use the high-memory flag if specified -ifeq ($(MOZ_OS2_HIGH_MEMORY),1) -HIGHMEM_LDFLAG = -Zhigh-mem -endif - -OS_LIBS = -lemxio - -DEFINES += -DXP_OS2 -DOS2EMX_PLAIN_CHAR - -OS_CFLAGS = $(OMF_FLAG) -Wall -Wno-unused -Zmtd -OS_EXE_CFLAGS = $(OMF_FLAG) -Wall -Wno-unused -Zmtd -OS_DLLFLAGS = $(OMF_FLAG) -Zmt -Zdll -Zcrtdll $(HIGHMEM_LDFLAG) -o $@ -EXEFLAGS += -Zlinker /DE - -ifdef BUILD_OPT -OPTIMIZER = -O3 -DLLFLAGS = $(HIGHMEM_LDFLAG) -EXEFLAGS = $(HIGHMEM_LDFLAG) -Zmtd -o $@ -else -OPTIMIZER = -g #-s -DLLFLAGS = -g $(HIGHMEM_LDFLAG) #-s -EXEFLAGS = -g $(HIGHMEM_LDFLAG) $(OMF_FLAG) -Zmtd -L$(DIST)/lib -o $@ # -s -EXEFLAGS += -Zlinker /DE -endif - -AR_EXTRA_ARGS = - - diff --git a/c-sdk/config/OSF1.mk b/c-sdk/config/OSF1.mk deleted file mode 100644 index aaf8d2e..0000000 --- a/c-sdk/config/OSF1.mk +++ /dev/null @@ -1,135 +0,0 @@ -# -# ***** BEGIN LICENSE BLOCK ***** -# Version: MPL 1.1/GPL 2.0/LGPL 2.1 -# -# The contents of this file are subject to the Mozilla Public License Version -# 1.1 (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS IS" basis, -# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -# for the specific language governing rights and limitations under the -# License. -# -# The Original Code is the Netscape Portable Runtime (NSPR). -# -# The Initial Developer of the Original Code is -# Netscape Communications Corporation. -# Portions created by the Initial Developer are Copyright (C) 1998-2000 -# the Initial Developer. All Rights Reserved. -# -# Contributor(s): -# -# Alternatively, the contents of this file may be used under the terms of -# either of the GNU General Public License Version 2 or later (the "GPL"), -# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -# in which case the provisions of the GPL or the LGPL are applicable instead -# of those above. If you wish to allow use of your version of this file only -# under the terms of either the GPL or the LGPL, and not to allow others to -# use your version of this file under the terms of the MPL, indicate your -# decision by deleting the provisions above and replace them with the notice -# and other provisions required by the GPL or the LGPL. If you do not delete -# the provisions above, a recipient may use your version of this file under -# the terms of any one of the MPL, the GPL or the LGPL. -# -# ***** END LICENSE BLOCK ***** - -# -# Config stuff for DEC OSF/1 -# - -# -# The Bourne shell (sh) on OSF1 doesn't handle "set -e" correctly, -# which we use to stop LOOP_OVER_DIRS submakes as soon as any -# submake fails. So we use the Korn shell instead. -# -SHELL = /usr/bin/ksh - -include $(MOD_DEPTH)/config/UNIX.mk - -# -# XXX -# Temporary define for the Client; to be removed when binary release is used -# -ifdef MOZILLA_CLIENT -ifneq ($(USE_PTHREADS),1) -CLASSIC_NSPR = 1 -endif -endif - -# -# Prior to OSF1 V4.0, classic nspr is the default (and only) implementation -# strategy. -# -# On OSF1 V4.0, pthreads is the default implementation strategy. -# Classic nspr is also available. -# -ifeq (,$(filter-out V2.0 V3.2,$(OS_RELEASE))) -CLASSIC_NSPR = 1 -endif - -ifeq ($(CLASSIC_NSPR), 1) - IMPL_STRATEGY = _EMU - DEFINES += -D_PR_LOCAL_THREADS_ONLY -else - USE_PTHREADS = 1 -ifeq ($(HAVE_CCONF), 1) - IMPL_STRATEGY = -else - IMPL_STRATEGY = _PTH -endif -endif - -ifeq ($(HAVE_CCONF), 1) -CC = cc $(NON_LD_FLAGS) -else -CC = cc $(NON_LD_FLAGS) -std1 -endif - -ifneq ($(OS_RELEASE),V2.0) -CC += -readonly_strings -endif -# The C++ compiler cxx has -readonly_strings on by default. -CCC = cxx - -RANLIB = /bin/true - -CPU_ARCH = alpha - -ifdef BUILD_OPT -OPTIMIZER += -Olimit 4000 -endif - -NON_LD_FLAGS = -ieee_with_inexact - -OS_CFLAGS = -DOSF1 -D_REENTRANT - -ifeq ($(HAVE_CCONF), 1) -OS_CFLAGS += -DIS_64 -DOSF1V4D -DOSF1 -endif - -ifneq (,$(filter-out V2.0 V3.2,$(OS_RELEASE))) -OS_CFLAGS += -DOSF1_HAVE_MACHINE_BUILTINS_H -endif - -ifeq (,$(filter-out V2.0 V3.2,$(OS_RELEASE))) -OS_CFLAGS += -DHAVE_INT_LOCALTIME_R -else -OS_CFLAGS += -DHAVE_POINTER_LOCALTIME_R -endif - -ifeq (,$(filter-out V4.0%,$(OS_RELEASE))) -OS_CFLAGS += -DOSF1V4_MAP_PRIVATE_BUG -endif - -ifeq ($(USE_PTHREADS),1) -OS_CFLAGS += -pthread -ifneq (,$(filter-out V2.0 V3.2,$(OS_RELEASE))) -OS_CFLAGS += -D_PR_HAVE_THREADSAFE_GETHOST -endif -endif - -# The command to build a shared library on OSF1. -MKSHLIB = ld -shared -all -expect_unresolved "*" -soname $(notdir $@) -DSO_LDOPTS = -shared diff --git a/c-sdk/config/OpenBSD.mk b/c-sdk/config/OpenBSD.mk deleted file mode 100644 index 905eac6..0000000 --- a/c-sdk/config/OpenBSD.mk +++ /dev/null @@ -1,75 +0,0 @@ -# -# ***** BEGIN LICENSE BLOCK ***** -# Version: MPL 1.1/GPL 2.0/LGPL 2.1 -# -# The contents of this file are subject to the Mozilla Public License Version -# 1.1 (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS IS" basis, -# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -# for the specific language governing rights and limitations under the -# License. -# -# The Original Code is the Netscape Portable Runtime (NSPR). -# -# The Initial Developer of the Original Code is -# Netscape Communications Corporation. -# Portions created by the Initial Developer are Copyright (C) 1998-2000 -# the Initial Developer. All Rights Reserved. -# -# Contributor(s): -# -# Alternatively, the contents of this file may be used under the terms of -# either of the GNU General Public License Version 2 or later (the "GPL"), -# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -# in which case the provisions of the GPL or the LGPL are applicable instead -# of those above. If you wish to allow use of your version of this file only -# under the terms of either the GPL or the LGPL, and not to allow others to -# use your version of this file under the terms of the MPL, indicate your -# decision by deleting the provisions above and replace them with the notice -# and other provisions required by the GPL or the LGPL. If you do not delete -# the provisions above, a recipient may use your version of this file under -# the terms of any one of the MPL, the GPL or the LGPL. -# -# ***** END LICENSE BLOCK ***** - -# -# Config stuff for OpenBSD -# - -include $(MOD_DEPTH)/config/UNIX.mk - -CC = gcc -CCC = g++ -LD = $(CC) -RANLIB = ranlib - -OS_REL_CFLAGS = -ifeq (86,$(findstring 86,$(OS_TEST))) -CPU_ARCH = x86 -else -CPU_ARCH = $(OS_TEST) -endif - -OS_CFLAGS = $(DSO_CFLAGS) $(OS_REL_CFLAGS) -ansi -Wall -pipe $(THREAD_FLAG) -DOPENBSD -DHAVE_STRERROR -DHAVE_BSD_FLOCK - -ifeq ($(USE_PTHREADS),1) -THREAD_FLAG += -pthread -# XXX probably should define _THREAD_SAFE too. -else -DEFINES += -D_PR_LOCAL_THREADS_ONLY -endif - -ARCH = openbsd - -DLL_SUFFIX = so.1.0 - -DSO_CFLAGS = -fPIC - -DSO_LDOPTS = -shared - -MKSHLIB = $(LD) $(DSO_LDOPTS) - -G++INCLUDES = -I/usr/include/g++ diff --git a/c-sdk/config/OpenVMS.mk b/c-sdk/config/OpenVMS.mk deleted file mode 100644 index 6351aa1..0000000 --- a/c-sdk/config/OpenVMS.mk +++ /dev/null @@ -1,54 +0,0 @@ -# -# ***** BEGIN LICENSE BLOCK ***** -# Version: MPL 1.1/GPL 2.0/LGPL 2.1 -# -# The contents of this file are subject to the Mozilla Public License Version -# 1.1 (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS IS" basis, -# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -# for the specific language governing rights and limitations under the -# License. -# -# The Original Code is the Netscape Portable Runtime (NSPR). -# -# The Initial Developer of the Original Code is -# Netscape Communications Corporation. -# Portions created by the Initial Developer are Copyright (C) 1998-2000 -# the Initial Developer. All Rights Reserved. -# -# Contributor(s): -# -# Alternatively, the contents of this file may be used under the terms of -# either of the GNU General Public License Version 2 or later (the "GPL"), -# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -# in which case the provisions of the GPL or the LGPL are applicable instead -# of those above. If you wish to allow use of your version of this file only -# under the terms of either the GPL or the LGPL, and not to allow others to -# use your version of this file under the terms of the MPL, indicate your -# decision by deleting the provisions above and replace them with the notice -# and other provisions required by the GPL or the LGPL. If you do not delete -# the provisions above, a recipient may use your version of this file under -# the terms of any one of the MPL, the GPL or the LGPL. -# -# ***** END LICENSE BLOCK ***** - -# -# Config stuff for Compaq OpenVMS -# - -include $(MOD_DEPTH)/config/UNIX.mk - -RANLIB = /bin/true - -CPU_ARCH_TAG = _$(CPU_ARCH) - -# -# XCFLAGS are the only CFLAGS that are used during a link operation. Defining -# OPTIMIZER in XCFLAGS means that each compilation line gets OPTIMIZER -# included twice, but at least we get OPTIMIZER included in the link -# operations; and OpenVMS needs it! -# -XCFLAGS += $(OPTIMIZER) diff --git a/c-sdk/config/QNX.mk b/c-sdk/config/QNX.mk deleted file mode 100644 index 3bda09b..0000000 --- a/c-sdk/config/QNX.mk +++ /dev/null @@ -1,61 +0,0 @@ -# -# ***** BEGIN LICENSE BLOCK ***** -# Version: MPL 1.1/GPL 2.0/LGPL 2.1 -# -# The contents of this file are subject to the Mozilla Public License Version -# 1.1 (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS IS" basis, -# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -# for the specific language governing rights and limitations under the -# License. -# -# The Original Code is the Netscape Portable Runtime (NSPR). -# -# The Initial Developer of the Original Code is -# Netscape Communications Corporation. -# Portions created by the Initial Developer are Copyright (C) 1998-2000 -# the Initial Developer. All Rights Reserved. -# -# Contributor(s): -# -# Alternatively, the contents of this file may be used under the terms of -# either of the GNU General Public License Version 2 or later (the "GPL"), -# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -# in which case the provisions of the GPL or the LGPL are applicable instead -# of those above. If you wish to allow use of your version of this file only -# under the terms of either the GPL or the LGPL, and not to allow others to -# use your version of this file under the terms of the MPL, indicate your -# decision by deleting the provisions above and replace them with the notice -# and other provisions required by the GPL or the LGPL. If you do not delete -# the provisions above, a recipient may use your version of this file under -# the terms of any one of the MPL, the GPL or the LGPL. -# -# ***** END LICENSE BLOCK ***** - -###################################################################### -# Config stuff for QNX. -###################################################################### - -include $(MOD_DEPTH)/config/UNIX.mk - -CPU_ARCH = x86 - -ifndef NS_USE_GCC -CC = cc -CCC = cc -endif -RANLIB = true - -G++INCLUDES = -OS_LIBS = -XLDOPTS = -lunix - -OS_CFLAGS = -DQNX -Di386 -D_PR_LOCAL_THREADS_ONLY -D_PR_NEED_H_ERRNO -#IMPL_STRATEGY = _EMU - -NOSUCHFILE = /no-such-file - -GARBAGE = $(wildcard *.err) diff --git a/c-sdk/config/README b/c-sdk/config/README deleted file mode 100644 index 2ff2525..0000000 --- a/c-sdk/config/README +++ /dev/null @@ -1,46 +0,0 @@ -# -# ***** BEGIN LICENSE BLOCK ***** -# Version: MPL 1.1/GPL 2.0/LGPL 2.1 -# -# The contents of this file are subject to the Mozilla Public License Version -# 1.1 (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS IS" basis, -# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -# for the specific language governing rights and limitations under the -# License. -# -# The Original Code is mozilla.org code. -# -# The Initial Developer of the Original Code is -# Netscape Communications Corporation. -# Portions created by the Initial Developer are Copyright (C) 2001 -# the Initial Developer. All Rights Reserved. -# -# Contributor(s): -# -# Alternatively, the contents of this file may be used under the terms of -# either of the GNU General Public License Version 2 or later (the "GPL"), -# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -# in which case the provisions of the GPL or the LGPL are applicable instead -# of those above. If you wish to allow use of your version of this file only -# under the terms of either the GPL or the LGPL, and not to allow others to -# use your version of this file under the terms of the MPL, indicate your -# decision by deleting the provisions above and replace them with the notice -# and other provisions required by the GPL or the LGPL. If you do not delete -# the provisions above, a recipient may use your version of this file under -# the terms of any one of the MPL, the GPL or the LGPL. -# -# ***** END LICENSE BLOCK ***** - -This part of of the tree taken from NSPR 4.1. The -NSPR config tree was tagged with: - -cvs tag ldapcsdk_branch50-config - - -The version of NSPR this was taken from: - -NSPRPUB_RELEASE_4_1 (revision: 3.23) diff --git a/c-sdk/config/Rhapsody.mk b/c-sdk/config/Rhapsody.mk deleted file mode 100644 index 04af9d5..0000000 --- a/c-sdk/config/Rhapsody.mk +++ /dev/null @@ -1,87 +0,0 @@ -# -# ***** BEGIN LICENSE BLOCK ***** -# Version: MPL 1.1/GPL 2.0/LGPL 2.1 -# -# The contents of this file are subject to the Mozilla Public License Version -# 1.1 (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS IS" basis, -# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -# for the specific language governing rights and limitations under the -# License. -# -# The Original Code is the Netscape Portable Runtime (NSPR). -# -# The Initial Developer of the Original Code is -# Netscape Communications Corporation. -# Portions created by the Initial Developer are Copyright (C) 1998-2000 -# the Initial Developer. All Rights Reserved. -# -# Contributor(s): -# -# Alternatively, the contents of this file may be used under the terms of -# either of the GNU General Public License Version 2 or later (the "GPL"), -# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -# in which case the provisions of the GPL or the LGPL are applicable instead -# of those above. If you wish to allow use of your version of this file only -# under the terms of either the GPL or the LGPL, and not to allow others to -# use your version of this file under the terms of the MPL, indicate your -# decision by deleting the provisions above and replace them with the notice -# and other provisions required by the GPL or the LGPL. If you do not delete -# the provisions above, a recipient may use your version of this file under -# the terms of any one of the MPL, the GPL or the LGPL. -# -# ***** END LICENSE BLOCK ***** - -# -# Config stuff for Rhapsody -# - -include $(MOD_DEPTH)/config/UNIX.mk - -# -# The default implementation strategy for Rhapsody is pthreads. -# -ifeq ($(CLASSIC_NSPR),1) -IMPL_STRATEGY = _EMU -DEFINES += -D_PR_LOCAL_THREADS_ONLY -else -USE_PTHREADS = 1 -IMPL_STRATEGY = _PTH -endif - -CC = cc -CCC = c++ -RANLIB = ranlib - -ifeq (86,$(findstring 86,$(OS_TEST))) -OS_REL_CFLAGS = -mno-486 -Di386 -CPU_ARCH = i386 -else -OS_REL_CFLAGS = -Dppc -CPU_ARCH = ppc -endif - -# "Commons" are tentative definitions in a global scope, like this: -# int x; -# The meaning of a common is ambiguous. It may be a true definition: -# int x = 0; -# or it may be a declaration of a symbol defined in another file: -# extern int x; -# Use the -fno-common option to force all commons to become true -# definitions so that the linker can catch multiply-defined symbols. -# Also, common symbols are not allowed with Rhapsody dynamic libraries. - -OS_CFLAGS = $(DSO_CFLAGS) $(OS_REL_CFLAGS) -Wmost -fno-common -pipe -DRHAPSODY -DHAVE_STRERROR -DHAVE_BSD_FLOCK - -ARCH = rhapsody - -# May override this with -bundle to create a loadable module. -DSO_LDOPTS = -dynamiclib -compatibility_version 1 -current_version 1 -all_load - -MKSHLIB = $(CC) -arch $(CPU_ARCH) $(DSO_LDOPTS) -DLL_SUFFIX = dylib - -G++INCLUDES = -I/usr/include/g++ diff --git a/c-sdk/config/SCOOS.mk b/c-sdk/config/SCOOS.mk deleted file mode 100644 index 42b98a0..0000000 --- a/c-sdk/config/SCOOS.mk +++ /dev/null @@ -1,67 +0,0 @@ -# -# ***** BEGIN LICENSE BLOCK ***** -# Version: MPL 1.1/GPL 2.0/LGPL 2.1 -# -# The contents of this file are subject to the Mozilla Public License Version -# 1.1 (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS IS" basis, -# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -# for the specific language governing rights and limitations under the -# License. -# -# The Original Code is the Netscape Portable Runtime (NSPR). -# -# The Initial Developer of the Original Code is -# Netscape Communications Corporation. -# Portions created by the Initial Developer are Copyright (C) 1998-2000 -# the Initial Developer. All Rights Reserved. -# -# Contributor(s): -# -# Alternatively, the contents of this file may be used under the terms of -# either of the GNU General Public License Version 2 or later (the "GPL"), -# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -# in which case the provisions of the GPL or the LGPL are applicable instead -# of those above. If you wish to allow use of your version of this file only -# under the terms of either the GPL or the LGPL, and not to allow others to -# use your version of this file under the terms of the MPL, indicate your -# decision by deleting the provisions above and replace them with the notice -# and other provisions required by the GPL or the LGPL. If you do not delete -# the provisions above, a recipient may use your version of this file under -# the terms of any one of the MPL, the GPL or the LGPL. -# -# ***** END LICENSE BLOCK ***** - -# -# Config stuff for SCO OpenServer for x86. -# SCO OpenServer 5, based on SVR3.2, is intended for small to -# medium customers. -# - -include $(MOD_DEPTH)/config/UNIX.mk - -CC = cc -b elf -KPIC -CCC = $(NSDEPTH)/build/hcpp CC +.cpp +w -RANLIB = /bin/true - -DEFINES += -D_PR_LOCAL_THREADS_ONLY -# -# -DSCO - Changes to Netscape source (consistent with AIX, LINUX, etc..) -# -Dsco - Needed for /usr/include/X11/* -# -OS_CFLAGS = -DSYSV -D_SVID3 -DHAVE_STRERROR -D_PR_NEED_H_ERRNO -DSCO -Dsco -#OS_LIBS = -lpmapi -lsocket -lc - -MKSHLIB = $(LD) $(DSO_LDOPTS) - -CPU_ARCH = x86 -ARCH = sco - -NOSUCHFILE = /no-such-file - -BSDECHO = /bin/echo - -DSO_LDOPTS = -b elf -G diff --git a/c-sdk/config/SINIX.mk b/c-sdk/config/SINIX.mk deleted file mode 100644 index 5d71321..0000000 --- a/c-sdk/config/SINIX.mk +++ /dev/null @@ -1,112 +0,0 @@ -# -# ***** BEGIN LICENSE BLOCK ***** -# Version: MPL 1.1/GPL 2.0/LGPL 2.1 -# -# The contents of this file are subject to the Mozilla Public License Version -# 1.1 (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS IS" basis, -# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -# for the specific language governing rights and limitations under the -# License. -# -# The Original Code is the Netscape Portable Runtime (NSPR). -# -# The Initial Developer of the Original Code is -# Netscape Communications Corporation. -# Portions created by the Initial Developer are Copyright (C) 1998-2000 -# the Initial Developer. All Rights Reserved. -# -# Contributor(s): -# -# Alternatively, the contents of this file may be used under the terms of -# either of the GNU General Public License Version 2 or later (the "GPL"), -# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -# in which case the provisions of the GPL or the LGPL are applicable instead -# of those above. If you wish to allow use of your version of this file only -# under the terms of either the GPL or the LGPL, and not to allow others to -# use your version of this file under the terms of the MPL, indicate your -# decision by deleting the provisions above and replace them with the notice -# and other provisions required by the GPL or the LGPL. If you do not delete -# the provisions above, a recipient may use your version of this file under -# the terms of any one of the MPL, the GPL or the LGPL. -# -# ***** END LICENSE BLOCK ***** - -# -# Config stuff for SNI SINIX (aka ReliantUNIX) -# - -include $(MOD_DEPTH)/config/UNIX.mk - -ifeq (86,$(findstring 86,$(OS_TEST))) -CPU_ARCH = x86 -else -CPU_ARCH = mips -endif -CPU_ARCH_TAG = _$(CPU_ARCH) - -# use gcc -tf- -NS_USE_GCC = 1 - -ifeq ($(NS_USE_GCC),1) -## gcc-2.7.2 homebrewn -CC = gcc -COMPILER_TAG = _gcc -CCC = g++ -AS = $(CC) -x assembler-with-cpp -ifeq ($(CPU_ARCH),mips) -LD = gld -endif -ODD_CFLAGS = -Wall -Wno-format -ifeq ($(CPU_ARCH),mips) -# The -pipe flag only seems to work on the mips version of SINIX. -ODD_CFLAGS += -pipe -endif -ifdef BUILD_OPT -OPTIMIZER = -O -#OPTIMIZER = -O6 -endif -MKSHLIB = $(LD) -G -z defs -h $(@:$(OBJDIR)/%.so=%.so) -#DSO_LDOPTS = -G -Xlinker -Blargedynsym -else -## native compiler (CDS++ 1.0) -CC = /usr/bin/cc -CCC = /usr/bin/CC -AS = /usr/bin/cc -#ODD_CFLAGS = -fullwarn -xansi -ODD_CFLAGS = -ifdef BUILD_OPT -#OPTIMIZER = -Olimit 4000 -OPTIMIZER = -O -F Olimit,4000 -endif -MKSHLIB = $(LD) -G -z defs -h $(@:$(OBJDIR)/%.so=%.so) -#DSO_LDOPTS = -G -W l,-Blargedynsym -endif - -ifeq ($(CPU_ARCH),x86) -DEFINES += -Di386 -endif - -ODD_CFLAGS += -DSVR4 -DSNI -DRELIANTUNIX -Dsinix -DHAVE_SVID_GETTOD - -# On SINIX 5.43, need to define IP_MULTICAST in order to get the -# IP multicast macro and struct definitions in netinet/in.h. -# (SINIX 5.42 does not have IP multicast at all.) -ifeq ($(OS_RELEASE),5.43) -ODD_CFLAGS += -DIP_MULTICAST -endif - -RANLIB = /bin/true - -# For purify -NOMD_OS_CFLAGS = $(ODD_CFLAGS) - -# we do not have -MDupdate ... -OS_CFLAGS = $(NOMD_OS_CFLAGS) -OS_LIBS = -lsocket -lnsl -lresolv -ldl -lc -NOSUCHFILE = /no-such-file - -DEFINES += -D_PR_LOCAL_THREADS_ONLY diff --git a/c-sdk/config/SunOS.mk b/c-sdk/config/SunOS.mk deleted file mode 100644 index 7f92abb..0000000 --- a/c-sdk/config/SunOS.mk +++ /dev/null @@ -1,46 +0,0 @@ -# -# ***** BEGIN LICENSE BLOCK ***** -# Version: MPL 1.1/GPL 2.0/LGPL 2.1 -# -# The contents of this file are subject to the Mozilla Public License Version -# 1.1 (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS IS" basis, -# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -# for the specific language governing rights and limitations under the -# License. -# -# The Original Code is the Netscape Portable Runtime (NSPR). -# -# The Initial Developer of the Original Code is -# Netscape Communications Corporation. -# Portions created by the Initial Developer are Copyright (C) 1998-2000 -# the Initial Developer. All Rights Reserved. -# -# Contributor(s): -# -# Alternatively, the contents of this file may be used under the terms of -# either of the GNU General Public License Version 2 or later (the "GPL"), -# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -# in which case the provisions of the GPL or the LGPL are applicable instead -# of those above. If you wish to allow use of your version of this file only -# under the terms of either the GPL or the LGPL, and not to allow others to -# use your version of this file under the terms of the MPL, indicate your -# decision by deleting the provisions above and replace them with the notice -# and other provisions required by the GPL or the LGPL. If you do not delete -# the provisions above, a recipient may use your version of this file under -# the terms of any one of the MPL, the GPL or the LGPL. -# -# ***** END LICENSE BLOCK ***** - -# -# Config stuff for SunOS. -# 4 and 5 are vastly different, so we use 2 different files. -# -ifeq ($(basename $(OS_RELEASE)),4.1) -include $(MOD_DEPTH)/config/SunOS4.mk -else -include $(MOD_DEPTH)/config/SunOS5.mk -endif diff --git a/c-sdk/config/SunOS4.mk b/c-sdk/config/SunOS4.mk deleted file mode 100644 index 240ecd3..0000000 --- a/c-sdk/config/SunOS4.mk +++ /dev/null @@ -1,72 +0,0 @@ -# -# ***** BEGIN LICENSE BLOCK ***** -# Version: MPL 1.1/GPL 2.0/LGPL 2.1 -# -# The contents of this file are subject to the Mozilla Public License Version -# 1.1 (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS IS" basis, -# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -# for the specific language governing rights and limitations under the -# License. -# -# The Original Code is the Netscape Portable Runtime (NSPR). -# -# The Initial Developer of the Original Code is -# Netscape Communications Corporation. -# Portions created by the Initial Developer are Copyright (C) 1998-2000 -# the Initial Developer. All Rights Reserved. -# -# Contributor(s): -# -# Alternatively, the contents of this file may be used under the terms of -# either of the GNU General Public License Version 2 or later (the "GPL"), -# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -# in which case the provisions of the GPL or the LGPL are applicable instead -# of those above. If you wish to allow use of your version of this file only -# under the terms of either the GPL or the LGPL, and not to allow others to -# use your version of this file under the terms of the MPL, indicate your -# decision by deleting the provisions above and replace them with the notice -# and other provisions required by the GPL or the LGPL. If you do not delete -# the provisions above, a recipient may use your version of this file under -# the terms of any one of the MPL, the GPL or the LGPL. -# -# ***** END LICENSE BLOCK ***** - -# -# Config stuff for SunOS4.1 -# - -include $(MOD_DEPTH)/config/UNIX.mk - -# SunOS 4 _requires_ that shared libs have a version number. -# XXX FIXME: Version number should use NSPR_VERSION_NUMBER? -DLL_SUFFIX = so.1.0 - -CC = gcc -CCC = g++ -COMPILER_TAG = _gcc - -RANLIB = ranlib - -CPU_ARCH = sparc - -DEFINES += -D_PR_LOCAL_THREADS_ONLY -# Purify doesn't like -MDupdate -NOMD_OS_CFLAGS = -Wall -Wno-format -DSUNOS4 - -ifdef NO_MDUPDATE -OS_CFLAGS = $(DSO_CFLAGS) $(NOMD_OS_CFLAGS) -else -OS_CFLAGS = $(DSO_CFLAGS) $(NOMD_OS_CFLAGS) -MDupdate $(DEPENDENCIES) -endif - -MKSHLIB = $(LD) $(DSO_LDOPTS) - -NOSUCHFILE = /no-such-file - -DSO_LDOPTS = -# -fPIC generates position-independent code for use in a shared library. -DSO_CFLAGS = -fPIC diff --git a/c-sdk/config/SunOS5.8_i86pc.mk b/c-sdk/config/SunOS5.8_i86pc.mk deleted file mode 100644 index b96fc53..0000000 --- a/c-sdk/config/SunOS5.8_i86pc.mk +++ /dev/null @@ -1,53 +0,0 @@ -# -# ***** BEGIN LICENSE BLOCK ***** -# Version: MPL 1.1/GPL 2.0/LGPL 2.1 -# -# The contents of this file are subject to the Mozilla Public License Version -# 1.1 (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS IS" basis, -# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -# for the specific language governing rights and limitations under the -# License. -# -# The Original Code is the Netscape security libraries. -# -# The Initial Developer of the Original Code is -# Netscape Communications Corporation. -# Portions created by the Initial Developer are Copyright (C) 2000 -# the Initial Developer. All Rights Reserved. -# -# Contributor(s): -# -# Alternatively, the contents of this file may be used under the terms of -# either of the GNU General Public License Version 2 or later (the "GPL"), -# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -# in which case the provisions of the GPL or the LGPL are applicable instead -# of those above. If you wish to allow use of your version of this file only -# under the terms of either the GPL or the LGPL, and not to allow others to -# use your version of this file under the terms of the MPL, indicate your -# decision by deleting the provisions above and replace them with the notice -# and other provisions required by the GPL or the LGPL. If you do not delete -# the provisions above, a recipient may use your version of this file under -# the terms of any one of the MPL, the GPL or the LGPL. -# -# ***** END LICENSE BLOCK ***** - -# Config stuff for Solaris 8 on x86 -# - -SOL_CFLAGS = -D_SVID_GETTOD - -include $(CORE_DEPTH)/coreconf/SunOS5.mk - -CPU_ARCH = x86 -ARCHFLAG = -OS_DEFINES += -Di386 - -ifeq ($(OS_RELEASE),5.8_i86pc) - OS_DEFINES += -DSOLARIS2_8 -endif - -OS_LIBS += -lthread -lnsl -lsocket -lposix4 -ldl -lc diff --git a/c-sdk/config/SunOS5.9.mk b/c-sdk/config/SunOS5.9.mk deleted file mode 100755 index cd20912..0000000 --- a/c-sdk/config/SunOS5.9.mk +++ /dev/null @@ -1,49 +0,0 @@ -# -# ***** BEGIN LICENSE BLOCK ***** -# Version: MPL 1.1/GPL 2.0/LGPL 2.1 -# -# The contents of this file are subject to the Mozilla Public License Version -# 1.1 (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS IS" basis, -# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -# for the specific language governing rights and limitations under the -# License. -# -# The Original Code is the Netscape security libraries. -# -# The Initial Developer of the Original Code is -# Netscape Communications Corporation. -# Portions created by the Initial Developer are Copyright (C) 1994-2000 -# the Initial Developer. All Rights Reserved. -# -# Contributor(s): -# -# Alternatively, the contents of this file may be used under the terms of -# either of the GNU General Public License Version 2 or later (the "GPL"), -# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -# in which case the provisions of the GPL or the LGPL are applicable instead -# of those above. If you wish to allow use of your version of this file only -# under the terms of either the GPL or the LGPL, and not to allow others to -# use your version of this file under the terms of the MPL, indicate your -# decision by deleting the provisions above and replace them with the notice -# and other provisions required by the GPL or the LGPL. If you do not delete -# the provisions above, a recipient may use your version of this file under -# the terms of any one of the MPL, the GPL or the LGPL. -# -# ***** END LICENSE BLOCK ***** - -# Config stuff for SunOS5.9 -# - -SOL_CFLAGS += -D_SVID_GETTOD - -include $(CORE_DEPTH)/coreconf/SunOS5.mk - -ifeq ($(OS_RELEASE),5.9) - OS_DEFINES += -DSOLARIS2_9 -endif - -OS_LIBS += -lthread -lnsl -lsocket -lposix4 -ldl -lc diff --git a/c-sdk/config/SunOS5.9_i86pc.mk b/c-sdk/config/SunOS5.9_i86pc.mk deleted file mode 100755 index 8a0fd20..0000000 --- a/c-sdk/config/SunOS5.9_i86pc.mk +++ /dev/null @@ -1,53 +0,0 @@ -# -# ***** BEGIN LICENSE BLOCK ***** -# Version: MPL 1.1/GPL 2.0/LGPL 2.1 -# -# The contents of this file are subject to the Mozilla Public License Version -# 1.1 (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS IS" basis, -# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -# for the specific language governing rights and limitations under the -# License. -# -# The Original Code is the Netscape security libraries. -# -# The Initial Developer of the Original Code is -# Netscape Communications Corporation. -# Portions created by the Initial Developer are Copyright (C) 2000 -# the Initial Developer. All Rights Reserved. -# -# Contributor(s): -# -# Alternatively, the contents of this file may be used under the terms of -# either of the GNU General Public License Version 2 or later (the "GPL"), -# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -# in which case the provisions of the GPL or the LGPL are applicable instead -# of those above. If you wish to allow use of your version of this file only -# under the terms of either the GPL or the LGPL, and not to allow others to -# use your version of this file under the terms of the MPL, indicate your -# decision by deleting the provisions above and replace them with the notice -# and other provisions required by the GPL or the LGPL. If you do not delete -# the provisions above, a recipient may use your version of this file under -# the terms of any one of the MPL, the GPL or the LGPL. -# -# ***** END LICENSE BLOCK ***** - -# Config stuff for Solaris 9 on x86 -# - -SOL_CFLAGS = -D_SVID_GETTOD - -include $(CORE_DEPTH)/coreconf/SunOS5.mk - -CPU_ARCH = x86 -ARCHFLAG = -OS_DEFINES += -Di386 - -ifeq ($(OS_RELEASE),5.9_i86pc) - OS_DEFINES += -DSOLARIS2_9 -endif - -OS_LIBS += -lthread -lnsl -lsocket -lposix4 -ldl -lc diff --git a/c-sdk/config/SunOS5.mk b/c-sdk/config/SunOS5.mk deleted file mode 100644 index dfa5187..0000000 --- a/c-sdk/config/SunOS5.mk +++ /dev/null @@ -1,221 +0,0 @@ -# -# ***** BEGIN LICENSE BLOCK ***** -# Version: MPL 1.1/GPL 2.0/LGPL 2.1 -# -# The contents of this file are subject to the Mozilla Public License Version -# 1.1 (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS IS" basis, -# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -# for the specific language governing rights and limitations under the -# License. -# -# The Original Code is the Netscape Portable Runtime (NSPR). -# -# The Initial Developer of the Original Code is -# Netscape Communications Corporation. -# Portions created by the Initial Developer are Copyright (C) 1998-2000 -# the Initial Developer. All Rights Reserved. -# -# Contributor(s): -# -# Alternatively, the contents of this file may be used under the terms of -# either of the GNU General Public License Version 2 or later (the "GPL"), -# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -# in which case the provisions of the GPL or the LGPL are applicable instead -# of those above. If you wish to allow use of your version of this file only -# under the terms of either the GPL or the LGPL, and not to allow others to -# use your version of this file under the terms of the MPL, indicate your -# decision by deleting the provisions above and replace them with the notice -# and other provisions required by the GPL or the LGPL. If you do not delete -# the provisions above, a recipient may use your version of this file under -# the terms of any one of the MPL, the GPL or the LGPL. -# -# ***** END LICENSE BLOCK ***** - -# -# Config stuff for SunOS 5.x on sparc and x86 -# - -include $(MOD_DEPTH)/config/UNIX.mk - -# -# XXX -# Temporary define for the Client; to be removed when binary release is used -# -ifdef MOZILLA_CLIENT -ifneq ($(USE_PTHREADS),1) -LOCAL_THREADS_ONLY = 1 -endif -ifndef NS_USE_NATIVE -NS_USE_GCC = 1 -endif -endif - -# -# The default implementation strategy on Solaris is pthreads. -# Global threads only and local threads only are also available. -# -ifeq ($(GLOBAL_THREADS_ONLY),1) - IMPL_STRATEGY = _NATIVE - DEFINES += -D_PR_GLOBAL_THREADS_ONLY -else - ifeq ($(LOCAL_THREADS_ONLY),1) - IMPL_STRATEGY = _EMU - DEFINES += -D_PR_LOCAL_THREADS_ONLY - else - USE_PTHREADS = 1 -ifeq ($(HAVE_CCONF), 1) - IMPL_STRATEGY = -else - IMPL_STRATEGY = _PTH -endif - endif -endif - -ifeq ($(NS_USE_GCC), 1) -CC = gcc -Wall -CCC = g++ -Wall -ASFLAGS += -Wa,-P -COMPILER_TAG = _gcc -ifdef NO_MDUPDATE -OS_CFLAGS = $(NOMD_OS_CFLAGS) -else -OS_CFLAGS = $(NOMD_OS_CFLAGS) -MDupdate $(DEPENDENCIES) -endif -else -CC = cc -v -xstrconst -CCC = CC -Qoption cg -xstrconst -ASFLAGS += -Wa,-P -OS_CFLAGS = $(NOMD_OS_CFLAGS) -# -# If we are building for a release, we want to put all symbol -# tables in the debug executable or share library instead of -# the .o files, so that our clients can run dbx on the debug -# library without having the .o files around. -# -ifdef BUILD_NUMBER -ifndef BUILD_OPT -OS_CFLAGS += -xs -endif -endif -endif - -ifeq ($(USE_64),1) -ifndef INTERNAL_TOOLS -ifneq ($(NS_USE_GCC), 1) -CC += -xarch=v9 -CCC += -xarch=v9 -else -CC += -m64 -CCC += -m64 -endif # NS_USE_GCC -endif # INTERNAL_TOOLS -COMPILER_TAG += _64 -else # USE_64 -ifeq ($(HAVE_CCONF), 1) -COMPILER_TAG = -else -COMPILER_TAG += _32 -endif # HAVE_CCONF -endif # USE_64 - -RANLIB = echo - -OS_DEFINES = -DSVR4 -DSYSV -D__svr4 -D__svr4__ -DSOLARIS - -ifeq ($(OS_TEST),i86pc) -CPU_ARCH = x86 -COMPILER_TAG = _i86pc -OS_DEFINES += -Di386 -# The default debug format, DWARF (-g), is not supported by gcc -# on i386-ANY-sysv4/solaris, but the stabs format is. It is -# assumed that the Solaris assembler /usr/ccs/bin/as is used. -# If your gcc uses GNU as, you do not need the -Wa,-s option. -ifndef BUILD_OPT -ifeq ($(NS_USE_GCC), 1) -OPTIMIZER = -Wa,-s -gstabs -endif -endif -else -ifeq ($(HAVE_CCONF), 1) -CPU_ARCH = -else -CPU_ARCH = sparc -endif -endif - -ifeq ($(HAVE_CCONF), 1) -CPU_ARCH_TAG = -else -CPU_ARCH_TAG = _$(CPU_ARCH) -endif - -ifeq (5.5,$(findstring 5.5,$(OS_RELEASE))) -OS_DEFINES += -DSOLARIS2_5 -else -ifeq (,$(filter-out 5.3 5.4,$(OS_RELEASE))) -OS_DEFINES += -D_PR_NO_LARGE_FILES -else -OS_DEFINES += -D_PR_HAVE_OFF64_T -# The lfcompile64(5) man page on Solaris 2.6 says: -# For applications that do not wish to conform to the POSIX or -# X/Open specifications, the 64-bit transitional interfaces -# are available by default. No compile-time flags need to be -# set. -# But gcc 2.7.2.x fails to define _LARGEFILE64_SOURCE by default. -# The native compiler, gcc 2.8.x, and egcs don't have this problem. -#ifeq ($(NS_USE_GCC), 1) -OS_DEFINES += -D_LARGEFILE64_SOURCE -#endif -endif -endif - -ifneq ($(LOCAL_THREADS_ONLY),1) -OS_DEFINES += -D_REENTRANT -DHAVE_POINTER_LOCALTIME_R -endif - -# Purify doesn't like -MDupdate -NOMD_OS_CFLAGS = $(DSO_CFLAGS) $(OS_DEFINES) $(SOL_CFLAGS) - -MKSHLIB = $(LD) $(DSO_LDOPTS) - -# ld options: -# -G: produce a shared object -# -z defs: no unresolved symbols allowed -DSO_LDOPTS = -G -h $(notdir $@) - -# -KPIC generates position independent code for use in shared libraries. -# (Similarly for -fPIC in case of gcc.) -ifeq ($(NS_USE_GCC), 1) -DSO_CFLAGS = -fPIC -else -DSO_CFLAGS = -KPIC -endif - -NOSUCHFILE = /no-such-file - -# -# Library of atomic functions for UltraSparc systems -# -# The nspr makefiles build ULTRASPARC_LIBRARY (which contains assembly language -# implementation of the nspr atomic functions for UltraSparc systems) in addition -# to libnspr.so. (The actual name of the library is -# lib$(ULTRASPARC_LIBRARY)$(MOD_VERSION).so -# -# The actual name of the filter-library, recorded in libnspr.so, is set to the -# value of $(ULTRASPARC_FILTER_LIBRARY). -# For an application to use the assembly-language implementation, a link should be -# made so that opening ULTRASPARC_FILTER_LIBRARY results in opening -# ULTRASPARC_LIBRARY. This indirection requires the user to explicitly set up -# library for use on UltraSparc systems, thereby helping to avoid using it by -# accident on non-UltraSparc systems. -# The directory containing the ultrasparc libraries should be in LD_LIBRARY_PATH. -# -ifeq ($(OS_TEST),sun4u) -ULTRASPARC_LIBRARY = ultrasparc -ULTRASPARC_FILTER_LIBRARY = libatomic.so -DSO_LDOPTS += -f $(ULTRASPARC_FILTER_LIBRARY) -endif diff --git a/c-sdk/config/UNIX.mk b/c-sdk/config/UNIX.mk deleted file mode 100644 index 0597355..0000000 --- a/c-sdk/config/UNIX.mk +++ /dev/null @@ -1,113 +0,0 @@ -# -# ***** BEGIN LICENSE BLOCK ***** -# Version: MPL 1.1/GPL 2.0/LGPL 2.1 -# -# The contents of this file are subject to the Mozilla Public License Version -# 1.1 (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS IS" basis, -# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -# for the specific language governing rights and limitations under the -# License. -# -# The Original Code is the Netscape Portable Runtime (NSPR). -# -# The Initial Developer of the Original Code is -# Netscape Communications Corporation. -# Portions created by the Initial Developer are Copyright (C) 1998-2000 -# the Initial Developer. All Rights Reserved. -# -# Contributor(s): -# -# Alternatively, the contents of this file may be used under the terms of -# either of the GNU General Public License Version 2 or later (the "GPL"), -# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -# in which case the provisions of the GPL or the LGPL are applicable instead -# of those above. If you wish to allow use of your version of this file only -# under the terms of either the GPL or the LGPL, and not to allow others to -# use your version of this file under the terms of the MPL, indicate your -# decision by deleting the provisions above and replace them with the notice -# and other provisions required by the GPL or the LGPL. If you do not delete -# the provisions above, a recipient may use your version of this file under -# the terms of any one of the MPL, the GPL or the LGPL. -# -# ***** END LICENSE BLOCK ***** - -ifeq ($(OS_ARCH), HP-UX) - ifeq ($(OS_TEST), ia64) - ifdef USE_64 - 64BIT_TAG=_ia64_64 - else - 64BIT_TAG=_ia64_32 - endif - endif -endif - -PR_UNIXOS = 1 -XP_DEFINE = -DXP_UNIX -OBJ_SUFFIX = o -LIB_SUFFIX = a -DLL_SUFFIX = so -AR = ar cr $@ - -ifdef BUILD_OPT -OPTIMIZER = -O -DEFINES = -UDEBUG -DNDEBUG -ifeq ($(OS_ARCH), HP-UX) -OBJDIR_TAG = $(64BIT_TAG)_OPT -else -OBJDIR_TAG = _OPT -endif -else -OPTIMIZER = -g -DEFINES = -DDEBUG -UNDEBUG -DDEBUG_$(shell whoami) -ifeq ($(OS_ARCH), HP-UX) -OBJDIR_TAG = $(64BIT_TAG)_DBG -else -OBJDIR_TAG = _DBG -endif -endif - -# Name of the binary code directories -ifdef MOZILLA_CLIENT -OBJDIR_NAME = $(OS_CONFIG)$(CPU_ARCH_TAG)$(OBJDIR_TAG).OBJ -else -OBJDIR_NAME = $(OS_CONFIG)$(CPU_ARCH_TAG)$(COMPILER_TAG)$(IMPL_STRATEGY)$(OBJDIR_TAG).OBJ -endif - -MKDEPEND_DIR = $(DEPTH)/config/mkdepend -MKDEPEND = $(MKDEPEND_DIR)/$(OBJDIR_NAME)/mkdepend -MKDEPENDENCIES = $(OBJDIR)/depend.mk - -#################################################################### -# -# One can define the makefile variable NSDISTMODE to control -# how files are published to the 'dist' directory. If not -# defined, the default is "install using relative symbolic -# links". The two possible values are "copy", which copies files -# but preserves source mtime, and "absolute_symlink", which -# installs using absolute symbolic links. The "absolute_symlink" -# option requires NFSPWD. -# -#################################################################### - -NSINSTALL = $(MOD_DEPTH)/config/$(OBJDIR_NAME)/nsinstall - -ifeq ($(NSDISTMODE),copy) -# copy files, but preserve source mtime -INSTALL = $(NSINSTALL) -t -else -ifeq ($(NSDISTMODE),absolute_symlink) -# install using absolute symbolic links -INSTALL = $(NSINSTALL) -L `$(NFSPWD)` -else -# install using relative symbolic links -INSTALL = $(NSINSTALL) -R -endif -endif - -define MAKE_OBJDIR -if test ! -d $(@D); then rm -rf $(@D); $(NSINSTALL) -D $(@D); else true; fi -endef diff --git a/c-sdk/config/UNIXWARE.mk b/c-sdk/config/UNIXWARE.mk deleted file mode 100644 index cd93043..0000000 --- a/c-sdk/config/UNIXWARE.mk +++ /dev/null @@ -1,75 +0,0 @@ -# -# ***** BEGIN LICENSE BLOCK ***** -# Version: MPL 1.1/GPL 2.0/LGPL 2.1 -# -# The contents of this file are subject to the Mozilla Public License Version -# 1.1 (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS IS" basis, -# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -# for the specific language governing rights and limitations under the -# License. -# -# The Original Code is the Netscape Portable Runtime (NSPR). -# -# The Initial Developer of the Original Code is -# Netscape Communications Corporation. -# Portions created by the Initial Developer are Copyright (C) 1998-2000 -# the Initial Developer. All Rights Reserved. -# -# Contributor(s): -# -# Alternatively, the contents of this file may be used under the terms of -# either of the GNU General Public License Version 2 or later (the "GPL"), -# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -# in which case the provisions of the GPL or the LGPL are applicable instead -# of those above. If you wish to allow use of your version of this file only -# under the terms of either the GPL or the LGPL, and not to allow others to -# use your version of this file under the terms of the MPL, indicate your -# decision by deleting the provisions above and replace them with the notice -# and other provisions required by the GPL or the LGPL. If you do not delete -# the provisions above, a recipient may use your version of this file under -# the terms of any one of the MPL, the GPL or the LGPL. -# -# ***** END LICENSE BLOCK ***** - -# -# Config stuff for SCO UnixWare -# UnixWare is intended for high-end enterprise customers. -# UnixWare 2.1 and 2.1.1 are based on SVR4. (2.1.2 is a maintenance -# release.) -# UnixWare 7 (codename Gemini) is based on what SCO calls SVR5. -# The somewhat odd version number 7 was chosen to suggest that -# UnixWare 2 + OpenServer 5 = UnixWare 7 -# - -include $(MOD_DEPTH)/config/UNIX.mk - -ifeq (,$(filter-out 2.1,$(OS_RELEASE))) -CC = $(NSDEPTH)/build/hcc cc -CCC = $(NSDEPTH)/build/hcpp CC -else -CC = cc -CCC = CC -endif - -RANLIB = true - -DEFINES += -D_PR_LOCAL_THREADS_ONLY -OS_CFLAGS = -DSVR4 -DSYSV -DUNIXWARE - -ifeq (,$(filter-out 2.1,$(OS_RELEASE))) -OS_CFLAGS += -D_PR_NO_LARGE_FILES -else -OS_CFLAGS += -D_LARGEFILE64_SOURCE -D_PR_HAVE_OFF64_T -D_PR_HAVE_SOCKADDR_LEN -endif - -MKSHLIB = $(LD) $(DSO_LDOPTS) -DSO_LDOPTS = -G - -CPU_ARCH = x86 -ARCH = sco - -NOSUCHFILE = /no-such-file diff --git a/c-sdk/config/WIN32.mk b/c-sdk/config/WIN32.mk deleted file mode 100644 index 67a4749..0000000 --- a/c-sdk/config/WIN32.mk +++ /dev/null @@ -1,176 +0,0 @@ -# -# ***** BEGIN LICENSE BLOCK ***** -# Version: MPL 1.1/GPL 2.0/LGPL 2.1 -# -# The contents of this file are subject to the Mozilla Public License Version -# 1.1 (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS IS" basis, -# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -# for the specific language governing rights and limitations under the -# License. -# -# The Original Code is the Netscape Portable Runtime (NSPR). -# -# The Initial Developer of the Original Code is -# Netscape Communications Corporation. -# Portions created by the Initial Developer are Copyright (C) 1998-2000 -# the Initial Developer. All Rights Reserved. -# -# Contributor(s): -# -# Alternatively, the contents of this file may be used under the terms of -# either of the GNU General Public License Version 2 or later (the "GPL"), -# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -# in which case the provisions of the GPL or the LGPL are applicable instead -# of those above. If you wish to allow use of your version of this file only -# under the terms of either the GPL or the LGPL, and not to allow others to -# use your version of this file under the terms of the MPL, indicate your -# decision by deleting the provisions above and replace them with the notice -# and other provisions required by the GPL or the LGPL. If you do not delete -# the provisions above, a recipient may use your version of this file under -# the terms of any one of the MPL, the GPL or the LGPL. -# -# ***** END LICENSE BLOCK ***** - -# -# Configuration common to all versions of Windows NT -# and Windows 95. -# - -# -# Client build: make sure we use the shmsdos.exe under $(MOZ_TOOLS). -# $(MOZ_TOOLS_FLIPPED) is $(MOZ_TOOLS) with all the backslashes -# flipped, so that gmake won't interpret them as escape characters. -# -ifdef PR_CLIENT_BUILD_WINDOWS -SHELL = $(MOZ_TOOLS_FLIPPED)/bin/shmsdos.exe -endif - -CC = cl -CCC = cl -LINK = link -AR = lib -NOLOGO -OUT:"$@" -RANLIB = echo -BSDECHO = echo -NSINSTALL = nsinstall -INSTALL = $(NSINSTALL) -define MAKE_OBJDIR -if test ! -d $(@D); then rm -rf $(@D); $(NSINSTALL) -D $(@D); fi -endef -RC = rc.exe - -GARBAGE = $(OBJDIR)/vc20.pdb $(OBJDIR)/vc40.pdb - -XP_DEFINE = -DXP_PC -OBJ_SUFFIX = obj -LIB_SUFFIX = lib -DLL_SUFFIX = dll - -OS_CFLAGS = -W3 -nologo -GF -Gy - -ifdef BUILD_OPT -OS_CFLAGS += -MD -OPTIMIZER = -O2 -DEFINES = -UDEBUG -U_DEBUG -DNDEBUG -DLLFLAGS = -OUT:"$@" -OBJDIR_TAG = _OPT - -else -# -# Define USE_DEBUG_RTL if you want to use the debug runtime library -# (RTL) in the debug build -# -ifdef USE_DEBUG_RTL -OS_CFLAGS += -MDd -else -OS_CFLAGS += -MD -endif -OPTIMIZER = -Od -Zi -#OPTIMIZER = -Zi -Fd$(OBJDIR)/ -Od -DEFINES = -DDEBUG -D_DEBUG -UNDEBUG - -DLLFLAGS = -DEBUG -OUT:"$@" -ifdef GLOWCODE -DLLFLAGS = -DEBUG -DEBUGTYPE:both -INCLUDE:_GlowCode -OUT:"$@" -endif - -OBJDIR_TAG = _DBG -LDFLAGS = -DEBUG -# -# When PROFILE=1 is defined, set the compile and link options -# to build targets for use by the ms-win32 profiler -# -ifdef PROFILE -LDFLAGS += -PROFILE -MAP -DLLFLAGS += -PROFILE -MAP -endif -endif - -DEFINES += -DWIN32 -D_WINDOWS - -# -# On Win95, we use the TlsXXX() interface by default because that -# allows us to load the NSPR DLL dynamically at run time. -# If you want to use static thread-local storage (TLS) for better -# performance, build the NSPR library with USE_STATIC_TLS=1. -# -ifeq ($(USE_STATIC_TLS),1) -DEFINES += -D_PR_USE_STATIC_TLS -endif - -# -# NSPR uses both fibers and static thread-local storage -# (i.e., __declspec(thread) variables) on NT. We need the -GT -# flag to turn off certain compiler optimizations so that fibers -# can use static TLS safely. -# -# Also, we optimize for Pentium (-G5) on NT. -# -ifeq ($(OS_TARGET),WINNT) -OS_CFLAGS += -GT -ifeq ($(CPU_ARCH),x86) -OS_CFLAGS += -G5 -endif -DEFINES += -DWINNT -else -DEFINES += -DWIN95 -D_PR_GLOBAL_THREADS_ONLY -endif - -ifeq ($(CPU_ARCH),x86) -DEFINES += -D_X86_ -else -ifeq ($(CPU_ARCH),MIPS) -DEFINES += -D_MIPS_ -else -ifeq ($(CPU_ARCH),ALPHA) -DEFINES += -D_ALPHA_=1 -else -ifeq ($(CPU_ARCH),x86_64) -DEFINES += -D_AMD64_ -D_M_AMD64 -else -CPU_ARCH = processor_is_undefined -endif -endif -endif -endif - -# Name of the binary code directories - -ifeq ($(CPU_ARCH),x86) -CPU_ARCH_TAG = -else -CPU_ARCH_TAG = $(CPU_ARCH) -endif - -ifdef USE_DEBUG_RTL -OBJDIR_SUFFIX = OBJD -else -OBJDIR_SUFFIX = OBJ -endif - -OBJDIR_NAME = $(OS_CONFIG)$(CPU_ARCH_TAG)$(OBJDIR_TAG).$(OBJDIR_SUFFIX) - -OS_DLLFLAGS = -nologo -DLL -SUBSYSTEM:WINDOWS -PDB:NONE diff --git a/c-sdk/config/WIN95.mk b/c-sdk/config/WIN95.mk deleted file mode 100644 index 8fd553a..0000000 --- a/c-sdk/config/WIN95.mk +++ /dev/null @@ -1,42 +0,0 @@ -# -# ***** BEGIN LICENSE BLOCK ***** -# Version: MPL 1.1/GPL 2.0/LGPL 2.1 -# -# The contents of this file are subject to the Mozilla Public License Version -# 1.1 (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS IS" basis, -# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -# for the specific language governing rights and limitations under the -# License. -# -# The Original Code is the Netscape Portable Runtime (NSPR). -# -# The Initial Developer of the Original Code is -# Netscape Communications Corporation. -# Portions created by the Initial Developer are Copyright (C) 1998-2000 -# the Initial Developer. All Rights Reserved. -# -# Contributor(s): -# -# Alternatively, the contents of this file may be used under the terms of -# either of the GNU General Public License Version 2 or later (the "GPL"), -# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -# in which case the provisions of the GPL or the LGPL are applicable instead -# of those above. If you wish to allow use of your version of this file only -# under the terms of either the GPL or the LGPL, and not to allow others to -# use your version of this file under the terms of the MPL, indicate your -# decision by deleting the provisions above and replace them with the notice -# and other provisions required by the GPL or the LGPL. If you do not delete -# the provisions above, a recipient may use your version of this file under -# the terms of any one of the MPL, the GPL or the LGPL. -# -# ***** END LICENSE BLOCK ***** - -# -# Config stuff for WIN95 -# - -include $(MOD_DEPTH)/config/WIN32.mk diff --git a/c-sdk/config/WINNT.mk b/c-sdk/config/WINNT.mk deleted file mode 100644 index fb1593e..0000000 --- a/c-sdk/config/WINNT.mk +++ /dev/null @@ -1,42 +0,0 @@ -# -# ***** BEGIN LICENSE BLOCK ***** -# Version: MPL 1.1/GPL 2.0/LGPL 2.1 -# -# The contents of this file are subject to the Mozilla Public License Version -# 1.1 (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS IS" basis, -# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -# for the specific language governing rights and limitations under the -# License. -# -# The Original Code is the Netscape Portable Runtime (NSPR). -# -# The Initial Developer of the Original Code is -# Netscape Communications Corporation. -# Portions created by the Initial Developer are Copyright (C) 1998-2000 -# the Initial Developer. All Rights Reserved. -# -# Contributor(s): -# -# Alternatively, the contents of this file may be used under the terms of -# either of the GNU General Public License Version 2 or later (the "GPL"), -# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -# in which case the provisions of the GPL or the LGPL are applicable instead -# of those above. If you wish to allow use of your version of this file only -# under the terms of either the GPL or the LGPL, and not to allow others to -# use your version of this file under the terms of the MPL, indicate your -# decision by deleting the provisions above and replace them with the notice -# and other provisions required by the GPL or the LGPL. If you do not delete -# the provisions above, a recipient may use your version of this file under -# the terms of any one of the MPL, the GPL or the LGPL. -# -# ***** END LICENSE BLOCK ***** - -# -# Config stuff for WINNT -# - -include $(MOD_DEPTH)/config/WIN32.mk diff --git a/c-sdk/config/arch.mk b/c-sdk/config/arch.mk deleted file mode 100644 index 10d197e..0000000 --- a/c-sdk/config/arch.mk +++ /dev/null @@ -1,302 +0,0 @@ -# -# ***** BEGIN LICENSE BLOCK ***** -# Version: MPL 1.1/GPL 2.0/LGPL 2.1 -# -# The contents of this file are subject to the Mozilla Public License Version -# 1.1 (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS IS" basis, -# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -# for the specific language governing rights and limitations under the -# License. -# -# The Original Code is the Netscape Portable Runtime (NSPR). -# -# The Initial Developer of the Original Code is -# Netscape Communications Corporation. -# Portions created by the Initial Developer are Copyright (C) 1998-2000 -# the Initial Developer. All Rights Reserved. -# -# Contributor(s): -# -# Alternatively, the contents of this file may be used under the terms of -# either of the GNU General Public License Version 2 or later (the "GPL"), -# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -# in which case the provisions of the GPL or the LGPL are applicable instead -# of those above. If you wish to allow use of your version of this file only -# under the terms of either the GPL or the LGPL, and not to allow others to -# use your version of this file under the terms of the MPL, indicate your -# decision by deleting the provisions above and replace them with the notice -# and other provisions required by the GPL or the LGPL. If you do not delete -# the provisions above, a recipient may use your version of this file under -# the terms of any one of the MPL, the GPL or the LGPL. -# -# ***** END LICENSE BLOCK ***** - -####################################################################### -# Master "Core Components" macros for getting the OS architecture # -####################################################################### - -# -# Important internal static macros -# - -OS_ARCH := $(subst /,_,$(shell uname -s)) -OS_RELEASE := $(shell uname -r) -OS_TEST := $(shell uname -m) - -# -# Tweak the default OS_ARCH and OS_RELEASE macros as needed. -# -ifeq ($(HAVE_CCONF), 1) -ifeq ($(OS_ARCH), Linux) -ifeq (2.6,$(findstring 2.6,$(OS_RELEASE))) -OS_RELEASE :=2.6 -endif -ifeq (2.4,$(findstring 2.4,$(OS_RELEASE))) -OS_RELEASE :=2.4 -endif -ifeq (2.2,$(findstring 2.2,$(OS_RELEASE))) -OS_RELEASE :=2.2 -endif -ifeq (2.1,$(findstring 2.1,$(OS_RELEASE))) -OS_RELEASE :=2.1 -endif -ifeq (2.0,$(findstring 2.0,$(OS_RELEASE))) -OS_RELEASE :=2.0 -endif -endif -endif - -ifeq ($(OS_ARCH),AIX) -OS_RELEASE := $(shell uname -v).$(shell uname -r) -endif -ifeq ($(OS_ARCH),BSD_386) -OS_ARCH := BSD_OS -endif -ifeq ($(OS_ARCH),dgux) -OS_ARCH := DGUX -endif -ifeq ($(OS_ARCH),IRIX64) -OS_ARCH := IRIX -endif -ifeq ($(OS_ARCH),UNIX_SV) -ifneq ($(findstring NCR,$(shell grep NCR /etc/bcheckrc | head -1 )),) -OS_ARCH := NCR -else -OS_ARCH := UNIXWARE -OS_RELEASE := $(shell uname -v) -endif -endif -ifeq ($(OS_ARCH),Mac OS) -OS_ARCH := Rhapsody -endif -ifeq ($(OS_ARCH),Darwin) -OS_ARCH := Rhapsody -endif -ifeq ($(OS_ARCH),ncr) -OS_ARCH := NCR -endif -# This is the only way to correctly determine the actual OS version on NCR boxes. -ifeq ($(OS_ARCH),NCR) -OS_RELEASE := $(shell awk '{print $$3}' /etc/.relid | sed 's/^\([0-9]\)\(.\)\(..\)\(.*\)$$/\2.\3/') -endif -ifeq ($(OS_ARCH),UNIX_System_V) -OS_ARCH := NEC -endif -ifneq (,$(findstring POSIX_for_OpenVMS,$(OS_ARCH))) -OS_ARCH := OpenVMS -CPU_ARCH := $(shell uname -Wh) -OS_RELEASE := $(shell uname -v) -endif -ifeq ($(OS_ARCH),QNX) - ifeq ($(OS_RELEASE),6.00) - OS_ARCH := NTO - OS_RELEASE := _$(OS_TEST)$(OS_RELEASE) - else - OS_RELEASE := $(shell uname -v | sed 's/^\([0-9]\)\([0-9]*\)$$/\1.\2/') - endif -endif -ifeq ($(OS_ARCH),SCO_SV) -OS_ARCH := SCOOS -OS_RELEASE := 5.0 -endif -ifeq ($(OS_ARCH),SINIX-N) -OS_ARCH := SINIX -endif -ifeq ($(OS_ARCH),SINIX-Y) -OS_ARCH := SINIX -endif -ifeq ($(OS_ARCH),SINIX-Z) -OS_ARCH := SINIX -endif -# SINIX changes name to ReliantUNIX with 5.43 -ifeq ($(OS_ARCH),ReliantUNIX-N) -OS_ARCH := SINIX -endif -ifeq ($(OS_ARCH),UnixWare) -OS_ARCH := UNIXWARE -OS_RELEASE := $(shell uname -v) -endif - -# -# Handle FreeBSD 2.2-STABLE and Linux 2.0.30-osfmach3 -# - -ifeq (,$(filter-out Linux FreeBSD,$(OS_ARCH))) -OS_RELEASE := $(shell echo "$(OS_RELEASE)" | sed 's/-.*//') -endif - -# -# Distinguish between OSF1 V4.0B and V4.0D -# - -ifeq ($(OS_ARCH)$(OS_RELEASE),OSF1V4.0) - OS_VERSION := $(shell uname -v) - ifeq ($(OS_VERSION),564) - OS_RELEASE := V4.0B - endif - ifeq ($(OS_VERSION),878) - OS_RELEASE := V4.0D - endif -endif - -# -# Handle uname variants for OS/2. -# - -ifeq ($(OS_ARCH),OS_2) - OS_ARCH := OS2 - OS_RELEASE := 4.0 -endif - -####################################################################### -# Master "Core Components" macros for getting the OS target # -####################################################################### - -# -# Note: OS_TARGET should be specified on the command line for gmake. -# When OS_TARGET=WIN95 is specified, then a Windows 95 target is built. -# The difference between the Win95 target and the WinNT target is that -# the WinNT target uses Windows NT specific features not available -# in Windows 95. The Win95 target will run on Windows NT, but (supposedly) -# at lesser performance (the Win95 target uses threads; the WinNT target -# uses fibers). -# -# When OS_TARGET=WIN16 is specified, then a Windows 3.11 (16bit) target -# is built. See: win16_3.11.mk for lots more about the Win16 target. -# -# If OS_TARGET is not specified, it defaults to $(OS_ARCH), i.e., no -# cross-compilation. -# - -# -# The following hack allows one to build on a WIN95 machine (as if -# s/he were cross-compiling on a WINNT host for a WIN95 target). -# It also accomodates for MKS's uname.exe. If you never intend -# to do development on a WIN95 machine, you don't need this hack. -# -ifeq ($(OS_ARCH),WIN95) - OS_ARCH := WINNT - OS_TARGET := WIN95 -endif -ifeq ($(OS_ARCH),Windows_95) - OS_ARCH := Windows_NT - OS_TARGET := WIN95 -endif -ifeq ($(OS_ARCH),CYGWIN_95-4.0) - OS_ARCH := CYGWIN_NT-4.0 - OS_TARGET := WIN95 -endif -ifeq ($(OS_ARCH),OS2) - OS_ARCH := OS2 - OS_TARGET := OS2 -endif - -# -# On WIN32, we also define the variable CPU_ARCH. -# - -ifeq ($(OS_ARCH), WINNT) - ifneq ($(subst /,_,$(shell uname -s)),OS_2) - CPU_ARCH := $(shell uname -p) - else - CPU_ARCH := $(shell uname -m) - endif - ifeq ($(CPU_ARCH),I386) - CPU_ARCH = x86 - endif -else -# -# If uname -s returns "Windows_NT", we assume that we are using -# the uname.exe in MKS toolkit. -# -# The -r option of MKS uname only returns the major version number. -# So we need to use its -v option to get the minor version number. -# Moreover, it doesn't have the -p option, so we need to use uname -m. -# -ifeq ($(OS_ARCH), Windows_NT) - OS_ARCH = WINNT - OS_MINOR_RELEASE := $(shell uname -v) - ifeq ($(OS_MINOR_RELEASE),00) - OS_MINOR_RELEASE = 0 - endif - OS_RELEASE := $(OS_RELEASE).$(OS_MINOR_RELEASE) - CPU_ARCH := $(shell uname -m) - # - # MKS's uname -m returns "586" on a Pentium machine. - # - ifneq (,$(findstring 86,$(CPU_ARCH))) - CPU_ARCH = x86 - endif -else -# -# If uname -s returns "CYGWIN_NT-4.0", we assume that we are using -# the uname.exe in the Cygwin tools. -# -ifeq (CYGWIN_NT,$(findstring CYGWIN_NT,$(OS_ARCH))) - OS_RELEASE := $(patsubst CYGWIN_NT-%,%,$(OS_ARCH)) - OS_ARCH = WINNT - CPU_ARCH := $(shell uname -m) - # - # Cygwin's uname -m returns "i686" on a Pentium Pro machine. - # - ifneq (,$(findstring 86,$(CPU_ARCH))) - CPU_ARCH = x86 - endif -else -# -# Prior to the Beta 20 release, Cygwin was called GNU-Win32. -# If uname -s returns "CYGWIN32/NT", we assume that we are using -# the uname.exe in the GNU-Win32 tools. -# -ifeq ($(OS_ARCH), CYGWIN32_NT) - OS_ARCH = WINNT - CPU_ARCH := $(shell uname -m) - # - # GNU-Win32's uname -m returns "i686" on a Pentium Pro machine. - # - ifneq (,$(findstring 86,$(CPU_ARCH))) - CPU_ARCH = x86 - endif -endif -endif -endif -endif - -ifndef OS_TARGET - OS_TARGET := $(OS_ARCH) -endif - -ifeq ($(OS_TARGET), WIN95) - OS_RELEASE := 4.0 -endif - -ifeq ($(OS_TARGET), WIN16) - OS_RELEASE := -# OS_RELEASE := _3.11 -endif - -OS_CONFIG := $(OS_TARGET)$(OS_RELEASE) diff --git a/c-sdk/config/autoconf.mk.in b/c-sdk/config/autoconf.mk.in deleted file mode 100644 index f88bc9f..0000000 --- a/c-sdk/config/autoconf.mk.in +++ /dev/null @@ -1,162 +0,0 @@ -# -*- Mode: Makefile -*- - -# -# ***** BEGIN LICENSE BLOCK ***** -# Version: MPL 1.1/GPL 2.0/LGPL 2.1 -# -# The contents of this file are subject to the Mozilla Public License Version -# 1.1 (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS IS" basis, -# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -# for the specific language governing rights and limitations under the -# License. -# -# The Original Code is mozilla.org code. -# -# The Initial Developer of the Original Code is -# Netscape Communications Corporation. -# Portions created by the Initial Developer are Copyright (C) 2001 -# the Initial Developer. All Rights Reserved. -# -# Contributor(s): -# -# Alternatively, the contents of this file may be used under the terms of -# either of the GNU General Public License Version 2 or later (the "GPL"), -# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -# in which case the provisions of the GPL or the LGPL are applicable instead -# of those above. If you wish to allow use of your version of this file only -# under the terms of either the GPL or the LGPL, and not to allow others to -# use your version of this file under the terms of the MPL, indicate your -# decision by deleting the provisions above and replace them with the notice -# and other provisions required by the GPL or the LGPL. If you do not delete -# the provisions above, a recipient may use your version of this file under -# the terms of any one of the MPL, the GPL or the LGPL. -# -# ***** END LICENSE BLOCK ***** - -INCLUDED_AUTOCONF_MK = 1 -USE_AUTOCONF = 1 -@SHELL_OVERRIDE@ -MOZILLA_CLIENT = @MOZILLA_CLIENT@ - -MFLAGS = @MFLAGS@ - -prefix = @prefix@ -exec_prefix = @exec_prefix@ -bindir = @bindir@ -includedir = @includedir@ -libdir = @libdir@ -datadir = @datadir@ - -dist_prefix = @dist_prefix@ -dist_bindir = @dist_bindir@ -dist_libdir = @dist_libdir@ - -DIST = $(dist_prefix) - -OBJDIR_NAME = @OBJDIR_NAME@ -OBJDIR = @OBJDIR@ -OBJ_SUFFIX = @OBJ_SUFFIX@ -LIB_SUFFIX = @LIB_SUFFIX@ -LIB_PREFIX = @LIB_PREFIX@ -DLL_SUFFIX = @DLL_SUFFIX@ -ASM_SUFFIX = @ASM_SUFFIX@ -PROG_SUFFIX = @PROG_SUFFIX@ - -CROSS_COMPILE = @CROSS_COMPILE@ -BUILD_OPT = @MOZ_OPTIMIZE@ - -USE_NSS = @USE_NSS@ -USE_CPLUS = @USE_CPLUS@ -USE_IPV6 = @USE_IPV6@ -USE_N32 = @USE_N32@ -USE_64 = @USE_64@ -ENABLE_STRIP = @ENABLE_STRIP@ - -USE_PTHREADS = @USE_PTHREADS@ -USE_BTHREADS = @USE_BTHREADS@ -PTHREADS_USER = @USE_USER_PTHREADS@ -CLASSIC_NSPR = @USE_NSPR_THREADS@ - -NSPR_CFLAGS = @NSPR_CFLAGS@ -NSPR_LIBS = @NSPR_LIBS@ - -BUILDCLU = @BUILDCLU@ - -AS = @AS@ -ASFLAGS = @ASFLAGS@ -CC = @CC@ -CCC = @CXX@ -NS_USE_GCC = @GNU_CC@ -AR = @AR@ -AR_FLAGS = @AR_FLAGS@ -LD = @LD@ -RANLIB = @RANLIB@ -PERL = @PERL@ -WINDRES = @WINDRES@ -RC = @RC@ -STRIP = @STRIP@ -NSINSTALL = @NSINSTALL@ -FILTER = @FILTER@ -IMPLIB = @IMPLIB@ -CYGWIN_WRAPPER = @CYGWIN_WRAPPER@ -WIN_TOP_SRC = @WIN_TOP_SRC@ - -OS_CPPFLAGS = @CPPFLAGS@ -OS_CFLAGS = $(OS_CPPFLAGS) @CFLAGS@ $(DSO_CFLAGS) -OS_CXXFLAGS = $(OS_CPPFLAGS) @CXXFLAGS@ $(DSO_CFLAGS) -OS_LIBS = @OS_LIBS@ -OS_LDFLAGS = @LDFLAGS@ -OS_DLLFLAGS = @OS_DLLFLAGS@ -DLLFLAGS = @DLLFLAGS@ -EXEFLAGS = @EXEFLAGS@ -OPTIMIZER = @OPTIMIZER@ - -MKSHLIB = @MKSHLIB@ -DSO_CFLAGS = @DSO_CFLAGS@ -DSO_LDOPTS = @DSO_LDOPTS@ - -RESOLVE_LINK_SYMBOLS = @RESOLVE_LINK_SYMBOLS@ - -HOST_CC = @HOST_CC@ -HOST_CFLAGS = @HOST_CFLAGS@ - -DEFINES = @DEFINES@ @DEFS@ - -CPU_ARCH = @CPU_ARCH@ - -OS_TARGET = @OS_TARGET@ -OS_ARCH = @OS_ARCH@ -OS_RELEASE = @OS_RELEASE@ -OS_TEST = @OS_TEST@ - -NOSUCHFILE = @NOSUCHFILE@ -MOZ_OBJFORMAT = @MOZ_OBJFORMAT@ -ULTRASPARC_LIBRARY = @ULTRASPARC_LIBRARY@ -ULTRASPARC_FILTER_LIBRARY = @ULTRASPARC_FILTER_LIBRARY@ - -HAVE_GETADDRINFO = @HAVE_GETADDRINFO@ -HAVE_GETNAMEINFO = @HAVE_GETNAMEINFO@ - -OBJECT_MODE = @OBJECT_MODE@ -ifdef OBJECT_MODE -export OBJECT_MODE -endif - -LIBS_ALREADY_SET=@LIBS_ALREADY_SET@ - -# ldap-specific code (up to here, all the code came from -# mozilla/nsprpub/config/autoconf.mk.in) -# -MOZILLA_CLIENT = 1 -VPATH = $(srcdir) - -NEXT_ROOT = @NEXT_ROOT@ -ifdef NEXT_ROOT -export NEXT_ROOT -endif - -RPATHFLAG = @RPATHFLAG@ diff --git a/c-sdk/config/autoconf/acwinpaths.m4 b/c-sdk/config/autoconf/acwinpaths.m4 deleted file mode 100644 index 5f6810e..0000000 --- a/c-sdk/config/autoconf/acwinpaths.m4 +++ /dev/null @@ -1,65 +0,0 @@ -dnl ***** BEGIN LICENSE BLOCK ***** -dnl Version: MPL 1.1/GPL 2.0/LGPL 2.1 -dnl -dnl The contents of this file are subject to the Mozilla Public License Version -dnl 1.1 (the "License"); you may not use this file except in compliance with -dnl the License. You may obtain a copy of the License at -dnl http://www.mozilla.org/MPL/ -dnl -dnl Software distributed under the License is distributed on an "AS IS" basis, -dnl WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -dnl for the specific language governing rights and limitations under the -dnl License. -dnl -dnl The Original Code is mozilla.org code. -dnl -dnl The Initial Developer of the Original Code is the -dnl Mozilla Foundation -dnl -dnl Portions created by the Initial Developer are Copyright (C) 2009 -dnl the Initial Developer. All Rights Reserved. -dnl -dnl Contributor(s): -dnl Benjamin Smedberg -dnl -dnl Alternatively, the contents of this file may be used under the terms of -dnl either of the GNU General Public License Version 2 or later (the "GPL"), -dnl or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -dnl in which case the provisions of the GPL or the LGPL are applicable instead -dnl of those above. If you wish to allow use of your version of this file only -dnl under the terms of either the GPL or the LGPL, and not to allow others to -dnl use your version of this file under the terms of the MPL, indicate your -dnl decision by deleting the provisions above and replace them with the notice -dnl and other provisions required by the GPL or the LGPL. If you do not delete -dnl the provisions above, a recipient may use your version of this file under -dnl the terms of any one of the MPL, the GPL or the LGPL. -dnl -dnl ***** END LICENSE BLOCK ***** - -define(GENERATE_SUB_ABS, [ -define([AC_OUTPUT_FILES_SUB1], [ -patsubst($@, [/\*)], [/* | ?:/*)]) -]) -]) -GENERATE_SUB_ABS(defn([AC_OUTPUT_FILES])) - -define(GENERATE_SUB_NOSPLIT, [ -define([AC_OUTPUT_FILES], [ -patsubst($@, [-e "s%:% \$ac_given_srcdir/%g"], []) -]) -]) -GENERATE_SUB_NOSPLIT(defn([AC_OUTPUT_FILES_SUB1])) - -define(GENERATE_HEADER_NOSPLIT, [ -define([AC_OUTPUT_HEADER], [ -patsubst($@, [-e "s%:% \$ac_given_srcdir/%g"], []) -]) -]) -GENERATE_HEADER_NOSPLIT(defn([AC_OUTPUT_HEADER])) - -define(GENERATE_SUBDIRS_ABS, [ -define([AC_OUTPUT_SUBDIRS], [ -patsubst($@, [/\*)], [/* | ?:/*)]) -]) -]) -GENERATE_SUBDIRS_ABS(defn([AC_OUTPUT_SUBDIRS])) diff --git a/c-sdk/config/autoconf/config.guess b/c-sdk/config/autoconf/config.guess deleted file mode 100644 index a20b311..0000000 --- a/c-sdk/config/autoconf/config.guess +++ /dev/null @@ -1,1481 +0,0 @@ -#! /bin/sh -# Attempt to guess a canonical system name. -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, -# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. - -timestamp='2005-10-13' - -# This file is free software; you can redistribute it and/or modify it -# under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA -# 02110-1301, USA. -# -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - - -# Originally written by Per Bothner . -# Please send patches to . Submit a context -# diff and a properly formatted ChangeLog entry. -# -# This script attempts to guess a canonical system name similar to -# config.sub. If it succeeds, it prints the system name on stdout, and -# exits with 0. Otherwise, it exits with 1. -# -# The plan is that this can be called by configure scripts if you -# don't specify an explicit build system type. - -me=`echo "$0" | sed -e 's,.*/,,'` - -usage="\ -Usage: $0 [OPTION] - -Output the configuration name of the system \`$me' is run on. - -Operation modes: - -h, --help print this help, then exit - -t, --time-stamp print date of last modification, then exit - -v, --version print version number, then exit - -Report bugs and patches to ." - -version="\ -GNU config.guess ($timestamp) - -Originally written by Per Bothner. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 -Free Software Foundation, Inc. - -This is free software; see the source for copying conditions. There is NO -warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." - -help=" -Try \`$me --help' for more information." - -# Parse command line -while test $# -gt 0 ; do - case $1 in - --time-stamp | --time* | -t ) - echo "$timestamp" ; exit ;; - --version | -v ) - echo "$version" ; exit ;; - --help | --h* | -h ) - echo "$usage"; exit ;; - -- ) # Stop option processing - shift; break ;; - - ) # Use stdin as input. - break ;; - -* ) - echo "$me: invalid option $1$help" >&2 - exit 1 ;; - * ) - break ;; - esac -done - -if test $# != 0; then - echo "$me: too many arguments$help" >&2 - exit 1 -fi - -trap 'exit 1' 1 2 15 - -# CC_FOR_BUILD -- compiler used by this script. Note that the use of a -# compiler to aid in system detection is discouraged as it requires -# temporary files to be created and, as you can see below, it is a -# headache to deal with in a portable fashion. - -# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still -# use `HOST_CC' if defined, but it is deprecated. - -# Portable tmp directory creation inspired by the Autoconf team. - -set_cc_for_build=' -trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; -trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; -: ${TMPDIR=/tmp} ; - { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || - { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || - { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || - { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; -dummy=$tmp/dummy ; -tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; -case $CC_FOR_BUILD,$HOST_CC,$CC in - ,,) echo "int x;" > $dummy.c ; - for c in cc gcc c89 c99 ; do - if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then - CC_FOR_BUILD="$c"; break ; - fi ; - done ; - if test x"$CC_FOR_BUILD" = x ; then - CC_FOR_BUILD=no_compiler_found ; - fi - ;; - ,,*) CC_FOR_BUILD=$CC ;; - ,*,*) CC_FOR_BUILD=$HOST_CC ;; -esac ; set_cc_for_build= ;' - -# This is needed to find uname on a Pyramid OSx when run in the BSD universe. -# (ghazi@noc.rutgers.edu 1994-08-24) -if (test -f /.attbin/uname) >/dev/null 2>&1 ; then - PATH=$PATH:/.attbin ; export PATH -fi - -UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown -UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown -UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown -UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown - -# Note: order is significant - the case branches are not exclusive. - -case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in - *:NetBSD:*:*) - # NetBSD (nbsd) targets should (where applicable) match one or - # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, - # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently - # switched to ELF, *-*-netbsd* would select the old - # object file format. This provides both forward - # compatibility and a consistent mechanism for selecting the - # object file format. - # - # Note: NetBSD doesn't particularly care about the vendor - # portion of the name. We always set it to "unknown". - sysctl="sysctl -n hw.machine_arch" - UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ - /usr/sbin/$sysctl 2>/dev/null || echo unknown)` - case "${UNAME_MACHINE_ARCH}" in - armeb) machine=armeb-unknown ;; - arm*) machine=arm-unknown ;; - sh3el) machine=shl-unknown ;; - sh3eb) machine=sh-unknown ;; - *) machine=${UNAME_MACHINE_ARCH}-unknown ;; - esac - # The Operating System including object format, if it has switched - # to ELF recently, or will in the future. - case "${UNAME_MACHINE_ARCH}" in - arm*|i386|m68k|ns32k|sh3*|sparc|vax) - eval $set_cc_for_build - if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ - | grep __ELF__ >/dev/null - then - # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). - # Return netbsd for either. FIX? - os=netbsd - else - os=netbsdelf - fi - ;; - *) - os=netbsd - ;; - esac - # The OS release - # Debian GNU/NetBSD machines have a different userland, and - # thus, need a distinct triplet. However, they do not need - # kernel version information, so it can be replaced with a - # suitable tag, in the style of linux-gnu. - case "${UNAME_VERSION}" in - Debian*) - release='-gnu' - ;; - *) - release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` - ;; - esac - # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: - # contains redundant information, the shorter form: - # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. - echo "${machine}-${os}${release}" - exit ;; - *:OpenBSD:*:*) - UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` - echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} - exit ;; - *:ekkoBSD:*:*) - echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} - exit ;; - macppc:MirBSD:*:*) - echo powerppc-unknown-mirbsd${UNAME_RELEASE} - exit ;; - *:MirBSD:*:*) - echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} - exit ;; - alpha:OSF1:*:*) - case $UNAME_RELEASE in - *4.0) - UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` - ;; - *5.*) - UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` - ;; - esac - # According to Compaq, /usr/sbin/psrinfo has been available on - # OSF/1 and Tru64 systems produced since 1995. I hope that - # covers most systems running today. This code pipes the CPU - # types through head -n 1, so we only detect the type of CPU 0. - ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` - case "$ALPHA_CPU_TYPE" in - "EV4 (21064)") - UNAME_MACHINE="alpha" ;; - "EV4.5 (21064)") - UNAME_MACHINE="alpha" ;; - "LCA4 (21066/21068)") - UNAME_MACHINE="alpha" ;; - "EV5 (21164)") - UNAME_MACHINE="alphaev5" ;; - "EV5.6 (21164A)") - UNAME_MACHINE="alphaev56" ;; - "EV5.6 (21164PC)") - UNAME_MACHINE="alphapca56" ;; - "EV5.7 (21164PC)") - UNAME_MACHINE="alphapca57" ;; - "EV6 (21264)") - UNAME_MACHINE="alphaev6" ;; - "EV6.7 (21264A)") - UNAME_MACHINE="alphaev67" ;; - "EV6.8CB (21264C)") - UNAME_MACHINE="alphaev68" ;; - "EV6.8AL (21264B)") - UNAME_MACHINE="alphaev68" ;; - "EV6.8CX (21264D)") - UNAME_MACHINE="alphaev68" ;; - "EV6.9A (21264/EV69A)") - UNAME_MACHINE="alphaev69" ;; - "EV7 (21364)") - UNAME_MACHINE="alphaev7" ;; - "EV7.9 (21364A)") - UNAME_MACHINE="alphaev79" ;; - esac - # A Pn.n version is a patched version. - # A Vn.n version is a released version. - # A Tn.n version is a released field test version. - # A Xn.n version is an unreleased experimental baselevel. - # 1.2 uses "1.2" for uname -r. - echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` - exit ;; - Alpha\ *:Windows_NT*:*) - # How do we know it's Interix rather than the generic POSIX subsystem? - # Should we change UNAME_MACHINE based on the output of uname instead - # of the specific Alpha model? - echo alpha-pc-interix - exit ;; - 21064:Windows_NT:50:3) - echo alpha-dec-winnt3.5 - exit ;; - Amiga*:UNIX_System_V:4.0:*) - echo m68k-unknown-sysv4 - exit ;; - *:[Aa]miga[Oo][Ss]:*:*) - echo ${UNAME_MACHINE}-unknown-amigaos - exit ;; - *:[Mm]orph[Oo][Ss]:*:*) - echo ${UNAME_MACHINE}-unknown-morphos - exit ;; - *:OS/390:*:*) - echo i370-ibm-openedition - exit ;; - *:z/VM:*:*) - echo s390-ibm-zvmoe - exit ;; - *:OS400:*:*) - echo powerpc-ibm-os400 - exit ;; - arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) - echo arm-acorn-riscix${UNAME_RELEASE} - exit ;; - arm:riscos:*:*|arm:RISCOS:*:*) - echo arm-unknown-riscos - exit ;; - SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) - echo hppa1.1-hitachi-hiuxmpp - exit ;; - Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) - # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. - if test "`(/bin/universe) 2>/dev/null`" = att ; then - echo pyramid-pyramid-sysv3 - else - echo pyramid-pyramid-bsd - fi - exit ;; - NILE*:*:*:dcosx) - echo pyramid-pyramid-svr4 - exit ;; - DRS?6000:unix:4.0:6*) - echo sparc-icl-nx6 - exit ;; - DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) - case `/usr/bin/uname -p` in - sparc) echo sparc-icl-nx7; exit ;; - esac ;; - sun4H:SunOS:5.*:*) - echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit ;; - sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) - echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit ;; - i86pc:SunOS:5.*:*) - echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit ;; - sun4*:SunOS:6*:*) - # According to config.sub, this is the proper way to canonicalize - # SunOS6. Hard to guess exactly what SunOS6 will be like, but - # it's likely to be more like Solaris than SunOS4. - echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit ;; - sun4*:SunOS:*:*) - case "`/usr/bin/arch -k`" in - Series*|S4*) - UNAME_RELEASE=`uname -v` - ;; - esac - # Japanese Language versions have a version number like `4.1.3-JL'. - echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` - exit ;; - sun3*:SunOS:*:*) - echo m68k-sun-sunos${UNAME_RELEASE} - exit ;; - sun*:*:4.2BSD:*) - UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` - test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 - case "`/bin/arch`" in - sun3) - echo m68k-sun-sunos${UNAME_RELEASE} - ;; - sun4) - echo sparc-sun-sunos${UNAME_RELEASE} - ;; - esac - exit ;; - aushp:SunOS:*:*) - echo sparc-auspex-sunos${UNAME_RELEASE} - exit ;; - # The situation for MiNT is a little confusing. The machine name - # can be virtually everything (everything which is not - # "atarist" or "atariste" at least should have a processor - # > m68000). The system name ranges from "MiNT" over "FreeMiNT" - # to the lowercase version "mint" (or "freemint"). Finally - # the system name "TOS" denotes a system which is actually not - # MiNT. But MiNT is downward compatible to TOS, so this should - # be no problem. - atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) - echo m68k-atari-mint${UNAME_RELEASE} - exit ;; - atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) - echo m68k-atari-mint${UNAME_RELEASE} - exit ;; - *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) - echo m68k-atari-mint${UNAME_RELEASE} - exit ;; - milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) - echo m68k-milan-mint${UNAME_RELEASE} - exit ;; - hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) - echo m68k-hades-mint${UNAME_RELEASE} - exit ;; - *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) - echo m68k-unknown-mint${UNAME_RELEASE} - exit ;; - m68k:machten:*:*) - echo m68k-apple-machten${UNAME_RELEASE} - exit ;; - powerpc:machten:*:*) - echo powerpc-apple-machten${UNAME_RELEASE} - exit ;; - RISC*:Mach:*:*) - echo mips-dec-mach_bsd4.3 - exit ;; - RISC*:ULTRIX:*:*) - echo mips-dec-ultrix${UNAME_RELEASE} - exit ;; - VAX*:ULTRIX*:*:*) - echo vax-dec-ultrix${UNAME_RELEASE} - exit ;; - 2020:CLIX:*:* | 2430:CLIX:*:*) - echo clipper-intergraph-clix${UNAME_RELEASE} - exit ;; - mips:*:*:UMIPS | mips:*:*:RISCos) - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c -#ifdef __cplusplus -#include /* for printf() prototype */ - int main (int argc, char *argv[]) { -#else - int main (argc, argv) int argc; char *argv[]; { -#endif - #if defined (host_mips) && defined (MIPSEB) - #if defined (SYSTYPE_SYSV) - printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); - #endif - #if defined (SYSTYPE_SVR4) - printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); - #endif - #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) - printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); - #endif - #endif - exit (-1); - } -EOF - $CC_FOR_BUILD -o $dummy $dummy.c && - dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && - SYSTEM_NAME=`$dummy $dummyarg` && - { echo "$SYSTEM_NAME"; exit; } - echo mips-mips-riscos${UNAME_RELEASE} - exit ;; - Motorola:PowerMAX_OS:*:*) - echo powerpc-motorola-powermax - exit ;; - Motorola:*:4.3:PL8-*) - echo powerpc-harris-powermax - exit ;; - Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) - echo powerpc-harris-powermax - exit ;; - Night_Hawk:Power_UNIX:*:*) - echo powerpc-harris-powerunix - exit ;; - m88k:CX/UX:7*:*) - echo m88k-harris-cxux7 - exit ;; - m88k:*:4*:R4*) - echo m88k-motorola-sysv4 - exit ;; - m88k:*:3*:R3*) - echo m88k-motorola-sysv3 - exit ;; - AViiON:dgux:*:*) - # DG/UX returns AViiON for all architectures - UNAME_PROCESSOR=`/usr/bin/uname -p` - if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] - then - if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ - [ ${TARGET_BINARY_INTERFACE}x = x ] - then - echo m88k-dg-dgux${UNAME_RELEASE} - else - echo m88k-dg-dguxbcs${UNAME_RELEASE} - fi - else - echo i586-dg-dgux${UNAME_RELEASE} - fi - exit ;; - M88*:DolphinOS:*:*) # DolphinOS (SVR3) - echo m88k-dolphin-sysv3 - exit ;; - M88*:*:R3*:*) - # Delta 88k system running SVR3 - echo m88k-motorola-sysv3 - exit ;; - XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) - echo m88k-tektronix-sysv3 - exit ;; - Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) - echo m68k-tektronix-bsd - exit ;; - *:IRIX*:*:*) - echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` - exit ;; - ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. - echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id - exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' - i*86:AIX:*:*) - echo i386-ibm-aix - exit ;; - ia64:AIX:*:*) - if [ -x /usr/bin/oslevel ] ; then - IBM_REV=`/usr/bin/oslevel` - else - IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} - fi - echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} - exit ;; - *:AIX:2:3) - if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c - #include - - main() - { - if (!__power_pc()) - exit(1); - puts("powerpc-ibm-aix3.2.5"); - exit(0); - } -EOF - if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` - then - echo "$SYSTEM_NAME" - else - echo rs6000-ibm-aix3.2.5 - fi - elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then - echo rs6000-ibm-aix3.2.4 - else - echo rs6000-ibm-aix3.2 - fi - exit ;; - *:AIX:*:[45]) - IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` - if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then - IBM_ARCH=rs6000 - else - IBM_ARCH=powerpc - fi - if [ -x /usr/bin/oslevel ] ; then - IBM_REV=`/usr/bin/oslevel` - else - IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} - fi - echo ${IBM_ARCH}-ibm-aix${IBM_REV} - exit ;; - *:AIX:*:*) - echo rs6000-ibm-aix - exit ;; - ibmrt:4.4BSD:*|romp-ibm:BSD:*) - echo romp-ibm-bsd4.4 - exit ;; - ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and - echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to - exit ;; # report: romp-ibm BSD 4.3 - *:BOSX:*:*) - echo rs6000-bull-bosx - exit ;; - DPX/2?00:B.O.S.:*:*) - echo m68k-bull-sysv3 - exit ;; - 9000/[34]??:4.3bsd:1.*:*) - echo m68k-hp-bsd - exit ;; - hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) - echo m68k-hp-bsd4.4 - exit ;; - 9000/[34678]??:HP-UX:*:*) - HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` - case "${UNAME_MACHINE}" in - 9000/31? ) HP_ARCH=m68000 ;; - 9000/[34]?? ) HP_ARCH=m68k ;; - 9000/[678][0-9][0-9]) - if [ -x /usr/bin/getconf ]; then - sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` - sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` - case "${sc_cpu_version}" in - 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 - 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 - 532) # CPU_PA_RISC2_0 - case "${sc_kernel_bits}" in - 32) HP_ARCH="hppa2.0n" ;; - 64) HP_ARCH="hppa2.0w" ;; - '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 - esac ;; - esac - fi - if [ "${HP_ARCH}" = "" ]; then - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c - - #define _HPUX_SOURCE - #include - #include - - int main () - { - #if defined(_SC_KERNEL_BITS) - long bits = sysconf(_SC_KERNEL_BITS); - #endif - long cpu = sysconf (_SC_CPU_VERSION); - - switch (cpu) - { - case CPU_PA_RISC1_0: puts ("hppa1.0"); break; - case CPU_PA_RISC1_1: puts ("hppa1.1"); break; - case CPU_PA_RISC2_0: - #if defined(_SC_KERNEL_BITS) - switch (bits) - { - case 64: puts ("hppa2.0w"); break; - case 32: puts ("hppa2.0n"); break; - default: puts ("hppa2.0"); break; - } break; - #else /* !defined(_SC_KERNEL_BITS) */ - puts ("hppa2.0"); break; - #endif - default: puts ("hppa1.0"); break; - } - exit (0); - } -EOF - (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` - test -z "$HP_ARCH" && HP_ARCH=hppa - fi ;; - esac - if [ ${HP_ARCH} = "hppa2.0w" ] - then - eval $set_cc_for_build - - # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating - # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler - # generating 64-bit code. GNU and HP use different nomenclature: - # - # $ CC_FOR_BUILD=cc ./config.guess - # => hppa2.0w-hp-hpux11.23 - # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess - # => hppa64-hp-hpux11.23 - - if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | - grep __LP64__ >/dev/null - then - HP_ARCH="hppa2.0w" - else - HP_ARCH="hppa64" - fi - fi - echo ${HP_ARCH}-hp-hpux${HPUX_REV} - exit ;; - ia64:HP-UX:*:*) - HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` - echo ia64-hp-hpux${HPUX_REV} - exit ;; - 3050*:HI-UX:*:*) - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c - #include - int - main () - { - long cpu = sysconf (_SC_CPU_VERSION); - /* The order matters, because CPU_IS_HP_MC68K erroneously returns - true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct - results, however. */ - if (CPU_IS_PA_RISC (cpu)) - { - switch (cpu) - { - case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; - case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; - case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; - default: puts ("hppa-hitachi-hiuxwe2"); break; - } - } - else if (CPU_IS_HP_MC68K (cpu)) - puts ("m68k-hitachi-hiuxwe2"); - else puts ("unknown-hitachi-hiuxwe2"); - exit (0); - } -EOF - $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && - { echo "$SYSTEM_NAME"; exit; } - echo unknown-hitachi-hiuxwe2 - exit ;; - 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) - echo hppa1.1-hp-bsd - exit ;; - 9000/8??:4.3bsd:*:*) - echo hppa1.0-hp-bsd - exit ;; - *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) - echo hppa1.0-hp-mpeix - exit ;; - hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) - echo hppa1.1-hp-osf - exit ;; - hp8??:OSF1:*:*) - echo hppa1.0-hp-osf - exit ;; - i*86:OSF1:*:*) - if [ -x /usr/sbin/sysversion ] ; then - echo ${UNAME_MACHINE}-unknown-osf1mk - else - echo ${UNAME_MACHINE}-unknown-osf1 - fi - exit ;; - parisc*:Lites*:*:*) - echo hppa1.1-hp-lites - exit ;; - C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) - echo c1-convex-bsd - exit ;; - C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) - if getsysinfo -f scalar_acc - then echo c32-convex-bsd - else echo c2-convex-bsd - fi - exit ;; - C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) - echo c34-convex-bsd - exit ;; - C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) - echo c38-convex-bsd - exit ;; - C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) - echo c4-convex-bsd - exit ;; - CRAY*Y-MP:*:*:*) - echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit ;; - CRAY*[A-Z]90:*:*:*) - echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ - | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ - -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ - -e 's/\.[^.]*$/.X/' - exit ;; - CRAY*TS:*:*:*) - echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit ;; - CRAY*T3E:*:*:*) - echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit ;; - CRAY*SV1:*:*:*) - echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit ;; - *:UNICOS/mp:*:*) - echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - exit ;; - F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) - FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` - FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` - FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` - echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" - exit ;; - 5000:UNIX_System_V:4.*:*) - FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` - FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` - echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" - exit ;; - i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) - echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} - exit ;; - sparc*:BSD/OS:*:*) - echo sparc-unknown-bsdi${UNAME_RELEASE} - exit ;; - *:BSD/OS:*:*) - echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} - exit ;; - *:FreeBSD:*:*) - echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` - exit ;; - i*:CYGWIN*:*) - echo ${UNAME_MACHINE}-pc-cygwin - exit ;; - i*:MINGW*:*) - echo ${UNAME_MACHINE}-pc-mingw32 - exit ;; -#### MozillaHack -# Netscape's hacked uname - xx:WINNT:* | xx:WIN95:*) - echo i586-pc-msvc - exit ;; -### End MozillaHack - i*:windows32*:*) - # uname -m includes "-pc" on this system. - echo ${UNAME_MACHINE}-mingw32 - exit ;; - i*:PW*:*) - echo ${UNAME_MACHINE}-pc-pw32 - exit ;; - x86:Interix*:[34]*) - echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//' - exit ;; - [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) - echo i${UNAME_MACHINE}-pc-mks - exit ;; - i*:Windows_NT*:* | Pentium*:Windows_NT*:*) - # How do we know it's Interix rather than the generic POSIX subsystem? - # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we - # UNAME_MACHINE based on the output of uname instead of i386? - echo i586-pc-interix - exit ;; - i*:UWIN*:*) - echo ${UNAME_MACHINE}-pc-uwin - exit ;; - amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) - echo x86_64-unknown-cygwin - exit ;; - p*:CYGWIN*:*) - echo powerpcle-unknown-cygwin - exit ;; - prep*:SunOS:5.*:*) - echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` - exit ;; - *:GNU:*:*) - # the GNU system - echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` - exit ;; - *:GNU/*:*:*) - # other systems with GNU libc and userland - echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu - exit ;; - i*86:Minix:*:*) - echo ${UNAME_MACHINE}-pc-minix - exit ;; - arm*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit ;; - cris:Linux:*:*) - echo cris-axis-linux-gnu - exit ;; - crisv32:Linux:*:*) - echo crisv32-axis-linux-gnu - exit ;; - frv:Linux:*:*) - echo frv-unknown-linux-gnu - exit ;; - ia64:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit ;; - m32r*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit ;; - m68*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit ;; - mips:Linux:*:*) - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c - #undef CPU - #undef mips - #undef mipsel - #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) - CPU=mipsel - #else - #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) - CPU=mips - #else - CPU= - #endif - #endif -EOF - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` - test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } - ;; - mips64:Linux:*:*) - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c - #undef CPU - #undef mips64 - #undef mips64el - #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) - CPU=mips64el - #else - #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) - CPU=mips64 - #else - CPU= - #endif - #endif -EOF - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` - test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } - ;; - or32:Linux:*:*) - echo or32-unknown-linux-gnu - exit ;; - ppc:Linux:*:*) - echo powerpc-unknown-linux-gnu - exit ;; - ppc64:Linux:*:*) - echo powerpc64-unknown-linux-gnu - exit ;; - alpha:Linux:*:*) - case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in - EV5) UNAME_MACHINE=alphaev5 ;; - EV56) UNAME_MACHINE=alphaev56 ;; - PCA56) UNAME_MACHINE=alphapca56 ;; - PCA57) UNAME_MACHINE=alphapca56 ;; - EV6) UNAME_MACHINE=alphaev6 ;; - EV67) UNAME_MACHINE=alphaev67 ;; - EV68*) UNAME_MACHINE=alphaev68 ;; - esac - objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null - if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi - echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} - exit ;; - parisc:Linux:*:* | hppa:Linux:*:*) - # Look for CPU level - case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in - PA7*) echo hppa1.1-unknown-linux-gnu ;; - PA8*) echo hppa2.0-unknown-linux-gnu ;; - *) echo hppa-unknown-linux-gnu ;; - esac - exit ;; - parisc64:Linux:*:* | hppa64:Linux:*:*) - echo hppa64-unknown-linux-gnu - exit ;; - s390:Linux:*:* | s390x:Linux:*:*) - echo ${UNAME_MACHINE}-ibm-linux - exit ;; - sh64*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit ;; - sh*:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit ;; - sparc:Linux:*:* | sparc64:Linux:*:*) - echo ${UNAME_MACHINE}-unknown-linux-gnu - exit ;; - x86_64:Linux:*:*) - echo x86_64-unknown-linux-gnu - exit ;; - i*86:Linux:*:*) - # The BFD linker knows what the default object file format is, so - # first see if it will tell us. cd to the root directory to prevent - # problems with other programs or directories called `ld' in the path. - # Set LC_ALL=C to ensure ld outputs messages in English. - ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ - | sed -ne '/supported targets:/!d - s/[ ][ ]*/ /g - s/.*supported targets: *// - s/ .*// - p'` - case "$ld_supported_targets" in - elf32-i386) - TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" - ;; - a.out-i386-linux) - echo "${UNAME_MACHINE}-pc-linux-gnuaout" - exit ;; - coff-i386) - echo "${UNAME_MACHINE}-pc-linux-gnucoff" - exit ;; - "") - # Either a pre-BFD a.out linker (linux-gnuoldld) or - # one that does not give us useful --help. - echo "${UNAME_MACHINE}-pc-linux-gnuoldld" - exit ;; - esac - # Determine whether the default compiler is a.out or elf - eval $set_cc_for_build - sed 's/^ //' << EOF >$dummy.c - #include - #ifdef __ELF__ - # ifdef __GLIBC__ - # if __GLIBC__ >= 2 - LIBC=gnu - # else - LIBC=gnulibc1 - # endif - # else - LIBC=gnulibc1 - # endif - #else - #ifdef __INTEL_COMPILER - LIBC=gnu - #else - LIBC=gnuaout - #endif - #endif - #ifdef __dietlibc__ - LIBC=dietlibc - #endif -EOF - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` - test x"${LIBC}" != x && { - echo "${UNAME_MACHINE}-pc-linux-${LIBC}" - exit - } - test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; } - ;; - i*86:DYNIX/ptx:4*:*) - # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. - # earlier versions are messed up and put the nodename in both - # sysname and nodename. - echo i386-sequent-sysv4 - exit ;; - i*86:UNIX_SV:4.2MP:2.*) - # Unixware is an offshoot of SVR4, but it has its own version - # number series starting with 2... - # I am not positive that other SVR4 systems won't match this, - # I just have to hope. -- rms. - # Use sysv4.2uw... so that sysv4* matches it. - echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} - exit ;; - i*86:OS/2:*:*) - # If we were able to find `uname', then EMX Unix compatibility - # is probably installed. - echo ${UNAME_MACHINE}-pc-os2-emx - exit ;; - i*86:XTS-300:*:STOP) - echo ${UNAME_MACHINE}-unknown-stop - exit ;; - i*86:atheos:*:*) - echo ${UNAME_MACHINE}-unknown-atheos - exit ;; - i*86:syllable:*:*) - echo ${UNAME_MACHINE}-pc-syllable - exit ;; - i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) - echo i386-unknown-lynxos${UNAME_RELEASE} - exit ;; - i*86:*DOS:*:*) - echo ${UNAME_MACHINE}-pc-msdosdjgpp - exit ;; - i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) - UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` - if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then - echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} - else - echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} - fi - exit ;; - i*86:*:5:[678]*) - # UnixWare 7.x, OpenUNIX and OpenServer 6. - case `/bin/uname -X | grep "^Machine"` in - *486*) UNAME_MACHINE=i486 ;; - *Pentium) UNAME_MACHINE=i586 ;; - *Pent*|*Celeron) UNAME_MACHINE=i686 ;; - esac - echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} - exit ;; - i*86:*:3.2:*) - if test -f /usr/options/cb.name; then - UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then - UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` - (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 - (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ - && UNAME_MACHINE=i586 - (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ - && UNAME_MACHINE=i686 - (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ - && UNAME_MACHINE=i686 - echo ${UNAME_MACHINE}-pc-sco$UNAME_REL - else - echo ${UNAME_MACHINE}-pc-sysv32 - fi - exit ;; - pc:*:*:*) - # Left here for compatibility: - # uname -m prints for DJGPP always 'pc', but it prints nothing about - # the processor, so we play safe by assuming i386. - echo i386-pc-msdosdjgpp - exit ;; - Intel:Mach:3*:*) - echo i386-pc-mach3 - exit ;; - paragon:*:*:*) - echo i860-intel-osf1 - exit ;; - i860:*:4.*:*) # i860-SVR4 - if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then - echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 - else # Add other i860-SVR4 vendors below as they are discovered. - echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 - fi - exit ;; - mini*:CTIX:SYS*5:*) - # "miniframe" - echo m68010-convergent-sysv - exit ;; - mc68k:UNIX:SYSTEM5:3.51m) - echo m68k-convergent-sysv - exit ;; - M680?0:D-NIX:5.3:*) - echo m68k-diab-dnix - exit ;; - M68*:*:R3V[5678]*:*) - test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; - 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) - OS_REL='' - test -r /etc/.relid \ - && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` - /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ - && { echo i486-ncr-sysv4.3${OS_REL}; exit; } - /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ - && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; - 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) - /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ - && { echo i486-ncr-sysv4; exit; } ;; - m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) - echo m68k-unknown-lynxos${UNAME_RELEASE} - exit ;; - mc68030:UNIX_System_V:4.*:*) - echo m68k-atari-sysv4 - exit ;; - TSUNAMI:LynxOS:2.*:*) - echo sparc-unknown-lynxos${UNAME_RELEASE} - exit ;; - rs6000:LynxOS:2.*:*) - echo rs6000-unknown-lynxos${UNAME_RELEASE} - exit ;; - PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) - echo powerpc-unknown-lynxos${UNAME_RELEASE} - exit ;; - SM[BE]S:UNIX_SV:*:*) - echo mips-dde-sysv${UNAME_RELEASE} - exit ;; - RM*:ReliantUNIX-*:*:*) - echo mips-sni-sysv4 - exit ;; - RM*:SINIX-*:*:*) - echo mips-sni-sysv4 - exit ;; - *:SINIX-*:*:*) - if uname -p 2>/dev/null >/dev/null ; then - UNAME_MACHINE=`(uname -p) 2>/dev/null` - echo ${UNAME_MACHINE}-sni-sysv4 - else - echo ns32k-sni-sysv - fi - exit ;; - PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort - # says - echo i586-unisys-sysv4 - exit ;; -#### MozillaHack - *:*OpenVMS*:*:*) - case "${UNAME_SYSTEM}" in - POSIX_for_OpenVMS_AXP) echo alpha-dec-openvmsposix ;; - POSIX_for_OpenVMS_VAX) echo vax-dec-openvmsposix ;; - OpenVMS) echo alpha-dec-openvms ;; - *) echo unknown-dec-openvms ;; - esac - exit ;; -#### End MozillaHack - *:UNIX_System_V:4*:FTX*) - # From Gerald Hewes . - # How about differentiating between stratus architectures? -djm - echo hppa1.1-stratus-sysv4 - exit ;; - *:*:*:FTX*) - # From seanf@swdc.stratus.com. - echo i860-stratus-sysv4 - exit ;; - i*86:VOS:*:*) - # From Paul.Green@stratus.com. - echo ${UNAME_MACHINE}-stratus-vos - exit ;; - *:VOS:*:*) - # From Paul.Green@stratus.com. - echo hppa1.1-stratus-vos - exit ;; - mc68*:A/UX:*:*) - echo m68k-apple-aux${UNAME_RELEASE} - exit ;; - news*:NEWS-OS:6*:*) - echo mips-sony-newsos6 - exit ;; - R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) - if [ -d /usr/nec ]; then - echo mips-nec-sysv${UNAME_RELEASE} - else - echo mips-unknown-sysv${UNAME_RELEASE} - fi - exit ;; - BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. - echo powerpc-be-beos - exit ;; - BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. - echo powerpc-apple-beos - exit ;; - BePC:BeOS:*:*) # BeOS running on Intel PC compatible. - echo i586-pc-beos - exit ;; - SX-4:SUPER-UX:*:*) - echo sx4-nec-superux${UNAME_RELEASE} - exit ;; - SX-5:SUPER-UX:*:*) - echo sx5-nec-superux${UNAME_RELEASE} - exit ;; - SX-6:SUPER-UX:*:*) - echo sx6-nec-superux${UNAME_RELEASE} - exit ;; - Power*:Rhapsody:*:*) - echo powerpc-apple-rhapsody${UNAME_RELEASE} - exit ;; - *:Rhapsody:*:*) - echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} - exit ;; - *:Darwin:*:*) - UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown - case $UNAME_PROCESSOR in - unknown) UNAME_PROCESSOR=powerpc ;; - esac - echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} - exit ;; - *:procnto*:*:* | *:QNX:[0123456789]*:*) - UNAME_PROCESSOR=`uname -p` - if test "$UNAME_PROCESSOR" = "x86"; then - UNAME_PROCESSOR=i386 - UNAME_MACHINE=pc - fi - echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} - exit ;; - *:QNX:*:4*) - echo i386-pc-qnx - exit ;; - NSE-?:NONSTOP_KERNEL:*:*) - echo nse-tandem-nsk${UNAME_RELEASE} - exit ;; - NSR-?:NONSTOP_KERNEL:*:*) - echo nsr-tandem-nsk${UNAME_RELEASE} - exit ;; - *:NonStop-UX:*:*) - echo mips-compaq-nonstopux - exit ;; - BS2000:POSIX*:*:*) - echo bs2000-siemens-sysv - exit ;; - DS/*:UNIX_System_V:*:*) - echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} - exit ;; - *:Plan9:*:*) - # "uname -m" is not consistent, so use $cputype instead. 386 - # is converted to i386 for consistency with other x86 - # operating systems. - if test "$cputype" = "386"; then - UNAME_MACHINE=i386 - else - UNAME_MACHINE="$cputype" - fi - echo ${UNAME_MACHINE}-unknown-plan9 - exit ;; - *:TOPS-10:*:*) - echo pdp10-unknown-tops10 - exit ;; - *:TENEX:*:*) - echo pdp10-unknown-tenex - exit ;; - KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) - echo pdp10-dec-tops20 - exit ;; - XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) - echo pdp10-xkl-tops20 - exit ;; - *:TOPS-20:*:*) - echo pdp10-unknown-tops20 - exit ;; - *:ITS:*:*) - echo pdp10-unknown-its - exit ;; - SEI:*:*:SEIUX) - echo mips-sei-seiux${UNAME_RELEASE} - exit ;; - *:DragonFly:*:*) - echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` - exit ;; - *:*VMS:*:*) - UNAME_MACHINE=`(uname -p) 2>/dev/null` - case "${UNAME_MACHINE}" in - A*) echo alpha-dec-vms ; exit ;; - I*) echo ia64-dec-vms ; exit ;; - V*) echo vax-dec-vms ; exit ;; - esac ;; - *:XENIX:*:SysV) - echo i386-pc-xenix - exit ;; - i*86:skyos:*:*) - echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' - exit ;; -esac - -#echo '(No uname command or uname output not recognized.)' 1>&2 -#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 - -eval $set_cc_for_build -cat >$dummy.c < -# include -#endif -main () -{ -#if defined (sony) -#if defined (MIPSEB) - /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, - I don't know.... */ - printf ("mips-sony-bsd\n"); exit (0); -#else -#include - printf ("m68k-sony-newsos%s\n", -#ifdef NEWSOS4 - "4" -#else - "" -#endif - ); exit (0); -#endif -#endif - -#if defined (__arm) && defined (__acorn) && defined (__unix) - printf ("arm-acorn-riscix\n"); exit (0); -#endif - -#if defined (hp300) && !defined (hpux) - printf ("m68k-hp-bsd\n"); exit (0); -#endif - -#if defined (NeXT) -#if !defined (__ARCHITECTURE__) -#define __ARCHITECTURE__ "m68k" -#endif - int version; - version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; - if (version < 4) - printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); - else - printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); - exit (0); -#endif - -#if defined (MULTIMAX) || defined (n16) -#if defined (UMAXV) - printf ("ns32k-encore-sysv\n"); exit (0); -#else -#if defined (CMU) - printf ("ns32k-encore-mach\n"); exit (0); -#else - printf ("ns32k-encore-bsd\n"); exit (0); -#endif -#endif -#endif - -#if defined (__386BSD__) - printf ("i386-pc-bsd\n"); exit (0); -#endif - -#if defined (sequent) -#if defined (i386) - printf ("i386-sequent-dynix\n"); exit (0); -#endif -#if defined (ns32000) - printf ("ns32k-sequent-dynix\n"); exit (0); -#endif -#endif - -#if defined (_SEQUENT_) - struct utsname un; - - uname(&un); - - if (strncmp(un.version, "V2", 2) == 0) { - printf ("i386-sequent-ptx2\n"); exit (0); - } - if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ - printf ("i386-sequent-ptx1\n"); exit (0); - } - printf ("i386-sequent-ptx\n"); exit (0); - -#endif - -#if defined (vax) -# if !defined (ultrix) -# include -# if defined (BSD) -# if BSD == 43 - printf ("vax-dec-bsd4.3\n"); exit (0); -# else -# if BSD == 199006 - printf ("vax-dec-bsd4.3reno\n"); exit (0); -# else - printf ("vax-dec-bsd\n"); exit (0); -# endif -# endif -# else - printf ("vax-dec-bsd\n"); exit (0); -# endif -# else - printf ("vax-dec-ultrix\n"); exit (0); -# endif -#endif - -#if defined (alliant) && defined (i860) - printf ("i860-alliant-bsd\n"); exit (0); -#endif - - exit (1); -} -EOF - -$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && - { echo "$SYSTEM_NAME"; exit; } - -# Apollos put the system type in the environment. - -test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } - -# Convex versions that predate uname can use getsysinfo(1) - -if [ -x /usr/convex/getsysinfo ] -then - case `getsysinfo -f cpu_type` in - c1*) - echo c1-convex-bsd - exit ;; - c2*) - if getsysinfo -f scalar_acc - then echo c32-convex-bsd - else echo c2-convex-bsd - fi - exit ;; - c34*) - echo c34-convex-bsd - exit ;; - c38*) - echo c38-convex-bsd - exit ;; - c4*) - echo c4-convex-bsd - exit ;; - esac -fi - -cat >&2 < in order to provide the needed -information to handle your system. - -config.guess timestamp = $timestamp - -uname -m = `(uname -m) 2>/dev/null || echo unknown` -uname -r = `(uname -r) 2>/dev/null || echo unknown` -uname -s = `(uname -s) 2>/dev/null || echo unknown` -uname -v = `(uname -v) 2>/dev/null || echo unknown` - -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` -/bin/uname -X = `(/bin/uname -X) 2>/dev/null` - -hostinfo = `(hostinfo) 2>/dev/null` -/bin/universe = `(/bin/universe) 2>/dev/null` -/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` -/bin/arch = `(/bin/arch) 2>/dev/null` -/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` -/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` - -UNAME_MACHINE = ${UNAME_MACHINE} -UNAME_RELEASE = ${UNAME_RELEASE} -UNAME_SYSTEM = ${UNAME_SYSTEM} -UNAME_VERSION = ${UNAME_VERSION} -EOF - -exit 1 - -# Local variables: -# eval: (add-hook 'write-file-hooks 'time-stamp) -# time-stamp-start: "timestamp='" -# time-stamp-format: "%:y-%02m-%02d" -# time-stamp-end: "'" -# End: diff --git a/c-sdk/config/autoconf/config.sub b/c-sdk/config/autoconf/config.sub deleted file mode 100644 index 4900684..0000000 --- a/c-sdk/config/autoconf/config.sub +++ /dev/null @@ -1,1592 +0,0 @@ -#! /bin/sh -# Configuration validation subroutine script. -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, -# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. - -timestamp='2005-10-13' - -# This file is (in principle) common to ALL GNU software. -# The presence of a machine in this file suggests that SOME GNU software -# can handle that machine. It does not imply ALL GNU software can. -# -# This file is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA -# 02110-1301, USA. -# -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - - -# Please send patches to . Submit a context -# diff and a properly formatted ChangeLog entry. -# -# Configuration subroutine to validate and canonicalize a configuration type. -# Supply the specified configuration type as an argument. -# If it is invalid, we print an error message on stderr and exit with code 1. -# Otherwise, we print the canonical config type on stdout and succeed. - -# This file is supposed to be the same for all GNU packages -# and recognize all the CPU types, system types and aliases -# that are meaningful with *any* GNU software. -# Each package is responsible for reporting which valid configurations -# it does not support. The user should be able to distinguish -# a failure to support a valid configuration from a meaningless -# configuration. - -# The goal of this file is to map all the various variations of a given -# machine specification into a single specification in the form: -# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM -# or in some cases, the newer four-part form: -# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM -# It is wrong to echo any other type of specification. - -me=`echo "$0" | sed -e 's,.*/,,'` - -usage="\ -Usage: $0 [OPTION] CPU-MFR-OPSYS - $0 [OPTION] ALIAS - -Canonicalize a configuration name. - -Operation modes: - -h, --help print this help, then exit - -t, --time-stamp print date of last modification, then exit - -v, --version print version number, then exit - -Report bugs and patches to ." - -version="\ -GNU config.sub ($timestamp) - -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 -Free Software Foundation, Inc. - -This is free software; see the source for copying conditions. There is NO -warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." - -help=" -Try \`$me --help' for more information." - -# Parse command line -while test $# -gt 0 ; do - case $1 in - --time-stamp | --time* | -t ) - echo "$timestamp" ; exit ;; - --version | -v ) - echo "$version" ; exit ;; - --help | --h* | -h ) - echo "$usage"; exit ;; - -- ) # Stop option processing - shift; break ;; - - ) # Use stdin as input. - break ;; - -* ) - echo "$me: invalid option $1$help" - exit 1 ;; - - *local*) - # First pass through any local machine types. - echo $1 - exit ;; - - * ) - break ;; - esac -done - -case $# in - 0) echo "$me: missing argument$help" >&2 - exit 1;; - 1) ;; - *) echo "$me: too many arguments$help" >&2 - exit 1;; -esac - -# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). -# Here we must recognize all the valid KERNEL-OS combinations. -maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` -case $maybe_os in - nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \ - kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) - os=-$maybe_os - basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` - ;; - *) - basic_machine=`echo $1 | sed 's/-[^-]*$//'` - if [ $basic_machine != $1 ] - then os=`echo $1 | sed 's/.*-/-/'` - else os=; fi - ;; -esac - -### Let's recognize common machines as not being operating systems so -### that things like config.sub decstation-3100 work. We also -### recognize some manufacturers as not being operating systems, so we -### can provide default operating systems below. -case $os in - -sun*os*) - # Prevent following clause from handling this invalid input. - ;; - -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ - -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ - -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ - -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ - -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ - -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ - -apple | -axis | -knuth | -cray) - os= - basic_machine=$1 - ;; - -sim | -cisco | -oki | -wec | -winbond) - os= - basic_machine=$1 - ;; - -scout) - ;; - -wrs) - os=-vxworks - basic_machine=$1 - ;; - -chorusos*) - os=-chorusos - basic_machine=$1 - ;; - -chorusrdb) - os=-chorusrdb - basic_machine=$1 - ;; - -hiux*) - os=-hiuxwe2 - ;; - -sco5) - os=-sco3.2v5 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -sco4) - os=-sco3.2v4 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -sco3.2.[4-9]*) - os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -sco3.2v[4-9]*) - # Don't forget version if it is 3.2v4 or newer. - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -sco*) - os=-sco3.2v2 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -udk*) - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -isc) - os=-isc2.2 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -clix*) - basic_machine=clipper-intergraph - ;; - -isc*) - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` - ;; - -lynx*) - os=-lynxos - ;; - -ptx*) - basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` - ;; - -windowsnt*) - os=`echo $os | sed -e 's/windowsnt/winnt/'` - ;; - -psos*) - os=-psos - ;; - -mint | -mint[0-9]*) - basic_machine=m68k-atari - os=-mint - ;; -esac - -# Decode aliases for certain CPU-COMPANY combinations. -case $basic_machine in - # Recognize the basic CPU types without company name. - # Some are omitted here because they have special meanings below. -#### MozillaHack -# mips*el -#### End MozillaHack - 1750a | 580 \ - | a29k \ - | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ - | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ - | am33_2.0 \ - | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ - | bfin \ - | c4x | clipper \ - | d10v | d30v | dlx | dsp16xx \ - | fr30 | frv \ - | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ - | i370 | i860 | i960 | ia64 \ - | ip2k | iq2000 \ - | m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \ - | mips | mipsbe | mipseb | mips*el | mipsle \ - | mips16 \ - | mips64 | mips64el \ - | mips64vr | mips64vrel \ - | mips64orion | mips64orionel \ - | mips64vr4100 | mips64vr4100el \ - | mips64vr4300 | mips64vr4300el \ - | mips64vr5000 | mips64vr5000el \ - | mips64vr5900 | mips64vr5900el \ - | mipsisa32 | mipsisa32el \ - | mipsisa32r2 | mipsisa32r2el \ - | mipsisa64 | mipsisa64el \ - | mipsisa64r2 | mipsisa64r2el \ - | mipsisa64sb1 | mipsisa64sb1el \ - | mipsisa64sr71k | mipsisa64sr71kel \ - | mipstx39 | mipstx39el \ - | mn10200 | mn10300 \ - | ms1 \ - | msp430 \ - | ns16k | ns32k \ - | or32 \ - | pdp10 | pdp11 | pj | pjl \ - | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ - | pyramid \ - | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ - | sh64 | sh64le \ - | sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \ - | sparcv8 | sparcv9 | sparcv9b \ - | strongarm \ - | tahoe | thumb | tic4x | tic80 | tron \ - | v850 | v850e \ - | we32k \ - | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \ - | z8k) - basic_machine=$basic_machine-unknown - ;; - m32c) - basic_machine=$basic_machine-unknown - ;; - m6811 | m68hc11 | m6812 | m68hc12) - # Motorola 68HC11/12. - basic_machine=$basic_machine-unknown - os=-none - ;; - m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) - ;; - - # We use `pc' rather than `unknown' - # because (1) that's what they normally are, and - # (2) the word "unknown" tends to confuse beginning users. - i*86 | x86_64) - basic_machine=$basic_machine-pc - ;; - # Object if more than one company name word. - *-*-*) - echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 - exit 1 - ;; - # Recognize the basic CPU types with company name. -#### MozillaHack -# mips*el -#### End MozillaHack - 580-* \ - | a29k-* \ - | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ - | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ - | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ - | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ - | avr-* \ - | bfin-* | bs2000-* \ - | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ - | clipper-* | craynv-* | cydra-* \ - | d10v-* | d30v-* | dlx-* \ - | elxsi-* \ - | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ - | h8300-* | h8500-* \ - | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ - | i*86-* | i860-* | i960-* | ia64-* \ - | ip2k-* | iq2000-* \ - | m32r-* | m32rle-* \ - | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ - | m88110-* | m88k-* | maxq-* | mcore-* \ - | mips-* | mipsbe-* | mipseb-* | mips*el-* | mipsle-* \ - | mips16-* \ - | mips64-* | mips64el-* \ - | mips64vr-* | mips64vrel-* \ - | mips64orion-* | mips64orionel-* \ - | mips64vr4100-* | mips64vr4100el-* \ - | mips64vr4300-* | mips64vr4300el-* \ - | mips64vr5000-* | mips64vr5000el-* \ - | mips64vr5900-* | mips64vr5900el-* \ - | mipsisa32-* | mipsisa32el-* \ - | mipsisa32r2-* | mipsisa32r2el-* \ - | mipsisa64-* | mipsisa64el-* \ - | mipsisa64r2-* | mipsisa64r2el-* \ - | mipsisa64sb1-* | mipsisa64sb1el-* \ - | mipsisa64sr71k-* | mipsisa64sr71kel-* \ - | mipstx39-* | mipstx39el-* \ - | mmix-* \ - | ms1-* \ - | msp430-* \ - | none-* | np1-* | ns16k-* | ns32k-* \ - | orion-* \ - | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ - | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ - | pyramid-* \ - | romp-* | rs6000-* \ - | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | shbe-* \ - | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ - | sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \ - | sparclite-* \ - | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ - | tahoe-* | thumb-* \ - | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ - | tron-* \ - | v850-* | v850e-* | vax-* \ - | we32k-* \ - | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \ - | xstormy16-* | xtensa-* \ - | ymp-* \ - | z8k-*) - ;; - m32c-*) - ;; - # Recognize the various machine names and aliases which stand - # for a CPU type and a company and sometimes even an OS. - 386bsd) - basic_machine=i386-unknown - os=-bsd - ;; - 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) - basic_machine=m68000-att - ;; - 3b*) - basic_machine=we32k-att - ;; - a29khif) - basic_machine=a29k-amd - os=-udi - ;; - abacus) - basic_machine=abacus-unknown - ;; - adobe68k) - basic_machine=m68010-adobe - os=-scout - ;; - alliant | fx80) - basic_machine=fx80-alliant - ;; - altos | altos3068) - basic_machine=m68k-altos - ;; - am29k) - basic_machine=a29k-none - os=-bsd - ;; - amd64) - basic_machine=x86_64-pc - ;; - amd64-*) - basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - amdahl) - basic_machine=580-amdahl - os=-sysv - ;; - amiga | amiga-*) - basic_machine=m68k-unknown - ;; - amigaos | amigados) - basic_machine=m68k-unknown - os=-amigaos - ;; - amigaunix | amix) - basic_machine=m68k-unknown - os=-sysv4 - ;; - apollo68) - basic_machine=m68k-apollo - os=-sysv - ;; - apollo68bsd) - basic_machine=m68k-apollo - os=-bsd - ;; - aux) - basic_machine=m68k-apple - os=-aux - ;; - balance) - basic_machine=ns32k-sequent - os=-dynix - ;; - c90) - basic_machine=c90-cray - os=-unicos - ;; - convex-c1) - basic_machine=c1-convex - os=-bsd - ;; - convex-c2) - basic_machine=c2-convex - os=-bsd - ;; - convex-c32) - basic_machine=c32-convex - os=-bsd - ;; - convex-c34) - basic_machine=c34-convex - os=-bsd - ;; - convex-c38) - basic_machine=c38-convex - os=-bsd - ;; - cray | j90) - basic_machine=j90-cray - os=-unicos - ;; - craynv) - basic_machine=craynv-cray - os=-unicosmp - ;; - cr16c) - basic_machine=cr16c-unknown - os=-elf - ;; - crds | unos) - basic_machine=m68k-crds - ;; - crisv32 | crisv32-* | etraxfs*) - basic_machine=crisv32-axis - ;; - cris | cris-* | etrax*) - basic_machine=cris-axis - ;; - crx) - basic_machine=crx-unknown - os=-elf - ;; - da30 | da30-*) - basic_machine=m68k-da30 - ;; - decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) - basic_machine=mips-dec - ;; - decsystem10* | dec10*) - basic_machine=pdp10-dec - os=-tops10 - ;; - decsystem20* | dec20*) - basic_machine=pdp10-dec - os=-tops20 - ;; - delta | 3300 | motorola-3300 | motorola-delta \ - | 3300-motorola | delta-motorola) - basic_machine=m68k-motorola - ;; - delta88) - basic_machine=m88k-motorola - os=-sysv3 - ;; - djgpp) - basic_machine=i586-pc - os=-msdosdjgpp - ;; - dpx20 | dpx20-*) - basic_machine=rs6000-bull - os=-bosx - ;; - dpx2* | dpx2*-bull) - basic_machine=m68k-bull - os=-sysv3 - ;; - ebmon29k) - basic_machine=a29k-amd - os=-ebmon - ;; - elxsi) - basic_machine=elxsi-elxsi - os=-bsd - ;; - encore | umax | mmax) - basic_machine=ns32k-encore - ;; - es1800 | OSE68k | ose68k | ose | OSE) - basic_machine=m68k-ericsson - os=-ose - ;; - fx2800) - basic_machine=i860-alliant - ;; - genix) - basic_machine=ns32k-ns - ;; - gmicro) - basic_machine=tron-gmicro - os=-sysv - ;; - go32) - basic_machine=i386-pc - os=-go32 - ;; - h3050r* | hiux*) - basic_machine=hppa1.1-hitachi - os=-hiuxwe2 - ;; - h8300hms) - basic_machine=h8300-hitachi - os=-hms - ;; - h8300xray) - basic_machine=h8300-hitachi - os=-xray - ;; - h8500hms) - basic_machine=h8500-hitachi - os=-hms - ;; - harris) - basic_machine=m88k-harris - os=-sysv3 - ;; - hp300-*) - basic_machine=m68k-hp - ;; - hp300bsd) - basic_machine=m68k-hp - os=-bsd - ;; - hp300hpux) - basic_machine=m68k-hp - os=-hpux - ;; - hp3k9[0-9][0-9] | hp9[0-9][0-9]) - basic_machine=hppa1.0-hp - ;; - hp9k2[0-9][0-9] | hp9k31[0-9]) - basic_machine=m68000-hp - ;; - hp9k3[2-9][0-9]) - basic_machine=m68k-hp - ;; - hp9k6[0-9][0-9] | hp6[0-9][0-9]) - basic_machine=hppa1.0-hp - ;; - hp9k7[0-79][0-9] | hp7[0-79][0-9]) - basic_machine=hppa1.1-hp - ;; - hp9k78[0-9] | hp78[0-9]) - # FIXME: really hppa2.0-hp - basic_machine=hppa1.1-hp - ;; - hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) - # FIXME: really hppa2.0-hp - basic_machine=hppa1.1-hp - ;; - hp9k8[0-9][13679] | hp8[0-9][13679]) - basic_machine=hppa1.1-hp - ;; - hp9k8[0-9][0-9] | hp8[0-9][0-9]) - basic_machine=hppa1.0-hp - ;; - hppa-next) - os=-nextstep3 - ;; - hppaosf) - basic_machine=hppa1.1-hp - os=-osf - ;; - hppro) - basic_machine=hppa1.1-hp - os=-proelf - ;; - i370-ibm* | ibm*) - basic_machine=i370-ibm - ;; -# I'm not sure what "Sysv32" means. Should this be sysv3.2? - i*86v32) - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` - os=-sysv32 - ;; - i*86v4*) - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` - os=-sysv4 - ;; - i*86v) - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` - os=-sysv - ;; - i*86sol2) - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` - os=-solaris2 - ;; - i386mach) - basic_machine=i386-mach - os=-mach - ;; - i386-vsta | vsta) - basic_machine=i386-unknown - os=-vsta - ;; - iris | iris4d) - basic_machine=mips-sgi - case $os in - -irix*) - ;; - *) - os=-irix4 - ;; - esac - ;; - isi68 | isi) - basic_machine=m68k-isi - os=-sysv - ;; - m88k-omron*) - basic_machine=m88k-omron - ;; - magnum | m3230) - basic_machine=mips-mips - os=-sysv - ;; - merlin) - basic_machine=ns32k-utek - os=-sysv - ;; - mingw32) - basic_machine=i386-pc - os=-mingw32 - ;; -#### MozillaHack - i386-msvc | msvc) - basic_machine=i386-pc - os=-msvc - ;; -#### End MozillaHack - miniframe) - basic_machine=m68000-convergent - ;; - *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) - basic_machine=m68k-atari - os=-mint - ;; - mips3*-*) - basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` - ;; - mips3*) - basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown - ;; - monitor) - basic_machine=m68k-rom68k - os=-coff - ;; - morphos) - basic_machine=powerpc-unknown - os=-morphos - ;; - msdos) - basic_machine=i386-pc - os=-msdos - ;; - mvs) - basic_machine=i370-ibm - os=-mvs - ;; - ncr3000) - basic_machine=i486-ncr - os=-sysv4 - ;; - netbsd386) - basic_machine=i386-unknown - os=-netbsd - ;; - netwinder) - basic_machine=armv4l-rebel - os=-linux - ;; - news | news700 | news800 | news900) - basic_machine=m68k-sony - os=-newsos - ;; - news1000) - basic_machine=m68030-sony - os=-newsos - ;; - news-3600 | risc-news) - basic_machine=mips-sony - os=-newsos - ;; - necv70) - basic_machine=v70-nec - os=-sysv - ;; - next | m*-next ) - basic_machine=m68k-next - case $os in - -nextstep* ) - ;; - -ns2*) - os=-nextstep2 - ;; - *) - os=-nextstep3 - ;; - esac - ;; - nh3000) - basic_machine=m68k-harris - os=-cxux - ;; - nh[45]000) - basic_machine=m88k-harris - os=-cxux - ;; - nindy960) - basic_machine=i960-intel - os=-nindy - ;; - mon960) - basic_machine=i960-intel - os=-mon960 - ;; - nonstopux) - basic_machine=mips-compaq - os=-nonstopux - ;; - np1) - basic_machine=np1-gould - ;; - nsr-tandem) - basic_machine=nsr-tandem - ;; - op50n-* | op60c-*) - basic_machine=hppa1.1-oki - os=-proelf - ;; - openrisc | openrisc-*) - basic_machine=or32-unknown - ;; - os400) - basic_machine=powerpc-ibm - os=-os400 - ;; - OSE68000 | ose68000) - basic_machine=m68000-ericsson - os=-ose - ;; - os68k) - basic_machine=m68k-none - os=-os68k - ;; - pa-hitachi) - basic_machine=hppa1.1-hitachi - os=-hiuxwe2 - ;; - paragon) - basic_machine=i860-intel - os=-osf - ;; - pbd) - basic_machine=sparc-tti - ;; - pbb) - basic_machine=m68k-tti - ;; - pc532 | pc532-*) - basic_machine=ns32k-pc532 - ;; - pentium | p5 | k5 | k6 | nexgen | viac3) - basic_machine=i586-pc - ;; - pentiumpro | p6 | 6x86 | athlon | athlon_*) - basic_machine=i686-pc - ;; - pentiumii | pentium2 | pentiumiii | pentium3) - basic_machine=i686-pc - ;; - pentium4) - basic_machine=i786-pc - ;; - pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) - basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - pentiumpro-* | p6-* | 6x86-* | athlon-*) - basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) - basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - pentium4-*) - basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - pn) - basic_machine=pn-gould - ;; - power) basic_machine=power-ibm - ;; - ppc) basic_machine=powerpc-unknown - ;; - ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - ppcle | powerpclittle | ppc-le | powerpc-little) - basic_machine=powerpcle-unknown - ;; - ppcle-* | powerpclittle-*) - basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - ppc64) basic_machine=powerpc64-unknown - ;; - ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - ppc64le | powerpc64little | ppc64-le | powerpc64-little) - basic_machine=powerpc64le-unknown - ;; - ppc64le-* | powerpc64little-*) - basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` - ;; - ps2) - basic_machine=i386-ibm - ;; - pw32) - basic_machine=i586-unknown - os=-pw32 - ;; - rom68k) - basic_machine=m68k-rom68k - os=-coff - ;; - rm[46]00) - basic_machine=mips-siemens - ;; - rtpc | rtpc-*) - basic_machine=romp-ibm - ;; - s390 | s390-*) - basic_machine=s390-ibm - ;; - s390x | s390x-*) - basic_machine=s390x-ibm - ;; - sa29200) - basic_machine=a29k-amd - os=-udi - ;; - sb1) - basic_machine=mipsisa64sb1-unknown - ;; - sb1el) - basic_machine=mipsisa64sb1el-unknown - ;; - sei) - basic_machine=mips-sei - os=-seiux - ;; - sequent) - basic_machine=i386-sequent - ;; - sh) - basic_machine=sh-hitachi - os=-hms - ;; - sh64) - basic_machine=sh64-unknown - ;; - sparclite-wrs | simso-wrs) - basic_machine=sparclite-wrs - os=-vxworks - ;; - sps7) - basic_machine=m68k-bull - os=-sysv2 - ;; - spur) - basic_machine=spur-unknown - ;; - st2000) - basic_machine=m68k-tandem - ;; - stratus) - basic_machine=i860-stratus - os=-sysv4 - ;; - sun2) - basic_machine=m68000-sun - ;; - sun2os3) - basic_machine=m68000-sun - os=-sunos3 - ;; - sun2os4) - basic_machine=m68000-sun - os=-sunos4 - ;; - sun3os3) - basic_machine=m68k-sun - os=-sunos3 - ;; - sun3os4) - basic_machine=m68k-sun - os=-sunos4 - ;; - sun4os3) - basic_machine=sparc-sun - os=-sunos3 - ;; - sun4os4) - basic_machine=sparc-sun - os=-sunos4 - ;; - sun4sol2) - basic_machine=sparc-sun - os=-solaris2 - ;; - sun3 | sun3-*) - basic_machine=m68k-sun - ;; - sun4) - basic_machine=sparc-sun - ;; - sun386 | sun386i | roadrunner) - basic_machine=i386-sun - ;; - sv1) - basic_machine=sv1-cray - os=-unicos - ;; - symmetry) - basic_machine=i386-sequent - os=-dynix - ;; - t3e) - basic_machine=alphaev5-cray - os=-unicos - ;; - t90) - basic_machine=t90-cray - os=-unicos - ;; - tic54x | c54x*) - basic_machine=tic54x-unknown - os=-coff - ;; - tic55x | c55x*) - basic_machine=tic55x-unknown - os=-coff - ;; - tic6x | c6x*) - basic_machine=tic6x-unknown - os=-coff - ;; - tx39) - basic_machine=mipstx39-unknown - ;; - tx39el) - basic_machine=mipstx39el-unknown - ;; - toad1) - basic_machine=pdp10-xkl - os=-tops20 - ;; - tower | tower-32) - basic_machine=m68k-ncr - ;; - tpf) - basic_machine=s390x-ibm - os=-tpf - ;; - udi29k) - basic_machine=a29k-amd - os=-udi - ;; - ultra3) - basic_machine=a29k-nyu - os=-sym1 - ;; - v810 | necv810) - basic_machine=v810-nec - os=-none - ;; - vaxv) - basic_machine=vax-dec - os=-sysv - ;; - vms) - basic_machine=vax-dec - os=-vms - ;; - vpp*|vx|vx-*) - basic_machine=f301-fujitsu - ;; - vxworks960) - basic_machine=i960-wrs - os=-vxworks - ;; - vxworks68) - basic_machine=m68k-wrs - os=-vxworks - ;; - vxworks29k) - basic_machine=a29k-wrs - os=-vxworks - ;; - w65*) - basic_machine=w65-wdc - os=-none - ;; - w89k-*) - basic_machine=hppa1.1-winbond - os=-proelf - ;; - xbox) - basic_machine=i686-pc - os=-mingw32 - ;; - xps | xps100) - basic_machine=xps100-honeywell - ;; - ymp) - basic_machine=ymp-cray - os=-unicos - ;; - z8k-*-coff) - basic_machine=z8k-unknown - os=-sim - ;; - none) - basic_machine=none-none - os=-none - ;; - -# Here we handle the default manufacturer of certain CPU types. It is in -# some cases the only manufacturer, in others, it is the most popular. - w89k) - basic_machine=hppa1.1-winbond - ;; - op50n) - basic_machine=hppa1.1-oki - ;; - op60c) - basic_machine=hppa1.1-oki - ;; - romp) - basic_machine=romp-ibm - ;; - mmix) - basic_machine=mmix-knuth - ;; - rs6000) - basic_machine=rs6000-ibm - ;; - vax) - basic_machine=vax-dec - ;; - pdp10) - # there are many clones, so DEC is not a safe bet - basic_machine=pdp10-unknown - ;; - pdp11) - basic_machine=pdp11-dec - ;; - we32k) - basic_machine=we32k-att - ;; - sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele) - basic_machine=sh-unknown - ;; - sparc | sparcv8 | sparcv9 | sparcv9b) - basic_machine=sparc-sun - ;; - cydra) - basic_machine=cydra-cydrome - ;; - orion) - basic_machine=orion-highlevel - ;; - orion105) - basic_machine=clipper-highlevel - ;; - mac | mpw | mac-mpw) - basic_machine=m68k-apple - ;; - pmac | pmac-mpw) - basic_machine=powerpc-apple - ;; - *-unknown) - # Make sure to match an already-canonicalized machine name. - ;; - *) - echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 - exit 1 - ;; -esac - -# Here we canonicalize certain aliases for manufacturers. -case $basic_machine in - *-digital*) - basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` - ;; - *-commodore*) - basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` - ;; - *) - ;; -esac - -# Decode manufacturer-specific aliases for certain operating systems. - -if [ x"$os" != x"" ] -then -case $os in - # First match some system type aliases - # that might get confused with valid system types. - # -solaris* is a basic system type, with this one exception. - -solaris1 | -solaris1.*) - os=`echo $os | sed -e 's|solaris1|sunos4|'` - ;; - -solaris) - os=-solaris2 - ;; - -svr4*) - os=-sysv4 - ;; - -unixware*) - os=-sysv4.2uw - ;; - -gnu/linux*) - os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` - ;; - # First accept the basic system types. - # The portable systems comes first. - # Each alternative MUST END IN A *, to match a version number. - # -sysv* is not here because it comes later, after sysvr4. -#### MozillaHack -# msvc -#### End MozillaHack - -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ - | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ - | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ - | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ - | -aos* \ - | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ - | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ - | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \ - | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ - | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ - | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ - | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ - | -chorusos* | -chorusrdb* \ - | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ - | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \ - | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ - | -msvc* \ - | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ - | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ - | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ - | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ - | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ - | -skyos* | -haiku*) - # Remember, each alternative MUST END IN *, to match a version number. - ;; - -qnx*) - case $basic_machine in - x86-* | i*86-*) - ;; - *) - os=-nto$os - ;; - esac - ;; - -nto-qnx*) - ;; - -nto*) - os=`echo $os | sed -e 's|nto|nto-qnx|'` - ;; - -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ - | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ - | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) - ;; - -mac*) - os=`echo $os | sed -e 's|mac|macos|'` - ;; - -linux-dietlibc) - os=-linux-dietlibc - ;; - -linux*) - os=`echo $os | sed -e 's|linux|linux-gnu|'` - ;; - -sunos5*) - os=`echo $os | sed -e 's|sunos5|solaris2|'` - ;; - -sunos6*) - os=`echo $os | sed -e 's|sunos6|solaris3|'` - ;; - -opened*) - os=-openedition - ;; - -os400*) - os=-os400 - ;; - -osfrose*) - os=-osfrose - ;; - -osf*) - os=-osf - ;; - -utek*) - os=-bsd - ;; - -dynix*) - os=-bsd - ;; - -acis*) - os=-aos - ;; - -atheos*) - os=-atheos - ;; - -syllable*) - os=-syllable - ;; - -386bsd) - os=-bsd - ;; - -ctix* | -uts*) - os=-sysv - ;; - -nova*) - os=-rtmk-nova - ;; - -ns2 ) - os=-nextstep2 - ;; - -nsk*) - os=-nsk - ;; - # Preserve the version number of sinix5. - -sinix5.*) - os=`echo $os | sed -e 's|sinix|sysv|'` - ;; - -sinix*) - os=-sysv4 - ;; - -tpf*) - os=-tpf - ;; - -triton*) - os=-sysv3 - ;; - -oss*) - os=-sysv3 - ;; - -svr4) - os=-sysv4 - ;; - -svr3) - os=-sysv3 - ;; - -sysvr4) - os=-sysv4 - ;; - # This must come after -sysvr4. - -sysv*) - ;; - -ose*) - os=-ose - ;; - -es1800*) - os=-ose - ;; - -xenix) - os=-xenix - ;; - -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) - os=-mint - ;; - -aros*) - os=-aros - ;; - -kaos*) - os=-kaos - ;; - -zvmoe) - os=-zvmoe - ;; - -none) - ;; - *) - # Get rid of the `-' at the beginning of $os. - os=`echo $os | sed 's/[^-]*-//'` - echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 - exit 1 - ;; -esac -else - -# Here we handle the default operating systems that come with various machines. -# The value should be what the vendor currently ships out the door with their -# machine or put another way, the most popular os provided with the machine. - -# Note that if you're going to try to match "-MANUFACTURER" here (say, -# "-sun"), then you have to tell the case statement up towards the top -# that MANUFACTURER isn't an operating system. Otherwise, code above -# will signal an error saying that MANUFACTURER isn't an operating -# system, and we'll never get to this point. - -case $basic_machine in - *-acorn) - os=-riscix1.2 - ;; - arm*-rebel) - os=-linux - ;; - arm*-semi) - os=-aout - ;; - c4x-* | tic4x-*) - os=-coff - ;; - # This must come before the *-dec entry. - pdp10-*) - os=-tops20 - ;; - pdp11-*) - os=-none - ;; - *-dec | vax-*) - os=-ultrix4.2 - ;; - m68*-apollo) - os=-domain - ;; - i386-sun) - os=-sunos4.0.2 - ;; - m68000-sun) - os=-sunos3 - # This also exists in the configure program, but was not the - # default. - # os=-sunos4 - ;; - m68*-cisco) - os=-aout - ;; - mips*-cisco) - os=-elf - ;; - mips*-*) - os=-elf - ;; - or32-*) - os=-coff - ;; - *-tti) # must be before sparc entry or we get the wrong os. - os=-sysv3 - ;; - sparc-* | *-sun) - os=-sunos4.1.1 - ;; - *-be) - os=-beos - ;; - *-haiku) - os=-haiku - ;; - *-ibm) - os=-aix - ;; - *-knuth) - os=-mmixware - ;; - *-wec) - os=-proelf - ;; - *-winbond) - os=-proelf - ;; - *-oki) - os=-proelf - ;; - *-hp) - os=-hpux - ;; - *-hitachi) - os=-hiux - ;; - i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) - os=-sysv - ;; - *-cbm) - os=-amigaos - ;; - *-dg) - os=-dgux - ;; - *-dolphin) - os=-sysv3 - ;; - m68k-ccur) - os=-rtu - ;; - m88k-omron*) - os=-luna - ;; - *-next ) - os=-nextstep - ;; - *-sequent) - os=-ptx - ;; - *-crds) - os=-unos - ;; - *-ns) - os=-genix - ;; - i370-*) - os=-mvs - ;; - *-next) - os=-nextstep3 - ;; - *-gould) - os=-sysv - ;; - *-highlevel) - os=-bsd - ;; - *-encore) - os=-bsd - ;; - *-sgi) - os=-irix - ;; - *-siemens) - os=-sysv4 - ;; - *-masscomp) - os=-rtu - ;; - f30[01]-fujitsu | f700-fujitsu) - os=-uxpv - ;; - *-rom68k) - os=-coff - ;; - *-*bug) - os=-coff - ;; - *-apple) - os=-macos - ;; - *-atari*) - os=-mint - ;; - *) - os=-none - ;; -esac -fi - -# Here we handle the case where we know the os, and the CPU type, but not the -# manufacturer. We pick the logical manufacturer. -vendor=unknown -case $basic_machine in - *-unknown) - case $os in - -riscix*) - vendor=acorn - ;; - -sunos*) - vendor=sun - ;; - -aix*) - vendor=ibm - ;; - -beos*) - vendor=be - ;; - -hpux*) - vendor=hp - ;; - -mpeix*) - vendor=hp - ;; - -hiux*) - vendor=hitachi - ;; - -unos*) - vendor=crds - ;; - -dgux*) - vendor=dg - ;; - -luna*) - vendor=omron - ;; - -genix*) - vendor=ns - ;; - -mvs* | -opened*) - vendor=ibm - ;; - -os400*) - vendor=ibm - ;; - -ptx*) - vendor=sequent - ;; - -tpf*) - vendor=ibm - ;; - -vxsim* | -vxworks* | -windiss*) - vendor=wrs - ;; - -aux*) - vendor=apple - ;; - -hms*) - vendor=hitachi - ;; - -mpw* | -macos*) - vendor=apple - ;; - -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) - vendor=atari - ;; - -vos*) - vendor=stratus - ;; - esac - basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` - ;; -esac - -echo $basic_machine$os -exit - -# Local variables: -# eval: (add-hook 'write-file-hooks 'time-stamp) -# time-stamp-start: "timestamp='" -# time-stamp-format: "%:y-%02m-%02d" -# time-stamp-end: "'" -# End: diff --git a/c-sdk/config/autoconf/install-sh b/c-sdk/config/autoconf/install-sh deleted file mode 100644 index 0ff4b6a..0000000 --- a/c-sdk/config/autoconf/install-sh +++ /dev/null @@ -1,119 +0,0 @@ -#!/bin/sh - -# -# install - install a program, script, or datafile -# This comes from X11R5; it is not part of GNU. -# -# $XConsortium: install.sh,v 1.2 89/12/18 14:47:22 jim Exp $ -# -# This script is compatible with the BSD install script, but was written -# from scratch. -# - - -# set DOITPROG to echo to test this script - -# Don't use :- since 4.3BSD and earlier shells don't like it. -doit="${DOITPROG-}" - - -# put in absolute paths if you don't have them in your path; or use env. vars. - -mvprog="${MVPROG-mv}" -cpprog="${CPPROG-cp}" -chmodprog="${CHMODPROG-chmod}" -chownprog="${CHOWNPROG-chown}" -chgrpprog="${CHGRPPROG-chgrp}" -stripprog="${STRIPPROG-strip}" -rmprog="${RMPROG-rm}" - -instcmd="$mvprog" -chmodcmd="" -chowncmd="" -chgrpcmd="" -stripcmd="" -rmcmd="$rmprog -f" -mvcmd="$mvprog" -src="" -dst="" - -while [ x"$1" != x ]; do - case $1 in - -c) instcmd="$cpprog" - shift - continue;; - - -m) chmodcmd="$chmodprog $2" - shift - shift - continue;; - - -o) chowncmd="$chownprog $2" - shift - shift - continue;; - - -g) chgrpcmd="$chgrpprog $2" - shift - shift - continue;; - - -s) stripcmd="$stripprog" - shift - continue;; - - *) if [ x"$src" = x ] - then - src=$1 - else - dst=$1 - fi - shift - continue;; - esac -done - -if [ x"$src" = x ] -then - echo "install: no input file specified" - exit 1 -fi - -if [ x"$dst" = x ] -then - echo "install: no destination specified" - exit 1 -fi - - -# If destination is a directory, append the input filename; if your system -# does not like double slashes in filenames, you may need to add some logic - -if [ -d $dst ] -then - dst="$dst"/`basename $src` -fi - -# Make a temp file name in the proper directory. - -dstdir=`dirname $dst` -dsttmp=$dstdir/#inst.$$# - -# Move or copy the file name to the temp name - -$doit $instcmd $src $dsttmp - -# and set any options; do chmod last to preserve setuid bits - -if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; fi -if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; fi -if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; fi -if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; fi - -# Now rename the file to the real destination. - -$doit $rmcmd $dst -$doit $mvcmd $dsttmp $dst - - -exit 0 diff --git a/c-sdk/config/autoconf/nspr.m4 b/c-sdk/config/autoconf/nspr.m4 deleted file mode 100644 index d98f1c1..0000000 --- a/c-sdk/config/autoconf/nspr.m4 +++ /dev/null @@ -1,180 +0,0 @@ -# -*- tab-width: 4; -*- -# Configure paths for NSPR -# Public domain - Chris Seawood 2001-04-05 -# Based upon gtk.m4 (also PD) by Owen Taylor - -dnl AM_PATH_NSPR([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]]) -dnl Test for system NSPR, and define NSPR_CFLAGS and NSPR_LIBS -AC_DEFUN([AM_PATH_NSPR], -[dnl - -AC_ARG_WITH(nspr-prefix, - [ --with-nspr-prefix=PFX Prefix where NSPR is installed], - nspr_config_prefix="$withval", - nspr_config_prefix="") - -AC_ARG_WITH(nspr-exec-prefix, - [ --with-nspr-exec-prefix=PFX - Exec prefix where NSPR is installed], - nspr_config_exec_prefix="$withval", - nspr_config_exec_prefix="") - - if test -n "$nspr_config_exec_prefix"; then - nspr_config_args="$nspr_config_args --exec-prefix=$nspr_config_exec_prefix" - if test -z "$NSPR_CONFIG"; then - NSPR_CONFIG=$nspr_config_exec_prefix/bin/nspr-config - fi - fi - if test -n "$nspr_config_prefix"; then - nspr_config_args="$nspr_config_args --prefix=$nspr_config_prefix" - if test -z "$NSPR_CONFIG"; then - NSPR_CONFIG=$nspr_config_prefix/bin/nspr-config - fi - fi - - if test -z "$NSPR_CONFIG" ; then - unset ac_cv_path_NSPR_CONFIG - AC_PATH_PROG(NSPR_CONFIG, nspr-config, no) - min_nspr_version=ifelse([$1], ,4.0.0,$1) - AC_MSG_CHECKING(for NSPR - version >= $min_nspr_version (skipping)) - fi - - no_nspr="" - if test "$NSPR_CONFIG" = "no"; then - AC_MSG_CHECKING(nspr-config not found, trying pkg-config) - AC_PATH_PROG(PKG_CONFIG, pkg-config) - if test -n "$PKG_CONFIG"; then - if $PKG_CONFIG --exists nspr; then - AC_MSG_CHECKING(using NSPR from package nspr) - NSPR_CFLAGS=`$PKG_CONFIG --cflags-only-I nspr` - NSPR_LIBS=`$PKG_CONFIG --libs-only-L nspr` - elif $PKG_CONFIG --exists mozilla-nspr; then - AC_MSG_CHECKING(using NSPR from package mozilla-nspr) - NSPR_CFLAGS=`$PKG_CONFIG --cflags-only-I mozilla-nspr` - NSPR_LIBS=`$PKG_CONFIG --libs-only-L mozilla-nspr` - else - AC_MSG_CHECKING([system NSPR not found]) - no_nspr="yes" - fi - else - no_nspr="yes" - fi - else - AC_MSG_CHECKING(using NSPR from $NSPR_CONFIG) - NSPR_CFLAGS=`$NSPR_CONFIG $nspr_config_args --cflags` - NSPR_LIBS=`$NSPR_CONFIG $nspr_config_args --libs` - - dnl Skip version check for now - nspr_config_major_version=`$NSPR_CONFIG $nspr_config_args --version | \ - sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` - nspr_config_minor_version=`$NSPR_CONFIG $nspr_config_args --version | \ - sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` - nspr_config_micro_version=`$NSPR_CONFIG $nspr_config_args --version | \ - sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` - fi - - if test -z "$no_nspr"; then - AC_MSG_RESULT(yes) - ifelse([$2], , :, [$2]) - else - AC_MSG_RESULT(no) - fi - - - AC_SUBST(NSPR_CFLAGS) - AC_SUBST(NSPR_LIBS) - -]) - -dnl AM_PATH_INTREE_NSPR([ROOTPATH, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]]) -dnl Test for in-tree NSPR, and define NSPR_CFLAGS and NSPR_LIBS -dnl First look for path/*.OBJ/include, then look for path/include -dnl Use the cut in case there is more than one path that matches *.OBJ - just -dnl take the first one -AC_DEFUN(AM_PATH_INTREE_NSPR, -[ - AC_MSG_CHECKING(checking for in-tree NSPR from $1) - for nsprpath in "$1" "$1"/*.OBJ ; do - savedir=`pwd` - cd $nsprpath - abs_nsprpath=`pwd` - cd $savedir - if test -f "$abs_nsprpath/include/nspr/nspr.h" ; then - NSPR_CFLAGS="-I$abs_nsprpath/include/nspr" - elif test -f "$abs_nsprpath/include/nspr.h" ; then - NSPR_CFLAGS="-I$abs_nsprpath/include" - fi - if test -d "$abs_nsprpath/lib" ; then - NSPR_LIBS="-L$abs_nsprpath/lib" - fi - if test -n "$NSPR_CFLAGS" -a -n "$NSPR_LIBS" ; then - break - fi - done - if test -n "$NSPR_CFLAGS" -a -n "$NSPR_LIBS" ; then - AC_SUBST(NSPR_CFLAGS) - AC_SUBST(NSPR_LIBS) - AC_MSG_RESULT(yes) - else - AC_MSG_RESULT(no) - fi -]) - -dnl AM_PATH_GIVEN_NSPR(no args) -dnl Test for --with-nspr=path, --with-nspr-inc=path, and --with-nspr-lib=path -dnl Makes sure the right files/dirs are in the given paths, and sets -dnl NSPR_CFLAGS and NSPR_LIBS if successful -AC_DEFUN(AM_PATH_GIVEN_NSPR, -[ - # check for --with-nspr - AC_MSG_CHECKING(for --with-nspr) - AC_ARG_WITH(nspr, [ --with-nspr=PATH Netscape Portable Runtime (NSPR) directory], - [ - if test "$withval" = "no" ; then - AC_MSG_RESULT(no) - no_nspr="yes" - elif test "$withval" = "yes" ; then - AC_MSG_RESULT(yes) - no_nspr="no" - elif test -f "$withval"/include/nspr.h -a -d "$withval"/lib - then - AC_MSG_RESULT([using $withval]) - NSPR_CFLAGS="-I$withval/include" - NSPR_LIBS="-L$withval/lib" - else - echo - AC_MSG_ERROR([$withval not found]) - fi - ], - AC_MSG_RESULT(no)) - - # check for --with-nspr-inc - AC_MSG_CHECKING(for --with-nspr-inc) - AC_ARG_WITH(nspr-inc, [ --with-nspr-inc=PATH Netscape Portable Runtime (NSPR) include file directory], - [ - if test -f "$withval"/nspr.h - then - AC_MSG_RESULT([using $withval]) - NSPR_CFLAGS="-I$withval" - else - echo - AC_MSG_ERROR([$withval not found]) - fi - ], - AC_MSG_RESULT(no)) - - # check for --with-nspr-lib - AC_MSG_CHECKING(for --with-nspr-lib) - AC_ARG_WITH(nspr-lib, [ --with-nspr-lib=PATH Netscape Portable Runtime (NSPR) library directory], - [ - if test -d "$withval" - then - AC_MSG_RESULT([using $withval]) - NSPR_LIBS="-L$withval" - else - echo - AC_MSG_ERROR([$withval not found]) - fi - ], - AC_MSG_RESULT(no)) -]) diff --git a/c-sdk/config/autoconf/nss.m4 b/c-sdk/config/autoconf/nss.m4 deleted file mode 100644 index 9943088..0000000 --- a/c-sdk/config/autoconf/nss.m4 +++ /dev/null @@ -1,179 +0,0 @@ -# -*- tab-width: 4; -*- -# Configure paths for NSS -# Public domain - Chris Seawood 2001-04-05 -# Based upon gtk.m4 (also PD) by Owen Taylor - -dnl AM_PATH_NSS([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]]) -dnl Test for system NSS, and define NSS_CFLAGS and NSS_LIBS -AC_DEFUN(AM_PATH_NSS, -[dnl - -AC_ARG_WITH(nss-prefix, - [ --with-nss-prefix=PFX Prefix where NSS is installed], - nss_config_prefix="$withval", - nss_config_prefix="") - -AC_ARG_WITH(nss-exec-prefix, - [ --with-nss-exec-prefix=PFX - Exec prefix where NSS is installed], - nss_config_exec_prefix="$withval", - nss_config_exec_prefix="") - - if test -n "$nss_config_exec_prefix"; then - nss_config_args="$nss_config_args --exec-prefix=$nss_config_exec_prefix" - if test -z "$NSS_CONFIG"; then - NSS_CONFIG=$nss_config_exec_prefix/bin/nss-config - fi - fi - if test -n "$nss_config_prefix"; then - nss_config_args="$nss_config_args --prefix=$nss_config_prefix" - if test -z "$NSS_CONFIG"; then - NSS_CONFIG=$nss_config_prefix/bin/nss-config - fi - fi - - if test -z "$NSS_CONFIG" ; then - unset ac_cv_path_NSS_CONFIG - AC_PATH_PROG(NSS_CONFIG, nss-config, no) - min_nss_version=ifelse([$1], ,4.0.0,$1) - AC_MSG_CHECKING(for NSS - version >= $min_nss_version (skipping)) - fi - - no_nss="" - if test "$NSS_CONFIG" = "no"; then - AC_MSG_CHECKING(nss-config not found, trying pkg-config) - AC_PATH_PROG(PKG_CONFIG, pkg-config) - if test -n "$PKG_CONFIG"; then - if $PKG_CONFIG --exists nss; then - AC_MSG_CHECKING(using NSS from package nss) - NSS_CFLAGS=`$PKG_CONFIG --cflags-only-I nss` - NSS_LIBS=`$PKG_CONFIG --libs-only-L nss` - elif $PKG_CONFIG --exists mozilla-nss; then - AC_MSG_CHECKING(using NSS from package mozilla-nss) - NSS_CFLAGS=`$PKG_CONFIG --cflags-only-I mozilla-nss` - NSS_LIBS=`$PKG_CONFIG --libs-only-L mozilla-nss` - else - AC_MSG_ERROR([system NSS not found]) - no_nss="yes" - fi - else - no_nss="yes" - fi - else - AC_MSG_CHECKING(using NSS from $NSS_CONFIG) - NSS_CFLAGS=`$NSS_CONFIG $nss_config_args --cflags` - NSS_LIBS=`$NSS_CONFIG $nss_config_args --libs` - - dnl Skip version check for now - nss_config_major_version=`$NSS_CONFIG $nss_config_args --version | \ - sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` - nss_config_minor_version=`$NSS_CONFIG $nss_config_args --version | \ - sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` - nss_config_micro_version=`$NSS_CONFIG $nss_config_args --version | \ - sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` - fi - - if test -z "$no_nss"; then - AC_MSG_RESULT(yes) - ifelse([$2], , :, [$2]) - else - AC_MSG_RESULT(no) - fi - - - AC_SUBST(NSS_CFLAGS) - AC_SUBST(NSS_LIBS) - -]) - -dnl AM_PATH_INTREE_NSS([ROOTPATH, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]]) -dnl Test for in-tree NSS, and define NSS_CFLAGS and NSS_LIBS -AC_DEFUN(AM_PATH_INTREE_NSS, -[ - nsslibpath=`echo $1/*.OBJ/lib | cut -f1 -d' '` - savedir=`pwd` - cd $nsslibpath - abs_nsslibpath=`pwd` - cd $savedir - nssincpath=$1/public/nss - savedir=`pwd` - cd $nssincpath - abs_nssincpath=`pwd` - cd $savedir - if test -f "$abs_nssincpath/nss.h" ; then - NSS_CFLAGS="-I$abs_nssincpath" - fi - if test -d "$abs_nsslibpath" ; then - NSS_LIBS="-L$abs_nsslibpath" - fi - if test -n "$NSS_CFLAGS" -a -n "$NSS_LIBS" ; then - AC_MSG_CHECKING(using in-tree NSS from $nssincpath $nsslibpath) - AC_SUBST(NSS_CFLAGS) - AC_SUBST(NSS_LIBS) - AC_MSG_RESULT(yes) - else - AC_MSG_CHECKING(could not find in-tree NSS in $1) - AC_MSG_RESULT(no) - fi -]) - -dnl AM_PATH_GIVEN_NSS(no args) -dnl Test for --with-nss=path, --with-nss-inc=path, and --with-nss-lib=path -dnl Makes sure the right files/dirs are in the given paths, and sets -dnl NSS_CFLAGS and NSS_LIBS if successful -AC_DEFUN(AM_PATH_GIVEN_NSS, -[ - dnl ======================================================== - dnl = Build libssldap, and use the NSS installed in dist for - dnl = the crypto. - dnl ======================================================== - dnl - AC_MSG_CHECKING(for --with-nss) - AC_ARG_WITH(nss, - [[ --with-nss[=PATH] Build libssldap, using NSS for crypto - optional PATH is path to NSS package]], - [ if test "$withval" = "yes"; then - USE_NSS=1 - AC_MSG_RESULT(yes) - elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then - USE_NSS=1 - AC_MSG_RESULT([using $withval]) - NSS_CFLAGS="-I$withval/include" - NSS_LIBS="-L$withval/lib" - else - AC_MSG_RESULT(no) - USE_NSS= - fi], - AC_MSG_RESULT(no)) - - # check for --with-nss-inc - AC_MSG_CHECKING(for --with-nss-inc) - AC_ARG_WITH(nss-inc, [ --with-nss-inc=PATH Netscape Portable Runtime (NSS) include file directory], - [ - if test -f "$withval"/nss.h - then - AC_MSG_RESULT([using $withval]) - NSS_CFLAGS="-I$withval" - USE_NSS=1 - else - echo - AC_MSG_ERROR([$withval not found]) - fi - ], - AC_MSG_RESULT(no)) - - # check for --with-nss-lib - AC_MSG_CHECKING(for --with-nss-lib) - AC_ARG_WITH(nss-lib, [ --with-nss-lib=PATH Netscape Portable Runtime (NSS) library directory], - [ - if test -d "$withval" - then - AC_MSG_RESULT([using $withval]) - NSS_LIBS="-L$withval" - USE_NSS=1 - else - echo - AC_MSG_ERROR([$withval not found]) - fi - ], - AC_MSG_RESULT(no)) -]) diff --git a/c-sdk/config/autoconf/sasl.m4 b/c-sdk/config/autoconf/sasl.m4 deleted file mode 100644 index afa018d..0000000 --- a/c-sdk/config/autoconf/sasl.m4 +++ /dev/null @@ -1,147 +0,0 @@ -# -*- tab-width: 4; -*- -# Configure paths for SASL -# Public domain - Nathan Kinder 2006-06-26 -# Based upon svrcore.m4 (also PD) by Rich Megginson - -AC_DEFUN(AM_PATH_GIVEN_SASL, -[ -dnl ======================================================== -dnl = sasl is used to support various authentication mechanisms -dnl = such as DIGEST-MD5 and GSSAPI. -dnl ======================================================== -dnl ======================================================== -dnl = Use the sasl libraries on the system (assuming it exists) -dnl ======================================================== -AC_MSG_CHECKING(for --with-sasl) -AC_ARG_WITH(sasl, - [[ --with-sasl[=PATH] Use system installed sasl - optional path for sasl]], - dnl = Look in the standard system locations - [ - if test "$withval" = "yes"; then - AC_MSG_RESULT(yes) - HAVE_SASL=1 - - dnl = Check for sasl.h in the normal locations - if test -f /usr/include/sasl/sasl.h; then - SASL_CFLAGS="-I/usr/include/sasl" - elif test -f /usr/include/sasl.h; then - SASL_CFLAGS="-I/usr/include" - else - AC_MSG_ERROR(sasl.h not found) - fi - - dnl = Check the user provided location - elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then - AC_MSG_RESULT([using $withval]) - HAVE_SASL=1 - - if test -f "$withval/include/sasl/sasl.h"; then - SASL_CFLAGS="-I$withval/include/sasl" - elif test -f "$withval/include/sasl.h"; then - SASL_CFLAGS="-I$withval/include" - else - AC_MSG_ERROR(sasl.h not found) - fi - - SASL_LIBS="-L$withval/lib" - else - AC_MSG_RESULT(yes) - AC_MSG_ERROR([sasl not found in $withval]) - fi - ], - AC_MSG_RESULT(no)) - -AC_MSG_CHECKING(for --with-sasl-inc) -AC_ARG_WITH(sasl-inc, - [[ --with-sasl-inc=PATH SASL include file directory]], - [ - if test -f "$withval"/sasl.h; then - AC_MSG_RESULT([using $withval]) - HAVE_SASL=1 - SASL_CFLAGS="-I$withval" - else - echo - AC_MSG_ERROR([$withval/sasl.h not found]) - fi - ], - AC_MSG_RESULT(no)) - -AC_MSG_CHECKING(for --with-sasl-lib) -AC_ARG_WITH(sasl-lib, - [[ --with-sasl-lib=PATH SASL library directory]], - [ - if test -d "$withval"; then - AC_MSG_RESULT([using $withval]) - HAVE_SASL=1 - SASL_LIBS="-L$withval" - else - echo - AC_MSG_ERROR([$withval not found]) - fi - ], - AC_MSG_RESULT(no)) - -# check for sasl -if test -n "$_WIN32_MSVC" -a -n "$USE_WINDOWS_PATHS" ; then - if test -n "$SASL_CFLAGS" -a -z "$SKIP_CYGWIN_FIXUP" ; then - path=`echo $SASL_CFLAGS | sed -e 's/^-I//'` - path=`cygpath -m $path` - SASL_CFLAGS="/I$path" - fi - if test -n "$SASL_LIBS" -a -z "$SKIP_CYGWIN_FIXUP" ; then - path=`echo $SASL_LIBS | sed -e 's/^-L//'` - path=`cygpath -m $path` - SASL_LIBS="/LIBPATH:$path" - fi - special_sasl_check_lib=1 -fi -# set ldflags to point to where the user told us to find the sasl libs, -# if any - otherwise it will just use the default location (e.g. /usr/lib) -# the way AC_CHECK_LIB works is it actually attempts to compile and link -# a test program - that's why we need to set LDFLAGS -SAVE_LDFLAGS=$LDFLAGS -if test -n "$SASL_LIBS" ; then - LDFLAGS="$LDFLAGS $SASL_LIBS" -fi - -AC_CHECK_FUNC(getaddrinfo,,[ - AC_CHECK_LIB(socket, getaddrinfo, [LIBS="-lsocket -lnsl $LIBS"])]) - -if test -n "$special_sasl_check_lib" ; then - # use this to override the ac_link LIBS used by AC_CHECK_LIB - # ac_link puts conftest.c betwen $LDFLAGS and $LIBS, but we - # have to use /LIBPATH which must come after the /link directive - # however, anything after /link on the command line is assumed to - # be a linker directive, and conftest.c is not valid there - # we want to end up with cl.exe .... conftest.c /link /LIBPATH:foo libsasl.lib - LDFLAGS= - SAVE_LIBS="$LIBS" - LIBS="/link $SASL_LIBS sasl32.lib" - AC_CHECK_LIB([sasl32], [sasl_client_init], [sasl_lib=sasl32.lib]) - if test -z "$sasl_lib" ; then - LIBS="/link $SASL_LIBS libsasl2.lib" - AC_CHECK_LIB([sasl2], [sasl_client_init], [sasl_lib=libsasl2.lib]) - fi - if test -z "$sasl_lib" ; then - LIBS="/link $SASL_LIBS libsasl.lib" - AC_CHECK_LIB([sasl], [sasl_client_init], [sasl_lib=libsasl.lib]) - fi - LIBS="$SAVE_LIBS" -else - AC_CHECK_LIB([sasl2], [sasl_client_init], [sasl_lib=-lsasl2], - AC_CHECK_LIB([sasl], [sasl_client_init], [sasl_lib=-lsasl])) -fi - -SASL_LIBS="$SASL_LIBS $sasl_lib" -LDFLAGS=$SAVE_LDFLAGS - -AC_SUBST(SASL_LIBS) -AC_SUBST(SASL_CFLAGS) -AC_SUBST(HAVE_SASL) - -if test -n "$HAVE_SASL"; then - AC_DEFINE(HAVE_SASL) - AC_DEFINE(HAVE_SASL_OPTIONS) - AC_DEFINE(LDAP_SASLIO_HOOKS) -fi -]) diff --git a/c-sdk/config/autoconf/svrcore.m4 b/c-sdk/config/autoconf/svrcore.m4 deleted file mode 100644 index 00150d2..0000000 --- a/c-sdk/config/autoconf/svrcore.m4 +++ /dev/null @@ -1,128 +0,0 @@ -# -*- tab-width: 4; -*- -# Configure paths for SVRCORE -# Public domain - Rich Megginson 2005-12-21 -# Based upon nspr.m4 (also PD) by Chris Seawood - -dnl AM_PATH_INTREE_SVRCORE([ROOTPATH, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]]) -dnl Test for in-tree SVRCORE, and define SVRCORE_CFLAGS and SVRCORE_LIBS -AC_DEFUN(AM_PATH_INTREE_SVRCORE, -[ - if test -n "$HAVE_SVRCORE" ; then - svrcorelibpath=`echo $1/*.OBJ/lib | cut -f1 -d' '` - savedir=`pwd` - cd $svrcorelibpath - abs_svrcorelibpath=`pwd` - cd $savedir - svrcoreincpath=$1/public/svrcore - savedir=`pwd` - cd $svrcoreincpath - abs_svrcoreincpath=`pwd` - cd $savedir - if test -f "$abs_svrcoreincpath/svrcore.h" ; then - SVRCORE_CFLAGS="-I$abs_svrcoreincpath" - fi - if test -d "$abs_svrcorelibpath" ; then - SVRCORE_LIBS="-L$abs_svrcorelibpath" - fi - if test -n "$SVRCORE_CFLAGS" -a -n "$SVRCORE_LIBS" ; then - AC_MSG_CHECKING(using in-tree SVRCORE from $svrcoreincpath $svrcorelibpath) - AC_SUBST(SVRCORE_CFLAGS) - AC_SUBST(SVRCORE_LIBS) - AC_MSG_RESULT(yes) - elif test -n "$HAVE_SVRCORE" ; then - AC_MSG_CHECKING(could not find in-tree SVRCORE in $1) - AC_MSG_RESULT(no) - else - # If user didn't ask for it, don't complain (really!) - AC_MSG_RESULT(no) - fi - fi -]) - -dnl AM_PATH_GIVEN_SVRCORE(no args) -dnl Test for --with-svrcore=path, --with-svrcore-inc=path, and --with-svrcore-lib=path -dnl Makes sure the right files/dirs are in the given paths, and sets -dnl SVRCORE_CFLAGS and SVRCORE_LIBS if successful -AC_DEFUN(AM_PATH_GIVEN_SVRCORE, -[ - AC_MSG_CHECKING(for --with-svrcore) - AC_ARG_WITH(svrcore, - [[ --with-svrcore[=PATH] Use svrcore - optional PATH is path to svrcore lib and include dirs]], - [ if test "$withval" = "yes"; then - HAVE_SVRCORE=1 - AC_MSG_RESULT(yes) - elif test -n "$withval" -a -d "$withval" -a -d "$withval/lib" -a -f "$withval/include/svrcore.h" ; then - HAVE_SVRCORE=1 - AC_MSG_RESULT([using $withval]) - SVRCORE_CFLAGS="-I$withval/include" - SVRCORE_LIBS="-L$withval/lib" - fi], HAVE_SVRCORE=) - - # check for --with-svrcore-inc - AC_ARG_WITH(svrcore-inc, [ --with-svrcore-inc=PATH svrcore include file directory], - [ - if test -n "$withval" -a -f "$withval"/svrcore.h - then - AC_MSG_RESULT([using $withval]) - SVRCORE_CFLAGS="-I$withval" - else - echo - AC_MSG_ERROR([$withval not found]) - fi - ], - ) - - # check for --with-svrcore-lib - AC_ARG_WITH(svrcore-lib, [ --with-svrcore-lib=PATH svrcore library directory], - [ - if test -n "$withval" -a -d "$withval" - then - AC_MSG_RESULT([using $withval]) - SVRCORE_LIBS="-L$withval" - else - echo - AC_MSG_ERROR([$withval not found]) - fi - ], - ) - - if test -z "$SVRCORE_CFLAGS" -o -z "$SVRCORE_LIBS" ; then - AC_MSG_RESULT(no) - else - HAVE_SVRCORE=1 - fi -]) - -dnl AM_PATH_SVRCORE([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]]) -dnl Test for system SVRCORE, and define SVRCORE_CFLAGS and SVRCORE_LIBS -AC_DEFUN(AM_PATH_SVRCORE, -[dnl - - if test -n "$HAVE_SVRCORE" ; then - no_svrcore="" - AC_MSG_CHECKING(Trying pkg-config svrcore) - AC_PATH_PROG(PKG_CONFIG, pkg-config) - if test -n "$PKG_CONFIG"; then - if $PKG_CONFIG --exists svrcore-devel; then - AC_MSG_CHECKING(using SVRCORE from package svrcore) - SVRCORE_CFLAGS=`$PKG_CONFIG --cflags-only-I svrcore-devel` - SVRCORE_LIBS=`$PKG_CONFIG --libs-only-L svrcore-devel` - else - no_svrcore="yes" - fi - else - no_svrcore="yes" - fi - - if test -z "$no_svrcore"; then - AC_MSG_RESULT(yes) - ifelse([$2], , :, [$2]) - else - AC_MSG_RESULT(no) - fi - - - AC_SUBST(SVRCORE_CFLAGS) - AC_SUBST(SVRCORE_LIBS) - fi -]) diff --git a/c-sdk/config/config.mk b/c-sdk/config/config.mk deleted file mode 100644 index 861c7af..0000000 --- a/c-sdk/config/config.mk +++ /dev/null @@ -1,226 +0,0 @@ -#! gmake -# -# ***** BEGIN LICENSE BLOCK ***** -# Version: MPL 1.1/GPL 2.0/LGPL 2.1 -# -# The contents of this file are subject to the Mozilla Public License Version -# 1.1 (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS IS" basis, -# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -# for the specific language governing rights and limitations under the -# License. -# -# The Original Code is the Netscape Portable Runtime (NSPR). -# -# The Initial Developer of the Original Code is -# Netscape Communications Corporation. -# Portions created by the Initial Developer are Copyright (C) 1998-2000 -# the Initial Developer. All Rights Reserved. -# -# Contributor(s): -# -# Alternatively, the contents of this file may be used under the terms of -# either of the GNU General Public License Version 2 or later (the "GPL"), -# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -# in which case the provisions of the GPL or the LGPL are applicable instead -# of those above. If you wish to allow use of your version of this file only -# under the terms of either the GPL or the LGPL, and not to allow others to -# use your version of this file under the terms of the MPL, indicate your -# decision by deleting the provisions above and replace them with the notice -# and other provisions required by the GPL or the LGPL. If you do not delete -# the provisions above, a recipient may use your version of this file under -# the terms of any one of the MPL, the GPL or the LGPL. -# -# ***** END LICENSE BLOCK ***** - -# Configuration information for building in the NSPR source module - -# Define an include-at-most-once-flag -NSPR_CONFIG_MK = 1 - -# -# The variable definitions in this file are inputs to NSPR's -# build system. This file, if present, is included at the -# beginning of config.mk. -# -# For example: -# -# BUILD_OPT=1 -# USE_PTHREADS=1 -# NS_USE_GCC= -# -ifndef topsrcdir -topsrcdir=$(MOD_DEPTH) -endif - -ifndef srcdir -srcdir=. -endif - -ifdef USE_AUTOCONF - -NFSPWD = $(MOD_DEPTH)/config/nfspwd - -CFLAGS = $(CC_ONLY_FLAGS) $(OPTIMIZER) $(OS_CFLAGS)\ - $(XP_DEFINE) $(DEFINES) $(INCLUDES) $(XCFLAGS) -CCCFLAGS = $(CCC_ONLY_FLAGS) $(OPTIMIZER) $(OS_CFLAGS)\ - $(XP_DEFINE) $(DEFINES) $(INCLUDES) $(XCFLAGS) -# For purify -NOMD_CFLAGS = $(CC_ONLY_FLAGS) $(OPTIMIZER) $(NOMD_OS_CFLAGS)\ - $(XP_DEFINE) $(DEFINES) $(INCLUDES) $(XCFLAGS) -NOMD_CCFLAGS = $(CCC_ONLY_FLAGS) $(OPTIMIZER) $(NOMD_OS_CFLAGS)\ - $(XP_DEFINE) $(DEFINES) $(INCLUDES) $(XCFLAGS) - -ifeq ($(OS_ARCH),Darwin) -ifndef NSDISTMODE -NSDISTMODE=absolute_symlink -endif -PWD := $(shell pwd) -endif - -ifeq ($(NSDISTMODE),copy) -# copy files, but preserve source mtime -INSTALL = $(NSINSTALL) -t -else -ifeq ($(NSDISTMODE),absolute_symlink) -# install using absolute symbolic links -ifeq ($(OS_ARCH),Darwin) -INSTALL = $(NSINSTALL) -L $(PWD) -else -INSTALL = $(NSINSTALL) -L `$(NFSPWD)` -endif -else -# install using relative symbolic links -INSTALL = $(NSINSTALL) -R -endif -endif - -ifdef BUILD_DEBUG_GC -DEFINES += -DDEBUG_GC -endif - -GARBAGE += $(DEPENDENCIES) core $(wildcard core.[0-9]*) - -DEFINES += -DFORCE_PR_LOG - -ifeq ($(_PR_NO_CLOCK_TIMER),1) -DEFINES += -D_PR_NO_CLOCK_TIMER -endif - -ifeq ($(USE_PTHREADS), 1) -DEFINES += -D_PR_PTHREADS -UHAVE_CVAR_BUILT_ON_SEM -endif - -ifeq ($(PTHREADS_USER), 1) -DEFINES += -DPTHREADS_USER -UHAVE_CVAR_BUILT_ON_SEM -endif - -ifeq ($(USE_IPV6),1) -DEFINES += -D_PR_INET6 -endif - -else # ! USE_AUTOCONF - -ifndef NSPR_MY_CONFIG_MK -NSPR_MY_CONFIG_MK = $(MOD_DEPTH)/config/my_config.mk -endif - -# -# The variable definitions in this file are used to -# override variable values set by NSPR's build system. -# This file, if present, is included at the end of config.mk. -# -# For example: -# -# DIST=/usr/local/nspr -# -ifndef NSPR_MY_OVERRIDES_MK -NSPR_MY_OVERRIDES_MK = $(MOD_DEPTH)/config/my_overrides.mk -endif - --include $(NSPR_MY_CONFIG_MK) - -include $(MOD_DEPTH)/config/module.df - -include $(MOD_DEPTH)/config/arch.mk - -ifndef NSDEPTH -NSDEPTH = $(MOD_DEPTH)/.. -endif - -# -# Default command macros; can be overridden in .mk. -# -# XXX FIXME: I removed CCF and LINKEXE. -AS = $(CC) -ASFLAGS = $(CFLAGS) -PURIFY = purify $(PURIFYOPTIONS) -LINK_DLL = $(LINK) $(OS_DLLFLAGS) $(DLLFLAGS) -NFSPWD = $(MOD_DEPTH)/config/nfspwd - -CFLAGS = $(CC_ONLY_FLAGS) $(OPTIMIZER) $(OS_CFLAGS)\ - $(XP_DEFINE) $(DEFINES) $(INCLUDES) $(XCFLAGS) -CCCFLAGS = $(CCC_ONLY_FLAGS) $(OPTIMIZER) $(OS_CFLAGS)\ - $(XP_DEFINE) $(DEFINES) $(INCLUDES) $(XCFLAGS) -# For purify -NOMD_CFLAGS = $(CC_ONLY_FLAGS) $(OPTIMIZER) $(NOMD_OS_CFLAGS)\ - $(XP_DEFINE) $(DEFINES) $(INCLUDES) $(XCFLAGS) - -include $(MOD_DEPTH)/config/$(OS_TARGET).mk - -# Figure out where the binary code lives. -BUILD = $(OBJDIR_NAME) -OBJDIR = $(OBJDIR_NAME) -DIST = $(NSDEPTH)/dist/$(OBJDIR_NAME) - -VPATH = $(OBJDIR) -DEPENDENCIES = $(OBJDIR)/.md - -ifdef BUILD_DEBUG_GC -DEFINES += -DDEBUG_GC -endif - -GARBAGE += $(DEPENDENCIES) core $(wildcard core.[0-9]*) - -#################################################################### -# -# The NSPR-specific configuration -# -#################################################################### - -OS_CFLAGS += -DFORCE_PR_LOG - -ifeq ($(_PR_NO_CLOCK_TIMER),1) -OS_CFLAGS += -D_PR_NO_CLOCK_TIMER -endif - -ifeq ($(USE_PTHREADS), 1) -OS_CFLAGS += -D_PR_PTHREADS -UHAVE_CVAR_BUILT_ON_SEM -endif - -ifeq ($(PTHREADS_USER), 1) -OS_CFLAGS += -DPTHREADS_USER -UHAVE_CVAR_BUILT_ON_SEM -endif - -ifeq ($(USE_IPV6),1) -OS_CFLAGS += -D_PR_INET6 -endif - -#################################################################### -# -# Configuration for the release process -# -#################################################################### - -RELEASE_DIR = $(NSDEPTH)/dist/release/$(MOD_NAME) - -RELEASE_INCLUDE_DIR = $(RELEASE_DIR)/$(BUILD_NUMBER)/$(OBJDIR_NAME)/include -RELEASE_BIN_DIR = $(RELEASE_DIR)/$(BUILD_NUMBER)/$(OBJDIR_NAME)/bin -RELEASE_LIB_DIR = $(RELEASE_DIR)/$(BUILD_NUMBER)/$(OBJDIR_NAME)/lib - --include $(NSPR_MY_OVERRIDES_MK) - -endif # USE_AUTOCONF diff --git a/c-sdk/config/cygwin-wrapper b/c-sdk/config/cygwin-wrapper deleted file mode 100755 index 36a7743..0000000 --- a/c-sdk/config/cygwin-wrapper +++ /dev/null @@ -1,85 +0,0 @@ -#!/bin/sh -# -# Stupid wrapper to avoid win32 dospath/cygdrive issues -# Try not to spawn programs from within this file. If the stuff in here looks royally -# confusing, see bug: http://bugzilla.mozilla.org/show_bug.cgi?id=206643 -# and look at the older versions of this file that are easier to read, but -# do basically the same thing -# - -prog=$1 -shift -if test -z "$prog"; then - exit 0 -fi - -# If $CYGDRIVE_MOUNT was not set in configure, give $mountpoint the results of mount -p -mountpoint=$CYGDRIVE_MOUNT -if test -z "$mountpoint"; then - mountpoint=`mount -p` - if test -z "$mountpoint"; then - print "Cannot determine cygwin mount points. Exiting" - exit 1 - fi -fi - -# Delete everything but "/cygdrive" (or other mountpoint) from mount=`mount -p` -mountpoint=${mountpoint#*/} -mountpoint=/${mountpoint%%[!A-Za-z0-9_]*} -mountpoint=${mountpoint%/} - -args="" -up="" -if test "${prog}" = "-up"; then - up=1 - prog=${1} - shift -fi - -process=1 - -# Convert the mountpoint in parameters to Win32 filenames -# For instance: /cygdrive/c/foo -> c:/foo -for i in "${@}" -do - if test "${i}" = "-wrap"; then - process=1 - else - if test "${i}" = "-nowrap"; then - process= - else - if test -n "${process}"; then - if test -n "${up}"; then - pathname=${i#-I[a-zA-Z]:/} - if ! test "${pathname}" = "${i}"; then - no_i=${i#-I} - driveletter=${no_i%%:*} - i=-I${mountpoint}/${driveletter}/${pathname} - elif test "${pathname:0:1}" = "/" -a -e "${pathname}" ; then - i=-I`cygpath -m "${pathname}"` - fi - else - eval 'leader=${i%%'${mountpoint}'/[a-zA-Z]/*}' - if ! test "${leader}" = "${i}"; then - eval 'pathname=${i#'${leader}${mountpoint}'/[a-zA-Z]/}' - eval 'no_mountpoint=${i#'${leader}${mountpoint}'/}' - driveletter=${no_mountpoint%%/*} - i=${leader}${driveletter}:/${pathname} - elif test "${i:0:1}" = "/" -a -e "${i}" ; then - i=`cygpath -m "${i}"` - elif test "${i:0:2}" = "-I" -a -e "${i:2}" ; then - i=/I`cygpath -m "${i:2}"` - elif test "${i:0:2}" = "-L" -a -e "${i:2}" ; then - i=/L`cygpath -m "${i:2}"` - elif test "${i:0:5}" = "-DEF:" -a -e "${i:5}" ; then - i=/DEF:`cygpath -m "${i:5}"` - fi - fi - fi - - args="${args} ${i}" - fi - fi -done - -exec $prog $args diff --git a/c-sdk/config/libc_r.h b/c-sdk/config/libc_r.h deleted file mode 100644 index f8bd838..0000000 --- a/c-sdk/config/libc_r.h +++ /dev/null @@ -1,158 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* ***** BEGIN LICENSE BLOCK ***** - * Version: MPL 1.1/GPL 2.0/LGPL 2.1 - * - * The contents of this file are subject to the Mozilla Public License Version - * 1.1 (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * http://www.mozilla.org/MPL/ - * - * Software distributed under the License is distributed on an "AS IS" basis, - * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License - * for the specific language governing rights and limitations under the - * License. - * - * The Original Code is the Netscape Portable Runtime (NSPR). - * - * The Initial Developer of the Original Code is - * Netscape Communications Corporation. - * Portions created by the Initial Developer are Copyright (C) 1998-2000 - * the Initial Developer. All Rights Reserved. - * - * Contributor(s): - * - * Alternatively, the contents of this file may be used under the terms of - * either of the GNU General Public License Version 2 or later (the "GPL"), - * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), - * in which case the provisions of the GPL or the LGPL are applicable instead - * of those above. If you wish to allow use of your version of this file only - * under the terms of either the GPL or the LGPL, and not to allow others to - * use your version of this file under the terms of the MPL, indicate your - * decision by deleting the provisions above and replace them with the notice - * and other provisions required by the GPL or the LGPL. If you do not delete - * the provisions above, a recipient may use your version of this file under - * the terms of any one of the MPL, the GPL or the LGPL. - * - * ***** END LICENSE BLOCK ***** */ - -/* libc_r.h -- macros, defines, etc. to make using reentrant libc calls */ -/* a bit easier. This was initially done for AIX pthreads, */ -/* but should be usable for anyone... */ - -/* Most of these use locally defined space instead of static library space. */ -/* Because of this, we use the _INIT_R to declare/allocate space (stack), */ -/* and the plain routines to actually do it..._WARNING_: avoid allocating */ -/* memory wherever possible. Memory allocation is fairly expensive, at */ -/* least on AIX...use arrays instead (which allocate from the stack.) */ -/* I know the names are a bit strange, but I wanted to be fairly certain */ -/* that we didn't have any namespace corruption...in general, the inits are */ -/* R__INIT_R(), and the actual calls are R__R(). */ - -#ifndef _LIBC_R_H -#define _LIBC_R_H - -/************/ -/* strtok */ -/************/ -#define R_STRTOK_INIT_R() \ - char *r_strtok_r=NULL - -#define R_STRTOK_R(return,source,delim) \ - return=strtok_r(source,delim,&r_strtok_r) - -#define R_STRTOK_NORET_R(source,delim) \ - strtok_r(source,delim,&r_strtok_r) - -/**************/ -/* strerror */ -/**************/ -#define R_MAX_STRERROR_LEN_R 8192 /* Straight from limits.h */ - -#define R_STRERROR_INIT_R() \ - char r_strerror_r[R_MAX_STRERROR_LEN_R] - -#define R_STRERROR_R(val) \ - strerror_r(val,r_strerror_r,R_MAX_STRERROR_LEN_R) - -/*****************/ -/* time things */ -/*****************/ -#define R_ASCTIME_INIT_R() \ - char r_asctime_r[26] - -#define R_ASCTIME_R(val) \ - asctime_r(val,r_asctime_r) - -#define R_CTIME_INIT_R() \ - char r_ctime_r[26] - -#define R_CTIME_R(val) \ - ctime_r(val,r_ctime_r) - -#define R_GMTIME_INIT_R() \ - struct tm r_gmtime_r - -#define R_GMTIME_R(time) \ - gmtime_r(time,&r_gmtime_r) - -#define R_LOCALTIME_INIT_R() \ - struct tm r_localtime_r - -#define R_LOCALTIME_R(val) \ - localtime_r(val,&r_localtime_r) - -/***********/ -/* crypt */ -/***********/ -#include -#define R_CRYPT_INIT_R() \ - CRYPTD r_cryptd_r; \ - bzero(&r_cryptd_r,sizeof(CRYPTD)) - -#define R_CRYPT_R(pass,salt) \ - crypt_r(pass,salt,&r_cryptd_r) - -/**************/ -/* pw stuff */ -/**************/ -#define R_MAX_PW_LEN_R 1024 -/* The following must be after the last declaration, but */ -/* before the first bit of code... */ -#define R_GETPWNAM_INIT_R(pw_ptr) \ - struct passwd r_getpwnam_pw_r; \ - char r_getpwnam_line_r[R_MAX_PW_LEN_R]; \ - pw_ptr = &r_getpwnam_pw_r - -#define R_GETPWNAM_R(name) \ - getpwnam_r(name,&r_getpwnam_pw_r,r_getpwnam_line_r,R_MAX_PW_LEN_R) - -/*******************/ -/* gethost stuff */ -/*******************/ -#define R_GETHOSTBYADDR_INIT_R() \ - struct hostent r_gethostbyaddr_r; \ - struct hostent_data r_gethostbyaddr_data_r - -#define R_GETHOSTBYADDR_R(addr,len,type,xptr_ent) \ - bzero(&r_gethostbyaddr_r,sizeof(struct hostent)); \ - bzero(&r_gethostbyaddr_data_r,sizeof(struct hostent_data)); \ - xptr_ent = &r_gethostbyaddr_r; \ - if (gethostbyaddr_r(addr,len,type, \ - &r_gethostbyaddr_r,&r_gethostbyaddr_data_r) == -1) { \ - xptr_ent = NULL; \ - } - -#define R_GETHOSTBYNAME_INIT_R() \ - struct hostent r_gethostbyname_r; \ - struct hostent_data r_gethostbyname_data_r - -#define R_GETHOSTBYNAME_R(name,xptr_ent) \ - bzero(&r_gethostbyname_r,sizeof(struct hostent)); \ - bzero(&r_gethostbyname_data_r,sizeof(struct hostent_data)); \ - xptr_ent = &r_gethostbyname_r; \ - if (gethostbyname_r(name, \ - &r_gethostbyname_r,&r_gethostbyname_data_r) == -1) { \ - xptr_ent = NULL; \ - } - -#endif /* _LIBC_R_H */ diff --git a/c-sdk/config/module.df b/c-sdk/config/module.df deleted file mode 100644 index 6ad50cf..0000000 --- a/c-sdk/config/module.df +++ /dev/null @@ -1,44 +0,0 @@ -# -# ***** BEGIN LICENSE BLOCK ***** -# Version: MPL 1.1/GPL 2.0/LGPL 2.1 -# -# The contents of this file are subject to the Mozilla Public License Version -# 1.1 (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS IS" basis, -# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -# for the specific language governing rights and limitations under the -# License. -# -# The Original Code is the Netscape Portable Runtime (NSPR). -# -# The Initial Developer of the Original Code is -# Netscape Communications Corporation. -# Portions created by the Initial Developer are Copyright (C) 1998-2000 -# the Initial Developer. All Rights Reserved. -# -# Contributor(s): -# -# Alternatively, the contents of this file may be used under the terms of -# either of the GNU General Public License Version 2 or later (the "GPL"), -# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -# in which case the provisions of the GPL or the LGPL are applicable instead -# of those above. If you wish to allow use of your version of this file only -# under the terms of either the GPL or the LGPL, and not to allow others to -# use your version of this file under the terms of the MPL, indicate your -# decision by deleting the provisions above and replace them with the notice -# and other provisions required by the GPL or the LGPL. If you do not delete -# the provisions above, a recipient may use your version of this file under -# the terms of any one of the MPL, the GPL or the LGPL. -# -# ***** END LICENSE BLOCK ***** - -# -# Module description file -# -# A module is also called a component or a subsystem. - -MOD_NAME = nspr20 -MOD_VERSION = 4 diff --git a/c-sdk/config/nfspwd b/c-sdk/config/nfspwd deleted file mode 100755 index 54bff32..0000000 --- a/c-sdk/config/nfspwd +++ /dev/null @@ -1,50 +0,0 @@ -#! perl -# -# ***** BEGIN LICENSE BLOCK ***** -# Version: MPL 1.1/GPL 2.0/LGPL 2.1 -# -# The contents of this file are subject to the Mozilla Public License Version -# 1.1 (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS IS" basis, -# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -# for the specific language governing rights and limitations under the -# License. -# -# The Original Code is the Netscape Portable Runtime (NSPR). -# -# The Initial Developer of the Original Code is -# Netscape Communications Corporation. -# Portions created by the Initial Developer are Copyright (C) 1998-2000 -# the Initial Developer. All Rights Reserved. -# -# Contributor(s): -# -# Alternatively, the contents of this file may be used under the terms of -# either of the GNU General Public License Version 2 or later (the "GPL"), -# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -# in which case the provisions of the GPL or the LGPL are applicable instead -# of those above. If you wish to allow use of your version of this file only -# under the terms of either the GPL or the LGPL, and not to allow others to -# use your version of this file under the terms of the MPL, indicate your -# decision by deleting the provisions above and replace them with the notice -# and other provisions required by the GPL or the LGPL. If you do not delete -# the provisions above, a recipient may use your version of this file under -# the terms of any one of the MPL, the GPL or the LGPL. -# -# ***** END LICENSE BLOCK ***** - -require "fastcwd.pl"; - -$_ = &fastcwd; -if (m@^/[uh]/@o || s@^/tmp_mnt/@/@o) { - print("$_\n"); -} elsif ((($user, $rest) = m@^/usr/people/(\w+)/(.*)@o) - && readlink("/u/$user") eq "/usr/people/$user") { - print("/u/$user/$rest\n"); -} else { - chop($host = `hostname`); - print("/h/$host$_\n"); -} diff --git a/c-sdk/config/nfspwd.pl b/c-sdk/config/nfspwd.pl deleted file mode 100644 index 54bff32..0000000 --- a/c-sdk/config/nfspwd.pl +++ /dev/null @@ -1,50 +0,0 @@ -#! perl -# -# ***** BEGIN LICENSE BLOCK ***** -# Version: MPL 1.1/GPL 2.0/LGPL 2.1 -# -# The contents of this file are subject to the Mozilla Public License Version -# 1.1 (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS IS" basis, -# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -# for the specific language governing rights and limitations under the -# License. -# -# The Original Code is the Netscape Portable Runtime (NSPR). -# -# The Initial Developer of the Original Code is -# Netscape Communications Corporation. -# Portions created by the Initial Developer are Copyright (C) 1998-2000 -# the Initial Developer. All Rights Reserved. -# -# Contributor(s): -# -# Alternatively, the contents of this file may be used under the terms of -# either of the GNU General Public License Version 2 or later (the "GPL"), -# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -# in which case the provisions of the GPL or the LGPL are applicable instead -# of those above. If you wish to allow use of your version of this file only -# under the terms of either the GPL or the LGPL, and not to allow others to -# use your version of this file under the terms of the MPL, indicate your -# decision by deleting the provisions above and replace them with the notice -# and other provisions required by the GPL or the LGPL. If you do not delete -# the provisions above, a recipient may use your version of this file under -# the terms of any one of the MPL, the GPL or the LGPL. -# -# ***** END LICENSE BLOCK ***** - -require "fastcwd.pl"; - -$_ = &fastcwd; -if (m@^/[uh]/@o || s@^/tmp_mnt/@/@o) { - print("$_\n"); -} elsif ((($user, $rest) = m@^/usr/people/(\w+)/(.*)@o) - && readlink("/u/$user") eq "/usr/people/$user") { - print("/u/$user/$rest\n"); -} else { - chop($host = `hostname`); - print("/h/$host$_\n"); -} diff --git a/c-sdk/config/now.c b/c-sdk/config/now.c deleted file mode 100644 index ea36f9c..0000000 --- a/c-sdk/config/now.c +++ /dev/null @@ -1,114 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* ***** BEGIN LICENSE BLOCK ***** - * Version: MPL 1.1/GPL 2.0/LGPL 2.1 - * - * The contents of this file are subject to the Mozilla Public License Version - * 1.1 (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * http://www.mozilla.org/MPL/ - * - * Software distributed under the License is distributed on an "AS IS" basis, - * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License - * for the specific language governing rights and limitations under the - * License. - * - * The Original Code is the Netscape Portable Runtime (NSPR). - * - * The Initial Developer of the Original Code is - * Netscape Communications Corporation. - * Portions created by the Initial Developer are Copyright (C) 1998-2000 - * the Initial Developer. All Rights Reserved. - * - * Contributor(s): - * - * Alternatively, the contents of this file may be used under the terms of - * either of the GNU General Public License Version 2 or later (the "GPL"), - * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), - * in which case the provisions of the GPL or the LGPL are applicable instead - * of those above. If you wish to allow use of your version of this file only - * under the terms of either the GPL or the LGPL, and not to allow others to - * use your version of this file under the terms of the MPL, indicate your - * decision by deleting the provisions above and replace them with the notice - * and other provisions required by the GPL or the LGPL. If you do not delete - * the provisions above, a recipient may use your version of this file under - * the terms of any one of the MPL, the GPL or the LGPL. - * - * ***** END LICENSE BLOCK ***** */ - -#include -#include - -#if defined(VMS) -#include -#elif defined(XP_UNIX) || defined(XP_OS2) || defined(XP_BEOS) -#include -#elif defined(WIN32) -#include -#else -#error "Architecture not supported" -#endif - - -int main(int argc, char **argv) -{ -#if defined(OMIT_LIB_BUILD_TIME) - /* - * Some platforms don't have any 64-bit integer type - * such as 'long long'. Because we can't use NSPR's - * PR_snprintf in this program, it is difficult to - * print a static initializer for PRInt64 (a struct). - * So we print nothing. The makefiles that build the - * shared libraries will detect the empty output string - * of this program and omit the library build time - * in PRVersionDescription. - */ -#elif defined(VMS) - long long now; - struct timeb b; - ftime(&b); - now = b.time; - now *= 1000000; - now += (1000 * b.millitm); - fprintf(stdout, "%Ld", now); -#elif defined(XP_UNIX) || defined(XP_OS2) || defined(XP_BEOS) - long long now; - struct timeval tv; -#ifdef HAVE_SVID_GETTOD - gettimeofday(&tv); -#else - gettimeofday(&tv, NULL); -#endif - now = ((1000000LL) * tv.tv_sec) + (long long)tv.tv_usec; -#if defined(OSF1) - fprintf(stdout, "%ld", now); -#elif defined(BEOS) && defined(__POWERPC__) - fprintf(stdout, "%Ld", now); /* Metroworks on BeOS PPC */ -#else - fprintf(stdout, "%lld", now); -#endif - -#elif defined(WIN32) - __int64 now; - FILETIME ft; - GetSystemTimeAsFileTime(&ft); - CopyMemory(&now, &ft, sizeof(now)); - /* - * 116444736000000000 is the number of 100-nanosecond intervals - * between Jan. 1, 1601 and Jan. 1, 1970. - */ -#ifdef __GNUC__ - now = (now - 116444736000000000LL) / 10LL; - fprintf(stdout, "%lld", now); -#else - now = (now - 116444736000000000i64) / 10i64; - fprintf(stdout, "%I64d", now); -#endif - -#else -#error "Architecture not supported" -#endif - - return 0; -} /* main */ - -/* now.c */ diff --git a/c-sdk/config/nsinstall.c b/c-sdk/config/nsinstall.c deleted file mode 100644 index dfdb837..0000000 --- a/c-sdk/config/nsinstall.c +++ /dev/null @@ -1,597 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* ***** BEGIN LICENSE BLOCK ***** - * Version: MPL 1.1/GPL 2.0/LGPL 2.1 - * - * The contents of this file are subject to the Mozilla Public License Version - * 1.1 (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * http://www.mozilla.org/MPL/ - * - * Software distributed under the License is distributed on an "AS IS" basis, - * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License - * for the specific language governing rights and limitations under the - * License. - * - * The Original Code is the Netscape Portable Runtime (NSPR). - * - * The Initial Developer of the Original Code is - * Netscape Communications Corporation. - * Portions created by the Initial Developer are Copyright (C) 1998-2000 - * the Initial Developer. All Rights Reserved. - * - * Contributor(s): - * - * Alternatively, the contents of this file may be used under the terms of - * either of the GNU General Public License Version 2 or later (the "GPL"), - * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), - * in which case the provisions of the GPL or the LGPL are applicable instead - * of those above. If you wish to allow use of your version of this file only - * under the terms of either the GPL or the LGPL, and not to allow others to - * use your version of this file under the terms of the MPL, indicate your - * decision by deleting the provisions above and replace them with the notice - * and other provisions required by the GPL or the LGPL. If you do not delete - * the provisions above, a recipient may use your version of this file under - * the terms of any one of the MPL, the GPL or the LGPL. - * - * ***** END LICENSE BLOCK ***** */ - -/* -** Netscape portable install command. -** -** Brendan Eich, 7/20/95 -*/ -#include /* OSF/1 requires this before grp.h, so put it first */ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#ifdef USE_REENTRANT_LIBC -#include "libc_r.h" -#endif /* USE_REENTRANT_LIBC */ - -#include "pathsub.h" - -#ifndef HAVE_LCHOWN -#define HAVE_LCHOWN -#endif - -#if defined(AIX) || defined(BSDI) || defined(HPUX) || defined(LINUX) \ - || defined(SUNOS4) || defined(SCO) || defined(UNIXWARE) \ - || defined(RHAPSODY) || defined(NEXTSTEP) || defined(QNX) \ - || defined(BEOS) || defined(VMS) || defined(DARWIN) -#undef HAVE_LCHOWN -#endif - -#define HAVE_FCHMOD - -#if defined(BEOS) -#undef HAVE_FCHMOD -#endif - -/* - * Does getcwd() take NULL as the first argument and malloc - * the result buffer? - */ -#if !defined(RHAPSODY) && !defined(NEXTSTEP) && !defined(VMS) -#define GETCWD_CAN_MALLOC -#endif - -#ifdef NEXTSTEP -#include - -/* -** balazs.pataki@sztaki.hu: The getcwd is broken in NEXTSTEP (returns 0), -** when called on a mounted fs. Did anyone notice this? Here's an ugly -** workaround ... -*/ -#define getcwd(b,s) my_getcwd(b,s) - -static char * -my_getcwd (char *buf, size_t size) -{ - FILE *pwd = popen("pwd", "r"); - char *result = fgets(buf, size, pwd); - - if (result) { - buf[strlen(buf)-1] = '\0'; - } - pclose (pwd); - return buf; -} -#endif /* NEXTSTEP */ - -#ifdef LINUX -#include -#endif - -#if defined(SCO) || defined(UNIXWARE) || defined(SNI) || defined(NCR) || defined(NEC) || defined(NEXTSTEP) -#if !defined(S_ISLNK) && defined(S_IFLNK) -#define S_ISLNK(a) (((a) & S_IFMT) == S_IFLNK) -#endif -#endif - -#if defined(SNI) -extern int fchmod(int fildes, mode_t mode); -#endif - -#ifdef QNX -#define d_ino d_stat.st_ino -#endif - -static void -usage(void) -{ - fprintf(stderr, - "usage: %s [-C cwd] [-L linkprefix] [-m mode] [-o owner] [-g group]\n" - " %*s [-DdltR] file [file ...] directory\n", - program, (int)strlen(program), ""); - exit(2); -} - -static int -mkdirs(char *path, mode_t mode) -{ - char *cp; - struct stat sb; - int res; - - while (*path == '/' && path[1] == '/') - path++; - while ((cp = strrchr(path, '/')) && cp[1] == '\0') - *cp = '\0'; - if (cp && cp != path) { - *cp = '\0'; - if ((stat(path, &sb) < 0 || !S_ISDIR(sb.st_mode)) && - mkdirs(path, mode) < 0) { - return -1; - } - *cp = '/'; - } - res = mkdir(path, mode); - if ((res != 0) && (errno == EEXIST)) - return 0; - else - return res; -} - -static uid_t -touid(char *owner) -{ - struct passwd *pw; - uid_t uid; - char *cp; - - pw = getpwnam(owner); - if (pw) - return pw->pw_uid; - uid = strtol(owner, &cp, 0); - if (uid == 0 && cp == owner) - fail("cannot find uid for %s", owner); - return uid; -} - -static gid_t -togid(char *group) -{ - struct group *gr; - gid_t gid; - char *cp; - - gr = getgrnam(group); - if (gr) - return gr->gr_gid; - gid = strtol(group, &cp, 0); - if (gid == 0 && cp == group) - fail("cannot find gid for %s", group); - return gid; -} - -int -main(int argc, char **argv) -{ - int onlydir, dodir, dolink, dorelsymlink, dotimes, opt, len, lplen, tdlen, bnlen, exists, fromfd, tofd, cc, wc; - mode_t mode = 0755; - char *linkprefix, *owner, *group, *cp, *cwd, *todir, *toname, *name, *base, *linkname, *bp, buf[BUFSIZ]; - uid_t uid; - gid_t gid; - struct stat sb, tosb; - struct utimbuf utb; - - program = argv[0]; - cwd = linkname = linkprefix = owner = group = 0; - onlydir = dodir = dolink = dorelsymlink = dotimes = lplen = 0; - - while ((opt = getopt(argc, argv, "C:DdlL:Rm:o:g:t")) != EOF) { - switch (opt) { - case 'C': - cwd = optarg; - break; - case 'D': - onlydir = 1; - break; - case 'd': - dodir = 1; - break; - case 'l': - dolink = 1; - break; - case 'L': - linkprefix = optarg; - lplen = strlen(linkprefix); - dolink = 1; - break; - case 'R': - dolink = dorelsymlink = 1; - break; - case 'm': - mode = strtoul(optarg, &cp, 8); - if (mode == 0 && cp == optarg) - usage(); - break; - case 'o': - owner = optarg; - break; - case 'g': - group = optarg; - break; - case 't': - dotimes = 1; - break; - default: - usage(); - } - } - - argc -= optind; - argv += optind; - if (argc < 2 - onlydir) - usage(); - - todir = argv[argc-1]; - if ((stat(todir, &sb) < 0 || !S_ISDIR(sb.st_mode)) && - mkdirs(todir, 0777) < 0) { - fail("cannot make directory %s", todir); - } - if (onlydir) - return 0; - - if (!cwd) { -#ifdef GETCWD_CAN_MALLOC - cwd = getcwd(0, PATH_MAX); -#else - cwd = malloc(PATH_MAX + 1); - cwd = getcwd(cwd, PATH_MAX); -#endif - } - xchdir(todir); -#ifdef GETCWD_CAN_MALLOC - todir = getcwd(0, PATH_MAX); -#else - todir = malloc(PATH_MAX + 1); - todir = getcwd(todir, PATH_MAX); -#endif - tdlen = strlen(todir); - xchdir(cwd); - tdlen = strlen(todir); - - uid = owner ? touid(owner) : -1; - gid = group ? togid(group) : -1; - - while (--argc > 0) { - name = *argv++; - len = strlen(name); - base = xbasename(name); - bnlen = strlen(base); - toname = (char*)xmalloc(tdlen + 1 + bnlen + 1); - sprintf(toname, "%s/%s", todir, base); - exists = (lstat(toname, &tosb) == 0); - - if (dodir) { - /* -d means create a directory, always */ - if (exists && !S_ISDIR(tosb.st_mode)) { - (void) unlink(toname); - exists = 0; - } - if (!exists && mkdir(toname, mode) < 0) - fail("cannot make directory %s", toname); - if ((owner || group) && chown(toname, uid, gid) < 0) - fail("cannot change owner of %s", toname); - } else if (dolink) { - if (*name == '/') { - /* source is absolute pathname, link to it directly */ - linkname = 0; - } else { - if (linkprefix) { - /* -L implies -l and prefixes names with a $cwd arg. */ - len += lplen + 1; - linkname = (char*)xmalloc(len + 1); - sprintf(linkname, "%s/%s", linkprefix, name); - } else if (dorelsymlink) { - /* Symlink the relative path from todir to source name. */ - linkname = (char*)xmalloc(PATH_MAX); - - if (*todir == '/') { - /* todir is absolute: skip over common prefix. */ - lplen = relatepaths(todir, cwd, linkname); - strcpy(linkname + lplen, name); - } else { - /* todir is named by a relative path: reverse it. */ - reversepath(todir, name, len, linkname); - xchdir(cwd); - } - - len = strlen(linkname); - } - name = linkname; - } - - /* Check for a pre-existing symlink with identical content. */ - if (exists && - (!S_ISLNK(tosb.st_mode) || - readlink(toname, buf, sizeof buf) != len || - strncmp(buf, name, len) != 0)) { - (void) (S_ISDIR(tosb.st_mode) ? rmdir : unlink)(toname); - exists = 0; - } - if (!exists && symlink(name, toname) < 0) - fail("cannot make symbolic link %s", toname); -#ifdef HAVE_LCHOWN - if ((owner || group) && lchown(toname, uid, gid) < 0) - fail("cannot change owner of %s", toname); -#endif - - if (linkname) { - free(linkname); - linkname = 0; - } - } else { - /* Copy from name to toname, which might be the same file. */ - fromfd = open(name, O_RDONLY); - if (fromfd < 0 || fstat(fromfd, &sb) < 0) - fail("cannot access %s", name); - if (exists && (!S_ISREG(tosb.st_mode) || access(toname, W_OK) < 0)) - (void) (S_ISDIR(tosb.st_mode) ? rmdir : unlink)(toname); - tofd = open(toname, O_CREAT | O_WRONLY, 0666); - if (tofd < 0) - fail("cannot create %s", toname); - - bp = buf; - while ((cc = read(fromfd, bp, sizeof buf)) > 0) { - while ((wc = write(tofd, bp, cc)) > 0) { - if ((cc -= wc) == 0) - break; - bp += wc; - } - if (wc < 0) - fail("cannot write to %s", toname); - } - if (cc < 0) - fail("cannot read from %s", name); - - if (ftruncate(tofd, sb.st_size) < 0) - fail("cannot truncate %s", toname); - if (dotimes) { - utb.actime = sb.st_atime; - utb.modtime = sb.st_mtime; - if (utime(toname, &utb) < 0) - fail("cannot set times of %s", toname); - } -#ifdef HAVE_FCHMOD - if (fchmod(tofd, mode) < 0) -#else - if (chmod(toname, mode) < 0) -#endif - fail("cannot change mode of %s", toname); - if ((owner || group) && fchown(tofd, uid, gid) < 0) - fail("cannot change owner of %s", toname); - - /* Must check for delayed (NFS) write errors on close. */ - if (close(tofd) < 0) - fail("cannot write to %s", toname); - close(fromfd); - } - - free(toname); - } - - free(cwd); - free(todir); - return 0; -} - -/* -** Pathname subroutines. -** -** Brendan Eich, 8/29/95 -*/ - -char *program; - -void -fail(char *format, ...) -{ - int error; - va_list ap; - -#ifdef USE_REENTRANT_LIBC - R_STRERROR_INIT_R(); -#endif - - error = errno; - fprintf(stderr, "%s: ", program); - va_start(ap, format); - vfprintf(stderr, format, ap); - va_end(ap); - if (error) - -#ifdef USE_REENTRANT_LIBC - R_STRERROR_R(errno); - fprintf(stderr, ": %s", r_strerror_r); -#else - fprintf(stderr, ": %s", strerror(errno)); -#endif - - putc('\n', stderr); - exit(1); -} - -char * -getcomponent(char *path, char *name) -{ - if (*path == '\0') - return 0; - if (*path == '/') { - *name++ = '/'; - } else { - do { - *name++ = *path++; - } while (*path != '/' && *path != '\0'); - } - *name = '\0'; - while (*path == '/') - path++; - return path; -} - -#ifdef UNIXWARE_READDIR_BUFFER_TOO_SMALL -/* Sigh. The static buffer in Unixware's readdir is too small. */ -struct dirent * readdir(DIR *d) -{ - static struct dirent *buf = NULL; -#define MAX_PATH_LEN 1024 - - - if(buf == NULL) - buf = (struct dirent *) malloc(sizeof(struct dirent) + MAX_PATH_LEN) -; - return(readdir_r(d, buf)); -} -#endif - -char * -ino2name(ino_t ino, char *dir) -{ - DIR *dp; - struct dirent *ep; - char *name; - - dp = opendir(".."); - if (!dp) - fail("cannot read parent directory"); - for (;;) { - if (!(ep = readdir(dp))) - fail("cannot find current directory"); - if (ep->d_ino == ino) - break; - } - name = xstrdup(ep->d_name); - closedir(dp); - return name; -} - -void * -xmalloc(size_t size) -{ - void *p = malloc(size); - if (!p) - fail("cannot allocate %u bytes", size); - return p; -} - -char * -xstrdup(char *s) -{ - return strcpy((char*)xmalloc(strlen(s) + 1), s); -} - -char * -xbasename(char *path) -{ - char *cp; - - while ((cp = strrchr(path, '/')) && cp[1] == '\0') - *cp = '\0'; - if (!cp) return path; - return cp + 1; -} - -void -xchdir(char *dir) -{ - if (chdir(dir) < 0) - fail("cannot change directory to %s", dir); -} - -int -relatepaths(char *from, char *to, char *outpath) -{ - char *cp, *cp2; - int len; - char buf[NAME_MAX]; - - assert(*from == '/' && *to == '/'); - for (cp = to, cp2 = from; *cp == *cp2; cp++, cp2++) - if (*cp == '\0') - break; - while (cp[-1] != '/') - cp--, cp2--; - if (cp - 1 == to) { - /* closest common ancestor is /, so use full pathname */ - len = strlen(strcpy(outpath, to)); - if (outpath[len] != '/') { - outpath[len++] = '/'; - outpath[len] = '\0'; - } - } else { - len = 0; - while ((cp2 = getcomponent(cp2, buf)) != 0) { - strcpy(outpath + len, "../"); - len += 3; - } - while ((cp = getcomponent(cp, buf)) != 0) { - sprintf(outpath + len, "%s/", buf); - len += strlen(outpath + len); - } - } - return len; -} - -void -reversepath(char *inpath, char *name, int len, char *outpath) -{ - char *cp, *cp2; - char buf[NAME_MAX]; - struct stat sb; - - cp = strcpy(outpath + PATH_MAX - (len + 1), name); - cp2 = inpath; - while ((cp2 = getcomponent(cp2, buf)) != 0) { - if (strcmp(buf, ".") == 0) - continue; - if (strcmp(buf, "..") == 0) { - if (stat(".", &sb) < 0) - fail("cannot stat current directory"); - name = ino2name(sb.st_ino, ".."); - len = strlen(name); - cp -= len + 1; - strcpy(cp, name); - cp[len] = '/'; - free(name); - xchdir(".."); - } else { - cp -= 3; - strncpy(cp, "../", 3); - xchdir(buf); - } - } - strcpy(outpath, cp); -} diff --git a/c-sdk/config/pathsub.h b/c-sdk/config/pathsub.h deleted file mode 100644 index 46fc0c1..0000000 --- a/c-sdk/config/pathsub.h +++ /dev/null @@ -1,78 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* ***** BEGIN LICENSE BLOCK ***** - * Version: MPL 1.1/GPL 2.0/LGPL 2.1 - * - * The contents of this file are subject to the Mozilla Public License Version - * 1.1 (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * http://www.mozilla.org/MPL/ - * - * Software distributed under the License is distributed on an "AS IS" basis, - * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License - * for the specific language governing rights and limitations under the - * License. - * - * The Original Code is the Netscape Portable Runtime (NSPR). - * - * The Initial Developer of the Original Code is - * Netscape Communications Corporation. - * Portions created by the Initial Developer are Copyright (C) 1998-2000 - * the Initial Developer. All Rights Reserved. - * - * Contributor(s): - * - * Alternatively, the contents of this file may be used under the terms of - * either of the GNU General Public License Version 2 or later (the "GPL"), - * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), - * in which case the provisions of the GPL or the LGPL are applicable instead - * of those above. If you wish to allow use of your version of this file only - * under the terms of either the GPL or the LGPL, and not to allow others to - * use your version of this file under the terms of the MPL, indicate your - * decision by deleting the provisions above and replace them with the notice - * and other provisions required by the GPL or the LGPL. If you do not delete - * the provisions above, a recipient may use your version of this file under - * the terms of any one of the MPL, the GPL or the LGPL. - * - * ***** END LICENSE BLOCK ***** */ - -#ifndef pathsub_h___ -#define pathsub_h___ -/* -** Pathname subroutines. -** -** Brendan Eich, 8/29/95 -*/ -#include -#include - -#if SUNOS4 -#include "../pr/include/md/sunos4.h" -#endif - -#ifndef PATH_MAX -#define PATH_MAX 1024 -#endif - -/* - * Just prevent stupidity - */ -#undef NAME_MAX -#define NAME_MAX 256 - -extern char *program; - -extern void fail(char *format, ...); -extern char *getcomponent(char *path, char *name); -extern char *ino2name(ino_t ino, char *dir); -extern void *xmalloc(size_t size); -extern char *xstrdup(char *s); -extern char *xbasename(char *path); -extern void xchdir(char *dir); - -/* Relate absolute pathnames from and to returning the result in outpath. */ -extern int relatepaths(char *from, char *to, char *outpath); - -/* XXX changes current working directory -- caveat emptor */ -extern void reversepath(char *inpath, char *name, int len, char *outpath); - -#endif /* pathsub_h___ */ diff --git a/c-sdk/config/prdepend.h b/c-sdk/config/prdepend.h deleted file mode 100644 index 391b38f..0000000 --- a/c-sdk/config/prdepend.h +++ /dev/null @@ -1,45 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ -/* ***** BEGIN LICENSE BLOCK ***** - * Version: MPL 1.1/GPL 2.0/LGPL 2.1 - * - * The contents of this file are subject to the Mozilla Public License Version - * 1.1 (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * http://www.mozilla.org/MPL/ - * - * Software distributed under the License is distributed on an "AS IS" basis, - * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License - * for the specific language governing rights and limitations under the - * License. - * - * The Original Code is the Netscape Portable Runtime (NSPR). - * - * The Initial Developer of the Original Code is - * Netscape Communications Corporation. - * Portions created by the Initial Developer are Copyright (C) 2000 - * the Initial Developer. All Rights Reserved. - * - * Contributor(s): - * - * Alternatively, the contents of this file may be used under the terms of - * either of the GNU General Public License Version 2 or later (the "GPL"), - * or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), - * in which case the provisions of the GPL or the LGPL are applicable instead - * of those above. If you wish to allow use of your version of this file only - * under the terms of either the GPL or the LGPL, and not to allow others to - * use your version of this file under the terms of the MPL, indicate your - * decision by deleting the provisions above and replace them with the notice - * and other provisions required by the GPL or the LGPL. If you do not delete - * the provisions above, a recipient may use your version of this file under - * the terms of any one of the MPL, the GPL or the LGPL. - * - * ***** END LICENSE BLOCK ***** */ - -/* - * A dummy header file that is a dependency for all the object files. - * Used to force a full recompilation of NSPR in Mozilla's Tinderbox - * depend builds. See comments in rules.mk. - */ - -#error "Do not include this header file." - diff --git a/c-sdk/config/prmkdir.bat b/c-sdk/config/prmkdir.bat deleted file mode 100755 index 244a155..0000000 --- a/c-sdk/config/prmkdir.bat +++ /dev/null @@ -1,38 +0,0 @@ -REM -REM ***** BEGIN LICENSE BLOCK ***** -REM Version: MPL 1.1/GPL 2.0/LGPL 2.1 -REM -REM The contents of this file are subject to the Mozilla Public License Version -REM 1.1 (the "License"); you may not use this file except in compliance with -REM the License. You may obtain a copy of the License at -REM http://www.mozilla.org/MPL/ -REM -REM Software distributed under the License is distributed on an "AS IS" basis, -REM WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -REM for the specific language governing rights and limitations under the -REM License. -REM -REM The Original Code is mozilla.org code. -REM -REM The Initial Developer of the Original Code is -REM Netscape Communications Corporation. -REM Portions created by the Initial Developer are Copyright (C) 1998 -REM the Initial Developer. All Rights Reserved. -REM -REM Contributor(s): -REM -REM Alternatively, the contents of this file may be used under the terms of -REM either of the GNU General Public License Version 2 or later (the "GPL"), -REM or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -REM in which case the provisions of the GPL or the LGPL are applicable instead -REM of those above. If you wish to allow use of your version of this file only -REM under the terms of either the GPL or the LGPL, and not to allow others to -REM use your version of this file under the terms of the MPL, indicate your -REM decision by deleting the provisions above and replace them with the notice -REM and other provisions required by the GPL or the LGPL. If you do not delete -REM the provisions above, a recipient may use your version of this file under -REM the terms of any one of the MPL, the GPL or the LGPL. -REM -REM ***** END LICENSE BLOCK ***** - -mkdir %1 diff --git a/c-sdk/config/rules.mk b/c-sdk/config/rules.mk deleted file mode 100644 index 65bff80..0000000 --- a/c-sdk/config/rules.mk +++ /dev/null @@ -1,471 +0,0 @@ -#! gmake -# -# ***** BEGIN LICENSE BLOCK ***** -# Version: MPL 1.1/GPL 2.0/LGPL 2.1 -# -# The contents of this file are subject to the Mozilla Public License Version -# 1.1 (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS IS" basis, -# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -# for the specific language governing rights and limitations under the -# License. -# -# The Original Code is the Netscape Portable Runtime (NSPR). -# -# The Initial Developer of the Original Code is -# Netscape Communications Corporation. -# Portions created by the Initial Developer are Copyright (C) 1998-2000 -# the Initial Developer. All Rights Reserved. -# -# Contributor(s): -# -# Alternatively, the contents of this file may be used under the terms of -# either of the GNU General Public License Version 2 or later (the "GPL"), -# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -# in which case the provisions of the GPL or the LGPL are applicable instead -# of those above. If you wish to allow use of your version of this file only -# under the terms of either the GPL or the LGPL, and not to allow others to -# use your version of this file under the terms of the MPL, indicate your -# decision by deleting the provisions above and replace them with the notice -# and other provisions required by the GPL or the LGPL. If you do not delete -# the provisions above, a recipient may use your version of this file under -# the terms of any one of the MPL, the GPL or the LGPL. -# -# ***** END LICENSE BLOCK ***** - -################################################################################ -# We have a 4 pass build process: -# -# Pass 1. export - Create generated headers and stubs. Publish public headers to -# dist//include. -# -# Pass 2. libs - Create libraries. Publish libraries to dist//lib. -# -# Pass 3. all - Create programs. -# -# Pass 4. install - Publish programs to dist//bin. -# -# Parameters to this makefile (set these before including): -# -# a) -# TARGETS -- the target to create -# (defaults to $LIBRARY $PROGRAM) -# b) -# DIRS -- subdirectories for make to recurse on -# (the 'all' rule builds $TARGETS $DIRS) -# c) -# CSRCS -- .c files to compile -# (used to define $OBJS) -# d) -# PROGRAM -- the target program name to create from $OBJS -# ($OBJDIR automatically prepended to it) -# e) -# LIBRARY -- the target library name to create from $OBJS -# ($OBJDIR automatically prepended to it) -# -################################################################################ - -ifndef topsrcdir -topsrcdir=$(MOD_DEPTH) -endif - -ifndef srcdir -srcdir=. -endif - -ifndef NSPR_CONFIG_MK -include $(topsrcdir)/config/config.mk -endif - -ifdef USE_AUTOCONF -ifdef CROSS_COMPILE -ifdef INTERNAL_TOOLS -CC=$(HOST_CC) -CCC=$(HOST_CXX) -CFLAGS=$(HOST_CFLAGS) -CXXFLAGS=$(HOST_CXXFLAGS) -endif -endif -endif - -# -# This makefile contains rules for building the following kinds of -# libraries: -# - LIBRARY: a static (archival) library -# - SHARED_LIBRARY: a shared (dynamic link) library -# - IMPORT_LIBRARY: an import library, used only on Windows and OS/2 -# -# The names of these libraries can be generated by simply specifying -# LIBRARY_NAME and LIBRARY_VERSION. -# - -ifdef LIBRARY_NAME -ifeq (,$(filter-out WINNT OS2,$(OS_ARCH))) - -# -# Win95, Win16, and OS/2 require library names conforming to the 8.3 rule. -# other platforms do not. -# -ifeq (,$(filter-out WIN95 WIN16 OS2,$(OS_TARGET))) -LIBRARY = $(OBJDIR)/$(LIBRARY_NAME)$(LIBRARY_VERSION)_s.$(LIB_SUFFIX) -SHARED_LIBRARY = $(OBJDIR)/$(LIBRARY_NAME)$(LIBRARY_VERSION).$(DLL_SUFFIX) -IMPORT_LIBRARY = $(OBJDIR)/$(LIBRARY_NAME)$(LIBRARY_VERSION).$(LIB_SUFFIX) -else -LIBRARY = $(OBJDIR)/lib$(LIBRARY_NAME)$(LIBRARY_VERSION)_s.$(LIB_SUFFIX) -SHARED_LIBRARY = $(OBJDIR)/lib$(LIBRARY_NAME)$(LIBRARY_VERSION).$(DLL_SUFFIX) -IMPORT_LIBRARY = $(OBJDIR)/lib$(LIBRARY_NAME)$(LIBRARY_VERSION).$(LIB_SUFFIX) -endif - -ifeq ($(OS_ARCH),OS2) -DEF_FILE := $(SHARED_LIBRARY:.dll=.def) -endif - -else - -LIBRARY = $(OBJDIR)/lib$(LIBRARY_NAME)$(LIBRARY_VERSION).$(LIB_SUFFIX) -ifeq ($(OS_ARCH)$(OS_RELEASE), AIX4.1) -SHARED_LIBRARY = $(OBJDIR)/lib$(LIBRARY_NAME)$(LIBRARY_VERSION)_shr.a -else -ifdef MKSHLIB -SHARED_LIBRARY = $(OBJDIR)/lib$(LIBRARY_NAME)$(LIBRARY_VERSION).$(DLL_SUFFIX) -endif -endif - -endif -endif - -ifndef TARGETS -ifeq (,$(filter-out WINNT OS2,$(OS_ARCH))) -TARGETS = $(LIBRARY) $(SHARED_LIBRARY) $(IMPORT_LIBRARY) -else -TARGETS = $(LIBRARY) $(SHARED_LIBRARY) -endif -endif - -# -# OBJS is the list of object files. It can be constructed by -# specifying CSRCS (list of C source files) and ASFILES (list -# of assembly language source files). -# - -ifndef OBJS -OBJS = $(addprefix $(OBJDIR)/,$(CSRCS:.c=.$(OBJ_SUFFIX))) \ - $(addprefix $(OBJDIR)/,$(ASFILES:.$(ASM_SUFFIX)=.$(OBJ_SUFFIX))) -endif - -ifeq ($(OS_TARGET), WIN16) - comma := , - empty := - space := $(empty) $(empty) - W16OBJS = $(subst $(space),$(comma)$(space),$(strip $(OBJS))) - W16TEMP =$(OS_LIBS) $(EXTRA_LIBS) - ifeq ($(strip $(W16TEMP)),) - W16LIBS = - else - W16LIBS = library $(subst $(space),$(comma)$(space),$(strip $(W16TEMP))) - endif - W16DEF = $(notdir $(basename $(SHARED_LIBRARY))).DEF -endif - -ifeq ($(OS_ARCH), WINNT) -ifneq ($(OS_TARGET), WIN16) -OBJS += $(RES) -endif -endif - -ALL_TRASH = $(TARGETS) $(OBJS) $(filter-out . .., $(OBJDIR)) LOGS TAGS $(GARBAGE) \ - $(NOSUCHFILE) $(DEF_FILE)\ - so_locations - -ifdef DIRS -LOOP_OVER_DIRS = \ - @for d in $(DIRS); do \ - if test -d $$d; then \ - set -e; \ - echo "cd $$d; $(MAKE) $(MFLAGS) $@"; \ - $(MAKE) $(MFLAGS) -C $$d $@; \ - set +e; \ - else \ - echo "Skipping non-directory $$d..."; \ - fi; \ - done -endif - -################################################################################ - -all:: export - -export:: - +$(LOOP_OVER_DIRS) - -libs:: export - -install:: export - -clean:: - rm -rf $(OBJS) so_locations $(NOSUCHFILE) $(GARBAGE) - +$(LOOP_OVER_DIRS) - -clobber:: - rm -rf $(OBJS) $(TARGETS) $(filter-out . ..,$(OBJDIR)) $(GARBAGE) so_locations $(NOSUCHFILE) - +$(LOOP_OVER_DIRS) - -realclean clobber_all distclean:: - rm -rf $(wildcard *.OBJ *.OBJD) dist $(ALL_TRASH) - +$(LOOP_OVER_DIRS) - -real_install:: $(RELEASE_BINS) $(RELEASE_HEADERS) $(RELEASE_LIBS) -ifdef RELEASE_BINS - $(NSINSTALL) -t -m 0755 $(RELEASE_BINS) $(DESTDIR)$(bindir) -endif -ifdef RELEASE_HEADERS - $(NSINSTALL) -t -m 0644 $(RELEASE_HEADERS) $(DESTDIR)$(includedir) -endif -ifdef RELEASE_LIBS - $(NSINSTALL) -t -m 0755 $(RELEASE_LIBS) $(DESTDIR)$(libdir) -endif - +$(LOOP_OVER_DIRS) - -release:: export -ifdef RELEASE_BINS - @echo "Copying executable programs and scripts to release directory" - @if test -z "$(BUILD_NUMBER)"; then \ - echo "BUILD_NUMBER must be defined"; \ - false; \ - else \ - true; \ - fi - @if test ! -d $(RELEASE_BIN_DIR); then \ - rm -rf $(RELEASE_BIN_DIR); \ - $(NSINSTALL) -D $(RELEASE_BIN_DIR);\ - else \ - true; \ - fi - cp $(RELEASE_BINS) $(RELEASE_BIN_DIR) -endif -ifdef RELEASE_LIBS - @echo "Copying libraries to release directory" - @if test -z "$(BUILD_NUMBER)"; then \ - echo "BUILD_NUMBER must be defined"; \ - false; \ - else \ - true; \ - fi - @if test ! -d $(RELEASE_LIB_DIR); then \ - rm -rf $(RELEASE_LIB_DIR); \ - $(NSINSTALL) -D $(RELEASE_LIB_DIR);\ - else \ - true; \ - fi - cp $(RELEASE_LIBS) $(RELEASE_LIB_DIR) -endif -ifdef RELEASE_HEADERS - @echo "Copying header files to release directory" - @if test -z "$(BUILD_NUMBER)"; then \ - echo "BUILD_NUMBER must be defined"; \ - false; \ - else \ - true; \ - fi - @if test ! -d $(RELEASE_HEADERS_DEST); then \ - rm -rf $(RELEASE_HEADERS_DEST); \ - $(NSINSTALL) -D $(RELEASE_HEADERS_DEST);\ - else \ - true; \ - fi - cp $(RELEASE_HEADERS) $(RELEASE_HEADERS_DEST) -endif - +$(LOOP_OVER_DIRS) - -alltags: - rm -f TAGS tags - find . -name dist -prune -o \( -name '*.[hc]' -o -name '*.cp' -o -name '*.cpp' \) -print | xargs etags -a - find . -name dist -prune -o \( -name '*.[hc]' -o -name '*.cp' -o -name '*.cpp' \) -print | xargs ctags -a - -$(NFSPWD): - cd $(@D); $(MAKE) $(MFLAGS) $(@F) - -$(PROGRAM): $(OBJS) - @$(MAKE_OBJDIR) -ifeq ($(OS_ARCH)_$(NS_USE_GCC),WINNT_) - $(CC) $(OBJS) -Fe$@ -link $(LDFLAGS) $(OS_LIBS) $(EXTRA_LIBS) -else - $(CC) -o $@ $(CFLAGS) $(OBJS) $(LDFLAGS) -endif - -$(LIBRARY): $(OBJS) - @$(MAKE_OBJDIR) - rm -f $@ -ifdef USE_AUTOCONF - $(AR) $(AR_FLAGS) $(OBJS) $(AR_EXTRA_ARGS) -else - $(AR) $(OBJS) $(AR_EXTRA_ARGS) -endif # USE_AUTOCONF - $(RANLIB) $@ - -ifeq ($(OS_TARGET), WIN16) -$(IMPORT_LIBRARY): $(SHARED_LIBRARY) - wlib $(OS_LIB_FLAGS) $@ +$(SHARED_LIBRARY) -endif - -ifeq ($(OS_TARGET), OS2) -$(DEF_FILE): $(LIBRARY) - rm -f $@ - echo LIBRARY $(notdir $(basename $(SHARED_LIBRARY))) INITINSTANCE TERMINSTANCE > $@ - echo PROTMODE >> $@ - echo CODE LOADONCALL MOVEABLE DISCARDABLE >> $@ - echo DATA PRELOAD MOVEABLE MULTIPLE NONSHARED >> $@ - echo EXPORTS >> $@ - $(FILTER) $(LIBRARY) >> $@ - -$(IMPORT_LIBRARY): $(DEF_FILE) - rm -f $@ - $(IMPLIB) $@ $(DEF_FILE) -endif - -$(SHARED_LIBRARY): $(OBJS) $(DEF_FILE) - @$(MAKE_OBJDIR) - rm -f $@ -ifdef USE_AUTOCONF - $(MKSHLIB) $(OBJS) $(EXTRA_LIBS) $(OS_LIBS) $(DEF_FILE) -else -ifeq ($(OS_ARCH)$(OS_RELEASE), AIX4.1) - echo "#!" > $(OBJDIR)/lib$(LIBRARY_NAME)_syms - nm -B -C -g $(OBJS) \ - | awk '/ [T,D] / {print $$3}' \ - | sed -e 's/^\.//' \ - | sort -u >> $(OBJDIR)/lib$(LIBRARY_NAME)_syms - $(LD) $(XCFLAGS) -o $@ $(OBJS) -bE:$(OBJDIR)/lib$(LIBRARY_NAME)_syms \ - -bM:SRE -bnoentry $(OS_LIBS) $(EXTRA_LIBS) -else # AIX 4.1 -ifeq ($(OS_ARCH), WINNT) -ifeq ($(OS_TARGET), WIN16) - echo system windows dll initinstance >w16link - echo option map >>w16link - echo option oneautodata >>w16link - echo option heapsize=32K >>w16link - echo option $(OS_DLL_OPTION) >>w16link - echo debug $(DEBUGTYPE) all >>w16link - echo name $@ >>w16link - echo file >>w16link - echo $(W16OBJS) >>w16link - echo $(W16IMPORTS) >>w16link - echo $(W16LIBS) >>w16link - echo $(W16_EXPORTS) >>w16link - echo libfile libentry >>w16link - $(LINK) @w16link. - rm w16link -else # WIN16 - $(LINK_DLL) -MAP $(DLLBASE) $(OS_LIBS) $(EXTRA_LIBS) $(OBJS) -endif # WINNT -else - $(MKSHLIB) -o $@ $(OBJS) $(EXTRA_LIBS) $(OS_LIBS) $(DEF_FILE) -endif # WINNT -endif # AIX 4.1 -endif # USE_AUTOCONF - - -ifeq (,$(filter-out WINNT OS2,$(OS_ARCH))) -$(RES): $(RESNAME) - @$(MAKE_OBJDIR) -ifeq ($(OS_TARGET),OS2) - $(RC) -DOS2 -r $(RESNAME) $(RES) -else -# The resource compiler does not understand the -U option. -ifdef NS_USE_GCC - $(RC) $(filter-out -U%,$(DEFINES)) $(INCLUDES:-I%=--include-dir %) -o $@ $< -else - $(RC) $(filter-out -U%,$(DEFINES)) $(INCLUDES) -Fo$(RES) $(RESNAME) -endif -endif - @echo $(RES) finished -endif - -$(OBJDIR)/%.$(OBJ_SUFFIX): %.cpp - @$(MAKE_OBJDIR) -ifeq ($(OS_ARCH)_$(NS_USE_GCC), WINNT_) - $(CCC) -Fo$@ -c $(CCCFLAGS) $< -else - $(CCC) -o $@ -c $(CCCFLAGS) $< -endif - -WCCFLAGS1 = $(subst /,\\,$(CFLAGS)) -WCCFLAGS2 = $(subst -I,-i=,$(WCCFLAGS1)) -WCCFLAGS3 = $(subst -D,-d,$(WCCFLAGS2)) -$(OBJDIR)/%.$(OBJ_SUFFIX): %.c - @$(MAKE_OBJDIR) -ifeq ($(OS_ARCH)_$(NS_USE_GCC), WINNT_) -ifeq ($(OS_TARGET), WIN16) -# $(MOD_DEPTH)/config/w16opt $(WCCFLAGS3) - echo $(WCCFLAGS3) >w16wccf - $(CC) -zq -fo$(OBJDIR)\\$*.$(OBJ_SUFFIX) @w16wccf $*.c - rm w16wccf -else - $(CC) -Fo$@ -c $(CFLAGS) $< -endif -else - $(CC) -o $@ -c $(CFLAGS) $< -endif - - -$(OBJDIR)/%.$(OBJ_SUFFIX): %.s - @$(MAKE_OBJDIR) - $(AS) -o $@ $(ASFLAGS) -c $< - -%.i: %.c - $(CC) -C -E $(CFLAGS) $< > $*.i - -%: %.pl - rm -f $@; cp $< $@; chmod +x $@ - -# -# HACK ALERT -# -# The only purpose of this rule is to pass Mozilla's Tinderbox depend -# builds (http://tinderbox.mozilla.org/showbuilds.cgi). Mozilla's -# Tinderbox builds NSPR continuously as part of the Mozilla client. -# Because NSPR's make depend is not implemented, whenever we change -# an NSPR header file, the depend build does not recompile the NSPR -# files that depend on the header. -# -# This rule makes all the objects depend on a dummy header file. -# Touch this dummy header file to force the depend build to recompile -# everything. -# -# This rule should be removed when make depend is implemented. -# - -DUMMY_DEPEND_H = $(topsrcdir)/config/prdepend.h - -$(filter $(OBJDIR)/%.$(OBJ_SUFFIX),$(OBJS)): $(OBJDIR)/%.$(OBJ_SUFFIX): $(DUMMY_DEPEND_H) - -# END OF HACK - -################################################################################ -# Special gmake rules. -################################################################################ - -# -# Re-define the list of default suffixes, so gmake won't have to churn through -# hundreds of built-in suffix rules for stuff we don't need. -# -.SUFFIXES: -.SUFFIXES: .a .$(OBJ_SUFFIX) .c .cpp .s .h .i .pl - -# -# Fake targets. Always run these rules, even if a file/directory with that -# name already exists. -# -.PHONY: all alltags clean export install libs realclean release - -# -# List the target pattern of an implicit rule as a dependency of the -# special target .PRECIOUS to preserve intermediate files made by -# implicit rules whose target patterns match that file's name. -# (See GNU Make documentation, Edition 0.51, May 1996, Sec. 10.4, -# p. 107.) -# -.PRECIOUS: $(OBJDIR)/%.$(OBJ_SUFFIX) diff --git a/c-sdk/config/win16.mk b/c-sdk/config/win16.mk deleted file mode 100644 index c22f1d0..0000000 --- a/c-sdk/config/win16.mk +++ /dev/null @@ -1,119 +0,0 @@ -# -# ***** BEGIN LICENSE BLOCK ***** -# Version: MPL 1.1/GPL 2.0/LGPL 2.1 -# -# The contents of this file are subject to the Mozilla Public License Version -# 1.1 (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS IS" basis, -# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -# for the specific language governing rights and limitations under the -# License. -# -# The Original Code is the Netscape Portable Runtime (NSPR). -# -# The Initial Developer of the Original Code is -# Netscape Communications Corporation. -# Portions created by the Initial Developer are Copyright (C) 1998-2000 -# the Initial Developer. All Rights Reserved. -# -# Contributor(s): -# -# Alternatively, the contents of this file may be used under the terms of -# either of the GNU General Public License Version 2 or later (the "GPL"), -# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -# in which case the provisions of the GPL or the LGPL are applicable instead -# of those above. If you wish to allow use of your version of this file only -# under the terms of either the GPL or the LGPL, and not to allow others to -# use your version of this file under the terms of the MPL, indicate your -# decision by deleting the provisions above and replace them with the notice -# and other provisions required by the GPL or the LGPL. If you do not delete -# the provisions above, a recipient may use your version of this file under -# the terms of any one of the MPL, the GPL or the LGPL. -# -# ***** END LICENSE BLOCK ***** - -# -# win16_3.11.mk -- Make configuration for Win16 -# -# This file configures gmake to build the Win16 variant of -# NSPR 2.0. This file has the function of two files commonly -# used on other platforms, for example: winnt.mk and -# winnt4.0.mk. ... The packaging is easier and there is only -# one variant of the Win16 target. -# -# Win16 is built using the Watcom C/C++ version 11.0 -# compiler. You gotta set up the compiler first. Follow the -# directions in the manual (Ha! ... really, its not a -# problem). The Watcom compiler depends on a few environment -# variables; these environment variables define where the -# compiler components are installed; they must be set before -# running the make. -# -# Notes: -# OS_CFLAGS is the command line options for the compiler when -# building the .DLL object files. -# OS_EXE_CFLAGS is the command line options for the compiler -# when building the .EXE object files; this is for the test -# programs. -# the macro OS_CFLAGS is set to OS_EXE_CFLAGS inside of the -# makefile for the pr/tests directory. ... Hack. -# -# USE_WATCOM_DEBUG_DATA environment variable causes the -# watcom compiler flag to be set to -hw (otherwise -# it is set to -hc (codeview debug data)) for debug builds. -# - -# -- configuration ----------------------------------------- - -CC = wcc -CCC = wcl -LINK = wlink -AR = wlib -q $@ -RC = wrc.exe /r /dWIN16=1 /bt=windows -RANLIB = echo -BSDECHO = echo -NSINSTALL = nsinstall -INSTALL = $(NSINSTALL) -MAKE_OBJDIR = mkdir $(OBJDIR) - -XP_DEFINE = -DXP_PC -OBJ_SUFFIX = obj -LIB_SUFFIX = lib -DLL_SUFFIX = dll - -ifdef BUILD_OPT -OBJDIR_TAG = _O -OPTIMIZER = -oneatx -oh -oi -ei -3 -fpi87 -fp3 -s -else -ifdef USE_WATCOM_DEBUG_DATA -OPTIMIZER = -d2 -hw -s -DDEBUG -DEBUGTYPE = watcom -else -OPTIMIZER = -d2 -hc -s -DDEBUG -DEBUGTYPE = codeview -endif -OBJDIR_TAG = _D -endif - -# XXX FIXME: I doubt we use this. It is redundant with -# SHARED_LIBRARY. -ifdef DLL -DLL := $(addprefix $(OBJDIR)/, $(DLL)) -endif - - -CPU_ARCH = x86 -OS_CFLAGS = -ml -3 -bd -zc -zu -bt=windows -d_X86_ -dWIN16 -d_WINDLL -OS_EXE_CFLAGS = -ml -3 -bt=windows -d_X86_ -dWIN16 -OS_LIB_FLAGS = -c -iro -n - -# Name of the binary code directories -OBJDIR_NAME = $(OS_CONFIG)$(OBJDIR_TAG).OBJ - -OS_DLL_OPTION = CASEEXACT -OS_DLLFLAGS = -OS_LIBS = -W16_EXPORTS = # diff --git a/c-sdk/configure b/c-sdk/configure deleted file mode 100755 index 3d4a24e..0000000 --- a/c-sdk/configure +++ /dev/null @@ -1,7273 +0,0 @@ -#! /bin/sh - -# Guess values for system-dependent variables and create Makefiles. -# Generated automatically using autoconf version 2.13 -# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. -# -# This configure script is free software; the Free Software Foundation -# gives unlimited permission to copy, distribute and modify it. - -# Defaults: -ac_help= -ac_default_prefix=/usr/local -# Any additions from configure.in: -ac_help="$ac_help - --with-dist-prefix=DIST_PREFIX - place build files in DIST_PREFIX [dist]" -ac_help="$ac_help - --with-dist-bindir=DIR build execuatables in DIR [DIST_PREFIX/bin]" -ac_help="$ac_help - --with-dist-libdir=DIR build library files in DIR [DIST_PREFIX/lib]" -ac_help="$ac_help - --with-mozilla Compile LDAP with Mozilla support" -ac_help="$ac_help - --enable-optimize(=val) Enable code optimizations (val, ie. -O2) " -ac_help="$ac_help - --enable-debug(=val) Enable debugging (debug flags val)" -ac_help="$ac_help - --enable-win32-target=\$t - Specify win32 flavor. (WIN95 or WINNT)" -ac_help="$ac_help - --enable-debug-rtl Use the MSVC debug runtime library" -ac_help="$ac_help - --enable-n32 Enable n32 ABI support (IRIX only)" -ac_help="$ac_help - --enable-64bit Enable 64-bit support (on certain platforms)" -ac_help="$ac_help - --enable-mdupdate Enable use of certain compilers' mdupdate feature" -ac_help="$ac_help - --enable-clu Enable building the command-line utilities" -ac_help="$ac_help - --with-system-svrcore Use system installed SVRCORE" -ac_help="$ac_help -[ --with-svrcore[=PATH] Use svrcore - optional PATH is path to svrcore lib and include dirs]" -ac_help="$ac_help - --with-svrcore-inc=PATH svrcore include file directory" -ac_help="$ac_help - --with-svrcore-lib=PATH svrcore library directory" -ac_help="$ac_help - --with-system-nss Use system installed NSS" -ac_help="$ac_help -[ --with-nss[=PATH] Build libssldap, using NSS for crypto - optional PATH is path to NSS package]" -ac_help="$ac_help - --with-nss-inc=PATH Netscape Portable Runtime (NSS) include file directory" -ac_help="$ac_help - --with-nss-lib=PATH Netscape Portable Runtime (NSS) library directory" -ac_help="$ac_help - --with-nss-prefix=PFX Prefix where NSS is installed" -ac_help="$ac_help - --with-nss-exec-prefix=PFX - Exec prefix where NSS is installed" -ac_help="$ac_help - --with-system-nspr Use system installed NSPR" -ac_help="$ac_help - --with-nspr=PATH Netscape Portable Runtime (NSPR) directory" -ac_help="$ac_help - --with-nspr-inc=PATH Netscape Portable Runtime (NSPR) include file directory" -ac_help="$ac_help - --with-nspr-lib=PATH Netscape Portable Runtime (NSPR) library directory" -ac_help="$ac_help - --with-nspr-prefix=PFX Prefix where NSPR is installed" -ac_help="$ac_help - --with-nspr-exec-prefix=PFX - Exec prefix where NSPR is installed" -ac_help="$ac_help - --with-macos-sdk=dir Location of platform SDK to use (Mac OS X only)" -ac_help="$ac_help - --disable-os2-high-mem Disable high-memory support on OS/2" -ac_help="$ac_help - --with-rpath[[=dir]] Build the shared libs and cmd lines progs with an RPATH (default dir is ..:../lib:../../lib:../../../lib:../../../../lib)" -ac_help="$ac_help - --enable-strip Enable stripping of shared libs and programs" -ac_help="$ac_help - --with-pthreads Use system pthreads library as thread subsystem" -ac_help="$ac_help - --enable-user-pthreads Build using userland pthreads" -ac_help="$ac_help - --enable-nspr-threads Build using classic nspr threads" -ac_help="$ac_help - --with-bthreads Use system bthreads library as thread subsystem (BeOS only)" -ac_help="$ac_help - --with-native-threads Use native system threads as thread subsystem (Solaris only)" -ac_help="$ac_help - --enable-cplus Enable some c++ api routines" -ac_help="$ac_help - --enable-ipv6 Compile ipv6 support" -ac_help="$ac_help -[ --with-sasl[=PATH] Use system installed sasl - optional path for sasl]" -ac_help="$ac_help -[ --with-sasl-inc=PATH SASL include file directory]" -ac_help="$ac_help -[ --with-sasl-lib=PATH SASL library directory]" - -# Initialize some variables set by options. -# The variables have the same names as the options, with -# dashes changed to underlines. -build=NONE -cache_file=./config.cache -exec_prefix=NONE -host=NONE -no_create= -nonopt=NONE -no_recursion= -prefix=NONE -program_prefix=NONE -program_suffix=NONE -program_transform_name=s,x,x, -silent= -site= -srcdir= -target=NONE -verbose= -x_includes=NONE -x_libraries=NONE -bindir='${exec_prefix}/bin' -sbindir='${exec_prefix}/sbin' -libexecdir='${exec_prefix}/libexec' -datadir='${prefix}/share' -sysconfdir='${prefix}/etc' -sharedstatedir='${prefix}/com' -localstatedir='${prefix}/var' -libdir='${exec_prefix}/lib' -includedir='${prefix}/include' -oldincludedir='/usr/include' -infodir='${prefix}/info' -mandir='${prefix}/man' - -# Initialize some other variables. -subdirs= -MFLAGS= MAKEFLAGS= -SHELL=${CONFIG_SHELL-/bin/sh} -# Maximum number of lines to put in a shell here document. -ac_max_here_lines=12 - -ac_prev= -for ac_option -do - - # If the previous option needs an argument, assign it. - if test -n "$ac_prev"; then - eval "$ac_prev=\$ac_option" - ac_prev= - continue - fi - - case "$ac_option" in - -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; - *) ac_optarg= ;; - esac - - # Accept the important Cygnus configure options, so we can diagnose typos. - - case "$ac_option" in - - -bindir | --bindir | --bindi | --bind | --bin | --bi) - ac_prev=bindir ;; - -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) - bindir="$ac_optarg" ;; - - -build | --build | --buil | --bui | --bu) - ac_prev=build ;; - -build=* | --build=* | --buil=* | --bui=* | --bu=*) - build="$ac_optarg" ;; - - -cache-file | --cache-file | --cache-fil | --cache-fi \ - | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) - ac_prev=cache_file ;; - -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ - | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) - cache_file="$ac_optarg" ;; - - -datadir | --datadir | --datadi | --datad | --data | --dat | --da) - ac_prev=datadir ;; - -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ - | --da=*) - datadir="$ac_optarg" ;; - - -disable-* | --disable-*) - ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } - fi - ac_feature=`echo $ac_feature| sed 's/-/_/g'` - eval "enable_${ac_feature}=no" ;; - - -enable-* | --enable-*) - ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } - fi - ac_feature=`echo $ac_feature| sed 's/-/_/g'` - case "$ac_option" in - *=*) ;; - *) ac_optarg=yes ;; - esac - eval "enable_${ac_feature}='$ac_optarg'" ;; - - -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ - | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ - | --exec | --exe | --ex) - ac_prev=exec_prefix ;; - -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ - | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ - | --exec=* | --exe=* | --ex=*) - exec_prefix="$ac_optarg" ;; - - -gas | --gas | --ga | --g) - # Obsolete; use --with-gas. - with_gas=yes ;; - - -help | --help | --hel | --he) - # Omit some internal or obsolete options to make the list less imposing. - # This message is too long to be a string in the A/UX 3.1 sh. - cat << EOF -Usage: configure [options] [host] -Options: [defaults in brackets after descriptions] -Configuration: - --cache-file=FILE cache test results in FILE - --help print this message - --no-create do not create output files - --quiet, --silent do not print \`checking...' messages - --version print the version of autoconf that created configure -Directory and file names: - --prefix=PREFIX install architecture-independent files in PREFIX - [$ac_default_prefix] - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX - [same as prefix] - --bindir=DIR user executables in DIR [EPREFIX/bin] - --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] - --libexecdir=DIR program executables in DIR [EPREFIX/libexec] - --datadir=DIR read-only architecture-independent data in DIR - [PREFIX/share] - --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] - --sharedstatedir=DIR modifiable architecture-independent data in DIR - [PREFIX/com] - --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] - --libdir=DIR object code libraries in DIR [EPREFIX/lib] - --includedir=DIR C header files in DIR [PREFIX/include] - --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] - --infodir=DIR info documentation in DIR [PREFIX/info] - --mandir=DIR man documentation in DIR [PREFIX/man] - --srcdir=DIR find the sources in DIR [configure dir or ..] - --program-prefix=PREFIX prepend PREFIX to installed program names - --program-suffix=SUFFIX append SUFFIX to installed program names - --program-transform-name=PROGRAM - run sed PROGRAM on installed program names -EOF - cat << EOF -Host type: - --build=BUILD configure for building on BUILD [BUILD=HOST] - --host=HOST configure for HOST [guessed] - --target=TARGET configure for TARGET [TARGET=HOST] -Features and packages: - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) - --enable-FEATURE[=ARG] include FEATURE [ARG=yes] - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) - --x-includes=DIR X include files are in DIR - --x-libraries=DIR X library files are in DIR -EOF - if test -n "$ac_help"; then - echo "--enable and --with options recognized:$ac_help" - fi - exit 0 ;; - - -host | --host | --hos | --ho) - ac_prev=host ;; - -host=* | --host=* | --hos=* | --ho=*) - host="$ac_optarg" ;; - - -includedir | --includedir | --includedi | --included | --include \ - | --includ | --inclu | --incl | --inc) - ac_prev=includedir ;; - -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ - | --includ=* | --inclu=* | --incl=* | --inc=*) - includedir="$ac_optarg" ;; - - -infodir | --infodir | --infodi | --infod | --info | --inf) - ac_prev=infodir ;; - -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) - infodir="$ac_optarg" ;; - - -libdir | --libdir | --libdi | --libd) - ac_prev=libdir ;; - -libdir=* | --libdir=* | --libdi=* | --libd=*) - libdir="$ac_optarg" ;; - - -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ - | --libexe | --libex | --libe) - ac_prev=libexecdir ;; - -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ - | --libexe=* | --libex=* | --libe=*) - libexecdir="$ac_optarg" ;; - - -localstatedir | --localstatedir | --localstatedi | --localstated \ - | --localstate | --localstat | --localsta | --localst \ - | --locals | --local | --loca | --loc | --lo) - ac_prev=localstatedir ;; - -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ - | --localstate=* | --localstat=* | --localsta=* | --localst=* \ - | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) - localstatedir="$ac_optarg" ;; - - -mandir | --mandir | --mandi | --mand | --man | --ma | --m) - ac_prev=mandir ;; - -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) - mandir="$ac_optarg" ;; - - -nfp | --nfp | --nf) - # Obsolete; use --without-fp. - with_fp=no ;; - - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c) - no_create=yes ;; - - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) - no_recursion=yes ;; - - -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ - | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ - | --oldin | --oldi | --old | --ol | --o) - ac_prev=oldincludedir ;; - -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ - | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ - | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) - oldincludedir="$ac_optarg" ;; - - -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) - ac_prev=prefix ;; - -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) - prefix="$ac_optarg" ;; - - -program-prefix | --program-prefix | --program-prefi | --program-pref \ - | --program-pre | --program-pr | --program-p) - ac_prev=program_prefix ;; - -program-prefix=* | --program-prefix=* | --program-prefi=* \ - | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) - program_prefix="$ac_optarg" ;; - - -program-suffix | --program-suffix | --program-suffi | --program-suff \ - | --program-suf | --program-su | --program-s) - ac_prev=program_suffix ;; - -program-suffix=* | --program-suffix=* | --program-suffi=* \ - | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) - program_suffix="$ac_optarg" ;; - - -program-transform-name | --program-transform-name \ - | --program-transform-nam | --program-transform-na \ - | --program-transform-n | --program-transform- \ - | --program-transform | --program-transfor \ - | --program-transfo | --program-transf \ - | --program-trans | --program-tran \ - | --progr-tra | --program-tr | --program-t) - ac_prev=program_transform_name ;; - -program-transform-name=* | --program-transform-name=* \ - | --program-transform-nam=* | --program-transform-na=* \ - | --program-transform-n=* | --program-transform-=* \ - | --program-transform=* | --program-transfor=* \ - | --program-transfo=* | --program-transf=* \ - | --program-trans=* | --program-tran=* \ - | --progr-tra=* | --program-tr=* | --program-t=*) - program_transform_name="$ac_optarg" ;; - - -q | -quiet | --quiet | --quie | --qui | --qu | --q \ - | -silent | --silent | --silen | --sile | --sil) - silent=yes ;; - - -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) - ac_prev=sbindir ;; - -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ - | --sbi=* | --sb=*) - sbindir="$ac_optarg" ;; - - -sharedstatedir | --sharedstatedir | --sharedstatedi \ - | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ - | --sharedst | --shareds | --shared | --share | --shar \ - | --sha | --sh) - ac_prev=sharedstatedir ;; - -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ - | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ - | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ - | --sha=* | --sh=*) - sharedstatedir="$ac_optarg" ;; - - -site | --site | --sit) - ac_prev=site ;; - -site=* | --site=* | --sit=*) - site="$ac_optarg" ;; - - -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) - ac_prev=srcdir ;; - -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) - srcdir="$ac_optarg" ;; - - -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ - | --syscon | --sysco | --sysc | --sys | --sy) - ac_prev=sysconfdir ;; - -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ - | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) - sysconfdir="$ac_optarg" ;; - - -target | --target | --targe | --targ | --tar | --ta | --t) - ac_prev=target ;; - -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) - target="$ac_optarg" ;; - - -v | -verbose | --verbose | --verbos | --verbo | --verb) - verbose=yes ;; - - -version | --version | --versio | --versi | --vers) - echo "configure generated by autoconf version 2.13" - exit 0 ;; - - -with-* | --with-*) - ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } - fi - ac_package=`echo $ac_package| sed 's/-/_/g'` - case "$ac_option" in - *=*) ;; - *) ac_optarg=yes ;; - esac - eval "with_${ac_package}='$ac_optarg'" ;; - - -without-* | --without-*) - ac_package=`echo $ac_option|sed -e 's/-*without-//'` - # Reject names that are not valid shell variable names. - if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } - fi - ac_package=`echo $ac_package| sed 's/-/_/g'` - eval "with_${ac_package}=no" ;; - - --x) - # Obsolete; use --with-x. - with_x=yes ;; - - -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ - | --x-incl | --x-inc | --x-in | --x-i) - ac_prev=x_includes ;; - -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ - | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) - x_includes="$ac_optarg" ;; - - -x-libraries | --x-libraries | --x-librarie | --x-librari \ - | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) - ac_prev=x_libraries ;; - -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ - | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) - x_libraries="$ac_optarg" ;; - - -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } - ;; - - *) - if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then - echo "configure: warning: $ac_option: invalid host type" 1>&2 - fi - if test "x$nonopt" != xNONE; then - { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } - fi - nonopt="$ac_option" - ;; - - esac -done - -if test -n "$ac_prev"; then - { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } -fi - -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 - -# File descriptor usage: -# 0 standard input -# 1 file creation -# 2 errors and warnings -# 3 some systems may open it to /dev/tty -# 4 used on the Kubota Titan -# 6 checking for... messages and results -# 5 compiler messages saved in config.log -if test "$silent" = yes; then - exec 6>/dev/null -else - exec 6>&1 -fi -exec 5>./config.log - -echo "\ -This file contains any messages produced by compilers while -running configure, to aid debugging if configure makes a mistake. -" 1>&5 - -# Strip out --no-create and --no-recursion so they do not pile up. -# Also quote any args containing shell metacharacters. -ac_configure_args= -for ac_arg -do - case "$ac_arg" in - -no-create | --no-create | --no-creat | --no-crea | --no-cre \ - | --no-cr | --no-c) ;; - -no-recursion | --no-recursion | --no-recursio | --no-recursi \ - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) - ac_configure_args="$ac_configure_args '$ac_arg'" ;; - *) ac_configure_args="$ac_configure_args $ac_arg" ;; - esac -done - -# NLS nuisances. -# Only set these to C if already set. These must not be set unconditionally -# because not all systems understand e.g. LANG=C (notably SCO). -# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! -# Non-C LC_CTYPE values break the ctype check. -if test "${LANG+set}" = set; then LANG=C; export LANG; fi -if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi -if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi -if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi - -# confdefs.h avoids OS command line length limits that DEFS can exceed. -rm -rf conftest* confdefs.h -# AIX cpp loses on an empty file, so make sure it contains at least a newline. -echo > confdefs.h - -# A filename unique to this package, relative to the directory that -# configure is in, which we can look for to find out if srcdir is correct. -ac_unique_file=ldap/include/ldap.h - -# Find the source files, if location was not specified. -if test -z "$srcdir"; then - ac_srcdir_defaulted=yes - # Try the directory containing this script, then its parent. - ac_prog=$0 - ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` - test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. - srcdir=$ac_confdir - if test ! -r $srcdir/$ac_unique_file; then - srcdir=.. - fi -else - ac_srcdir_defaulted=no -fi -if test ! -r $srcdir/$ac_unique_file; then - if test "$ac_srcdir_defaulted" = yes; then - { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } - else - { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } - fi -fi -srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` - -# Prefer explicitly selected file to automatically selected ones. -if test -z "$CONFIG_SITE"; then - if test "x$prefix" != xNONE; then - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" - else - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" - fi -fi -for ac_site_file in $CONFIG_SITE; do - if test -r "$ac_site_file"; then - echo "loading site script $ac_site_file" - . "$ac_site_file" - fi -done - -if test -r "$cache_file"; then - echo "loading cache $cache_file" - . $cache_file -else - echo "creating cache $cache_file" - > $cache_file -fi - -ac_ext=c -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CPP $CPPFLAGS' -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cc_cross - -ac_exeext= -ac_objext=o -if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then - # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. - if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then - ac_n= ac_c=' -' ac_t=' ' - else - ac_n=-n ac_c= ac_t= - fi -else - ac_n= ac_c='\c' ac_t= -fi - - - -ac_aux_dir= -for ac_dir in ${srcdir}/config/autoconf $srcdir/${srcdir}/config/autoconf; do - if test -f $ac_dir/install-sh; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install-sh -c" - break - elif test -f $ac_dir/install.sh; then - ac_aux_dir=$ac_dir - ac_install_sh="$ac_aux_dir/install.sh -c" - break - fi -done -if test -z "$ac_aux_dir"; then - { echo "configure: error: can not find install-sh or install.sh in ${srcdir}/config/autoconf $srcdir/${srcdir}/config/autoconf" 1>&2; exit 1; } -fi -ac_config_guess=$ac_aux_dir/config.guess -ac_config_sub=$ac_aux_dir/config.sub -ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. - - -# Do some error checking and defaulting for the host and target type. -# The inputs are: -# configure --host=HOST --target=TARGET --build=BUILD NONOPT -# -# The rules are: -# 1. You are not allowed to specify --host, --target, and nonopt at the -# same time. -# 2. Host defaults to nonopt. -# 3. If nonopt is not specified, then host defaults to the current host, -# as determined by config.guess. -# 4. Target and build default to nonopt. -# 5. If nonopt is not specified, then target and build default to host. - -# The aliases save the names the user supplied, while $host etc. -# will get canonicalized. -case $host---$target---$nonopt in -NONE---*---* | *---NONE---* | *---*---NONE) ;; -*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; -esac - - -# Make sure we can run config.sub. -if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : -else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } -fi - -echo $ac_n "checking host system type""... $ac_c" 1>&6 -echo "configure:661: checking host system type" >&5 - -host_alias=$host -case "$host_alias" in -NONE) - case $nonopt in - NONE) - if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : - else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } - fi ;; - *) host_alias=$nonopt ;; - esac ;; -esac - -host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` -host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` -echo "$ac_t""$host" 1>&6 - -echo $ac_n "checking target system type""... $ac_c" 1>&6 -echo "configure:682: checking target system type" >&5 - -target_alias=$target -case "$target_alias" in -NONE) - case $nonopt in - NONE) target_alias=$host_alias ;; - *) target_alias=$nonopt ;; - esac ;; -esac - -target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` -target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` -echo "$ac_t""$target" 1>&6 - -echo $ac_n "checking build system type""... $ac_c" 1>&6 -echo "configure:700: checking build system type" >&5 - -build_alias=$build -case "$build_alias" in -NONE) - case $nonopt in - NONE) build_alias=$host_alias ;; - *) build_alias=$nonopt ;; - esac ;; -esac - -build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` -build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` -build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` -build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` -echo "$ac_t""$build" 1>&6 - -test "$host_alias" != "$target_alias" && - test "$program_prefix$program_suffix$program_transform_name" = \ - NONENONEs,x,x, && - program_prefix=${target_alias}- - - -NSPR_VERSION=4 -_HAVE_PTHREADS= -USE_PTHREADS= -USE_USER_PTHREADS= -USE_NSPR_THREADS= -USE_N32= -USE_64= -USE_CPLUS= -USE_IPV6= -USE_MDUPDATE= -_OPTIMIZE_FLAGS=-O -_DEBUG_FLAGS=-g -MOZ_DEBUG= -MOZ_OPTIMIZE=1 -MFLAGS= -OBJDIR=. -OBJDIR_NAME=. -NSINSTALL='$(MOD_DEPTH)/config/$(OBJDIR_NAME)/nsinstall' -NOSUCHFILE=/no-such-file -MOZ_OS2_HIGH_MEMORY=1 - -RESOLVE_LINK_SYMBOLS= - -CFLAGS="${CFLAGS=}" -CXXFLAGS="${CXXFLAGS=}" -LDFLAGS="${LDFLAGS=}" -DLLFLAGS="${DLLFLAGS=}" -HOST_CFLAGS="${HOST_CFLAGS=}" -HOST_LDFLAGS="${HOST_LDFLAGS=}" - -case "$target" in -*-cygwin*|*-mingw*|*-msvc*|*-mks*) - # Check to see if we are really running in a msvc environemnt - _WIN32_MSVC= - for ac_prog in cl -do -# Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:762: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_CC="$ac_prog" - break - fi - done - IFS="$ac_save_ifs" -fi -fi -CC="$ac_cv_prog_CC" -if test -n "$CC"; then - echo "$ac_t""$CC" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - -test -n "$CC" && break -done - - if test "$CC" = "cl"; then - echo 'main() { return 0; }' > dummy.c - ${CC} -o dummy dummy.c >/dev/null 2>&1 - if test $? = 0; then - _WIN32_MSVC=1 - CXX=$CC - else - echo "configure: warning: $(CC) test failed. Using normal feature tests" 1>&2 - fi - rm -f dummy dummy.o dummy.obj dummy.exe dummy.c - fi - ;; -esac - -if test -n "$_WIN32_MSVC"; then - SKIP_PATH_CHECKS=1 - SKIP_COMPILER_CHECKS=1 - SKIP_LIBRARY_CHECKS=1 -fi - -dist_prefix='${MOD_DEPTH}/../../dist' -dist_bindir='${dist_prefix}/bin' -dist_libdir='${dist_prefix}/lib' - -# Check whether --with-dist-prefix or --without-dist-prefix was given. -if test "${with_dist_prefix+set}" = set; then - withval="$with_dist_prefix" - dist_prefix=$withval -fi - - -# Check whether --with-dist-bindir or --without-dist-bindir was given. -if test "${with_dist_bindir+set}" = set; then - withval="$with_dist_bindir" - dist_bindir=$withval -fi - - -# Check whether --with-dist-libdir or --without-dist-libdir was given. -if test "${with_dist_libdir+set}" = set; then - withval="$with_dist_libdir" - dist_libdir=$withval -fi - - - - - - -# Check whether --with-mozilla or --without-mozilla was given. -if test "${with_mozilla+set}" = set; then - withval="$with_mozilla" - if test "$withval" = "yes"; then - cat >> confdefs.h <<\EOF -#define MOZILLA_CLIENT 1 -EOF - - MOZILLA_CLIENT=1 - else - MOZILLA_CLIENT= - fi -else - if test -n "$MOZILLA_CLIENT"; then - cat >> confdefs.h <<\EOF -#define MOZILLA_CLIENT 1 -EOF - - fi -fi - - -# Check whether --enable-optimize or --disable-optimize was given. -if test "${enable_optimize+set}" = set; then - enableval="$enable_optimize" - if test "$enableval" != "no"; then - MOZ_OPTIMIZE=1 - if test -n "$enableval" && test "$enableval" != "yes"; then - _OPTIMIZE_FLAGS=`echo $enableval | sed -e 's|\\\ | |g'` - _SAVE_OPTIMIZE_FLAGS=$_OPTIMIZE_FLAGS - fi - else - MOZ_OPTIMIZE= - fi -fi - - -# Check whether --enable-debug or --disable-debug was given. -if test "${enable_debug+set}" = set; then - enableval="$enable_debug" - if test "$enableval" != "no"; then - MOZ_DEBUG=1 - if test -n "$enableval" && test "$enableval" != "yes"; then - _DEBUG_FLAGS=`echo $enableval | sed -e 's|\\\ | |g'` - _SAVE_DEBUG_FLAGS=$_DEBUG_FLAGS - fi - else - MOZ_DEBUG= - fi -fi - - -# Check whether --enable-win32-target or --disable-win32-target was given. -if test "${enable_win32_target+set}" = set; then - enableval="$enable_win32_target" - OS_TARGET=`echo $enableval | tr a-z A-Z` -else - OS_TARGET= -fi - - -# Check whether --enable-debug-rtl or --disable-debug-rtl was given. -if test "${enable_debug_rtl+set}" = set; then - enableval="$enable_debug_rtl" - if test "$enableval" = "yes"; then - USE_DEBUG_RTL=1 - else - USE_DEBUG_RTL=0 - fi -fi - - -# Check whether --enable-n32 or --disable-n32 was given. -if test "${enable_n32+set}" = set; then - enableval="$enable_n32" - if test "$enableval" = "yes"; then - USE_N32=1 - elif test "$enableval" = "no"; then - USE_N32=file - fi -fi - - -# Check whether --enable-64bit or --disable-64bit was given. -if test "${enable_64bit+set}" = set; then - enableval="$enable_64bit" - if test "$enableval" = "yes"; then - USE_64=1 ; export USE_64 - fi -fi - - -# Check whether --enable-mdupdate or --disable-mdupdate was given. -if test "${enable_mdupdate+set}" = set; then - enableval="$enable_mdupdate" - if test "$enableval" = "yes"; then - USE_MDUPDATE=1 - fi -fi - - -# Check whether --enable-clu or --disable-clu was given. -if test "${enable_clu+set}" = set; then - enableval="$enable_clu" - if test "$enableval" = "yes"; then - BUILDCLU=1 - - fi -fi - - -# Check whether --with-system-svrcore or --without-system-svrcore was given. -if test "${with_system_svrcore+set}" = set; then - withval="$with_system_svrcore" - if test "$withval" = "yes"; then - _SYSTEM_SVRCORE=1 - HAVE_SVRCORE=1 - SVRCORE_LIBS=-lsvrcore - - - USE_NSS=1 - no_nspr=no - else - _SYSTEM_SVRCORE= - fi -else - _SYSTEM_SVRCORE= -fi - - -if test -z "$_SYSTEM_SVRCORE" ; then - - echo $ac_n "checking for --with-svrcore""... $ac_c" 1>&6 -echo "configure:972: checking for --with-svrcore" >&5 - # Check whether --with-svrcore or --without-svrcore was given. -if test "${with_svrcore+set}" = set; then - withval="$with_svrcore" - if test "$withval" = "yes"; then - HAVE_SVRCORE=1 - echo "$ac_t""yes" 1>&6 - elif test -n "$withval" -a -d "$withval" -a -d "$withval/lib" -a -f "$withval/include/svrcore.h" ; then - HAVE_SVRCORE=1 - echo "$ac_t""using $withval" 1>&6 - SVRCORE_CFLAGS="-I$withval/include" - SVRCORE_LIBS="-L$withval/lib" - fi -else - HAVE_SVRCORE= -fi - - - # check for --with-svrcore-inc - # Check whether --with-svrcore-inc or --without-svrcore-inc was given. -if test "${with_svrcore_inc+set}" = set; then - withval="$with_svrcore_inc" - - if test -n "$withval" -a -f "$withval"/svrcore.h - then - echo "$ac_t""using $withval" 1>&6 - SVRCORE_CFLAGS="-I$withval" - else - echo - { echo "configure: error: $withval not found" 1>&2; exit 1; } - fi - -fi - - - # check for --with-svrcore-lib - # Check whether --with-svrcore-lib or --without-svrcore-lib was given. -if test "${with_svrcore_lib+set}" = set; then - withval="$with_svrcore_lib" - - if test -n "$withval" -a -d "$withval" - then - echo "$ac_t""using $withval" 1>&6 - SVRCORE_LIBS="-L$withval" - else - echo - { echo "configure: error: $withval not found" 1>&2; exit 1; } - fi - -fi - - - if test -z "$SVRCORE_CFLAGS" -o -z "$SVRCORE_LIBS" ; then - echo "$ac_t""no" 1>&6 - else - HAVE_SVRCORE=1 - fi - - - if test -n "$HAVE_SVRCORE" ; then - USE_NSS=1 - HAVE_SVRCORE=1 - - no_nspr=no - if test -z "$SVRCORE_CFLAGS" -o -z "$SVRCORE_LIBS" ; then - if test -n "$_SYSTEM_SVRCORE"; then - - if test -n "$HAVE_SVRCORE" ; then - no_svrcore="" - echo $ac_n "checking Trying pkg-config svrcore""... $ac_c" 1>&6 -echo "configure:1042: checking Trying pkg-config svrcore" >&5 - # Extract the first word of "pkg-config", so it can be a program name with args. -set dummy pkg-config; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1046: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - case "$PKG_CONFIG" in - /*) - ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. - ;; - ?:/*) - ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. - ;; - *) - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" - break - fi - done - IFS="$ac_save_ifs" - ;; -esac -fi -PKG_CONFIG="$ac_cv_path_PKG_CONFIG" -if test -n "$PKG_CONFIG"; then - echo "$ac_t""$PKG_CONFIG" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - if test -n "$PKG_CONFIG"; then - if $PKG_CONFIG --exists svrcore-devel; then - echo $ac_n "checking using SVRCORE from package svrcore""... $ac_c" 1>&6 -echo "configure:1081: checking using SVRCORE from package svrcore" >&5 - SVRCORE_CFLAGS=`$PKG_CONFIG --cflags-only-I svrcore-devel` - SVRCORE_LIBS=`$PKG_CONFIG --libs-only-L svrcore-devel` - else - no_svrcore="yes" - fi - else - no_svrcore="yes" - fi - - if test -z "$no_svrcore"; then - echo "$ac_t""yes" 1>&6 - MOZ_NATIVE_SVRCORE=1 - else - echo "$ac_t""no" 1>&6 - fi - - - - - fi - - else - - if test -n "$HAVE_SVRCORE" ; then - svrcorelibpath=`echo ../../dist/*.OBJ/lib | cut -f1 -d' '` - savedir=`pwd` - cd $svrcorelibpath - abs_svrcorelibpath=`pwd` - cd $savedir - svrcoreincpath=../../dist/public/svrcore - savedir=`pwd` - cd $svrcoreincpath - abs_svrcoreincpath=`pwd` - cd $savedir - if test -f "$abs_svrcoreincpath/svrcore.h" ; then - SVRCORE_CFLAGS="-I$abs_svrcoreincpath" - fi - if test -d "$abs_svrcorelibpath" ; then - SVRCORE_LIBS="-L$abs_svrcorelibpath" - fi - if test -n "$SVRCORE_CFLAGS" -a -n "$SVRCORE_LIBS" ; then - echo $ac_n "checking using in-tree SVRCORE from $svrcoreincpath $svrcorelibpath""... $ac_c" 1>&6 -echo "configure:1124: checking using in-tree SVRCORE from $svrcoreincpath $svrcorelibpath" >&5 - - - echo "$ac_t""yes" 1>&6 - elif test -n "$HAVE_SVRCORE" ; then - echo $ac_n "checking could not find in-tree SVRCORE in ../../dist""... $ac_c" 1>&6 -echo "configure:1130: checking could not find in-tree SVRCORE in ../../dist" >&5 - echo "$ac_t""no" 1>&6 - else - # If user didn't ask for it, don't complain (really!) - echo "$ac_t""no" 1>&6 - fi - fi - - if test -z "$SVRCORE_CFLAGS" -o -z "$SVRCORE_LIBS"; then - - if test -n "$HAVE_SVRCORE" ; then - no_svrcore="" - echo $ac_n "checking Trying pkg-config svrcore""... $ac_c" 1>&6 -echo "configure:1143: checking Trying pkg-config svrcore" >&5 - # Extract the first word of "pkg-config", so it can be a program name with args. -set dummy pkg-config; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1147: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - case "$PKG_CONFIG" in - /*) - ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. - ;; - ?:/*) - ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. - ;; - *) - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" - break - fi - done - IFS="$ac_save_ifs" - ;; -esac -fi -PKG_CONFIG="$ac_cv_path_PKG_CONFIG" -if test -n "$PKG_CONFIG"; then - echo "$ac_t""$PKG_CONFIG" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - if test -n "$PKG_CONFIG"; then - if $PKG_CONFIG --exists svrcore-devel; then - echo $ac_n "checking using SVRCORE from package svrcore""... $ac_c" 1>&6 -echo "configure:1182: checking using SVRCORE from package svrcore" >&5 - SVRCORE_CFLAGS=`$PKG_CONFIG --cflags-only-I svrcore-devel` - SVRCORE_LIBS=`$PKG_CONFIG --libs-only-L svrcore-devel` - else - no_svrcore="yes" - fi - else - no_svrcore="yes" - fi - - if test -z "$no_svrcore"; then - echo "$ac_t""yes" 1>&6 - MOZ_NATIVE_SVRCORE=1 - else - echo "$ac_t""no" 1>&6 - fi - - - - - fi - - fi - fi - fi - fi -fi - -if test -n "$HAVE_SVRCORE" -a -z "$_SYSTEM_SVRCORE" ; then - if test -z "$SVRCORE_CFLAGS" -o -z "$SVRCORE_LIBS"; then - { echo "configure: error: --with-svrcore specified, but no svrcore could be found" 1>&2; exit 1; } - fi -fi - -# Check whether --with-system-nss or --without-system-nss was given. -if test "${with_system_nss+set}" = set; then - withval="$with_system_nss" - if test "$withval" = "yes"; then - _SYSTEM_NSS=1 - USE_NSS=1 - no_nspr=no - elif test "$withval" = "no" ; then - _SYSTEM_NSS=no - fi -else - _SYSTEM_NSS= -fi - - -if test "$_WIN32_MSVC"; then - _SYSTEM_NSS= -fi - -if test -z "$_SYSTEM_NSS" -o "$_SYSTEM_NSS" = "no" ; then - - echo $ac_n "checking for --with-nss""... $ac_c" 1>&6 -echo "configure:1238: checking for --with-nss" >&5 - # Check whether --with-nss or --without-nss was given. -if test "${with_nss+set}" = set; then - withval="$with_nss" - if test "$withval" = "yes"; then - USE_NSS=1 - echo "$ac_t""yes" 1>&6 - elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then - USE_NSS=1 - echo "$ac_t""using $withval" 1>&6 - NSS_CFLAGS="-I$withval/include" - NSS_LIBS="-L$withval/lib" - else - echo "$ac_t""no" 1>&6 - USE_NSS= - fi -else - echo "$ac_t""no" 1>&6 -fi - - - # check for --with-nss-inc - echo $ac_n "checking for --with-nss-inc""... $ac_c" 1>&6 -echo "configure:1261: checking for --with-nss-inc" >&5 - # Check whether --with-nss-inc or --without-nss-inc was given. -if test "${with_nss_inc+set}" = set; then - withval="$with_nss_inc" - - if test -f "$withval"/nss.h - then - echo "$ac_t""using $withval" 1>&6 - NSS_CFLAGS="-I$withval" - USE_NSS=1 - else - echo - { echo "configure: error: $withval not found" 1>&2; exit 1; } - fi - -else - echo "$ac_t""no" 1>&6 -fi - - - # check for --with-nss-lib - echo $ac_n "checking for --with-nss-lib""... $ac_c" 1>&6 -echo "configure:1283: checking for --with-nss-lib" >&5 - # Check whether --with-nss-lib or --without-nss-lib was given. -if test "${with_nss_lib+set}" = set; then - withval="$with_nss_lib" - - if test -d "$withval" - then - echo "$ac_t""using $withval" 1>&6 - NSS_LIBS="-L$withval" - USE_NSS=1 - else - echo - { echo "configure: error: $withval not found" 1>&2; exit 1; } - fi - -else - echo "$ac_t""no" 1>&6 -fi - - -fi - -if test -n "$USE_NSS" -a -z "$NSS_CFLAGS" -a -z "$NSS_LIBS" ; then - no_nspr=no - if test -z "$_SYSTEM_NSS" -o "$_SYSTEM_NSS" = "no" ; then - - nsslibpath=`echo ../../dist/*.OBJ/lib | cut -f1 -d' '` - savedir=`pwd` - cd $nsslibpath - abs_nsslibpath=`pwd` - cd $savedir - nssincpath=../../dist/public/nss - savedir=`pwd` - cd $nssincpath - abs_nssincpath=`pwd` - cd $savedir - if test -f "$abs_nssincpath/nss.h" ; then - NSS_CFLAGS="-I$abs_nssincpath" - fi - if test -d "$abs_nsslibpath" ; then - NSS_LIBS="-L$abs_nsslibpath" - fi - if test -n "$NSS_CFLAGS" -a -n "$NSS_LIBS" ; then - echo $ac_n "checking using in-tree NSS from $nssincpath $nsslibpath""... $ac_c" 1>&6 -echo "configure:1327: checking using in-tree NSS from $nssincpath $nsslibpath" >&5 - - - echo "$ac_t""yes" 1>&6 - else - echo $ac_n "checking could not find in-tree NSS in ../../dist""... $ac_c" 1>&6 -echo "configure:1333: checking could not find in-tree NSS in ../../dist" >&5 - echo "$ac_t""no" 1>&6 - fi - - fi - if test -z "$NSS_CFLAGS" -a "$_SYSTEM_NSS" != "no" ; then - -# Check whether --with-nss-prefix or --without-nss-prefix was given. -if test "${with_nss_prefix+set}" = set; then - withval="$with_nss_prefix" - nss_config_prefix="$withval" -else - nss_config_prefix="" -fi - - -# Check whether --with-nss-exec-prefix or --without-nss-exec-prefix was given. -if test "${with_nss_exec_prefix+set}" = set; then - withval="$with_nss_exec_prefix" - nss_config_exec_prefix="$withval" -else - nss_config_exec_prefix="" -fi - - - if test -n "$nss_config_exec_prefix"; then - nss_config_args="$nss_config_args --exec-prefix=$nss_config_exec_prefix" - if test -z "$NSS_CONFIG"; then - NSS_CONFIG=$nss_config_exec_prefix/bin/nss-config - fi - fi - if test -n "$nss_config_prefix"; then - nss_config_args="$nss_config_args --prefix=$nss_config_prefix" - if test -z "$NSS_CONFIG"; then - NSS_CONFIG=$nss_config_prefix/bin/nss-config - fi - fi - - if test -z "$NSS_CONFIG" ; then - unset ac_cv_path_NSS_CONFIG - # Extract the first word of "nss-config", so it can be a program name with args. -set dummy nss-config; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1376: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_path_NSS_CONFIG'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - case "$NSS_CONFIG" in - /*) - ac_cv_path_NSS_CONFIG="$NSS_CONFIG" # Let the user override the test with a path. - ;; - ?:/*) - ac_cv_path_NSS_CONFIG="$NSS_CONFIG" # Let the user override the test with a dos path. - ;; - *) - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_path_NSS_CONFIG="$ac_dir/$ac_word" - break - fi - done - IFS="$ac_save_ifs" - test -z "$ac_cv_path_NSS_CONFIG" && ac_cv_path_NSS_CONFIG="no" - ;; -esac -fi -NSS_CONFIG="$ac_cv_path_NSS_CONFIG" -if test -n "$NSS_CONFIG"; then - echo "$ac_t""$NSS_CONFIG" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - min_nss_version=3.9.0 - echo $ac_n "checking for NSS - version >= $min_nss_version (skipping)""... $ac_c" 1>&6 -echo "configure:1411: checking for NSS - version >= $min_nss_version (skipping)" >&5 - fi - - no_nss="" - if test "$NSS_CONFIG" = "no"; then - echo $ac_n "checking nss-config not found""... $ac_c" 1>&6 -echo "configure:1417: checking nss-config not found" >&5 - # Extract the first word of "pkg-config", so it can be a program name with args. -set dummy pkg-config; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1421: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - case "$PKG_CONFIG" in - /*) - ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. - ;; - ?:/*) - ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. - ;; - *) - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" - break - fi - done - IFS="$ac_save_ifs" - ;; -esac -fi -PKG_CONFIG="$ac_cv_path_PKG_CONFIG" -if test -n "$PKG_CONFIG"; then - echo "$ac_t""$PKG_CONFIG" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - if test -n "$PKG_CONFIG"; then - if $PKG_CONFIG --exists nss; then - echo $ac_n "checking using NSS from package nss""... $ac_c" 1>&6 -echo "configure:1456: checking using NSS from package nss" >&5 - NSS_CFLAGS=`$PKG_CONFIG --cflags-only-I nss` - NSS_LIBS=`$PKG_CONFIG --libs-only-L nss` - elif $PKG_CONFIG --exists mozilla-nss; then - echo $ac_n "checking using NSS from package mozilla-nss""... $ac_c" 1>&6 -echo "configure:1461: checking using NSS from package mozilla-nss" >&5 - NSS_CFLAGS=`$PKG_CONFIG --cflags-only-I mozilla-nss` - NSS_LIBS=`$PKG_CONFIG --libs-only-L mozilla-nss` - else - { echo "configure: error: system NSS not found" 1>&2; exit 1; } - no_nss="yes" - fi - else - no_nss="yes" - fi - else - echo $ac_n "checking using NSS from $NSS_CONFIG""... $ac_c" 1>&6 -echo "configure:1473: checking using NSS from $NSS_CONFIG" >&5 - NSS_CFLAGS=`$NSS_CONFIG $nss_config_args --cflags` - NSS_LIBS=`$NSS_CONFIG $nss_config_args --libs` - - nss_config_major_version=`$NSS_CONFIG $nss_config_args --version | \ - sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` - nss_config_minor_version=`$NSS_CONFIG $nss_config_args --version | \ - sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` - nss_config_micro_version=`$NSS_CONFIG $nss_config_args --version | \ - sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` - fi - - if test -z "$no_nss"; then - echo "$ac_t""yes" 1>&6 - MOZ_NATIVE_NSS=1 - else - echo "$ac_t""no" 1>&6 - fi - - - - - - - fi -fi - -if test -n "$USE_NSS" -a -z "$NSS_CFLAGS" -a -z "$NSS_LIBS" ; then - { echo "configure: error: Need to use NSS but no NSS was found" 1>&2; exit 1; } -fi - -# Check whether --with-system-nspr or --without-system-nspr was given. -if test "${with_system_nspr+set}" = set; then - withval="$with_system_nspr" - if test "$withval" = "yes"; then - _SYSTEM_NSPR=1 - no_nspr=no - elif test "$withval" = "no"; then - _SYSTEM_NSPR=no - fi -else - _SYSTEM_NSPR= -fi - - -if test "$_WIN32_MSVC"; then - _SYSTEM_NSPR=no -fi - -if test -z "$_SYSTEM_NSPR" -o "$_SYSTEM_NSPR" = "no" ; then - - # check for --with-nspr - echo $ac_n "checking for --with-nspr""... $ac_c" 1>&6 -echo "configure:1526: checking for --with-nspr" >&5 - # Check whether --with-nspr or --without-nspr was given. -if test "${with_nspr+set}" = set; then - withval="$with_nspr" - - if test "$withval" = "no" ; then - echo "$ac_t""no" 1>&6 - no_nspr="yes" - elif test "$withval" = "yes" ; then - echo "$ac_t""yes" 1>&6 - no_nspr="no" - elif test -f "$withval"/include/nspr.h -a -d "$withval"/lib - then - echo "$ac_t""using $withval" 1>&6 - NSPR_CFLAGS="-I$withval/include" - NSPR_LIBS="-L$withval/lib" - else - echo - { echo "configure: error: $withval not found" 1>&2; exit 1; } - fi - -else - echo "$ac_t""no" 1>&6 -fi - - - # check for --with-nspr-inc - echo $ac_n "checking for --with-nspr-inc""... $ac_c" 1>&6 -echo "configure:1554: checking for --with-nspr-inc" >&5 - # Check whether --with-nspr-inc or --without-nspr-inc was given. -if test "${with_nspr_inc+set}" = set; then - withval="$with_nspr_inc" - - if test -f "$withval"/nspr.h - then - echo "$ac_t""using $withval" 1>&6 - NSPR_CFLAGS="-I$withval" - else - echo - { echo "configure: error: $withval not found" 1>&2; exit 1; } - fi - -else - echo "$ac_t""no" 1>&6 -fi - - - # check for --with-nspr-lib - echo $ac_n "checking for --with-nspr-lib""... $ac_c" 1>&6 -echo "configure:1575: checking for --with-nspr-lib" >&5 - # Check whether --with-nspr-lib or --without-nspr-lib was given. -if test "${with_nspr_lib+set}" = set; then - withval="$with_nspr_lib" - - if test -d "$withval" - then - echo "$ac_t""using $withval" 1>&6 - NSPR_LIBS="-L$withval" - else - echo - { echo "configure: error: $withval not found" 1>&2; exit 1; } - fi - -else - echo "$ac_t""no" 1>&6 -fi - - -fi - -if test "$no_nspr" = "no" -a -z "$NSPR_CFLAGS" -a -z "$NSPR_LIBS" ; then - if test -z "$_SYSTEM_NSPR" -o "$_SYSTEM_NSPR" = "no" ; then - - echo $ac_n "checking checking for in-tree NSPR from ../../dist""... $ac_c" 1>&6 -echo "configure:1600: checking checking for in-tree NSPR from ../../dist" >&5 - for nsprpath in "../../dist" "../../dist"/*.OBJ ; do - savedir=`pwd` - cd $nsprpath - abs_nsprpath=`pwd` - cd $savedir - if test -f "$abs_nsprpath/include/nspr/nspr.h" ; then - NSPR_CFLAGS="-I$abs_nsprpath/include/nspr" - elif test -f "$abs_nsprpath/include/nspr.h" ; then - NSPR_CFLAGS="-I$abs_nsprpath/include" - fi - if test -d "$abs_nsprpath/lib" ; then - NSPR_LIBS="-L$abs_nsprpath/lib" - fi - if test -n "$NSPR_CFLAGS" -a -n "$NSPR_LIBS" ; then - break - fi - done - if test -n "$NSPR_CFLAGS" -a -n "$NSPR_LIBS" ; then - - - echo "$ac_t""yes" 1>&6 - else - echo "$ac_t""no" 1>&6 - fi - - fi - if test -z "$NSPR_CFLAGS" -a "$_SYSTEM_NSPR" != "no" ; then - -# Check whether --with-nspr-prefix or --without-nspr-prefix was given. -if test "${with_nspr_prefix+set}" = set; then - withval="$with_nspr_prefix" - nspr_config_prefix="$withval" -else - nspr_config_prefix="" -fi - - -# Check whether --with-nspr-exec-prefix or --without-nspr-exec-prefix was given. -if test "${with_nspr_exec_prefix+set}" = set; then - withval="$with_nspr_exec_prefix" - nspr_config_exec_prefix="$withval" -else - nspr_config_exec_prefix="" -fi - - - if test -n "$nspr_config_exec_prefix"; then - nspr_config_args="$nspr_config_args --exec-prefix=$nspr_config_exec_prefix" - if test -z "$NSPR_CONFIG"; then - NSPR_CONFIG=$nspr_config_exec_prefix/bin/nspr-config - fi - fi - if test -n "$nspr_config_prefix"; then - nspr_config_args="$nspr_config_args --prefix=$nspr_config_prefix" - if test -z "$NSPR_CONFIG"; then - NSPR_CONFIG=$nspr_config_prefix/bin/nspr-config - fi - fi - - if test -z "$NSPR_CONFIG" ; then - unset ac_cv_path_NSPR_CONFIG - # Extract the first word of "nspr-config", so it can be a program name with args. -set dummy nspr-config; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1665: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_path_NSPR_CONFIG'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - case "$NSPR_CONFIG" in - /*) - ac_cv_path_NSPR_CONFIG="$NSPR_CONFIG" # Let the user override the test with a path. - ;; - ?:/*) - ac_cv_path_NSPR_CONFIG="$NSPR_CONFIG" # Let the user override the test with a dos path. - ;; - *) - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_path_NSPR_CONFIG="$ac_dir/$ac_word" - break - fi - done - IFS="$ac_save_ifs" - test -z "$ac_cv_path_NSPR_CONFIG" && ac_cv_path_NSPR_CONFIG="no" - ;; -esac -fi -NSPR_CONFIG="$ac_cv_path_NSPR_CONFIG" -if test -n "$NSPR_CONFIG"; then - echo "$ac_t""$NSPR_CONFIG" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - min_nspr_version=4.0.0 - echo $ac_n "checking for NSPR - version >= $min_nspr_version (skipping)""... $ac_c" 1>&6 -echo "configure:1700: checking for NSPR - version >= $min_nspr_version (skipping)" >&5 - fi - - no_nspr="" - if test "$NSPR_CONFIG" = "no"; then - echo $ac_n "checking nspr-config not found""... $ac_c" 1>&6 -echo "configure:1706: checking nspr-config not found" >&5 - # Extract the first word of "pkg-config", so it can be a program name with args. -set dummy pkg-config; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1710: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - case "$PKG_CONFIG" in - /*) - ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. - ;; - ?:/*) - ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path. - ;; - *) - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word" - break - fi - done - IFS="$ac_save_ifs" - ;; -esac -fi -PKG_CONFIG="$ac_cv_path_PKG_CONFIG" -if test -n "$PKG_CONFIG"; then - echo "$ac_t""$PKG_CONFIG" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - if test -n "$PKG_CONFIG"; then - if $PKG_CONFIG --exists nspr; then - echo $ac_n "checking using NSPR from package nspr""... $ac_c" 1>&6 -echo "configure:1745: checking using NSPR from package nspr" >&5 - NSPR_CFLAGS=`$PKG_CONFIG --cflags-only-I nspr` - NSPR_LIBS=`$PKG_CONFIG --libs-only-L nspr` - elif $PKG_CONFIG --exists mozilla-nspr; then - echo $ac_n "checking using NSPR from package mozilla-nspr""... $ac_c" 1>&6 -echo "configure:1750: checking using NSPR from package mozilla-nspr" >&5 - NSPR_CFLAGS=`$PKG_CONFIG --cflags-only-I mozilla-nspr` - NSPR_LIBS=`$PKG_CONFIG --libs-only-L mozilla-nspr` - else - echo $ac_n "checking system NSPR not found""... $ac_c" 1>&6 -echo "configure:1755: checking system NSPR not found" >&5 - no_nspr="yes" - fi - else - no_nspr="yes" - fi - else - echo $ac_n "checking using NSPR from $NSPR_CONFIG""... $ac_c" 1>&6 -echo "configure:1763: checking using NSPR from $NSPR_CONFIG" >&5 - NSPR_CFLAGS=`$NSPR_CONFIG $nspr_config_args --cflags` - NSPR_LIBS=`$NSPR_CONFIG $nspr_config_args --libs` - - nspr_config_major_version=`$NSPR_CONFIG $nspr_config_args --version | \ - sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` - nspr_config_minor_version=`$NSPR_CONFIG $nspr_config_args --version | \ - sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` - nspr_config_micro_version=`$NSPR_CONFIG $nspr_config_args --version | \ - sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` - fi - - if test -z "$no_nspr"; then - echo "$ac_t""yes" 1>&6 - MOZ_NATIVE_NSPR=1 - else - echo "$ac_t""no" 1>&6 - fi - - - - - - - fi -fi - -if test -z "$NSPR_CFLAGS" -o -z "$NSPR_LIBS" ; then - if test -n "$MOZILLA_CLIENT" ; then - NSPR_CFLAGS='-I$(DIST)/include/nspr' - NSPR_LIBS='-L$(DIST)/lib '"-lplds$NSPR_VERSION -lplc$NSPR_VERSION -lnspr$NSPR_VERSION" - if test "$_WIN32_MSVC"; then - NSPR_LIBS='$(DIST)/lib/nspr'$NSPR_VERSION'.lib $(DIST)/lib/plc'$NSPR_VERSION'.lib $(DIST)/lib/plds'$NSPR_VERSION'.lib ' - fi - LIBS_ALREADY_SET=1 - - elif test "$no_nspr" = "no" ; then - { echo "configure: error: Need to use NSPR but no NSPR was found" 1>&2; exit 1; } - fi -fi - - -case "$target" in -*-cygwin*) USE_WINDOWS_PATHS=1 ;; -*-mingw*) CONVERT_LIBPATH=1 ;; -esac - -if test -n "$_WIN32_MSVC" -a -n "$USE_WINDOWS_PATHS" ; then - if test -n "$NSPR_CFLAGS" -a -z "$LIBS_ALREADY_SET" ; then - path=`echo $NSPR_CFLAGS | sed -e 's/^-I//'` - path=`cygpath -m $path` - NSPR_CFLAGS="/I$path" - fi - if test -n "$NSPR_LIBS" -a -z "$LIBS_ALREADY_SET" ; then - path=`echo $NSPR_LIBS | sed -e 's/^-L//'` - path=`cygpath -m $path` - NSPR_LIBS="/LIBPATH:$path" - fi - - if test -n "$NSS_CFLAGS" ; then - path=`echo $NSS_CFLAGS | sed -e 's/^-I//'` - path=`cygpath -m $path` - NSS_CFLAGS="/I$path" - fi - - if test -n "$NSS_LIBS" ; then - path=`echo $NSS_LIBS | sed -e 's/^-L//'` - path=`cygpath -m $path` - NSS_LIBS="/LIBPATH:$path" - fi - - if test -n "$SVRCORE_CFLAGS" ; then - path=`echo $SVRCORE_CFLAGS | sed -e 's/^-I//'` - path=`cygpath -m $path` - SVRCORE_CFLAGS="/I$path" - fi - - if test -n "$SVRCORE_LIBS" ; then - path=`echo $SVRCORE_LIBS | sed -e 's/^-L//'` - path=`cygpath -m $path` - SVRCORE_LIBS="/LIBPATH:$path" - fi -fi - -if test -n "$_WIN32_MSVC" -a -n "$NSPR_LIBS" -a -n "$CONVERT_LIBPATH" -a -z "$LIBS_ALREADY_SET" ; then - path=`echo $NSPR_LIBS | sed -e 's/^-L//'` - path=`cd "$path" ; pwd -W` - NSPR_LIBS="/LIBPATH:$path" -fi -if test -n "$_WIN32_MSVC" -a -n "$NSS_LIBS" -a -n "$CONVERT_LIBPATH" ; then - path=`echo $NSS_LIBS | sed -e 's/^-L//'` - path=`cd "$path" ; pwd -W` - NSS_LIBS="/LIBPATH:$path" -fi -if test -n "$_WIN32_MSVC" -a -n "$SVRCORE_LIBS" -a -n "$CONVERT_LIBPATH" ; then - path=`echo $SVRCORE_LIBS | sed -e 's/^-L//'` - path=`cd "$path" ; pwd -W` - SVRCORE_LIBS="/LIBPATH:$path" -fi - -case "$target" in - -*-aix*) - case "${target_os}" in - aix3.2*) - USE_NSPR_THREADS=1 - ;; - *) - USE_PTHREADS=1 - ;; - esac - ;; - -esac - -if test -z "$CC"; then - case "$target" in - - *-aix*) - if test -z "$USE_NSPR_THREADS"; then - CC=xlC_r - else - CC=xlC - fi - ;; - - *-hpux*) - CC=cc - ;; - - *-irix*) - CC=cc - ;; - - *-osf*) - CC=cc - ;; - - *-solaris*) - CC=cc - ;; - - esac -fi - -if test -z "$CXX"; then - case "$target" in - - *-aix*) - if test -z "$USE_NSPR_THREADS"; then - CXX=xlC_r - else - CXX=xlC - fi - ;; - - *-hpux*) - case "${target_os}" in - hpux10.30) - CXX=aCC - ;; - hpux11.*) - CXX=aCC - ;; - *) - CXX=CC - ;; - esac - ;; - - *-irix*) - CXX=CC - ;; - - *-osf*) - CXX=cxx - ;; - - *-solaris*) - CXX=CC - ;; - - esac -fi - -if test -z "$SKIP_PATH_CHECKS"; then - # Extract the first word of "$WHOAMI whoami", so it can be a program name with args. -set dummy $WHOAMI whoami; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:1952: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_path_WHOAMI'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - case "$WHOAMI" in - /*) - ac_cv_path_WHOAMI="$WHOAMI" # Let the user override the test with a path. - ;; - ?:/*) - ac_cv_path_WHOAMI="$WHOAMI" # Let the user override the test with a dos path. - ;; - *) - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_path_WHOAMI="$ac_dir/$ac_word" - break - fi - done - IFS="$ac_save_ifs" - test -z "$ac_cv_path_WHOAMI" && ac_cv_path_WHOAMI="echo not_whoami" - ;; -esac -fi -WHOAMI="$ac_cv_path_WHOAMI" -if test -n "$WHOAMI"; then - echo "$ac_t""$WHOAMI" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - -fi - -if test -n "$MOZ_DEBUG"; then - cat >> confdefs.h <<\EOF -#define DEBUG 1 -EOF - - DEFINES="$DEFINES -UNDEBUG" - case "${target_os}" in - beos*) - DEFINES="$DEFINES -DDEBUG_${USER}" - ;; - msvc*|mks*|cygwin*|mingw*|os2*) - DEFINES="$DEFINES -DDEBUG_`echo ${USERNAME} | sed -e 's| |_|g'`" - ;; - *) - DEFINES="$MOZ_DEBUG_ENABLE_DEFS -DDEBUG_`$WHOAMI`" - ;; - esac - MFLAGS="BUILD_DEBUG=full" -else - cat >> confdefs.h <<\EOF -#define NDEBUG 1 -EOF - - DEFINES="$DEFINES -UDEBUG" - MFLAGS="BUILD_DEBUG=optimize" -fi - -if test -n "$MOZILLA_CLIENT"; then - NSINSTALL='$(dist_bindir)/nsinstall' -fi - -if test -z "$SKIP_COMPILER_CHECKS"; then -cross_compiling=no -if test -n "$host" ; then - case $target in - *-darwin*) - if test "$host" != "$target" ; then - cross_compiling=yes - fi - ;; - *) - if test "$host" = "$build" ; then - cross_compiling=no - elif test "$host" != "$target" -o "$host" != "$build" ; then - cross_compiling=yes - fi - ;; - esac -fi -if test "$cross_compiling" = "no"; then - for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl -do -# Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2042: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$CXX"; then - ac_cv_prog_CXX="$CXX" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_CXX="$ac_prog" - break - fi - done - IFS="$ac_save_ifs" -fi -fi -CXX="$ac_cv_prog_CXX" -if test -n "$CXX"; then - echo "$ac_t""$CXX" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - -test -n "$CXX" && break -done -test -n "$CXX" || CXX="gcc" - - -echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 -echo "configure:2074: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 - -ac_ext=C -# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cxx_cross - -cat > conftest.$ac_ext << EOF - -#line 2085 "configure" -#include "confdefs.h" - -int main(){return(0);} -EOF -if { (eval echo configure:2090: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - ac_cv_prog_cxx_works=yes - # If we can't run a trivial program, we are probably using a cross compiler. - if (./conftest; exit) 2>/dev/null; then - ac_cv_prog_cxx_cross=no - else - ac_cv_prog_cxx_cross=yes - fi -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - ac_cv_prog_cxx_works=no -fi -rm -fr conftest* -ac_ext=c -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CPP $CPPFLAGS' -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cc_cross - -echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 -if test $ac_cv_prog_cxx_works = no; then - { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } -fi -echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 -echo "configure:2116: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 -echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 -cross_compiling=$ac_cv_prog_cxx_cross - -echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 -echo "configure:2121: checking whether we are using GNU C++" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.C <&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then - ac_cv_prog_gxx=yes -else - ac_cv_prog_gxx=no -fi -fi - -echo "$ac_t""$ac_cv_prog_gxx" 1>&6 - -if test $ac_cv_prog_gxx = yes; then - GXX=yes -else - GXX= -fi - -ac_test_CXXFLAGS="${CXXFLAGS+set}" -ac_save_CXXFLAGS="$CXXFLAGS" -CXXFLAGS= -echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 -echo "configure:2149: checking whether ${CXX-g++} accepts -g" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - echo 'void f(){}' > conftest.cc -if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then - ac_cv_prog_cxx_g=yes -else - ac_cv_prog_cxx_g=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 -if test "$ac_test_CXXFLAGS" = set; then - CXXFLAGS="$ac_save_CXXFLAGS" -elif test $ac_cv_prog_cxx_g = yes; then - if test "$GXX" = yes; then - CXXFLAGS="-g -O2" - else - CXXFLAGS="-g" - fi -else - if test "$GXX" = yes; then - CXXFLAGS="-O2" - else - CXXFLAGS= - fi -fi - - if test "$CXX" = "cl" -a -z "$CC"; then - CC=$CXX - else - # Extract the first word of "gcc", so it can be a program name with args. -set dummy gcc; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2186: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_CC="gcc" - break - fi - done - IFS="$ac_save_ifs" -fi -fi -CC="$ac_cv_prog_CC" -if test -n "$CC"; then - echo "$ac_t""$CC" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - -if test -z "$CC"; then - # Extract the first word of "cc", so it can be a program name with args. -set dummy cc; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2216: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_prog_rejected=no - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then - ac_prog_rejected=yes - continue - fi - ac_cv_prog_CC="cc" - break - fi - done - IFS="$ac_save_ifs" -if test $ac_prog_rejected = yes; then - # We found a bogon in the path, so make sure we never use it. - set dummy $ac_cv_prog_CC - shift - if test $# -gt 0; then - # We chose a different compiler from the bogus one. - # However, it has the same basename, so the bogon will be chosen - # first if we set CC to just the basename; use the full file name. - shift - set dummy "$ac_dir/$ac_word" "$@" - shift - ac_cv_prog_CC="$@" - fi -fi -fi -fi -CC="$ac_cv_prog_CC" -if test -n "$CC"; then - echo "$ac_t""$CC" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - if test -z "$CC"; then - case "`uname -s`" in - *win32* | *WIN32*) - # Extract the first word of "cl", so it can be a program name with args. -set dummy cl; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2267: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_CC="cl" - break - fi - done - IFS="$ac_save_ifs" -fi -fi -CC="$ac_cv_prog_CC" -if test -n "$CC"; then - echo "$ac_t""$CC" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - ;; - esac - fi - test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } -fi - -echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 -echo "configure:2299: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 - -ac_ext=c -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CPP $CPPFLAGS' -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cc_cross - -cat > conftest.$ac_ext << EOF - -#line 2310 "configure" -#include "confdefs.h" - -main(){return(0);} -EOF -if { (eval echo configure:2315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - ac_cv_prog_cc_works=yes - # If we can't run a trivial program, we are probably using a cross compiler. - if (./conftest; exit) 2>/dev/null; then - ac_cv_prog_cc_cross=no - else - ac_cv_prog_cc_cross=yes - fi -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - ac_cv_prog_cc_works=no -fi -rm -fr conftest* -ac_ext=c -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CPP $CPPFLAGS' -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cc_cross - -echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 -if test $ac_cv_prog_cc_works = no; then - { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } -fi -echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 -echo "configure:2341: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 -echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 -cross_compiling=$ac_cv_prog_cc_cross - -echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 -echo "configure:2346: checking whether we are using GNU C" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.c <&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then - ac_cv_prog_gcc=yes -else - ac_cv_prog_gcc=no -fi -fi - -echo "$ac_t""$ac_cv_prog_gcc" 1>&6 - -if test $ac_cv_prog_gcc = yes; then - GCC=yes -else - GCC= -fi - -ac_test_CFLAGS="${CFLAGS+set}" -ac_save_CFLAGS="$CFLAGS" -CFLAGS= -echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 -echo "configure:2374: checking whether ${CC-cc} accepts -g" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - echo 'void f(){}' > conftest.c -if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then - ac_cv_prog_cc_g=yes -else - ac_cv_prog_cc_g=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 -if test "$ac_test_CFLAGS" = set; then - CFLAGS="$ac_save_CFLAGS" -elif test $ac_cv_prog_cc_g = yes; then - if test "$GCC" = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-g" - fi -else - if test "$GCC" = yes; then - CFLAGS="-O2" - else - CFLAGS= - fi -fi - - fi - echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 -echo "configure:2407: checking how to run the C preprocessor" >&5 -# On Suns, sometimes $CPP names a directory. -if test -n "$CPP" && test -d "$CPP"; then - CPP= -fi -if test -z "$CPP"; then -if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - # This must be in double quotes, not single quotes, because CPP may get - # substituted into the Makefile and "${CC-cc}" will confuse make. - CPP="${CC-cc} -E" - # On the NeXT, cc -E runs the code through the compiler's parser, - # not just through cpp. - cat > conftest.$ac_ext < -Syntax Error -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2428: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - : -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - CPP="${CC-cc} -E -traditional-cpp" - cat > conftest.$ac_ext < -Syntax Error -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2445: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - : -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - CPP="${CC-cc} -nologo -E" - cat > conftest.$ac_ext < -Syntax Error -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:2462: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - : -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - CPP=/lib/cpp -fi -rm -f conftest* -fi -rm -f conftest* -fi -rm -f conftest* - ac_cv_prog_CPP="$CPP" -fi - CPP="$ac_cv_prog_CPP" -else - ac_cv_prog_CPP="$CPP" -fi -echo "$ac_t""$CPP" 1>&6 - - # Extract the first word of "ranlib", so it can be a program name with args. -set dummy ranlib; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2489: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$RANLIB"; then - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_RANLIB="ranlib" - break - fi - done - IFS="$ac_save_ifs" - test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" -fi -fi -RANLIB="$ac_cv_prog_RANLIB" -if test -n "$RANLIB"; then - echo "$ac_t""$RANLIB" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - for ac_prog in as -do -# Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2521: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_path_AS'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - case "$AS" in - /*) - ac_cv_path_AS="$AS" # Let the user override the test with a path. - ;; - ?:/*) - ac_cv_path_AS="$AS" # Let the user override the test with a dos path. - ;; - *) - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_path_AS="$ac_dir/$ac_word" - break - fi - done - IFS="$ac_save_ifs" - ;; -esac -fi -AS="$ac_cv_path_AS" -if test -n "$AS"; then - echo "$ac_t""$AS" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - -test -n "$AS" && break -done -test -n "$AS" || AS="$CC" - - for ac_prog in ar -do -# Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2562: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_path_AR'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - case "$AR" in - /*) - ac_cv_path_AR="$AR" # Let the user override the test with a path. - ;; - ?:/*) - ac_cv_path_AR="$AR" # Let the user override the test with a dos path. - ;; - *) - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_path_AR="$ac_dir/$ac_word" - break - fi - done - IFS="$ac_save_ifs" - ;; -esac -fi -AR="$ac_cv_path_AR" -if test -n "$AR"; then - echo "$ac_t""$AR" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - -test -n "$AR" && break -done -test -n "$AR" || AR="echo not_ar" - - for ac_prog in ld link -do -# Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2603: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - case "$LD" in - /*) - ac_cv_path_LD="$LD" # Let the user override the test with a path. - ;; - ?:/*) - ac_cv_path_LD="$LD" # Let the user override the test with a dos path. - ;; - *) - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_path_LD="$ac_dir/$ac_word" - break - fi - done - IFS="$ac_save_ifs" - ;; -esac -fi -LD="$ac_cv_path_LD" -if test -n "$LD"; then - echo "$ac_t""$LD" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - -test -n "$LD" && break -done -test -n "$LD" || LD="echo not_ld" - - for ac_prog in strip -do -# Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2644: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_path_STRIP'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - case "$STRIP" in - /*) - ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. - ;; - ?:/*) - ac_cv_path_STRIP="$STRIP" # Let the user override the test with a dos path. - ;; - *) - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_path_STRIP="$ac_dir/$ac_word" - break - fi - done - IFS="$ac_save_ifs" - ;; -esac -fi -STRIP="$ac_cv_path_STRIP" -if test -n "$STRIP"; then - echo "$ac_t""$STRIP" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - -test -n "$STRIP" && break -done -test -n "$STRIP" || STRIP="echo not_strip" - - for ac_prog in windres -do -# Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2685: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_path_WINDRES'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - case "$WINDRES" in - /*) - ac_cv_path_WINDRES="$WINDRES" # Let the user override the test with a path. - ;; - ?:/*) - ac_cv_path_WINDRES="$WINDRES" # Let the user override the test with a dos path. - ;; - *) - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_path_WINDRES="$ac_dir/$ac_word" - break - fi - done - IFS="$ac_save_ifs" - ;; -esac -fi -WINDRES="$ac_cv_path_WINDRES" -if test -n "$WINDRES"; then - echo "$ac_t""$WINDRES" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - -test -n "$WINDRES" && break -done -test -n "$WINDRES" || WINDRES="echo not_windres" - - if test -z "$HOST_CC"; then - HOST_CC="$CC" - fi - if test -z "$HOST_CFLAGS"; then - HOST_CFLAGS="$CFLAGS" - fi -else - echo "cross compiling from $host to $target" - - _SAVE_CC="$CC" - _SAVE_CFLAGS="$CFLAGS" - _SAVE_LDFLAGS="$LDFLAGS" - - echo $ac_n "checking for $host compiler""... $ac_c" 1>&6 -echo "configure:2735: checking for $host compiler" >&5 - for ac_prog in gcc cc /usr/ucb/cc -do -# Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2741: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_HOST_CC'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$HOST_CC"; then - ac_cv_prog_HOST_CC="$HOST_CC" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_HOST_CC="$ac_prog" - break - fi - done - IFS="$ac_save_ifs" -fi -fi -HOST_CC="$ac_cv_prog_HOST_CC" -if test -n "$HOST_CC"; then - echo "$ac_t""$HOST_CC" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - -test -n "$HOST_CC" && break -done -test -n "$HOST_CC" || HOST_CC="""" - - if test -z "$HOST_CC"; then - { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } - fi - echo "$ac_t""$HOST_CC" 1>&6 - if test -z "$HOST_CFLAGS"; then - HOST_CFLAGS="$CFLAGS" - fi - if test -z "$HOST_LDFLAGS"; then - HOST_LDFLAGS="$LDFLAGS" - fi - - CC=$_SAVE_CC - CFLAGS=$_SAVE_CFLAGS - LDFLAGS=$_SAVE_LDFLAGS - - for ac_prog in $CC "${target_alias}-gcc" "${target}-gcc" -do -# Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2791: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_CC="$ac_prog" - break - fi - done - IFS="$ac_save_ifs" -fi -fi -CC="$ac_cv_prog_CC" -if test -n "$CC"; then - echo "$ac_t""$CC" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - -test -n "$CC" && break -done -test -n "$CC" || CC="echo" - - unset ac_cv_prog_CC - # Extract the first word of "gcc", so it can be a program name with args. -set dummy gcc; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2825: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_CC="gcc" - break - fi - done - IFS="$ac_save_ifs" -fi -fi -CC="$ac_cv_prog_CC" -if test -n "$CC"; then - echo "$ac_t""$CC" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - -if test -z "$CC"; then - # Extract the first word of "cc", so it can be a program name with args. -set dummy cc; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2855: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_prog_rejected=no - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then - ac_prog_rejected=yes - continue - fi - ac_cv_prog_CC="cc" - break - fi - done - IFS="$ac_save_ifs" -if test $ac_prog_rejected = yes; then - # We found a bogon in the path, so make sure we never use it. - set dummy $ac_cv_prog_CC - shift - if test $# -gt 0; then - # We chose a different compiler from the bogus one. - # However, it has the same basename, so the bogon will be chosen - # first if we set CC to just the basename; use the full file name. - shift - set dummy "$ac_dir/$ac_word" "$@" - shift - ac_cv_prog_CC="$@" - fi -fi -fi -fi -CC="$ac_cv_prog_CC" -if test -n "$CC"; then - echo "$ac_t""$CC" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - if test -z "$CC"; then - case "`uname -s`" in - *win32* | *WIN32*) - # Extract the first word of "cl", so it can be a program name with args. -set dummy cl; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:2906: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_CC="cl" - break - fi - done - IFS="$ac_save_ifs" -fi -fi -CC="$ac_cv_prog_CC" -if test -n "$CC"; then - echo "$ac_t""$CC" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - ;; - esac - fi - test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } -fi - -echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 -echo "configure:2938: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 - -ac_ext=c -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CPP $CPPFLAGS' -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cc_cross - -cat > conftest.$ac_ext << EOF - -#line 2949 "configure" -#include "confdefs.h" - -main(){return(0);} -EOF -if { (eval echo configure:2954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - ac_cv_prog_cc_works=yes - # If we can't run a trivial program, we are probably using a cross compiler. - if (./conftest; exit) 2>/dev/null; then - ac_cv_prog_cc_cross=no - else - ac_cv_prog_cc_cross=yes - fi -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - ac_cv_prog_cc_works=no -fi -rm -fr conftest* -ac_ext=c -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CPP $CPPFLAGS' -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cc_cross - -echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 -if test $ac_cv_prog_cc_works = no; then - { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } -fi -echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 -echo "configure:2980: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 -echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 -cross_compiling=$ac_cv_prog_cc_cross - -echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 -echo "configure:2985: checking whether we are using GNU C" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.c <&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then - ac_cv_prog_gcc=yes -else - ac_cv_prog_gcc=no -fi -fi - -echo "$ac_t""$ac_cv_prog_gcc" 1>&6 - -if test $ac_cv_prog_gcc = yes; then - GCC=yes -else - GCC= -fi - -ac_test_CFLAGS="${CFLAGS+set}" -ac_save_CFLAGS="$CFLAGS" -CFLAGS= -echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 -echo "configure:3013: checking whether ${CC-cc} accepts -g" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - echo 'void f(){}' > conftest.c -if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then - ac_cv_prog_cc_g=yes -else - ac_cv_prog_cc_g=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 -if test "$ac_test_CFLAGS" = set; then - CFLAGS="$ac_save_CFLAGS" -elif test $ac_cv_prog_cc_g = yes; then - if test "$GCC" = yes; then - CFLAGS="-g -O2" - else - CFLAGS="-g" - fi -else - if test "$GCC" = yes; then - CFLAGS="-O2" - else - CFLAGS= - fi -fi - - for ac_prog in $CXX "${target_alias}-g++" "${target}-g++" -do -# Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:3049: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$CXX"; then - ac_cv_prog_CXX="$CXX" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_CXX="$ac_prog" - break - fi - done - IFS="$ac_save_ifs" -fi -fi -CXX="$ac_cv_prog_CXX" -if test -n "$CXX"; then - echo "$ac_t""$CXX" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - -test -n "$CXX" && break -done -test -n "$CXX" || CXX="echo" - - unset ac_cv_prog_CXX - for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl -do -# Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:3085: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$CXX"; then - ac_cv_prog_CXX="$CXX" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_CXX="$ac_prog" - break - fi - done - IFS="$ac_save_ifs" -fi -fi -CXX="$ac_cv_prog_CXX" -if test -n "$CXX"; then - echo "$ac_t""$CXX" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - -test -n "$CXX" && break -done -test -n "$CXX" || CXX="gcc" - - -echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6 -echo "configure:3117: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5 - -ac_ext=C -# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cxx_cross - -cat > conftest.$ac_ext << EOF - -#line 3128 "configure" -#include "confdefs.h" - -int main(){return(0);} -EOF -if { (eval echo configure:3133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - ac_cv_prog_cxx_works=yes - # If we can't run a trivial program, we are probably using a cross compiler. - if (./conftest; exit) 2>/dev/null; then - ac_cv_prog_cxx_cross=no - else - ac_cv_prog_cxx_cross=yes - fi -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - ac_cv_prog_cxx_works=no -fi -rm -fr conftest* -ac_ext=c -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CPP $CPPFLAGS' -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cc_cross - -echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6 -if test $ac_cv_prog_cxx_works = no; then - { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; } -fi -echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 -echo "configure:3159: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5 -echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6 -cross_compiling=$ac_cv_prog_cxx_cross - -echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6 -echo "configure:3164: checking whether we are using GNU C++" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.C <&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then - ac_cv_prog_gxx=yes -else - ac_cv_prog_gxx=no -fi -fi - -echo "$ac_t""$ac_cv_prog_gxx" 1>&6 - -if test $ac_cv_prog_gxx = yes; then - GXX=yes -else - GXX= -fi - -ac_test_CXXFLAGS="${CXXFLAGS+set}" -ac_save_CXXFLAGS="$CXXFLAGS" -CXXFLAGS= -echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6 -echo "configure:3192: checking whether ${CXX-g++} accepts -g" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - echo 'void f(){}' > conftest.cc -if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then - ac_cv_prog_cxx_g=yes -else - ac_cv_prog_cxx_g=no -fi -rm -f conftest* - -fi - -echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6 -if test "$ac_test_CXXFLAGS" = set; then - CXXFLAGS="$ac_save_CXXFLAGS" -elif test $ac_cv_prog_cxx_g = yes; then - if test "$GXX" = yes; then - CXXFLAGS="-g -O2" - else - CXXFLAGS="-g" - fi -else - if test "$GXX" = yes; then - CXXFLAGS="-O2" - else - CXXFLAGS= - fi -fi - - - for ac_prog in $RANLIB "${target_alias}-ranlib" "${target}-ranlib" -do -# Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:3229: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$RANLIB"; then - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_RANLIB="$ac_prog" - break - fi - done - IFS="$ac_save_ifs" -fi -fi -RANLIB="$ac_cv_prog_RANLIB" -if test -n "$RANLIB"; then - echo "$ac_t""$RANLIB" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - -test -n "$RANLIB" && break -done -test -n "$RANLIB" || RANLIB="echo" - - for ac_prog in $AR "${target_alias}-ar" "${target}-ar" -do -# Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:3264: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$AR"; then - ac_cv_prog_AR="$AR" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_AR="$ac_prog" - break - fi - done - IFS="$ac_save_ifs" -fi -fi -AR="$ac_cv_prog_AR" -if test -n "$AR"; then - echo "$ac_t""$AR" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - -test -n "$AR" && break -done -test -n "$AR" || AR="echo" - - for ac_prog in $AS "${target_alias}-as" "${target}-as" -do -# Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:3299: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$AS"; then - ac_cv_prog_AS="$AS" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_AS="$ac_prog" - break - fi - done - IFS="$ac_save_ifs" -fi -fi -AS="$ac_cv_prog_AS" -if test -n "$AS"; then - echo "$ac_t""$AS" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - -test -n "$AS" && break -done -test -n "$AS" || AS="echo" - - for ac_prog in $LD "${target_alias}-ld" "${target}-ld" -do -# Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:3334: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$LD"; then - ac_cv_prog_LD="$LD" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_LD="$ac_prog" - break - fi - done - IFS="$ac_save_ifs" -fi -fi -LD="$ac_cv_prog_LD" -if test -n "$LD"; then - echo "$ac_t""$LD" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - -test -n "$LD" && break -done -test -n "$LD" || LD="echo" - - for ac_prog in $STRIP "${target_alias}-strip" "${target}-strip" -do -# Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:3369: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$STRIP"; then - ac_cv_prog_STRIP="$STRIP" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_STRIP="$ac_prog" - break - fi - done - IFS="$ac_save_ifs" -fi -fi -STRIP="$ac_cv_prog_STRIP" -if test -n "$STRIP"; then - echo "$ac_t""$STRIP" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - -test -n "$STRIP" && break -done -test -n "$STRIP" || STRIP="echo" - - for ac_prog in $WINDRES "${target_alias}-windres" "${target}-windres" -do -# Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:3404: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$WINDRES"; then - ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_WINDRES="$ac_prog" - break - fi - done - IFS="$ac_save_ifs" -fi -fi -WINDRES="$ac_cv_prog_WINDRES" -if test -n "$WINDRES"; then - echo "$ac_t""$WINDRES" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - -test -n "$WINDRES" && break -done -test -n "$WINDRES" || WINDRES="echo" - -fi - -if test "$GCC" = "yes"; then - GNU_CC=1 -fi -if test "$GXX" = "yes"; then - GNU_CXX=1 -fi -if test "`echo | $AS -v 2>&1 | grep -c GNU`" != "0"; then - GNU_AS=1 -fi -rm -f a.out - -if test "$cross_compiling" = "yes"; then - CROSS_COMPILE=1 -else - CROSS_COMPILE= -fi - -echo $ac_n "checking for gcc -pipe support""... $ac_c" 1>&6 -echo "configure:3454: checking for gcc -pipe support" >&5 -if test -n "$GNU_CC" && test -n "$GNU_CXX" && test -n "$GNU_AS"; then - echo '#include ' > dummy-hello.c - echo 'int main() { printf("Hello World\n"); exit(0); }' >> dummy-hello.c - ${CC} -S dummy-hello.c -o dummy-hello.s 2>&5 - cat dummy-hello.s | ${AS} -o dummy-hello.S - 2>&5 - if test $? = 0; then - _res_as_stdin="yes" - else - _res_as_stdin="no" - fi - if test "$_res_as_stdin" = "yes"; then - _SAVE_CFLAGS=$CFLAGS - CFLAGS="$CFLAGS -pipe" - cat > conftest.$ac_ext < -int main() { -printf("Hello World\n"); -; return 0; } -EOF -if { (eval echo configure:3476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - rm -rf conftest* - _res_gcc_pipe="yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - _res_gcc_pipe="no" -fi -rm -f conftest* - CFLAGS=$_SAVE_CFLAGS - fi - if test "$_res_as_stdin" = "yes" && test "$_res_gcc_pipe" = "yes"; then - _res="yes"; - CFLAGS="$CFLAGS -pipe" - CXXFLAGS="$CXXFLAGS -pipe" - else - _res="no" - fi - rm -f dummy-hello.c dummy-hello.s dummy-hello.S dummy-hello a.out - echo "$ac_t""$_res" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - -fi # SKIP_COMPILER_CHECKS - -if test -z "$SKIP_PATH_CHECKS"; then - for ac_prog in perl5 perl -do -# Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:3509: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - case "$PERL" in - /*) - ac_cv_path_PERL="$PERL" # Let the user override the test with a path. - ;; - ?:/*) - ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path. - ;; - *) - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_path_PERL="$ac_dir/$ac_word" - break - fi - done - IFS="$ac_save_ifs" - ;; -esac -fi -PERL="$ac_cv_path_PERL" -if test -n "$PERL"; then - echo "$ac_t""$PERL" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - -test -n "$PERL" && break -done -test -n "$PERL" || PERL="echo not_perl" - -elif test -z "$PERL"; then - PERL=perl -fi - -OBJ_SUFFIX=o -LIB_SUFFIX=a -LIB_PREFIX=lib -DLL_SUFFIX=so -ASM_SUFFIX=s -MKSHLIB='$(LD) $(DSO_LDOPTS) -o $@' -AR_FLAGS='cr $@' -AS='$(CC)' -ASFLAGS='$(CFLAGS)' - -if test -n "$CROSS_COMPILE"; then - OS_ARCH=`echo $target_os | sed -e 's|/|_|g'` - OS_RELEASE= - OS_TEST="${target_cpu}" - case "${target_os}" in - linux*) OS_ARCH=Linux ;; - solaris*) OS_ARCH=SunOS OS_RELEASE=5 ;; - mingw*) OS_ARCH=WINNT ;; - darwin*) OS_ARCH=Darwin ;; - esac -else - OS_ARCH=`uname -s | sed -e 's|/|_|g'` - OS_RELEASE=`uname -r` - OS_TEST=`uname -m` -fi - -if test "$OS_ARCH" = "IRIX64"; then - OS_ARCH=IRIX -fi - -if test "$OS_ARCH" = "Linux"; then - OS_RELEASE=`echo $OS_RELEASE | sed 's/-.*//'` - OS_RELEASE=`echo $OS_RELEASE | awk -F. '{ print $1 "." $2 }'` -fi - -####################################################################### -# Master "Core Components" macros for getting the OS target # -####################################################################### - -# -# Note: OS_TARGET should be specified on the command line for gmake. -# When OS_TARGET=WIN95 is specified, then a Windows 95 target is built. -# The difference between the Win95 target and the WinNT target is that -# the WinNT target uses Windows NT specific features not available -# in Windows 95. The Win95 target will run on Windows NT, but (supposedly) -# at lesser performance (the Win95 target uses threads; the WinNT target -# uses fibers). -# -# When OS_TARGET=WIN16 is specified, then a Windows 3.11 (16bit) target -# is built. See: win16_3.11.mk for lots more about the Win16 target. -# -# If OS_TARGET is not specified, it defaults to $(OS_ARCH), i.e., no -# cross-compilation. -# - -# -# The following hack allows one to build on a WIN95 machine (as if -# s/he were cross-compiling on a WINNT host for a WIN95 target). -# It also accomodates for MKS's uname.exe. If you never intend -# to do development on a WIN95 machine, you don't need this hack. -# -case "$OS_ARCH" in -WIN95) - OS_ARCH=WINNT - OS_TARGET=WIN95 - ;; -Windows_95) - OS_ARCH=Windows_NT - OS_TARGET=WIN95 - ;; -Windows_98) - OS_ARCH=Windows_NT - OS_TARGET=WIN95 - ;; -CYGWIN_9*|CYGWIN_ME*) - OS_ARCH='CYGWIN_NT-4.0' - OS_TARGET=WIN95 - ;; -OS_2) - OS_ARCH=OS2 - OS_TARGET=OS2 - ;; -esac - -# -# On WIN32, we also define the variable CPU_ARCH. -# - -case "$OS_ARCH" in -WINNT) - CPU_ARCH=`uname -p` - if test "$CPU_ARCH" = "I386"; then - CPU_ARCH=x86 - fi - ;; -Windows_NT) -# -# If uname -s returns "Windows_NT", we assume that we are using -# the uname.exe in MKS toolkit. -# -# The -r option of MKS uname only returns the major version number. -# So we need to use its -v option to get the minor version number. -# Moreover, it doesn't have the -p option, so we need to use uname -m. -# - OS_ARCH=WINNT - OS_MINOR_RELEASE=`uname -v` - if test "$OS_MINOR_RELEASE" = "00"; then - OS_MINOR_RELEASE=0 - fi - OS_RELEASE="${OS_RELEASE}.${OS_MINOR_RELEASE}" - CPU_ARCH=`uname -m` - # - # MKS's uname -m returns "586" on a Pentium machine. - # - if echo "$CPU_ARCH" | grep -c 86 >/dev/null; then - CPU_ARCH=x86 - fi - ;; -CYGWIN32_NT|CYGWIN_NT*|MINGW*_NT*) -# -# If uname -s returns "CYGWIN_NT-4.0", we assume that we are using -# the uname.exe in the Cygwin tools. -# Prior to the Beta 20 release, Cygwin was called GNU-Win32. -# If uname -s returns "CYGWIN32/NT", we assume that we are using -# the uname.exe in the GNU-Win32 tools. -# If uname -s returns MINGW32_NT-5.1, we assume that we are using -# the uname.exe in the MSYS tools. -# - OS_RELEASE=`expr $OS_ARCH : '.*NT-\(.*\)'` - OS_ARCH=WINNT - CPU_ARCH=`uname -m` - # - # Cygwin's uname -m returns "i686" on a Pentium Pro machine. - # - if echo "$CPU_ARCH" | grep -c 86 >/dev/null; then - CPU_ARCH=x86 - fi - ;; -esac - -if test -n "$MOZILLA_CLIENT" && test "$OS_ARCH" = "WINNT"; then - OS_TARGET=WIN95 - if test -n "$MOZ_DEBUG" -a -z "$USE_DEBUG_RTL"; then - USE_DEBUG_RTL=1 - fi -fi -if test -z "$OS_TARGET"; then - OS_TARGET=$OS_ARCH -fi -if test "$OS_TARGET" = "WIN95"; then - OS_RELEASE="4.0" -fi -if test "$OS_TARGET" = "WIN16"; then - OS_RELEASE= -fi - -# Check whether --with-macos-sdk or --without-macos-sdk was given. -if test "${with_macos_sdk+set}" = set; then - withval="$with_macos_sdk" - MACOS_SDK_DIR=$withval -fi - - -# Check whether --enable-os2-high-mem or --disable-os2-high-mem was given. -if test "${enable_os2_high_mem+set}" = set; then - enableval="$enable_os2_high_mem" - if test "$enableval" = "no"; then - MOZ_OS2_HIGH_MEMORY= - else - MOZ_OS2_HIGH_MEMORY=1 - fi -fi - - -case "$host" in -*-mingw*) - NSINSTALL=nsinstall - WIN_TOP_SRC=`cd $srcdir && pwd -W` - ;; -*-cygwin*|*-msvc*|*-mks*) - CYGWIN_WRAPPER='sh $(topsrcdir)/config/cygwin-wrapper' - NSINSTALL='$(CYGWIN_WRAPPER) nsinstall' - if test "`${PERL} -v | grep -c cygwin 2>/dev/null`" = 0; then - PERL='$(CYGWIN_WRAPPER) perl' - fi - WIN_TOP_SRC=`cygpath -w $srcdir | sed -e 's|\\\\|/|g'` - ;; -*-beos*) - HOST_CFLAGS="$HOST_CFLAGS -DXP_BEOS -DBeOS -DBEOS -D_POSIX_SOURCE" - ;; -*os2*) - ;; -*) - HOST_CFLAGS="$HOST_CFLAGS -DXP_UNIX" - ;; -esac - -DEFAULT_RPATHFLAG=..:../lib:../../lib:../../../lib:../../../../lib -# Check whether --with-rpath or --without-rpath was given. -if test "${with_rpath+set}" = set; then - withval="$with_rpath" - - if test "$withval" = "yes" ; then # set default - RPATHFLAG="$DEFAULT_RPATHFLAG" - elif test -n "$withval" ; then # user supplied - RPATHFLAG="$withval" - fi - -fi - - -case "$target" in - -*-aix*) - cat >> confdefs.h <<\EOF -#define XP_UNIX 1 -EOF - - cat >> confdefs.h <<\EOF -#define AIX 1 -EOF - - cat >> confdefs.h <<\EOF -#define SYSV 1 -EOF - - DSO_LDOPTS='-brtl -bM:SRE -bnoentry -bexpall -blibpath:/usr/lib:/lib' - ac_safe=`echo "sys/atomic_op.h" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for sys/atomic_op.h""... $ac_c" 1>&6 -echo "configure:3778: checking for sys/atomic_op.h" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:3788: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - cat >> confdefs.h <<\EOF -#define AIX_HAVE_ATOMIC_OP_H 1 -EOF - -else - echo "$ac_t""no" 1>&6 -fi - - case "${target_os}" in - aix3.2*) - cat >> confdefs.h <<\EOF -#define AIX_RENAME_SELECT 1 -EOF - - cat >> confdefs.h <<\EOF -#define _PR_NO_LARGE_FILES 1 -EOF - - ;; - aix4.1*) - cat >> confdefs.h <<\EOF -#define AIX_TIMERS 1 -EOF - - cat >> confdefs.h <<\EOF -#define _PR_NO_LARGE_FILES 1 -EOF - - cat >> confdefs.h <<\EOF -#define AIX4_1 1 -EOF - - MKSHLIB= - DSO_LDOPTS= - ;; - aix4.2*) - cat >> confdefs.h <<\EOF -#define AIX_TIMERS 1 -EOF - - cat >> confdefs.h <<\EOF -#define _PR_HAVE_OFF64_T 1 -EOF - - ;; - aix4.3*) - cat >> confdefs.h <<\EOF -#define AIX_TIMERS 1 -EOF - - cat >> confdefs.h <<\EOF -#define _PR_HAVE_OFF64_T 1 -EOF - - cat >> confdefs.h <<\EOF -#define AIX4_3 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_SOCKLEN_T 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_FCNTL_FILE_LOCKING 1 -EOF - - USE_IPV6=1 - ;; - *) - cat >> confdefs.h <<\EOF -#define AIX_TIMERS 1 -EOF - - cat >> confdefs.h <<\EOF -#define _PR_HAVE_OFF64_T 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_SOCKLEN_T 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_FCNTL_FILE_LOCKING 1 -EOF - - USE_IPV6=1 - ;; - esac - CFLAGS="$CFLAGS -qro -qroconst" - if echo "$CC" | grep -c xlC_r; then - CFLAGS="$CFLAGS -qarch=com" - fi - AIX_WRAP='$(DIST)/lib/aixwrap.o' - AIX_TMP='./_aix_tmp.o' - if test -n "$USE_64"; then - OBJECT_MODE=64 - fi - RESOLVE_LINK_SYMBOLS=1 - ;; - -*-beos*) - cat >> confdefs.h <<\EOF -#define XP_BEOS 1 -EOF - - cat >> confdefs.h <<\EOF -#define BeOS 1 -EOF - - cat >> confdefs.h <<\EOF -#define BEOS 1 -EOF - - cat >> confdefs.h <<\EOF -#define _POSIX_SOURCE 1 -EOF - - DSO_LDOPTS=-nostart - USE_BTHREADS=1 - RESOLVE_LINK_SYMBOLS=1 - case "${target_cpu}" in - i*86) - _OPTIMIZE_FLAGS=-O2 - _DEBUG_FLAGS='-gdwarf-2 -O0' - MKSHLIB='$(CCC) $(DSO_LDOPTS) -o $@' - echo $ac_n "checking for gethostbyaddr in -lbind""... $ac_c" 1>&6 -echo "configure:3930: checking for gethostbyaddr in -lbind" >&5 -ac_lib_var=`echo bind'_'gethostbyaddr | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lbind $LIBS" -cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - OS_LIBS="$OS_LIBS -lbind -lsocket" -else - echo "$ac_t""no" 1>&6 -fi - - ;; - powerpc) - CC=mwcc - CCC=mwcc - LD=mwld - DSO_LDOPTS='-xms -export pragma -init _init_routine_ -term _term_routine_ -lroot -lnet /boot/develop/lib/ppc/glue-noinit.a /boot/develop/lib/ppc/init_term_dyn.o /boot/develop/lib/ppc/start_dyn.o' - _OPTIMIZE_FLAGS=-O2 - _DEBUG_FLAGS='-g -O0' - ;; - esac - ;; - -*-bsdi*) - cat >> confdefs.h <<\EOF -#define XP_UNIX 1 -EOF - - cat >> confdefs.h <<\EOF -#define BSDI 1 -EOF - - cat >> confdefs.h <<\EOF -#define NEED_BSDREGEX 1 -EOF - - - CFLAGS="$CFLAGS -Wall -Wno-format" - CXXFLAGS="$CXXFLAGS -Wall -Wno-format" - - if echo "$OS_TEST" | grep -c 86 >/dev/null; then - CPU_ARCH=x86 - elif echo "$OS_TEST" | grep -c sparc >/dev/null; then - CPU_ARCH=sparc - fi - - DSO_LDOPTS=-r - - case "$target_os" in - bsdi1.1*) - cat >> confdefs.h <<\EOF -#define _PR_BSDI_JMPBUF_IS_ARRAY 1 -EOF - - cat >> confdefs.h <<\EOF -#define _PR_STAT_HAS_ONLY_ST_ATIME 1 -EOF - - cat >> confdefs.h <<\EOF -#define _PR_NEED_H_ERRNO 1 -EOF - - MKSHLIB= - DSO_CFLAGS= - DSO_LDOPTS= - ;; - - bsdi2.1*) - cat >> confdefs.h <<\EOF -#define _PR_TIMESPEC_HAS_TS_SEC 1 -EOF - - cat >> confdefs.h <<\EOF -#define _PR_BSDI_JMPBUF_IS_ARRAY 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_DLL 1 -EOF - - cat >> confdefs.h <<\EOF -#define USE_DLFCN 1 -EOF - - cat >> confdefs.h <<\EOF -#define _PR_STAT_HAS_ST_ATIMESPEC 1 -EOF - - ;; - - bsdi4.*) - cat >> confdefs.h <<\EOF -#define _PR_SELECT_CONST_TIMEVAL 1 -EOF - - cat >> confdefs.h <<\EOF -#define _PR_BSDI_JMPBUF_IS_STRUCT 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_DLL 1 -EOF - - cat >> confdefs.h <<\EOF -#define USE_DLFCN 1 -EOF - - cat >> confdefs.h <<\EOF -#define _PR_STAT_HAS_ST_ATIMESPEC 1 -EOF - - MKSHLIB='$(CC) -o $@ $(DSO_LDOPTS)' - DSO_CFLAGS=-fPIC - DSO_LDOPTS='-shared -soname $(@:$(OBJDIR)/%.so=%.so)' - STRIP="$STRIP -d" - case "$target_os" in - bsdi4.2*) - cat >> confdefs.h <<\EOF -#define _PR_HAVE_GETPROTO_R 1 -EOF - - cat >> confdefs.h <<\EOF -#define _PR_HAVE_GETPROTO_R_POINTER 1 -EOF - - ;; - esac - ;; - *) - cat >> confdefs.h <<\EOF -#define _PR_SELECT_CONST_TIMEVAL 1 -EOF - - cat >> confdefs.h <<\EOF -#define _PR_BSDI_JMPBUF_IS_STRUCT 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_DLL 1 -EOF - - cat >> confdefs.h <<\EOF -#define USE_DLFCN 1 -EOF - - cat >> confdefs.h <<\EOF -#define _PR_STAT_HAS_ST_ATIMESPEC 1 -EOF - - ;; - esac - - ;; - -*-darwin*) - cat >> confdefs.h <<\EOF -#define XP_UNIX 1 -EOF - - cat >> confdefs.h <<\EOF -#define DARWIN 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_BSD_FLOCK 1 -EOF - - CFLAGS="$CFLAGS -Wmost -fno-common" - case "${target_cpu}" in - i*86*) - cat >> confdefs.h <<\EOF -#define i386 1 -EOF - - CPU_ARCH=i386 - ;; - *) - cat >> confdefs.h <<\EOF -#define ppc 1 -EOF - - CPU_ARCH=ppc - ;; - esac - DSO_LDOPTS='-dynamiclib -compatibility_version 1 -current_version 1 -all_load -install_name @executable_path/$@' - MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@' - STRIP="$STRIP -x -S" - DLL_SUFFIX=dylib - USE_PTHREADS=1 - - - if test "$MACOS_SDK_DIR"; then - if test ! -d "$MACOS_SDK_DIR"; then - { echo "configure: error: SDK not found. When using --with-macos-sdk, you must -specify a valid SDK. SDKs are installed when the optional cross-development -tools are selected during the Xcode/Developer Tools installation." 1>&2; exit 1; } - fi - - - CC_VERSION=`$CC -v 2>&1 | grep 'gcc version'` - GCC_VERSION_FULL=`echo $CC_VERSION | $PERL -pe 's/^.*gcc version ([^ ]*).*/$1/'` - GCC_VERSION=`echo $GCC_VERSION_FULL | $PERL -pe '(split(/\./))[0]>=4&&s/(^\d*\.\d*).*/$1/;'` - - GCC_VERSION_MAJOR=`echo $GCC_VERSION_FULL | $PERL -pe 's/(^\d*).*/$1/;'` - if test "$GCC_VERSION_MAJOR" -lt "4" ; then - SDK_C_FRAMEWORK="-F${MACOS_SDK_DIR}/System/Library/Frameworks" - if test -d "${MACOS_SDK_DIR}/Library/Frameworks" ; then - SDK_C_FRAMEWORK="$SDK_C_FRAMEWORK -F${MACOS_SDK_DIR}/Library/Frameworks" - fi - - SDK_C_INCLUDE="-isystem ${MACOS_SDK_DIR}/usr/include/gcc/darwin/${GCC_VERSION} -isystem ${MACOS_SDK_DIR}/usr/include ${SDK_C_FRAMEWORK}" - - CFLAGS="$CFLAGS -nostdinc ${SDK_C_INCLUDE}" - - CPP="$CPP -nostdinc ${SDK_C_INCLUDE}" - - MACOS_SDK_LIBS="-L${MACOS_SDK_DIR}/usr/lib/gcc/darwin -L${MACOS_SDK_DIR}/usr/lib/gcc/darwin/${GCC_VERSION_FULL} -L${MACOS_SDK_DIR}/usr/lib ${SDK_C_FRAMEWORK}" - LDFLAGS="${MACOS_SDK_LIBS} $LDFLAGS" - DSO_LDOPTS="${MACOS_SDK_LIBS} $DSO_LDOPTS" - export NEXT_ROOT=$MACOS_SDK_DIR - - if test -n "$CROSS_COMPILE" ; then - HOST_CC="NEXT_ROOT= $HOST_CC" - HOST_CXX="NEXT_ROOT= $HOST_CXX" - fi - else - CFLAGS="$CFLAGS -isysroot ${MACOS_SDK_DIR}" - - CPP="$CPP -isysroot ${MACOS_SDK_DIR}" - - if test "$GCC_VERSION_FULL" != "4.0.0" ; then - LDFLAGS="$LDFLAGS -isysroot ${MACOS_SDK_DIR}" - DSO_LDOPTS="$DSO_LDOPTS -isysroot ${MACOS_SDK_DIR}" - else - LDFLAGS="$LDFLAGS -Wl,-syslibroot,${MACOS_SDK_DIR}" - DSO_LDOPTS="$DSO_LDOPTS -Wl,-syslibroot,${MACOS_SDK_DIR}" - fi - fi - fi - ;; - -*-dgux*) - cat >> confdefs.h <<\EOF -#define XP_UNIX 1 -EOF - - cat >> confdefs.h <<\EOF -#define _PR_LOCAL_THREADS_ONLY 1 -EOF - - cat >> confdefs.h <<\EOF -#define SVR4 1 -EOF - - cat >> confdefs.h <<\EOF -#define SYSV 1 -EOF - - cat >> confdefs.h <<\EOF -#define DGUX 1 -EOF - - cat >> confdefs.h <<\EOF -#define _DGUX_SOURCE 1 -EOF - - cat >> confdefs.h <<\EOF -#define _POSIX4A_DRAFT6_SOURCE 1 -EOF - - DSO_LDOPTS=-G - _OPTIMIZE_FLAGS=-O2 - _DEBUG_FLAGS= - ;; - -*-dragonfly*) - if test -z "$USE_NSPR_THREADS"; then - USE_PTHREADS=1 - fi - cat >> confdefs.h <<\EOF -#define XP_UNIX 1 -EOF - - cat >> confdefs.h <<\EOF -#define DRAGONFLY 1 -EOF - - LD='$(CC)' - MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@' - DSO_CFLAGS=-fPIC - DSO_LDOPTS='-shared -Wl,-soname,$(notdir $@)' - ;; - -*-freebsd*) - if test -z "$USE_NSPR_THREADS"; then - USE_PTHREADS=1 - fi - cat >> confdefs.h <<\EOF -#define XP_UNIX 1 -EOF - - cat >> confdefs.h <<\EOF -#define FREEBSD 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_BSD_FLOCK 1 -EOF - - LD='$(CC)' - CFLAGS="$CFLAGS $(DSO_CFLAGS) -ansi -Wall" - MOZ_OBJFORMAT=`test -x /usr/bin/objformat && /usr/bin/objformat || echo elf` - if test "$MOZ_OBJFORMAT" = "elf"; then - DLL_SUFFIX=so - else - DLL_SUFFIX=so.1.0 - fi - MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@' - DSO_CFLAGS=-fPIC - DSO_LDOPTS='-shared -Wl,-soname,$(notdir $@)' - ;; - -*-hpux*) - cat >> confdefs.h <<\EOF -#define XP_UNIX 1 -EOF - - cat >> confdefs.h <<\EOF -#define HPUX 1 -EOF - - cat >> confdefs.h <<\EOF -#define _HPUX_SOURCE 1 -EOF - - if test "$OS_TEST" = "ia64" ; then - cat >> confdefs.h <<\EOF -#define ia64 1 -EOF - - DLL_SUFFIX=so - else - cat >> confdefs.h <<\EOF -#define hppa 1 -EOF - - DLL_SUFFIX=sl - fi - DSO_LDOPTS='-b +h $(notdir $@)' - if test -z "$GNU_CC"; then - CC="$CC -Ae" - CXX="$CXX -ext" - if test "$OS_RELEASE" = "B.11.23"; then - CFLAGS="$CFLAGS +Olit=all" - CXXFLAGS="$CXXFLAGS +Olit=all" - else - CFLAGS="$CFLAGS +ESlit" - CXXFLAGS="$CXXFLAGS +ESlit" - fi - DSO_CFLAGS=+Z - else - DSO_CFLAGS=-fPIC - fi - - if test -n "$MOZILLA_CLIENT"; then - DEFAULT_IMPL_STRATEGY=_EMU - fi - - if echo "$OS_RELEASE" | grep ^A.09 >/dev/null; then - cat >> confdefs.h <<\EOF -#define _PR_NEED_H_ERRNO 1 -EOF - - cat >> confdefs.h <<\EOF -#define HPUX9 1 -EOF - - DEFAULT_IMPL_STRATEGY=_EMU - USE_NSPR_THREADS=1 - fi - - if echo "$OS_RELEASE" | egrep '^(A.09|B.10)' >/dev/null; then - cat >> confdefs.h <<\EOF -#define _PR_NO_LARGE_FILES 1 -EOF - - fi - - if echo "$OS_RELEASE" | egrep '^(B.10.10|B.10.20)' >/dev/null; then - cat >> confdefs.h <<\EOF -#define _PR_NEED_H_ERRNO 1 -EOF - - fi - - if echo "$OS_RELEASE" | egrep '^(B.10.10|B.10.20)' >/dev/null; then - cat >> confdefs.h <<\EOF -#define HAVE_INT_LOCALTIME_R 1 -EOF - - fi - - if echo "$OS_RELEASE" | egrep '^(B.10.30|B.11.00|B.11.11|B.11.23)' >/dev/null; then - cat >> confdefs.h <<\EOF -#define HAVE_POINTER_LOCALTIME_R 1 -EOF - - fi - - if test "$OS_RELEASE" = "B.10.01"; then - cat >> confdefs.h <<\EOF -#define HPUX10 1 -EOF - - DEFAULT_IMPL_STRATEGY=_EMU - fi - - if test "$OS_RELEASE" = "B.10.10"; then - cat >> confdefs.h <<\EOF -#define HPUX10 1 -EOF - - cat >> confdefs.h <<\EOF -#define HPUX10_10 1 -EOF - - DEFAULT_IMPL_STRATEGY=_PTH - fi - - if test "$OS_RELEASE" = "B.10.20"; then - cat >> confdefs.h <<\EOF -#define HPUX10 1 -EOF - - cat >> confdefs.h <<\EOF -#define HPUX10_20 1 -EOF - - if test -z "$GNU_CC"; then - CFLAGS="$CFLAGS +DAportable +DS1.1" - CXXFLAGS="$CXXFLAGS +DAportable +DS1.1" - fi - DEFAULT_IMPL_STRATEGY=_PTH - fi - - if test "$OS_RELEASE" = "B.10.30"; then - cat >> confdefs.h <<\EOF -#define HPUX10 1 -EOF - - cat >> confdefs.h <<\EOF -#define HPUX10_30 1 -EOF - - if test -z "$GNU_CC"; then - CFLAGS="$CFLAGS +DAportable +DS1.1" - CXXFLAGS="$CXXFLAGS +DAportable +DS1.1" - fi - DEFAULT_IMPL_STRATEGY=_PTH - fi - - if echo "$OS_RELEASE" | egrep '^(B.11.00|B.11.11)' >/dev/null; then - cat >> confdefs.h <<\EOF -#define HPUX10 1 -EOF - - cat >> confdefs.h <<\EOF -#define HPUX11 1 -EOF - - cat >> confdefs.h <<\EOF -#define _LARGEFILE64_SOURCE 1 -EOF - - cat >> confdefs.h <<\EOF -#define _PR_HAVE_OFF64_T 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_FCNTL_FILE_LOCKING 1 -EOF - - if test -z "$GNU_CC"; then - if test -z "$USE_64"; then - CFLAGS="$CFLAGS +DAportable +DS2.0" - CXXFLAGS="$CXXFLAGS +DAportable +DS2.0" - else - CFLAGS="$CFLAGS +DA2.0W +DS2.0" - CXXFLAGS="$CXXFLAGS +DA2.0W +DS2.0" - fi - fi - DEFAULT_IMPL_STRATEGY=_PTH - fi - - if test "$OS_RELEASE" = "B.11.23"; then - cat >> confdefs.h <<\EOF -#define HPUX10 1 -EOF - - cat >> confdefs.h <<\EOF -#define HPUX11 1 -EOF - - cat >> confdefs.h <<\EOF -#define _LARGEFILE64_SOURCE 1 -EOF - - cat >> confdefs.h <<\EOF -#define _PR_HAVE_OFF64_T 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_FCNTL_FILE_LOCKING 1 -EOF - - if test -z "$GNU_CC"; then - if test -z "$USE_64"; then - CFLAGS="$CFLAGS +DD32" - CXXFLAGS="$CXXFLAGS +DD32" - else - CFLAGS="$CFLAGS +DD64" - CXXFLAGS="$CXXFLAGS +DD64" - fi - fi - DEFAULT_IMPL_STRATEGY=_PTH - fi - - if test "$DEFAULT_RPATHFLAG" = "$RPATHFLAG" ; then - if test "$OS_RELEASE" = "B.11.23" -o "$OS_RELEASE" = "B.11.11" ; then - # add ORIGIN to default rpath - RPATHFLAG="\\\$\$ORIGIN/../lib:\\\$\$ORIGIN/../../lib:$RPATHFLAG" - fi - fi - - if test "$DEFAULT_IMPL_STRATEGY" = "_EMU"; then - USE_NSPR_THREADS=1 - USE_PTHREADS= - USE_USER_THREADS= - elif test "$DEFAULT_IMPL_STRATEGY" = "_PTH"; then - USE_PTHREADS=1 - if test "$USE_NSPR_THREADS"; then - USE_PTHREADS= - fi - if test "$USE_USER_PTHREADS"; then - USE_PTHREADS= - fi - fi - - ;; - -*-irix*) - cat >> confdefs.h <<\EOF -#define XP_UNIX 1 -EOF - - cat >> confdefs.h <<\EOF -#define IRIX 1 -EOF - - cat >> confdefs.h <<\EOF -#define SVR4 1 -EOF - - cat >> confdefs.h <<\EOF -#define _SGI_MP_SOURCE 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_FCNTL_FILE_LOCKING 1 -EOF - - DSO_LDOPTS='-rdata_shared -shared' - MKSHLIB='$(LD) $(DSO_LDOPTS) -soname $(notdir $@) -o $@' - STRIP="$STRIP -f" - RESOLVE_LINK_SYMBOLS=1 - case "${target_os}" in - irix6*) - cat >> confdefs.h <<\EOF -#define IRIX6 1 -EOF - - USE_PTHREADS=1 - USE_N32=1 - ;; - irix5*) - cat >> confdefs.h <<\EOF -#define IRIX5 1 -EOF - - USE_NSPR_THREADS=1 - ;; - *) - USE_PTHREADS=1 - USE_N32=1 - ;; - esac - if test "$GNU_CC"; then - AS='$(CC) -Wp,-P -x assembler-with-cpp -D_ASM -mips2 $(INCLUDES)' - CFLAGS="$CFLAGS -Wall -Wno-format" - _OPTIMIZE_FLAGS="-O6" - else - if test -n "$USE_N32"; then - AS='as -D_ASM $(INCLUDES) -n32' - else - AS='as -D_ASM $(INCLUDES)' - fi - CFLAGS="$CFLAGS -fullwarn -xansi" - if test "$USE_N32"; then - _OPTIMIZE_FLAGS="-O -OPT:Olimit=4000" - else - _OPTIMIZE_FLAGS="-O -Olimit 4000" - fi - if test "$USE_MDUPDATE"; then - CFLAGS="$CFLAGS -MDupdate \$(DEPENDENCIES)" - fi - case "$target}" in - *-irix6.*) - CFLAGS="$CFLAGS -multigot" - DSO_LDOPTS="$DSO_LDOPTS -no_unresolved" - if test "$USE_N32"; then - CFLAGS="$CFLAGS -n32 -woff 1209" - DSO_LDOPTS="$DSO_LDOPTS -n32" - else - if test "$USE_64"; then - CFLAGS="$CFLAGS -64" - else - CFLAGS="$CFLAGS -32" - fi - fi - ;; - *) - CFLAGS="$CFLAGS -xgot" - ;; - esac - fi - if test "${target_os}" = "irix5.3"; then - cat >> confdefs.h <<\EOF -#define IRIX5_3 1 -EOF - - fi - case "${target_os}" in - irix6.5) - if test -z "$GNU_CC"; then - CFLAGS="$CFLAGS -mips3" - fi - cat >> confdefs.h <<\EOF -#define _PR_HAVE_GETPROTO_R 1 -EOF - - cat >> confdefs.h <<\EOF -#define _PR_HAVE_GETPROTO_R_POINTER 1 -EOF - - cat >> confdefs.h <<\EOF -#define _PR_HAVE_SGI_PRDA_PROCMASK 1 -EOF - - ;; - irix5*) - ;; - *) - cat >> confdefs.h <<\EOF -#define _PR_HAVE_SGI_PRDA_PROCMASK 1 -EOF - - ;; - esac - ;; - -*-linux*) - if test -z "$USE_NSPR_THREADS"; then - USE_PTHREADS=1 - fi - cat >> confdefs.h <<\EOF -#define XP_UNIX 1 -EOF - - cat >> confdefs.h <<\EOF -#define _POSIX_SOURCE 1 -EOF - - cat >> confdefs.h <<\EOF -#define _BSD_SOURCE 1 -EOF - - cat >> confdefs.h <<\EOF -#define _SVID_SOURCE 1 -EOF - - cat >> confdefs.h <<\EOF -#define _LARGEFILE64_SOURCE 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_FCNTL_FILE_LOCKING 1 -EOF - - cat >> confdefs.h <<\EOF -#define LINUX 1 -EOF - - cat >> confdefs.h <<\EOF -#define linux 1 -EOF - - LD='$(CC)' - CFLAGS="$CFLAGS -ansi -Wall" - CXXFLAGS="$CXXFLAGS -ansi -Wall" - MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@' - DSO_CFLAGS=-fPIC - DSO_LDOPTS='-shared -Wl,-soname -Wl,$(notdir $@)' - OS_LIBS="$OS_LIBS -lc" - _OPTIMIZE_FLAGS=-O2 - _DEBUG_FLAGS="-g -fno-inline" # most people on linux use gcc/gdb, and that - # combo is not yet good at debugging inlined - # functions (even when using DWARF2 as the - # debugging format) - case "$OS_TEST" in - i*86) - CPU_ARCH=x86 - ;; - *) - CPU_ARCH=$OS_TEST - ;; - esac - - case "${target_cpu}" in - alpha) - cat >> confdefs.h <<\EOF -#define _ALPHA_ 1 -EOF - - cat >> confdefs.h <<\EOF -#define __alpha 1 -EOF - - CFLAGS="$CFLAGS -mieee" - CXXFLAGS="$CXXFLAGS -mieee" - ;; - i*86) - cat >> confdefs.h <<\EOF -#define i386 1 -EOF - - ;; - ia64) - ;; - m68k) - CFLAGS="$CFLAGS -m68020-40" - CXXFLAGS="$CXXFLAGS -m68020-40" - # - # gcc on Linux/m68k either has a bug or triggers a code-sequence - # bug in the 68060 which causes gcc to crash. The simplest way to - # avoid this is to enable a minimum level of optimization. - # - _DEBUG_FLAGS="$_DEBUG_FLAGS -O" - ;; - esac - ;; - -*-mingw*|*-cygwin*|*-msvc*|*-mks*) - cat >> confdefs.h <<\EOF -#define XP_PC 1 -EOF - - cat >> confdefs.h <<\EOF -#define WIN32 1 -EOF - - cat >> confdefs.h <<\EOF -#define _WINDOWS 1 -EOF - - RESOLVE_LINK_SYMBOLS=1 - PROG_SUFFIX=.exe - if test -n "$GNU_CC"; then - CC="$CC -mno-cygwin" - CXX="$CXX -mno-cygwin" - DLL_SUFFIX=dll - MKSHLIB='$(CC) -shared -Wl,--export-all-symbols -Wl,--out-implib -Wl,$(IMPORT_LIBRARY) -o $@' - # Use temp file for windres (bug 213281) - RC="$WINDRES -O coff --use-temp-file" - else - CC=cl - CXX=cl - LD=link - # if the lib program is available, use it, otherwise use link /lib - # Extract the first word of "lib", so it can be a program name with args. -set dummy lib; ac_word=$2 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 -echo "configure:4745: checking for $ac_word" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_HAVE_MSVC_LIB'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - if test -n "$HAVE_MSVC_LIB"; then - ac_cv_prog_HAVE_MSVC_LIB="$HAVE_MSVC_LIB" # Let the user override the test. -else - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" - ac_dummy="$PATH" - for ac_dir in $ac_dummy; do - test -z "$ac_dir" && ac_dir=. - if test -f $ac_dir/$ac_word; then - ac_cv_prog_HAVE_MSVC_LIB="1" - break - fi - done - IFS="$ac_save_ifs" -fi -fi -HAVE_MSVC_LIB="$ac_cv_prog_HAVE_MSVC_LIB" -if test -n "$HAVE_MSVC_LIB"; then - echo "$ac_t""$HAVE_MSVC_LIB" 1>&6 -else - echo "$ac_t""no" 1>&6 -fi - - if test "$HAVE_MSVC_LIB" = "1" ; then - AR='lib -NOLOGO -OUT:"$@"' - else - AR='$(LD) /lib -NOLOGO -OUT:"$@"' - fi - - AR_FLAGS= - RANLIB='echo not_ranlib' - STRIP='echo not_strip' - RC=rc.exe - GARBAGE='$(OBJDIR)/vc20.pdb $(OBJDIR)/vc40.pdb' - OBJ_SUFFIX=obj - LIB_SUFFIX=lib - LIB_PREFIX= - DLL_SUFFIX=dll - - # Determine compiler version - - _MSVC_VER_FILTER='s|.* \([0-9]\+\.[0-9]\+\.[0-9]\+\(\.[0-9]\+\)\?\).*|\1|p' - - - CC_VERSION=`"${CC}" -v 2>&1 | sed -ne "$_MSVC_VER_FILTER"` - _CC_MAJOR_VERSION=`echo ${CC_VERSION} | awk -F\. '{ print $1 }'` - _CC_MINOR_VERSION=`echo ${CC_VERSION} | awk -F\. '{ print $2 }'` - _CC_RELEASE=`echo ${CC_VERSION} | awk -F\. '{ print $3 }'` - _CC_BUILD=`echo ${CC_VERSION} | awk -F\. '{ print $4 }'` - _MSC_VER=${_CC_MAJOR_VERSION}${_CC_MINOR_VERSION} - - if test "$_CC_MAJOR_VERSION" -eq "14"; then - if test "$_CC_RELEASE" -gt 50727 -o \ - \( "$_CC_RELEASE" -eq 50727 -a "$_CC_BUILD" -ge 762 \); then - _USE_DYNAMICBASE=1 - fi - elif test $_CC_MAJOR_VERSION -ge 15; then - _USE_DYNAMICBASE=1 - fi - - if test -n "$_USE_DYNAMICBASE"; then - DLLFLAGS="$DLLFLAGS -DYNAMICBASE" - fi - - CFLAGS="$CFLAGS -W3 -nologo -GF -Gy" - DLLFLAGS="$DLLFLAGS -OUT:\"\$@\"" - - _DEBUG_FLAGS=-Z7 - _OPTIMIZE_FLAGS=-O2 - if test -z "$MOZ_OPTIMIZE"; then - CFLAGS="$CFLAGS -Od" - fi - - if test "$USE_DEBUG_RTL" = 1; then - CFLAGS="$CFLAGS -MDd" - else - CFLAGS="$CFLAGS -MD" - fi - - if test -n "$MOZ_DEBUG"; then - cat >> confdefs.h <<\EOF -#define _DEBUG 1 -EOF - - else - DEFINES="$DEFINES -U_DEBUG" - fi - - if test -n "$MOZ_OPTIMIZE"; then - if test -n "$MOZ_DEBUG_SYMBOLS"; then - _OPTIMIZE_FLAGS="$_OPTIMIZE_FLAGS -Zi" - DLLFLAGS="$DLLFLAGS -DEBUG -OPT:REF" - LDFLAGS="$LDFLAGS -DEBUG -OPT:REF" - fi - fi - - if test -n "$MOZ_DEBUG"; then - DLLFLAGS="$DLLFLAGS -DEBUG" - LDFLAGS="$LDFLAGS -DEBUG" - fi - - OS_DLLFLAGS='-nologo -DLL -SUBSYSTEM:WINDOWS' - if test "$_MSC_VER" -le "1200" -a -z "$MOZ_DEBUG_SYMBOLS"; then - OS_DLLFLAGS="$OS_DLLFLAGS -PDB:NONE" - fi - - if test "$OS_TARGET" = "WINNT"; then - CFLAGS="$CFLAGS -GT" - if test "$CPU_ARCH" = "x86"; then - CFLAGS="$CFLAGS -G5" - fi - fi - fi # GNU_CC - - if test -n "$USE_STATIC_TLS"; then - cat >> confdefs.h <<\EOF -#define _PR_USE_STATIC_TLS 1 -EOF - - fi - - if test "$OS_TARGET" = "WINNT"; then - cat >> confdefs.h <<\EOF -#define WINNT 1 -EOF - - else - cat >> confdefs.h <<\EOF -#define WIN95 1 -EOF - - # undefine WINNT as some versions of mingw gcc define it by default - DEFINES="$DEFINES -UWINNT" - cat >> confdefs.h <<\EOF -#define _PR_GLOBAL_THREADS_ONLY 1 -EOF - - fi - - case "$OS_TARGET" in - WINNT) - ;; - WIN95) - ;; - WIN16) - ;; - *) - { echo "configure: error: Missing OS_TARGET for ${target}. Use --enable-win32-target to set." 1>&2; exit 1; } - ;; - esac - - case "$target_cpu" in - i*86) - if test -n "$USE_64"; then - cat >> confdefs.h <<\EOF -#define _AMD64_ 1 -EOF - - cat >> confdefs.h <<\EOF -#define _M_AMD64 1 -EOF - - else - cat >> confdefs.h <<\EOF -#define _X86_ 1 -EOF - - fi - ;; - alpha) - cat >> confdefs.h <<\EOF -#define _ALPHA_ 1 -EOF - - ;; - mips) - cat >> confdefs.h <<\EOF -#define _MIPS_ 1 -EOF - - ;; - x86_64) - cat >> confdefs.h <<\EOF -#define _AMD64_ 1 -EOF - - cat >> confdefs.h <<\EOF -#define _M_AMD64 1 -EOF - - ;; - *) - cat >> confdefs.h <<\EOF -#define _CPU_ARCH_NOT_DEFINED 1 -EOF - - ;; - esac - - if test -n "$USE_64"; then - cat >> confdefs.h <<\EOF -#define _WIN64 1 -EOF - - fi - ;; - -*-ncr-sysv*) - cat >> confdefs.h <<\EOF -#define XP_UNIX 1 -EOF - - cat >> confdefs.h <<\EOF -#define SVR4 1 -EOF - - cat >> confdefs.h <<\EOF -#define SYSV 1 -EOF - - cat >> confdefs.h <<\EOF -#define NCR 1 -EOF - - USE_NSPR_THREADS=1 - if test "$OS_RELEASE" = "2.03"; then - cat >> confdefs.h <<\EOF -#define _PR_STAT_HAS_ST_ATIM 1 -EOF - - else - cat >> confdefs.h <<\EOF -#define _PR_STAT_HAS_ST_ATIM_UNION 1 -EOF - - fi - - if test -z "$GNU_CC"; then - CFLAGS="$CFLAGS -Hnocopyr" - CXXFLAGS="$CXXFLAGS -Hnocopyr" - else - CFLAGS="$CFLAGS -fPIC -Wall" - CXXFLAGS="$CXXFLAGS -fPIC -Wall" - DSO_LDOPTS=-G - fi - ;; - -mips-nec-sysv*) - cat >> confdefs.h <<\EOF -#define XP_UNIX 1 -EOF - - cat >> confdefs.h <<\EOF -#define SVR4 1 -EOF - - cat >> confdefs.h <<\EOF -#define __SVR4 1 -EOF - - cat >> confdefs.h <<\EOF -#define NEC 1 -EOF - - cat >> confdefs.h <<\EOF -#define nec_ews 1 -EOF - - USE_NSPR_THREADS=1 - if test -z "$GNU_CC"; then - CC='$(NSDEPTH)/build/hcc cc -Xa -KGnum=0 -KOlimit=4000' - CXX=g++ - fi - OS_LIBS="$OS_LIBS -lsocket -lnsl -ldl" - DSO_LDOPTS=-G - ;; - -*-netbsd*) - cat >> confdefs.h <<\EOF -#define XP_UNIX 1 -EOF - - cat >> confdefs.h <<\EOF -#define NETBSD 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_BSD_FLOCK 1 -EOF - - USE_NSPR_THREADS=1 - - DSO_CFLAGS='-fPIC -DPIC' - CFLAGS="$CFLAGS -ansi -Wall" - CXXFLAGS="$CXXFLAGS -ansi -Wall" - MKSHLIB='$(CC) -o $@ $(DSO_LDOPTS)' - - if test -z "$OBJECT_FMT"; then - if echo __ELF__ | ${CC-cc} -E - | grep -q __ELF__ 2>/dev/null; then - OBJECT_FMT=a.out - DLL_SUFFIX=so.1.0 - DSO_LDOPTS='-shared' - else - OBJECT_FMT=ELF - DLL_SUFFIX=so - DSO_LDOPTS='-shared -Wl,-soname,$(notdir $@)' - fi - fi - - if test "$LIBRUNPATH"; then - DSO_LDOPTS="$DSO_LDOPTS -Wl,-R$LIBRUNPATH" - fi - ;; - -mips-sony-newsos*) - cat >> confdefs.h <<\EOF -#define XP_UNIX 1 -EOF - - cat >> confdefs.h <<\EOF -#define SONY 1 -EOF - - cat >> confdefs.h <<\EOF -#define SYSV 1 -EOF - - cat >> confdefs.h <<\EOF -#define SVR4 1 -EOF - - cat >> confdefs.h <<\EOF -#define __svr4 1 -EOF - - cat >> confdefs.h <<\EOF -#define __svr4__ 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_SVID_GETTOD 1 -EOF - - USE_NSPR_THREADS=1 - CFLAGS="$CFLAGS -Xa -fullwarn" - CXXFLAGS="$CXXFLAGS -Xa -fullwarn" - DSO_LDOPTS=-G - ;; - -*-nextstep*|*-openstep*) - cat >> confdefs.h <<\EOF -#define XP_UNIX 1 -EOF - - cat >> confdefs.h <<\EOF -#define NEXTSTEP 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_BSD_FLOCK 1 -EOF - - cat >> confdefs.h <<\EOF -#define _POSIX_SOURCE 1 -EOF - - CFLAGS="$CFLAGS -Wall -fno-common -traditional-cpp -posix" - CXXFLAGS="$CXXFLAGS -Wall -fno-common -traditional-cpp -posix" - USE_NSPR_THREADS=1 - DLL_SUFFIX=dylib - ;; - - -*-nto*) - cat >> confdefs.h <<\EOF -#define XP_UNIX 1 -EOF - - cat >> confdefs.h <<\EOF -#define NTO 1 -EOF - - cat >> confdefs.h <<\EOF -#define _QNX_SOURCE 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_POINTER_LOCALTIME_R 1 -EOF - - MKSHLIB='$(CC) $(DSO_LDOPTS) -Wl,-soname -Wl,$(notdir $@) -o $@' - DSO_CFLAGS=-fPIC - DSO_LDOPTS=-shared - OS_LIBS="$OS_LIBS -lsocket" - _OPTIMIZE_FLAGS="-O1" - _DEBUG_FLAGS="-gstabs" - ;; - -*-openbsd*) - LD='$(CC)' - cat >> confdefs.h <<\EOF -#define XP_UNIX 1 -EOF - - cat >> confdefs.h <<\EOF -#define OPENBSD 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_BSD_FLOCK 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_SOCKLEN_T 1 -EOF - - CFLAGS="$CFLAGS -ansi -Wall" - CXXFLAGS="$CXXFLAGS -ansi -Wall" - if test "$SO_VERSION"; then - DLL_SUFFIX="so.$SO_VERSION" - else - DLL_SUFFIX=so.1.0 - fi - DSO_CFLAGS=-fPIC - USE_NSPR_THREADS=1 - DSO_LDOPTS='-shared -fPIC -Wl,-soname,$(notdir $@)' - ;; - -*-openvms*) - cat >> confdefs.h <<\EOF -#define XP_UNIX 1 -EOF - - RESOLVE_LINK_SYMBOLS=1 - AR_FLAGS='c $@' - DSO_LDOPTS='-shared -auto_symvec $(LDFLAGS) $(OPTIMIZER)' - ;; - -*-os2*) - cat >> confdefs.h <<\EOF -#define OS2 1 -EOF - - cat >> confdefs.h <<\EOF -#define XP_OS2 1 -EOF - - cat >> confdefs.h <<\EOF -#define XP_PC 1 -EOF - -# AC_DEFINE(USE_OS2_TOOLKIT_HEADERS) - cat >> confdefs.h <<\EOF -#define TCPV40HDRS 1 -EOF - - cat >> confdefs.h <<\EOF -#define BSD_SELECT 1 -EOF - - cat >> confdefs.h <<\EOF -#define _PR_GLOBAL_THREADS_ONLY 1 -EOF - - RESOLVE_LINK_SYMBOLS=1 - NSINSTALL=nsinstall - LIB_PREFIX= - LIB_SUFFIX=lib - DLL_SUFFIX=dll - DLLTOOL='' - RC=rc.exe - PROG_SUFFIX=.exe - AR=emxomfar - AR_FLAGS='r $@' - LD='$(CC)' - CFLAGS="$CFLAGS -Wall -Zomf" - CXXFLAGS="$CFLAGS -Wall -Zomf" - MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@' - DSO_CFLAGS= - DSO_LDOPTS='-Zomf -Zdll' - _OPTIMIZE_FLAGS=-O3 - _DEBUG_FLAGS="-g -fno-inline" - if test -n "$MOZ_OPTIMIZE"; then - DSO_LDOPTS="$DSO_LDOPTS -Zlinker /EXEPACK:2 -Zlinker /PACKCODE -Zlinker /PACKDATA" - fi - OS_LIBS="-lsocket" - IMPLIB='emximp -o' - FILTER='emxexp -o' - if test -n "$MOZ_OS2_HIGH_MEMORY"; then - DSO_LDOPTS="$DSO_LDOPTS -Zhigh-mem" - LDFLAGS="$LDFLAGS -Zhigh-mem" - cat >> confdefs.h <<\EOF -#define MOZ_OS2_HIGH_MEMORY 1 -EOF - - fi - - # GCC for OS/2 currently predefines these, but we don't want them - DEFINES="$DEFINES -Uunix -U__unix -U__unix__" - ;; - -*-osf*) - SHELL_OVERRIDE="SHELL = /usr/bin/ksh" - cat >> confdefs.h <<\EOF -#define XP_UNIX 1 -EOF - - cat >> confdefs.h <<\EOF -#define OSF1 1 -EOF - - cat >> confdefs.h <<\EOF -#define _REENTRANT 1 -EOF - - ac_safe=`echo "machine/builtins.h" | sed 'y%./+-%__p_%'` -echo $ac_n "checking for machine/builtins.h""... $ac_c" 1>&6 -echo "configure:5265: checking for machine/builtins.h" >&5 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -EOF -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" -{ (eval echo configure:5275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` -if test -z "$ac_err"; then - rm -rf conftest* - eval "ac_cv_header_$ac_safe=yes" -else - echo "$ac_err" >&5 - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_header_$ac_safe=no" -fi -rm -f conftest* -fi -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then - echo "$ac_t""yes" 1>&6 - cat >> confdefs.h <<\EOF -#define OSF1_HAVE_MACHINE_BUILTINS_H 1 -EOF - -else - echo "$ac_t""no" 1>&6 -fi - - - if echo "$OS_RELEASE" | egrep -c '(V2.0|V3.2)' 2>/dev/null ; then - USE_NSPR_THREADS=1 - fi - - if test -z "$GNU_CC"; then - CC="$CC -std1 -ieee_with_inexact" - if test "$OS_RELEASE" != "V2.0"; then - CC="$CC -readonly_strings" - fi - _OPTIMIZE_FLAGS="$_OPTIMIZE_FLAGS -Olimit 4000" - fi - - if echo $OS_RELEASE | egrep -c '(V2.0|V3.2)' 2>/dev/null; then - cat >> confdefs.h <<\EOF -#define HAVE_INT_LOCALTIME_R 1 -EOF - - else - cat >> confdefs.h <<\EOF -#define HAVE_FCNTL_FILE_LOCKING 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_POINTER_LOCALTIME_R 1 -EOF - - fi - if echo $OS_RELEASE | grep -c V4.0 >/dev/null; then - cat >> confdefs.h <<\EOF -#define OSF1V4_MAP_PRIVATE_BUG 1 -EOF - - fi - DSO_LDOPTS='-shared -all -expect_unresolved "*" -soname $(notdir $@)' - ;; - -*-qnx*) - cat >> confdefs.h <<\EOF -#define XP_UNIX 1 -EOF - - cat >> confdefs.h <<\EOF -#define QNX 1 -EOF - - cat >> confdefs.h <<\EOF -#define _PR_NEED_H_ERRNO 1 -EOF - - USE_NSPR_THREADS=1 - ;; - -*-*-sco*) - cat >> confdefs.h <<\EOF -#define XP_UNIX 1 -EOF - - cat >> confdefs.h <<\EOF -#define SCO 1 -EOF - - cat >> confdefs.h <<\EOF -#define sco 1 -EOF - - cat >> confdefs.h <<\EOF -#define SYSV 1 -EOF - - cat >> confdefs.h <<\EOF -#define _SVID3 1 -EOF - - cat >> confdefs.h <<\EOF -#define _PR_NEED_H_ERRNO 1 -EOF - - CC='cc -b elf -KPIC' - CXX='$(NSDEPTH)/build/hcpp CC +.cpp +w' - USE_NSPR_THREADS=1 - CPU_ARCH=x86 - DSO_LDOPTS='-b elf -G' - ;; - -*-sinix*) - cat >> confdefs.h <<\EOF -#define XP_UNIX 1 -EOF - - cat >> confdefs.h <<\EOF -#define SVR4 1 -EOF - - cat >> confdefs.h <<\EOF -#define SNI 1 -EOF - - cat >> confdefs.h <<\EOF -#define RELIANTUNIX 1 -EOF - - cat >> confdefs.h <<\EOF -#define sinix 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_SVID_GETTOD 1 -EOF - - if echo "$OS_TEST" | grep -c 86 2>/dev/null; then - cat >> confdefs.h <<\EOF -#define i386 1 -EOF - - CPU_ARCH=x86 - else - CPU_ARCH=mips - fi - - if test "$GNU_CC"; then - AS='$(CC) -x assembler-with-cpp' - if test "$CPU_ARCH" = "mips"; then - LD=gld - fi - CFLAGS="$CFLAGS -Wall -Wno-format" - else - AS='/usr/bin/cc' - _OPTIMIZE_FLAGS='-O -F Olimit,4000' - fi - - DSO_LDOPTS='-G -z defs -h $(@:$(OBJDIR)/%.so=%.so)' - - if test "$OS_RELEASE" = "5.43"; then - cat >> confdefs.h <<\EOF -#define IP_MULTICAST 1 -EOF - - fi - - OS_LIBS="$OS_LIBS -lsocket -lnsl -lresolv -ldl -lc" - USE_NSPR_THREADS=1 - ;; - -*-sunos*) - cat >> confdefs.h <<\EOF -#define XP_UNIX 1 -EOF - - cat >> confdefs.h <<\EOF -#define SUNOS4 1 -EOF - - CFLAGS="$CFLAGS -Wall -Wno-format" - if test "$USE_MDUPDATE"; then - CFLAGS="$CFLAGS -MDupdate \$(DEPENDENCIES)" - fi - CPU_ARCH=sparc - DLL_SUFFIX=so.1.0 - DSO_LDOPTS= - DSO_CFLAGS=-fPIC - USE_NSPR_THREADS=1 - if test "$OS_RELEASE" = "4.1.3_U1"; then - _OPTIMIZE_FLAGS= - OS_LIBS="$OS_LIBS -lm" - fi - ;; - -*-solaris*) - if test -z "$USE_USER_THREADS" && test -z "$USE_NATIVE_THREADS"; then - USE_PTHREADS=1 - fi - cat >> confdefs.h <<\EOF -#define XP_UNIX 1 -EOF - - cat >> confdefs.h <<\EOF -#define SVR4 1 -EOF - - cat >> confdefs.h <<\EOF -#define SYSV 1 -EOF - - cat >> confdefs.h <<\EOF -#define __svr4 1 -EOF - - cat >> confdefs.h <<\EOF -#define __svr4__ 1 -EOF - - cat >> confdefs.h <<\EOF -#define SOLARIS 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_FCNTL_FILE_LOCKING 1 -EOF - - if test -n "$GNU_CC" ; then - if test -n "$USE_64"; then - CC="$CC -m64" - CXX="$CXX -m64" - fi - LD='$(CC)' - DSO_LDOPTS='-shared -Wl,-soname -Wl,$(notdir $@)' - DSO_CFLAGS=-fPIC - CFLAGS="$CFLAGS -Wall" - CXXFLAGS="$CXXFLAGS -Wall" - if test -n "$USE_MDUPDATE"; then - CFLAGS="$CFLAGS -MDupdate \$(DEPENDENCIES)" - CXXFLAGS="$CXXFLAGS -MDupdate \$(DEPENDENCIES)" - fi - else - LD=/usr/ccs/bin/ld - RANLIB=/usr/ccs/bin/ranlib - DSO_LDOPTS='-G -h $(notdir $@)' - DSO_CFLAGS=-KPIC - if test -n "$USE_64"; then - if test "$OS_TEST" = "i86pc"; then - CC="$CC -xarch=amd64" - CXX="$CXX -xarch=amd64" - else - CC="$CC -xarch=v9" - CXX="$CXX -xarch=v9" - fi - fi - CC="$CC -xstrconst" - if test -z "$MOZ_OPTIMIZE"; then - CFLAGS="$CFLAGS -xs" - CXXFLAGS="$CXXFLAGS -xs" - fi - fi - if test "$DEFAULT_RPATHFLAG" = "$RPATHFLAG" ; then - # add origin stuff - RPATHFLAG="\\\$\$ORIGIN/../lib:\\\$\$ORIGIN/../../lib:$RPATHFLAG" - fi - if test -z "$GNU_AS"; then - ASFLAGS="$ASFLAGS -Wa,-P" - fi - if test "$OS_TEST" = "i86pc"; then - cat >> confdefs.h <<\EOF -#define i386 1 -EOF - - - # The default debug format, DWARF (-g), is not supported by gcc - # on i386-ANY-sysv4/solaris, but the stabs format is. It is - # assumed that the Solaris assembler /usr/ccs/bin/as is used. - # If your gcc uses GNU as, you do not need the -Wa,-s option. - if test -n "$MOZ_DEBUG" && test -n "$GNU_CC"; then - _DEBUG_FLAGS=-gstabs - if test -z "$GNU_AS"; then - _DEBUG_FLAGS="$_DEBUG_FLAGS -Wa,-s" - fi - fi - fi - case "${target_os}" in - solaris2.3*) - cat >> confdefs.h <<\EOF -#define _PR_NO_LARGE_FILES 1 -EOF - - ;; - solaris2.4*) - cat >> confdefs.h <<\EOF -#define _PR_NO_LARGE_FILES 1 -EOF - - ;; - solaris2.5*) - cat >> confdefs.h <<\EOF -#define SOLARIS2_5 1 -EOF - - ;; - *) - cat >> confdefs.h <<\EOF -#define _PR_HAVE_OFF64_T 1 -EOF - - # The lfcompile64(5) man page on Solaris 2.6 says: - # For applications that do not wish to conform to the POSIX or - # X/Open specifications, the 64-bit transitional interfaces - # are available by default. No compile-time flags need to be - # set. - # But gcc 2.7.2.x fails to define _LARGEFILE64_SOURCE by default. - # The native compiler, gcc 2.8.x, and egcs don't have this problem. - if test -n "$GNU_CC"; then - cat >> confdefs.h <<\EOF -#define _LARGEFILE64_SOURCE 1 -EOF - - fi - ;; - esac - if test "$OS_TEST" = "sun4u"; then - # 64-bit Solaris requires SPARC V9 architecture, so the following - # is not needed. - if test -z "$USE_64"; then - ULTRASPARC_LIBRARY=ultrasparc - ULTRASPARC_FILTER_LIBRARY=libatomic.so - DSO_LDOPTS="$DSO_LDOPTS -f "'$(ULTRASPARC_FILTER_LIBRARY)' - fi - fi - ;; - -*-sco-sysv5*) - cat >> confdefs.h <<\EOF -#define XP_UNIX 1 -EOF - - cat >> confdefs.h <<\EOF -#define UNIXWARE 1 -EOF - - cat >> confdefs.h <<\EOF -#define SVR4 1 -EOF - - cat >> confdefs.h <<\EOF -#define SYSV 1 -EOF - - USE_NSPR_THREADS=1 - if echo $OS_RELEASE | grep -c 2.1 2>/dev/null; then - cat >> confdefs.h <<\EOF -#define _PR_NO_LARGE_FILES 1 -EOF - - CC='$(NSDEPTH)/build/hcc cc' - CXX='$(NSDEPTH)/build/hcpp CC' - else - cat >> confdefs.h <<\EOF -#define _LARGEFILE64_SOURCE 1 -EOF - - cat >> confdefs.h <<\EOF -#define _PR_HAVE_OFF64_T 1 -EOF - - cat >> confdefs.h <<\EOF -#define _PR_HAVE_SOCKADDR_LEN 1 -EOF - - fi - DSO_LDOPTS=-G - CPU_ARCH=x86 - ;; - -*) - cat >> confdefs.h <<\EOF -#define XP_UNIX 1 -EOF - - ;; - -esac - -if test -z "$SKIP_LIBRARY_CHECKS"; then - -echo $ac_n "checking for dlopen""... $ac_c" 1>&6 -echo "configure:5662: checking for dlopen" >&5 -if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char dlopen(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_dlopen) || defined (__stub___dlopen) -choke me -#else -dlopen(); -#endif - -; return 0; } -EOF -if { (eval echo configure:5690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_dlopen=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_dlopen=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then - echo "$ac_t""yes" 1>&6 - : -else - echo "$ac_t""no" 1>&6 - - echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 -echo "configure:5709: checking for dlopen in -ldl" >&5 -ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-ldl $LIBS" -cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - OS_LIBS="-ldl $OS_LIBS" -else - echo "$ac_t""no" 1>&6 -fi - - -fi - - - - -if test $ac_cv_prog_gcc = yes; then - echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 -echo "configure:5756: checking whether ${CC-cc} needs -traditional" >&5 -if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_pattern="Autoconf.*'x'" - cat > conftest.$ac_ext < -Autoconf TIOCGETP -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "$ac_pattern" >/dev/null 2>&1; then - rm -rf conftest* - ac_cv_prog_gcc_traditional=yes -else - rm -rf conftest* - ac_cv_prog_gcc_traditional=no -fi -rm -f conftest* - - - if test $ac_cv_prog_gcc_traditional = no; then - cat > conftest.$ac_ext < -Autoconf TCGETA -EOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - egrep "$ac_pattern" >/dev/null 2>&1; then - rm -rf conftest* - ac_cv_prog_gcc_traditional=yes -fi -rm -f conftest* - - fi -fi - -echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6 - if test $ac_cv_prog_gcc_traditional = yes; then - CC="$CC -traditional" - fi -fi - -for ac_func in lchown strerror getaddrinfo getnameinfo -do -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 -echo "configure:5804: checking for $ac_func" >&5 -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char $ac_func(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_$ac_func) || defined (__stub___$ac_func) -choke me -#else -$ac_func(); -#endif - -; return 0; } -EOF -if { (eval echo configure:5832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_$ac_func=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_$ac_func=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then - echo "$ac_t""yes" 1>&6 - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` - cat >> confdefs.h <&6 -fi -done - - - - -# Check whether --enable-strip or --disable-strip was given. -if test "${enable_strip+set}" = set; then - enableval="$enable_strip" - ENABLE_STRIP=1 -fi - - - - - -echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6 -echo "configure:5870: checking for pthread_create in -lpthreads" >&5 -echo " - #include - void *foo(void *v) { int a = 1; } - int main() { - pthread_t t; - if (!pthread_create(&t, 0, &foo, 0)) { - pthread_join(t, 0); - } - exit(0); - }" > dummy.c ; - echo "${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -lpthreads $LDFLAGS $LIBS" 1>&5; - ${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -lpthreads $LDFLAGS $LIBS 2>&5; - _res=$? ; - rm -f dummy.c dummy${ac_exeext} ; - if test "$_res" = "0"; then - echo "$ac_t""yes" 1>&6 - _HAVE_PTHREADS=1 _PTHREAD_LDFLAGS="-lpthreads" - else - echo "$ac_t""no" 1>&6 - -echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 -echo "configure:5892: checking for pthread_create in -lpthread" >&5 -echo " - #include - void *foo(void *v) { int a = 1; } - int main() { - pthread_t t; - if (!pthread_create(&t, 0, &foo, 0)) { - pthread_join(t, 0); - } - exit(0); - }" > dummy.c ; - echo "${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -lpthread $LDFLAGS $LIBS" 1>&5; - ${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -lpthread $LDFLAGS $LIBS 2>&5; - _res=$? ; - rm -f dummy.c dummy${ac_exeext} ; - if test "$_res" = "0"; then - echo "$ac_t""yes" 1>&6 - _HAVE_PTHREADS=1 _PTHREAD_LDFLAGS="-lpthread" - else - echo "$ac_t""no" 1>&6 - -echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6 -echo "configure:5914: checking for pthread_create in -lc_r" >&5 -echo " - #include - void *foo(void *v) { int a = 1; } - int main() { - pthread_t t; - if (!pthread_create(&t, 0, &foo, 0)) { - pthread_join(t, 0); - } - exit(0); - }" > dummy.c ; - echo "${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -lc_r $LDFLAGS $LIBS" 1>&5; - ${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -lc_r $LDFLAGS $LIBS 2>&5; - _res=$? ; - rm -f dummy.c dummy${ac_exeext} ; - if test "$_res" = "0"; then - echo "$ac_t""yes" 1>&6 - _HAVE_PTHREADS=1 _PTHREAD_LDFLAGS="-lc_r" - else - echo "$ac_t""no" 1>&6 - -echo $ac_n "checking for pthread_create in -lc""... $ac_c" 1>&6 -echo "configure:5936: checking for pthread_create in -lc" >&5 -echo " - #include - void *foo(void *v) { int a = 1; } - int main() { - pthread_t t; - if (!pthread_create(&t, 0, &foo, 0)) { - pthread_join(t, 0); - } - exit(0); - }" > dummy.c ; - echo "${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -lc $LDFLAGS $LIBS" 1>&5; - ${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -lc $LDFLAGS $LIBS 2>&5; - _res=$? ; - rm -f dummy.c dummy${ac_exeext} ; - if test "$_res" = "0"; then - echo "$ac_t""yes" 1>&6 - _HAVE_PTHREADS=1 - - else - echo "$ac_t""no" 1>&6 - - fi - - - fi - - - fi - - - fi - - -# Check whether --with-pthreads or --without-pthreads was given. -if test "${with_pthreads+set}" = set; then - withval="$with_pthreads" - if test "$withval" = "yes"; then - if test -n "$_HAVE_PTHREADS"; then - USE_PTHREADS=1 - USE_USER_PTHREADS= - USE_NSPR_THREADS= - else - { echo "configure: error: --with-pthreads specified for a system without pthread support " 1>&2; exit 1; }; - fi - else - USE_PTHREADS= - _PTHREAD_LDFLAGS= - fi -else - if test -n "$_HAVE_PTHREADS" && test -z "$USE_USER_PTHREADS" && test -z "$USER_NSPR_THREADS"; then - USE_PTHREADS=1 - USE_USER_PTHREADS= - USE_NSPR_THREADS= - fi -fi - - -# Check whether --enable-user-pthreads or --disable-user-pthreads was given. -if test "${enable_user_pthreads+set}" = set; then - enableval="$enable_user_pthreads" - if test "$enableval" = "yes"; then - if test -n "$_HAVE_PTHREADS"; then - USE_PTHREADS= - USE_USER_PTHREADS=1 - USE_NSPR_THREADS= - else - { echo "configure: error: --enable-user-pthreads specified for a system without pthread support " 1>&2; exit 1; }; - fi - fi -fi - - -# Check whether --enable-nspr-threads or --disable-nspr-threads was given. -if test "${enable_nspr_threads+set}" = set; then - enableval="$enable_nspr_threads" - if test "$enableval" = "yes"; then - USE_PTHREADS= - USE_USER_PTHREADS= - USE_NSPR_THREADS=1 - fi -fi - - -case "$target" in -*-beos*) - # Check whether --with-bthreads or --without-bthreads was given. -if test "${with_bthreads+set}" = set; then - withval="$with_bthreads" - if test "$withval" = "yes"; then - USE_BTHREADS=1 - USE_USER_PTHREADS= - USE_PTHREADS= - fi -fi - - ;; - -*-solaris*) - # Check whether --with-native-threads or --without-native-threads was given. -if test "${with_native_threads+set}" = set; then - withval="$with_native_threads" - if test "$withval" = "yes"; then - USE_NATIVE_THREADS=1 - USE_USER_PTHREADS= - USE_PTHREADS= - fi -fi - - ;; -esac - -fi # SKIP_LIBRARY_CHECKS - -# Check whether --enable-cplus or --disable-cplus was given. -if test "${enable_cplus+set}" = set; then - enableval="$enable_cplus" - if test "$enableval" = "yes"; then - USE_CPLUS=1 - fi -fi - - -# Check whether --enable-ipv6 or --disable-ipv6 was given. -if test "${enable_ipv6+set}" = set; then - enableval="$enable_ipv6" - if test "$enableval" = "yes"; then - USE_IPV6=1 - fi -fi - - - -echo $ac_n "checking for --with-sasl""... $ac_c" 1>&6 -echo "configure:6070: checking for --with-sasl" >&5 -# Check whether --with-sasl or --without-sasl was given. -if test "${with_sasl+set}" = set; then - withval="$with_sasl" - - if test "$withval" = "yes"; then - echo "$ac_t""yes" 1>&6 - HAVE_SASL=1 - - if test -f /usr/include/sasl/sasl.h; then - SASL_CFLAGS="-I/usr/include/sasl" - elif test -f /usr/include/sasl.h; then - SASL_CFLAGS="-I/usr/include" - else - { echo "configure: error: sasl.h not found" 1>&2; exit 1; } - fi - - elif test -d "$withval" -a -d "$withval/lib" -a -d "$withval/include" ; then - echo "$ac_t""using $withval" 1>&6 - HAVE_SASL=1 - - if test -f "$withval/include/sasl/sasl.h"; then - SASL_CFLAGS="-I$withval/include/sasl" - elif test -f "$withval/include/sasl.h"; then - SASL_CFLAGS="-I$withval/include" - else - { echo "configure: error: sasl.h not found" 1>&2; exit 1; } - fi - - SASL_LIBS="-L$withval/lib" - else - echo "$ac_t""yes" 1>&6 - { echo "configure: error: sasl not found in $withval" 1>&2; exit 1; } - fi - -else - echo "$ac_t""no" 1>&6 -fi - - -echo $ac_n "checking for --with-sasl-inc""... $ac_c" 1>&6 -echo "configure:6111: checking for --with-sasl-inc" >&5 -# Check whether --with-sasl-inc or --without-sasl-inc was given. -if test "${with_sasl_inc+set}" = set; then - withval="$with_sasl_inc" - - if test -f "$withval"/sasl.h; then - echo "$ac_t""using $withval" 1>&6 - HAVE_SASL=1 - SASL_CFLAGS="-I$withval" - else - echo - { echo "configure: error: $withval/sasl.h not found" 1>&2; exit 1; } - fi - -else - echo "$ac_t""no" 1>&6 -fi - - -echo $ac_n "checking for --with-sasl-lib""... $ac_c" 1>&6 -echo "configure:6131: checking for --with-sasl-lib" >&5 -# Check whether --with-sasl-lib or --without-sasl-lib was given. -if test "${with_sasl_lib+set}" = set; then - withval="$with_sasl_lib" - - if test -d "$withval"; then - echo "$ac_t""using $withval" 1>&6 - HAVE_SASL=1 - SASL_LIBS="-L$withval" - else - echo - { echo "configure: error: $withval not found" 1>&2; exit 1; } - fi - -else - echo "$ac_t""no" 1>&6 -fi - - -# check for sasl -if test -n "$_WIN32_MSVC" -a -n "$USE_WINDOWS_PATHS" ; then - if test -n "$SASL_CFLAGS" -a -z "$SKIP_CYGWIN_FIXUP" ; then - path=`echo $SASL_CFLAGS | sed -e 's/^-I//'` - path=`cygpath -m $path` - SASL_CFLAGS="/I$path" - fi - if test -n "$SASL_LIBS" -a -z "$SKIP_CYGWIN_FIXUP" ; then - path=`echo $SASL_LIBS | sed -e 's/^-L//'` - path=`cygpath -m $path` - SASL_LIBS="/LIBPATH:$path" - fi - special_sasl_check_lib=1 -fi -# set ldflags to point to where the user told us to find the sasl libs, -# if any - otherwise it will just use the default location (e.g. /usr/lib) -# the way AC_CHECK_LIB works is it actually attempts to compile and link -# a test program - that's why we need to set LDFLAGS -SAVE_LDFLAGS=$LDFLAGS -if test -n "$SASL_LIBS" ; then - LDFLAGS="$LDFLAGS $SASL_LIBS" -fi - -echo $ac_n "checking for getaddrinfo""... $ac_c" 1>&6 -echo "configure:6174: checking for getaddrinfo" >&5 -if eval "test \"`echo '$''{'ac_cv_func_getaddrinfo'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - cat > conftest.$ac_ext < -/* Override any gcc2 internal prototype to avoid an error. */ -/* We use char because int might match the return type of a gcc2 - builtin and then its argument prototype would still apply. */ -char getaddrinfo(); - -int main() { - -/* The GNU C library defines this for functions which it implements - to always fail with ENOSYS. Some functions are actually named - something starting with __ and the normal name is an alias. */ -#if defined (__stub_getaddrinfo) || defined (__stub___getaddrinfo) -choke me -#else -getaddrinfo(); -#endif - -; return 0; } -EOF -if { (eval echo configure:6202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_func_getaddrinfo=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_func_getaddrinfo=no" -fi -rm -f conftest* -fi - -if eval "test \"`echo '$ac_cv_func_'getaddrinfo`\" = yes"; then - echo "$ac_t""yes" 1>&6 - : -else - echo "$ac_t""no" 1>&6 - - echo $ac_n "checking for getaddrinfo in -lsocket""... $ac_c" 1>&6 -echo "configure:6221: checking for getaddrinfo in -lsocket" >&5 -ac_lib_var=`echo socket'_'getaddrinfo | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lsocket $LIBS" -cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - LIBS="-lsocket -lnsl $LIBS" -else - echo "$ac_t""no" 1>&6 -fi - -fi - - -if test -n "$special_sasl_check_lib" ; then - # use this to override the ac_link LIBS used by AC_CHECK_LIB - # ac_link puts conftest.c betwen $LDFLAGS and $LIBS, but we - # have to use /LIBPATH which must come after the /link directive - # however, anything after /link on the command line is assumed to - # be a linker directive, and conftest.c is not valid there - # we want to end up with cl.exe .... conftest.c /link /LIBPATH:foo libsasl.lib - LDFLAGS= - SAVE_LIBS="$LIBS" - LIBS="/link $SASL_LIBS sasl32.lib" - echo $ac_n "checking for sasl_client_init in -lsasl32""... $ac_c" 1>&6 -echo "configure:6274: checking for sasl_client_init in -lsasl32" >&5 -ac_lib_var=`echo sasl32'_'sasl_client_init | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lsasl32 $LIBS" -cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - sasl_lib=sasl32.lib -else - echo "$ac_t""no" 1>&6 -fi - - if test -z "$sasl_lib" ; then - LIBS="/link $SASL_LIBS libsasl2.lib" - echo $ac_n "checking for sasl_client_init in -lsasl2""... $ac_c" 1>&6 -echo "configure:6316: checking for sasl_client_init in -lsasl2" >&5 -ac_lib_var=`echo sasl2'_'sasl_client_init | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lsasl2 $LIBS" -cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - sasl_lib=libsasl2.lib -else - echo "$ac_t""no" 1>&6 -fi - - fi - if test -z "$sasl_lib" ; then - LIBS="/link $SASL_LIBS libsasl.lib" - echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6 -echo "configure:6359: checking for sasl_client_init in -lsasl" >&5 -ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lsasl $LIBS" -cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - sasl_lib=libsasl.lib -else - echo "$ac_t""no" 1>&6 -fi - - fi - LIBS="$SAVE_LIBS" -else - echo $ac_n "checking for sasl_client_init in -lsasl2""... $ac_c" 1>&6 -echo "configure:6402: checking for sasl_client_init in -lsasl2" >&5 -ac_lib_var=`echo sasl2'_'sasl_client_init | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lsasl2 $LIBS" -cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - sasl_lib=-lsasl2 -else - echo "$ac_t""no" 1>&6 -echo $ac_n "checking for sasl_client_init in -lsasl""... $ac_c" 1>&6 -echo "configure:6440: checking for sasl_client_init in -lsasl" >&5 -ac_lib_var=`echo sasl'_'sasl_client_init | sed 'y%./+-%__p_%'` -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then - echo $ac_n "(cached) $ac_c" 1>&6 -else - ac_save_LIBS="$LIBS" -LIBS="-lsasl $LIBS" -cat > conftest.$ac_ext <&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=yes" -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - eval "ac_cv_lib_$ac_lib_var=no" -fi -rm -f conftest* -LIBS="$ac_save_LIBS" - -fi -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 - sasl_lib=-lsasl -else - echo "$ac_t""no" 1>&6 -fi - -fi - -fi - -SASL_LIBS="$SASL_LIBS $sasl_lib" -LDFLAGS=$SAVE_LDFLAGS - - - - - -if test -n "$HAVE_SASL"; then - cat >> confdefs.h <<\EOF -#define HAVE_SASL 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_SASL_OPTIONS 1 -EOF - - cat >> confdefs.h <<\EOF -#define LDAP_SASLIO_HOOKS 1 -EOF - -fi - - -if test -n "$USE_PTHREADS"; then - rm -f conftest* - ac_cv_have_dash_pthread=no - echo $ac_n "checking whether ${CC-cc} accepts -pthread""... $ac_c" 1>&6 -echo "configure:6510: checking whether ${CC-cc} accepts -pthread" >&5 - echo 'int main() { return 0; }' | cat > conftest.c - ${CC-cc} -pthread -o conftest conftest.c > conftest.out 2>&1 - if test $? -eq 0; then - if test -z "`egrep -i '(unrecognize|unknown)' conftest.out | grep pthread`" && test -z "`egrep -i '(error|incorrect)' conftest.out`" ; then - ac_cv_have_dash_pthread=yes - case "$target_os" in - dragonfly*|freebsd*) -# Freebsd doesn't use -pthread for compiles, it uses them for linking - ;; - *) - CFLAGS="$CFLAGS -pthread" - CXXFLAGS="$CXXFLAGS -pthread" - ;; - esac - fi - fi - rm -f conftest* - echo "$ac_t""$ac_cv_have_dash_pthread" 1>&6 - - ac_cv_have_dash_pthreads=no - if test "$ac_cv_have_dash_pthread" = "no"; then - echo $ac_n "checking whether ${CC-cc} accepts -pthreads""... $ac_c" 1>&6 -echo "configure:6526: checking whether ${CC-cc} accepts -pthreads" >&5 - echo 'int main() { return 0; }' | cat > conftest.c - ${CC-cc} -pthreads -o conftest conftest.c > conftest.out 2>&1 - if test $? -eq 0; then - if test -z "`egrep -i '(unrecognize|unknown)' conftest.out | grep pthreads`" && test -z "`egrep -i '(error|incorrect)' conftest.out`" ; then - ac_cv_have_dash_pthreads=yes - CFLAGS="$CFLAGS -pthreads" - CXXFLAGS="$CXXFLAGS -pthreads" - fi - fi - rm -f conftest* - echo "$ac_t""$ac_cv_have_dash_pthreads" 1>&6 - fi - - case "$target" in - *-solaris*) - if test "$ac_cv_have_dash_pthreads" = "yes"; then - _PTHREAD_LDFLAGS= - fi - ;; - *-dragonfly*|*-freebsd*) - cat >> confdefs.h <<\EOF -#define _REENTRANT 1 -EOF - - cat >> confdefs.h <<\EOF -#define _THREAD_SAFE 1 -EOF - - if test "$ac_cv_have_dash_pthread" = "yes"; then - _PTHREAD_LDFLAGS="-pthread" - else - _PTHREAD_LDFLAGS="-lc_r" - fi - ;; - *-openbsd*|*-bsdi*|*-netbsd*) - cat >> confdefs.h <<\EOF -#define _THREAD_SAFE 1 -EOF - - if test "$ac_cv_have_dash_pthread" = "yes"; then - _PTHREAD_LDFLAGS= - fi - ;; - *-linux*) - cat >> confdefs.h <<\EOF -#define _REENTRANT 1 -EOF - - ;; - esac - -else - if test -n "$USE_USER_PTHREADS"; then - USE_PTHREADS= - USE_NSPR_THREADS= - else - _PTHREAD_LDFLAGS= - fi -fi - -case "$target" in -*-aix*) - if test -n "$USE_NSPR_THREADS"; then - cat >> confdefs.h <<\EOF -#define _PR_LOCAL_THREADS_ONLY 1 -EOF - - fi - case "$target_os" in - aix4.1*) - if test -z "$USE_PTHREADS"; then - cat >> confdefs.h <<\EOF -#define AIX_RENAME_SELECT 1 -EOF - - fi - ;; - aix4.2*) - if test -z "$USE_NSPR_THREADS"; then - cat >> confdefs.h <<\EOF -#define HAVE_POINTER_LOCALTIME_R 1 -EOF - - fi - ;; - aix4.3*) - if test -z "$USE_NSPR_THREADS"; then - cat >> confdefs.h <<\EOF -#define HAVE_POINTER_LOCALTIME_R 1 -EOF - - fi - if test -n "$USE_PTHREADS"; then - cat >> confdefs.h <<\EOF -#define _PR_HAVE_THREADSAFE_GETHOST 1 -EOF - - fi - ;; - esac - ;; -*-bsdi*) - if test -n "$USE_PTHREADS"; then - cat >> confdefs.h <<\EOF -#define _PR_NEED_PTHREAD_INIT 1 -EOF - - fi - ;; -*-freebsd*) - if test -n "$USE_NSPR_THREADS"; then - cat >> confdefs.h <<\EOF -#define _PR_LOCAL_THREADS_ONLY 1 -EOF - - fi - ;; -*-hpux*) - if test -n "$USE_NSPR_THREADS"; then - cat >> confdefs.h <<\EOF -#define _PR_LOCAL_THREADS_ONLY 1 -EOF - - fi - if test "$USE_PTHREADS"; then - if echo "$OS_RELEASE" | egrep '^(B.10.10|B.10.20)' >/dev/null; then - cat >> confdefs.h <<\EOF -#define _REENTRANT 1 -EOF - - cat >> confdefs.h <<\EOF -#define _PR_DCETHREADS 1 -EOF - - else - cat >> confdefs.h <> confdefs.h <<\EOF -#define _PR_HAVE_THREADSAFE_GETHOST 1 -EOF - - fi - fi - if test "$USE_USER_PTHREADS"; then - cat >> confdefs.h <> confdefs.h <<\EOF -#define _PR_HAVE_GETHOST_R 1 -EOF - - cat >> confdefs.h <<\EOF -#define _PR_HAVE_GETHOST_R_POINTER 1 -EOF - - fi - fi - ;; -*-linux*) - if test -n "$USE_NSPR_THREADS"; then - cat >> confdefs.h <<\EOF -#define _PR_LOCAL_THREADS_ONLY 1 -EOF - - fi - ;; -*-mingw*|*-cygwin*|*-msvc*|*-mks*|*-os2*|*-beos*) - USE_PTHREADS= - _PTHREAD_LDFLAGS= - USE_USER_PTHREADS= - ;; -*-netbsd*) - if test -n "$USE_NSPR_THREADS"; then - cat >> confdefs.h <<\EOF -#define _PR_LOCAL_THREADS_ONLY 1 -EOF - - fi - ;; -*-osf*) - if test -n "$USE_NSPR_THREADS"; then - cat >> confdefs.h <<\EOF -#define _PR_LOCAL_THREADS_ONLY 1 -EOF - - fi - if test -n "$USE_PTHREADS"; then - if echo $OS_RELEASE | egrep -c '(V2.0|V3.2)' 2>/dev/null; then - : - else - cat >> confdefs.h <<\EOF -#define _PR_HAVE_THREADSAFE_GETHOST 1 -EOF - - fi - fi - ;; -*-solaris*) - if test -n "$USE_NATIVE_THREADS"; then - cat >> confdefs.h <<\EOF -#define _PR_GLOBAL_THREADS_ONLY 1 -EOF - - else - if test -n "$USE_NSPR_THREADS"; then - cat >> confdefs.h <<\EOF -#define _PR_LOCAL_THREADS_ONLY 1 -EOF - - fi - fi - if test -z "$USE_NSPR_THREADS"; then - cat >> confdefs.h <<\EOF -#define _REENTRANT 1 -EOF - - cat >> confdefs.h <<\EOF -#define HAVE_POINTER_LOCALTIME_R 1 -EOF - - fi - ;; -*-nto*) - if test -n "$USE_PTHREADS"; then - cat >> confdefs.h <<\EOF -#define _PR_HAVE_GETHOST_R 1 -EOF - - cat >> confdefs.h <<\EOF -#define _PR_HAVE_GETHOST_R_POINTER 1 -EOF - - fi - ;; -esac - -OS_LIBS="$_PTHREAD_LDFLAGS $OS_LIBS" - -if test -n "$_SAVE_OPTIMIZE_FLAGS"; then - _OPTIMIZE_FLAGS="$_SAVE_OPTIMIZE_FLAGS" -fi - -if test -n "$_SAVE_DEBUG_FLAGS"; then - _DEBUG_FLAGS="$_SAVE_DEBUG_FLAGS" -fi - -if test -n "$MOZ_OPTIMIZE"; then - CFLAGS="$CFLAGS $_OPTIMIZE_FLAGS" - CXXFLAGS="$CXXFLAGS $_OPTIMIZE_FLAGS" -fi - -if test -n "$MOZ_DEBUG"; then - CFLAGS="$CFLAGS $_DEBUG_FLAGS" - CXXFLAGS="$CXXFLAGS $_DEBUG_FLAGS" -fi - -case "$target_os" in -cygwin*|msvc*|mks*) - CC="\$(CYGWIN_WRAPPER) $CC" - CXX="\$(CYGWIN_WRAPPER) $CXX" - RC="\$(CYGWIN_WRAPPER) $RC" - ;; -esac - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -MAKEFILES=" -Makefile -config/Makefile -config/autoconf.mk -ldap/Makefile -ldap/clients/tools/Makefile -ldap/include/Makefile -ldap/libraries/Makefile -ldap/libraries/libldap/Makefile -ldap/libraries/libprldap/Makefile -ldap/libraries/libldif/Makefile -ldap/libraries/liblber/Makefile -ldap/libraries/libiutil/Makefile -ldap/libraries/libssldap/Makefile -ldap/libraries/libutil/Makefile -" - -mkdir ldap > /dev/null 2>&1 -mkdir ldap/clients > /dev/null 2>&1 - -echo $MAKEFILES > unallmakefiles - -trap '' 1 2 15 -cat > confcache <<\EOF -# This file is a shell script that caches the results of configure -# tests run on this system so they can be shared between configure -# scripts and configure runs. It is not useful on other systems. -# If it contains results you don't want to keep, you may remove or edit it. -# -# By default, configure uses ./config.cache as the cache file, -# creating it if it does not exist already. You can give configure -# the --cache-file=FILE option to use a different cache file; that is -# what configure does when it calls configure scripts in -# subdirectories, so they share the cache. -# Giving --cache-file=/dev/null disables caching, for debugging configure. -# config.status only pays attention to the cache file if you give it the -# --recheck option to rerun configure. -# -EOF -# The following way of writing the cache mishandles newlines in values, -# but we know of no workaround that is simple, portable, and efficient. -# So, don't put newlines in cache variables' values. -# Ultrix sh set writes to stderr and can't be redirected directly, -# and sets the high bit in the cache file unless we assign to the vars. -(set) 2>&1 | - case `(ac_space=' '; set | grep ac_space) 2>&1` in - *ac_space=\ *) - # `set' does not quote correctly, so add quotes (double-quote substitution - # turns \\\\ into \\, and sed turns \\ into \). - sed -n \ - -e "s/'/'\\\\''/g" \ - -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" - ;; - *) - # `set' quotes correctly as required by POSIX, so do not add quotes. - sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' - ;; - esac >> confcache -if cmp -s $cache_file confcache; then - : -else - if test -w $cache_file; then - echo "updating cache $cache_file" - cat confcache > $cache_file - else - echo "not updating unwritable cache $cache_file" - fi -fi -rm -f confcache - -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 - -test "x$prefix" = xNONE && prefix=$ac_default_prefix -# Let make expand exec_prefix. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' - -# Any assignment to VPATH causes Sun make to only execute -# the first set of double-colon rules, so remove it if not needed. -# If there is a colon in the path, we need to keep it. -if test "x$srcdir" = x.; then - ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' -fi - -trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 - -# Transform confdefs.h into DEFS. -# Protect against shell expansion while executing Makefile rules. -# Protect against Makefile macro expansion. -cat > conftest.defs <<\EOF -s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g -s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g -s%\[%\\&%g -s%\]%\\&%g -s%\$%$$%g -EOF -DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '` -rm -f conftest.defs - - -# Without the "./", some shells look in PATH for config.status. -: ${CONFIG_STATUS=./config.status} - -echo creating $CONFIG_STATUS -rm -f $CONFIG_STATUS -cat > $CONFIG_STATUS </dev/null | sed 1q`: -# -# $0 $ac_configure_args -# -# Compiler output produced by configure, useful for debugging -# configure, is in ./config.log if it exists. - -ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" -for ac_option -do - case "\$ac_option" in - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) - echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" - exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; - -version | --version | --versio | --versi | --vers | --ver | --ve | --v) - echo "$CONFIG_STATUS generated by autoconf version 2.13" - exit 0 ;; - -help | --help | --hel | --he | --h) - echo "\$ac_cs_usage"; exit 0 ;; - *) echo "\$ac_cs_usage"; exit 1 ;; - esac -done - -ac_given_srcdir=$srcdir - -trap 'rm -fr `echo "$MAKEFILES" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 -EOF -cat >> $CONFIG_STATUS < conftest.subs <<\\CEOF -$ac_vpsub -$extrasub -s%@SHELL@%$SHELL%g -s%@CFLAGS@%$CFLAGS%g -s%@CPPFLAGS@%$CPPFLAGS%g -s%@CXXFLAGS@%$CXXFLAGS%g -s%@FFLAGS@%$FFLAGS%g -s%@DEFS@%$DEFS%g -s%@LDFLAGS@%$LDFLAGS%g -s%@LIBS@%$LIBS%g -s%@exec_prefix@%$exec_prefix%g -s%@prefix@%$prefix%g -s%@program_transform_name@%$program_transform_name%g -s%@bindir@%$bindir%g -s%@sbindir@%$sbindir%g -s%@libexecdir@%$libexecdir%g -s%@datadir@%$datadir%g -s%@sysconfdir@%$sysconfdir%g -s%@sharedstatedir@%$sharedstatedir%g -s%@localstatedir@%$localstatedir%g -s%@libdir@%$libdir%g -s%@includedir@%$includedir%g -s%@oldincludedir@%$oldincludedir%g -s%@infodir@%$infodir%g -s%@mandir@%$mandir%g -s%@host@%$host%g -s%@host_alias@%$host_alias%g -s%@host_cpu@%$host_cpu%g -s%@host_vendor@%$host_vendor%g -s%@host_os@%$host_os%g -s%@target@%$target%g -s%@target_alias@%$target_alias%g -s%@target_cpu@%$target_cpu%g -s%@target_vendor@%$target_vendor%g -s%@target_os@%$target_os%g -s%@build@%$build%g -s%@build_alias@%$build_alias%g -s%@build_cpu@%$build_cpu%g -s%@build_vendor@%$build_vendor%g -s%@build_os@%$build_os%g -s%@CC@%$CC%g -s%@dist_prefix@%$dist_prefix%g -s%@dist_bindir@%$dist_bindir%g -s%@dist_libdir@%$dist_libdir%g -s%@BUILDCLU@%$BUILDCLU%g -s%@SVRCORE_LIBS@%$SVRCORE_LIBS%g -s%@HAVE_SVRCORE@%$HAVE_SVRCORE%g -s%@PKG_CONFIG@%$PKG_CONFIG%g -s%@SVRCORE_CFLAGS@%$SVRCORE_CFLAGS%g -s%@NSS_CFLAGS@%$NSS_CFLAGS%g -s%@NSS_LIBS@%$NSS_LIBS%g -s%@NSS_CONFIG@%$NSS_CONFIG%g -s%@NSPR_CFLAGS@%$NSPR_CFLAGS%g -s%@NSPR_LIBS@%$NSPR_LIBS%g -s%@NSPR_CONFIG@%$NSPR_CONFIG%g -s%@LIBS_ALREADY_SET@%$LIBS_ALREADY_SET%g -s%@WHOAMI@%$WHOAMI%g -s%@CXX@%$CXX%g -s%@CPP@%$CPP%g -s%@RANLIB@%$RANLIB%g -s%@AS@%$AS%g -s%@AR@%$AR%g -s%@LD@%$LD%g -s%@STRIP@%$STRIP%g -s%@WINDRES@%$WINDRES%g -s%@HOST_CC@%$HOST_CC%g -s%@PERL@%$PERL%g -s%@HAVE_MSVC_LIB@%$HAVE_MSVC_LIB%g -s%@SASL_LIBS@%$SASL_LIBS%g -s%@SASL_CFLAGS@%$SASL_CFLAGS%g -s%@HAVE_SASL@%$HAVE_SASL%g -s%@SHELL_OVERRIDE@%$SHELL_OVERRIDE%g -s%@MOZILLA_CLIENT@%$MOZILLA_CLIENT%g -s%@HOST_CFLAGS@%$HOST_CFLAGS%g -s%@GNU_CC@%$GNU_CC%g -s%@CROSS_COMPILE@%$CROSS_COMPILE%g -s%@MOZ_OPTIMIZE@%$MOZ_OPTIMIZE%g -s%@USE_CPLUS@%$USE_CPLUS%g -s%@USE_IPV6@%$USE_IPV6%g -s%@USE_N32@%$USE_N32%g -s%@USE_64@%$USE_64%g -s%@OBJECT_MODE@%$OBJECT_MODE%g -s%@ENABLE_STRIP@%$ENABLE_STRIP%g -s%@USE_PTHREADS@%$USE_PTHREADS%g -s%@USE_BTHREADS@%$USE_BTHREADS%g -s%@USE_USER_PTHREADS@%$USE_USER_PTHREADS%g -s%@USE_NATIVE_THREADS@%$USE_NATIVE_THREADS%g -s%@USE_NSPR_THREADS@%$USE_NSPR_THREADS%g -s%@USE_NSS@%$USE_NSS%g -s%@CPU_ARCH@%$CPU_ARCH%g -s%@OBJ_SUFFIX@%$OBJ_SUFFIX%g -s%@LIB_SUFFIX@%$LIB_SUFFIX%g -s%@LIB_PREFIX@%$LIB_PREFIX%g -s%@DLL_SUFFIX@%$DLL_SUFFIX%g -s%@ASM_SUFFIX@%$ASM_SUFFIX%g -s%@PROG_SUFFIX@%$PROG_SUFFIX%g -s%@MKSHLIB@%$MKSHLIB%g -s%@DSO_CFLAGS@%$DSO_CFLAGS%g -s%@DSO_LDOPTS@%$DSO_LDOPTS%g -s%@OS_TARGET@%$OS_TARGET%g -s%@OS_ARCH@%$OS_ARCH%g -s%@OS_RELEASE@%$OS_RELEASE%g -s%@OS_TEST@%$OS_TEST%g -s%@DEFINES@%$DEFINES%g -s%@AR_FLAGS@%$AR_FLAGS%g -s%@ASFLAGS@%$ASFLAGS%g -s%@FILTER@%$FILTER%g -s%@IMPLIB@%$IMPLIB%g -s%@OS_LIBS@%$OS_LIBS%g -s%@RESOLVE_LINK_SYMBOLS@%$RESOLVE_LINK_SYMBOLS%g -s%@NOSUCHFILE@%$NOSUCHFILE%g -s%@MOZ_OBJFORMAT@%$MOZ_OBJFORMAT%g -s%@ULTRASPARC_LIBRARY@%$ULTRASPARC_LIBRARY%g -s%@ULTRASPARC_FILTER_LIBRARY@%$ULTRASPARC_FILTER_LIBRARY%g -s%@OBJDIR@%$OBJDIR%g -s%@OBJDIR_NAME@%$OBJDIR_NAME%g -s%@NSINSTALL@%$NSINSTALL%g -s%@OPTIMIZER@%$OPTIMIZER%g -s%@RC@%$RC%g -s%@DLLFLAGS@%$DLLFLAGS%g -s%@EXEFLAGS@%$EXEFLAGS%g -s%@OS_DLLFLAGS@%$OS_DLLFLAGS%g -s%@CYGWIN_WRAPPER@%$CYGWIN_WRAPPER%g -s%@WIN_TOP_SRC@%$WIN_TOP_SRC%g -s%@NEXT_ROOT@%$NEXT_ROOT%g -s%@RPATHFLAG@%$RPATHFLAG%g -s%@MFLAGS@%$MFLAGS%g - -CEOF -EOF - -cat >> $CONFIG_STATUS <<\EOF - -# Split the substitutions into bite-sized pieces for seds with -# small command number limits, like on Digital OSF/1 and HP-UX. -ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. -ac_file=1 # Number of current file. -ac_beg=1 # First line for current file. -ac_end=$ac_max_sed_cmds # Line after last line for current file. -ac_more_lines=: -ac_sed_cmds="" -while $ac_more_lines; do - if test $ac_beg -gt 1; then - sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file - else - sed "${ac_end}q" conftest.subs > conftest.s$ac_file - fi - if test ! -s conftest.s$ac_file; then - ac_more_lines=false - rm -f conftest.s$ac_file - else - if test -z "$ac_sed_cmds"; then - ac_sed_cmds="sed -f conftest.s$ac_file" - else - ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" - fi - ac_file=`expr $ac_file + 1` - ac_beg=$ac_end - ac_end=`expr $ac_end + $ac_max_sed_cmds` - fi -done -if test -z "$ac_sed_cmds"; then - ac_sed_cmds=cat -fi -EOF - -cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF -for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". - case "$ac_file" in - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; - *) ac_file_in="${ac_file}.in" ;; - esac - - # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. - - # Remove last slash and all that follows it. Not all systems have dirname. - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then - # The file is in a subdirectory. - test ! -d "$ac_dir" && mkdir "$ac_dir" - ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" - # A "../" for each directory in $ac_dir_suffix. - ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` - else - ac_dir_suffix= ac_dots= - fi - - case "$ac_given_srcdir" in - .) srcdir=. - if test -z "$ac_dots"; then top_srcdir=. - else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; - /* | ?:/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; - *) # Relative path. - srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" - top_srcdir="$ac_dots$ac_given_srcdir" ;; - esac - - - echo creating "$ac_file" - rm -f "$ac_file" - configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." - case "$ac_file" in - *Makefile*) ac_comsub="1i\\ -# $configure_input" ;; - *) ac_comsub= ;; - esac - - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" ` - sed -e "$ac_comsub -s%@configure_input@%$configure_input%g -s%@srcdir@%$srcdir%g -s%@top_srcdir@%$top_srcdir%g -" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file -fi; done -rm -f conftest.s* - - - -EOF -cat >> $CONFIG_STATUS <> $CONFIG_STATUS <<\EOF - -exit 0 -EOF -chmod +x $CONFIG_STATUS -rm -fr confdefs* $ac_clean_files -test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 - diff --git a/c-sdk/configure.in b/c-sdk/configure.in deleted file mode 100644 index ff00d4a..0000000 --- a/c-sdk/configure.in +++ /dev/null @@ -1,2667 +0,0 @@ -dnl -*- Mode: Autoconf; tab-width: 4; indent-tabs-mode: nil; -*- -dnl -dnl ***** BEGIN LICENSE BLOCK ***** -dnl Version: MPL 1.1/GPL 2.0/LGPL 2.1 -dnl -dnl The contents of this file are subject to the Mozilla Public License Version -dnl 1.1 (the "License"); you may not use this file except in compliance with -dnl the License. You may obtain a copy of the License at -dnl http://www.mozilla.org/MPL/ -dnl -dnl Software distributed under the License is distributed on an "AS IS" basis, -dnl WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -dnl for the specific language governing rights and limitations under the -dnl License. -dnl -dnl The Original Code is the Netscape Portable Runtime (NSPR). -dnl -dnl The Initial Developer of the Original Code is -dnl Netscape Communications Corporation. -dnl Portions created by the Initial Developer are Copyright (C) 1998-2000 -dnl the Initial Developer. All Rights Reserved. -dnl -dnl Contributor(s): -dnl Christopher Seawood -dnl Dan Mosedale -dnl Howard Chu -dnl -dnl Alternatively, the contents of this file may be used under the terms of -dnl either of the GNU General Public License Version 2 or later (the "GPL"), -dnl or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -dnl in which case the provisions of the GPL or the LGPL are applicable instead -dnl of those above. If you wish to allow use of your version of this file only -dnl under the terms of either the GPL or the LGPL, and not to allow others to -dnl use your version of this file under the terms of the MPL, indicate your -dnl decision by deleting the provisions above and replace them with the notice -dnl and other provisions required by the GPL or the LGPL. If you do not delete -dnl the provisions above, a recipient may use your version of this file under -dnl the terms of any one of the MPL, the GPL or the LGPL. -dnl -dnl ***** END LICENSE BLOCK ***** - -AC_PREREQ(2.12) -AC_INIT(ldap/include/ldap.h) - -AC_CONFIG_AUX_DIR(${srcdir}/config/autoconf) -AC_CANONICAL_SYSTEM - -dnl ======================================================== -dnl = Defaults -dnl ======================================================== -NSPR_VERSION=4 -_HAVE_PTHREADS= -USE_PTHREADS= -USE_USER_PTHREADS= -USE_NSPR_THREADS= -USE_N32= -USE_64= -USE_CPLUS= -USE_IPV6= -USE_MDUPDATE= -_OPTIMIZE_FLAGS=-O -_DEBUG_FLAGS=-g -MOZ_DEBUG= -MOZ_OPTIMIZE=1 -MFLAGS= -OBJDIR=. -OBJDIR_NAME=. -NSINSTALL='$(MOD_DEPTH)/config/$(OBJDIR_NAME)/nsinstall' -NOSUCHFILE=/no-such-file -MOZ_OS2_HIGH_MEMORY=1 - -dnl Link in libraries necessary to resolve all symbols for shared libs -RESOLVE_LINK_SYMBOLS= - -dnl ======================================================== -dnl = -dnl = Dont change the following lines. Doing so breaks: -dnl = -dnl = CFLAGS="-foo" ./configure -dnl = -dnl ======================================================== -CFLAGS="${CFLAGS=}" -CXXFLAGS="${CXXFLAGS=}" -LDFLAGS="${LDFLAGS=}" -DLLFLAGS="${DLLFLAGS=}" -HOST_CFLAGS="${HOST_CFLAGS=}" -HOST_LDFLAGS="${HOST_LDFLAGS=}" - -case "$target" in -*-cygwin*|*-mingw*|*-msvc*|*-mks*) - # Check to see if we are really running in a msvc environemnt - _WIN32_MSVC= - AC_CHECK_PROGS(CC, cl) - if test "$CC" = "cl"; then - echo 'main() { return 0; }' > dummy.c - ${CC} -o dummy dummy.c >/dev/null 2>&1 - if test $? = 0; then - _WIN32_MSVC=1 - CXX=$CC - else - AC_MSG_WARN([$(CC) test failed. Using normal feature tests]) - fi - rm -f dummy dummy.o dummy.obj dummy.exe dummy.c - fi - ;; -esac - -if test -n "$_WIN32_MSVC"; then - SKIP_PATH_CHECKS=1 - SKIP_COMPILER_CHECKS=1 - SKIP_LIBRARY_CHECKS=1 -fi - -dnl ======================================================== -dnl = -dnl = Check options that may affect the compiler -dnl = -dnl ======================================================== -dist_prefix='${MOD_DEPTH}/../../dist' -dist_bindir='${dist_prefix}/bin' -dist_libdir='${dist_prefix}/lib' - -AC_ARG_WITH(dist-prefix, - [ --with-dist-prefix=DIST_PREFIX - place build files in DIST_PREFIX [dist]], - dist_prefix=$withval) - -AC_ARG_WITH(dist-bindir, - [ --with-dist-bindir=DIR build execuatables in DIR [DIST_PREFIX/bin]], - dist_bindir=$withval) - -AC_ARG_WITH(dist-libdir, - [ --with-dist-libdir=DIR build library files in DIR [DIST_PREFIX/lib]], - dist_libdir=$withval) - -AC_SUBST(dist_prefix) -AC_SUBST(dist_bindir) -AC_SUBST(dist_libdir) - -dnl Check if LDAP is being compiled for Mozilla -dnl Let --with-arg override environment setting -dnl -AC_ARG_WITH(mozilla, - [ --with-mozilla Compile LDAP with Mozilla support], - [ if test "$withval" = "yes"; then - AC_DEFINE(MOZILLA_CLIENT) - MOZILLA_CLIENT=1 - else - MOZILLA_CLIENT= - fi], - [ if test -n "$MOZILLA_CLIENT"; then - AC_DEFINE(MOZILLA_CLIENT) - fi]) - -AC_ARG_ENABLE(optimize, - [ --enable-optimize(=val) Enable code optimizations (val, ie. -O2) ], - [ if test "$enableval" != "no"; then - MOZ_OPTIMIZE=1 - if test -n "$enableval" && test "$enableval" != "yes"; then - _OPTIMIZE_FLAGS=`echo $enableval | sed -e 's|\\\ | |g'` - _SAVE_OPTIMIZE_FLAGS=$_OPTIMIZE_FLAGS - fi - else - MOZ_OPTIMIZE= - fi ]) - -AC_ARG_ENABLE(debug, - [ --enable-debug(=val) Enable debugging (debug flags val)], - [ if test "$enableval" != "no"; then - MOZ_DEBUG=1 - if test -n "$enableval" && test "$enableval" != "yes"; then - _DEBUG_FLAGS=`echo $enableval | sed -e 's|\\\ | |g'` - _SAVE_DEBUG_FLAGS=$_DEBUG_FLAGS - fi - else - MOZ_DEBUG= - fi]) - -AC_ARG_ENABLE(win32-target, - [ --enable-win32-target=\$t - Specify win32 flavor. (WIN95 or WINNT)], - OS_TARGET=`echo $enableval | tr a-z A-Z`, - OS_TARGET=) - -AC_ARG_ENABLE(debug-rtl, - [ --enable-debug-rtl Use the MSVC debug runtime library], - [ if test "$enableval" = "yes"; then - USE_DEBUG_RTL=1 - else - USE_DEBUG_RTL=0 - fi ]) - -AC_ARG_ENABLE(n32, - [ --enable-n32 Enable n32 ABI support (IRIX only)], - [ if test "$enableval" = "yes"; then - USE_N32=1 - else if test "$enableval" = "no"; then - USE_N32= - fi - fi ]) - -AC_ARG_ENABLE(64bit, - [ --enable-64bit Enable 64-bit support (on certain platforms)], - [ if test "$enableval" = "yes"; then - USE_64=1 ; export USE_64 - fi ], - []) - -AC_ARG_ENABLE(mdupdate, - [ --enable-mdupdate Enable use of certain compilers' mdupdate feature], - [ if test "$enableval" = "yes"; then - USE_MDUPDATE=1 - fi ]) - -dnl ======================================================== -dnl = build the optional command-line utilities such as -dnl = ldapsearch and ldapmodify. -dnl ======================================================== -AC_ARG_ENABLE(clu, - [ --enable-clu Enable building the command-line utilities], - [ if test "$enableval" = "yes"; then - BUILDCLU=1 - AC_SUBST(BUILDCLU) - fi ], - []) - -dnl ======================================================== -dnl = svrcore gives the command line tools secure PIN management -dnl = for client cert based authentication -dnl ======================================================== -dnl ======================================================== -dnl = Use the SVRCORE copy in the system (assuming it exists) -dnl = rather than the one in the source tree (mozilla/security) -dnl ======================================================== -AC_ARG_WITH(system-svrcore, - [ --with-system-svrcore Use system installed SVRCORE], - [ if test "$withval" = "yes"; then - _SYSTEM_SVRCORE=1 - HAVE_SVRCORE=1 - SVRCORE_LIBS=-lsvrcore - AC_SUBST(SVRCORE_LIBS) - AC_SUBST(HAVE_SVRCORE) -dnl svrcore implies both nspr and nss - USE_NSS=1 - no_nspr=no - else - _SYSTEM_SVRCORE= - fi], _SYSTEM_SVRCORE= ) - -dnl _SYSTEM_SVRCORE means /usr/lib and /usr/include so no need to add additional -dnl include or lib paths -if test -z "$_SYSTEM_SVRCORE" ; then - dnl first, see if user has specified explicit SVRCORE include and lib paths - AM_PATH_GIVEN_SVRCORE() - - dnl next, see if user explicitly said to use system svrcore - if test -n "$HAVE_SVRCORE" ; then -dnl svrcore implies both nspr and nss - USE_NSS=1 - HAVE_SVRCORE=1 - AC_SUBST(HAVE_SVRCORE) - no_nspr=no - if test -z "$SVRCORE_CFLAGS" -o -z "$SVRCORE_LIBS" ; then - if test -n "$_SYSTEM_SVRCORE"; then - AM_PATH_SVRCORE(4.0.1, [MOZ_NATIVE_SVRCORE=1], [MOZ_NATIVE_SVRCORE=]) - else - dnl see if we are being built in the same build tree as svrcore - AM_PATH_INTREE_SVRCORE(../../dist) - dnl failing that, see if we can find svrcore-config or pkg-config svrcore - if test -z "$SVRCORE_CFLAGS" -o -z "$SVRCORE_LIBS"; then - AM_PATH_SVRCORE(4.0.1, [MOZ_NATIVE_SVRCORE=1], [MOZ_NATIVE_SVRCORE=]) - fi - fi - fi - fi -fi - -if test -n "$HAVE_SVRCORE" -a -z "$_SYSTEM_SVRCORE" ; then - if test -z "$SVRCORE_CFLAGS" -o -z "$SVRCORE_LIBS"; then - AC_MSG_ERROR([--with-svrcore specified, but no svrcore could be found]) - fi -fi - -dnl ======================================================== -dnl = Use the NSS copy in the system (assuming it exists) -dnl = rather than the one in the source tree (mozilla/security) -dnl ======================================================== -AC_ARG_WITH(system-nss, - [ --with-system-nss Use system installed NSS], - [ if test "$withval" = "yes"; then - _SYSTEM_NSS=1 - USE_NSS=1 -dnl nss requires nspr - no_nspr=no - elif test "$withval" = "no" ; then - _SYSTEM_NSS=no - fi], _SYSTEM_NSS= ) - -if test "$_WIN32_MSVC"; then - _SYSTEM_NSS= -fi - -dnl first, see if user has specified explicit NSPR include and lib paths, -dnl of if the user has explicitly disabled the use of nss -if test -z "$_SYSTEM_NSS" -o "$_SYSTEM_NSS" = "no" ; then - AM_PATH_GIVEN_NSS() -fi - -dnl next, see if user explicitly said to use system nss -if test -n "$USE_NSS" -a -z "$NSS_CFLAGS" -a -z "$NSS_LIBS" ; then -dnl nss requires nspr - no_nspr=no - if test -z "$_SYSTEM_NSS" -o "$_SYSTEM_NSS" = "no" ; then -dnl see if we are being built in the same build tree as nss - AM_PATH_INTREE_NSS(../../dist) - fi -dnl failing that, see if we can find nss-config or pkg-config nss - if test -z "$NSS_CFLAGS" -a "$_SYSTEM_NSS" != "no" ; then - AM_PATH_NSS(3.9.0, [MOZ_NATIVE_NSS=1], [MOZ_NATIVE_NSS=]) - fi -fi - -dnl bomb out if nss not found -if test -n "$USE_NSS" -a -z "$NSS_CFLAGS" -a -z "$NSS_LIBS" ; then - AC_MSG_ERROR(Need to use NSS but no NSS was found) -fi - -dnl ======================================================== -dnl = Use the NSPR copy in the system (assuming it exists) -dnl = rather than the one in the source tree (mozilla/nsprpub) -dnl ======================================================== -AC_ARG_WITH(system-nspr, - [ --with-system-nspr Use system installed NSPR], - [ if test "$withval" = "yes"; then - _SYSTEM_NSPR=1 - no_nspr=no - elif test "$withval" = "no"; then - _SYSTEM_NSPR=no - fi], _SYSTEM_NSPR= ) - -if test "$_WIN32_MSVC"; then - _SYSTEM_NSPR=no -fi - -dnl first, see if user has specified explicit NSPR include and lib paths, -dnl of if the user has explicitly disabled the use of nspr -if test -z "$_SYSTEM_NSPR" -o "$_SYSTEM_NSPR" = "no" ; then - AM_PATH_GIVEN_NSPR() -fi - -dnl next, look for in-tree nspr if user did not specify explicit system nspr -if test "$no_nspr" = "no" -a -z "$NSPR_CFLAGS" -a -z "$NSPR_LIBS" ; then - if test -z "$_SYSTEM_NSPR" -o "$_SYSTEM_NSPR" = "no" ; then -dnl see if we are being built in the same build tree as nspr - AM_PATH_INTREE_NSPR(../../dist) - fi -dnl failing that, see if we can find nspr-config or pkg-config nspr - if test -z "$NSPR_CFLAGS" -a "$_SYSTEM_NSPR" != "no" ; then - AM_PATH_NSPR(4.0.0, [MOZ_NATIVE_NSPR=1], [MOZ_NATIVE_NSPR=]) - fi -fi - -dnl if we are being built as part of the mozilla client, and we could not -dnl find NSPR by any other method, just default to the default values -dnl used by the client build - NOTE that this sets the libpaths and the -dnl library link commands directly, so we don't need to muck with any -dnl cygwin path conversion stuff. The client build also uses --with-dist-prefix -dnl which sets $(DIST) in the makefiles -if test -z "$NSPR_CFLAGS" -o -z "$NSPR_LIBS" ; then - if test -n "$MOZILLA_CLIENT" ; then - NSPR_CFLAGS='-I$(DIST)/include/nspr' - NSPR_LIBS='-L$(DIST)/lib '"-lplds$NSPR_VERSION -lplc$NSPR_VERSION -lnspr$NSPR_VERSION" - if test "$_WIN32_MSVC"; then - NSPR_LIBS='$(DIST)/lib/nspr'$NSPR_VERSION'.lib $(DIST)/lib/plc'$NSPR_VERSION'.lib $(DIST)/lib/plds'$NSPR_VERSION'.lib ' - fi - LIBS_ALREADY_SET=1 - AC_SUBST(LIBS_ALREADY_SET) - elif test "$no_nspr" = "no" ; then - AC_MSG_ERROR(Need to use NSPR but no NSPR was found) - fi -fi - -dnl ======================================================== -dnl If using cygwin (or another Windows shell that uses unix -dnl style paths by default - mingw?) and using MSVC, we need -dnl to convert the include and lib paths to the more MSVC -dnl friendly format - it's easier and faster to do it here -dnl than in cygwin-wrapper -dnl ======================================================== - -dnl add other runtime environments that use unix style paths -dnl *-cygwin*|*-mingw*|*-msvc*|*-mks*) -dnl mozilla-build msys seems not to convert -L to /LIBPATH -dnl it just converts -L to /L and link issues an error -case "$target" in -*-cygwin*) USE_WINDOWS_PATHS=1 ;; -*-mingw*) CONVERT_LIBPATH=1 ;; -esac - -if test -n "$_WIN32_MSVC" -a -n "$USE_WINDOWS_PATHS" ; then - if test -n "$NSPR_CFLAGS" -a -z "$LIBS_ALREADY_SET" ; then - path=`echo $NSPR_CFLAGS | sed -e 's/^-I//'` - path=`cygpath -m $path` - NSPR_CFLAGS="/I$path" - fi - if test -n "$NSPR_LIBS" -a -z "$LIBS_ALREADY_SET" ; then - path=`echo $NSPR_LIBS | sed -e 's/^-L//'` - path=`cygpath -m $path` - NSPR_LIBS="/LIBPATH:$path" - fi - - if test -n "$NSS_CFLAGS" ; then - path=`echo $NSS_CFLAGS | sed -e 's/^-I//'` - path=`cygpath -m $path` - NSS_CFLAGS="/I$path" - fi - - if test -n "$NSS_LIBS" ; then - path=`echo $NSS_LIBS | sed -e 's/^-L//'` - path=`cygpath -m $path` - NSS_LIBS="/LIBPATH:$path" - fi - - if test -n "$SVRCORE_CFLAGS" ; then - path=`echo $SVRCORE_CFLAGS | sed -e 's/^-I//'` - path=`cygpath -m $path` - SVRCORE_CFLAGS="/I$path" - fi - - if test -n "$SVRCORE_LIBS" ; then - path=`echo $SVRCORE_LIBS | sed -e 's/^-L//'` - path=`cygpath -m $path` - SVRCORE_LIBS="/LIBPATH:$path" - fi -fi - -dnl there seems to be no way to pass /libpath:/msys/style/path -dnl to the link command line and have that converted to -dnl /libpath:c:\dos\style\path -dnl i've tried -libpath, /libpath, //libpath -dnl msys does not have the cygpath command - however, pwd -W will -dnl return the current directory in a suitable fornat -if test -n "$_WIN32_MSVC" -a -n "$NSPR_LIBS" -a -n "$CONVERT_LIBPATH" -a -z "$LIBS_ALREADY_SET" ; then - path=`echo $NSPR_LIBS | sed -e 's/^-L//'` - path=`cd "$path" ; pwd -W` - NSPR_LIBS="/LIBPATH:$path" -fi -if test -n "$_WIN32_MSVC" -a -n "$NSS_LIBS" -a -n "$CONVERT_LIBPATH" ; then - path=`echo $NSS_LIBS | sed -e 's/^-L//'` - path=`cd "$path" ; pwd -W` - NSS_LIBS="/LIBPATH:$path" -fi -if test -n "$_WIN32_MSVC" -a -n "$SVRCORE_LIBS" -a -n "$CONVERT_LIBPATH" ; then - path=`echo $SVRCORE_LIBS | sed -e 's/^-L//'` - path=`cd "$path" ; pwd -W` - SVRCORE_LIBS="/LIBPATH:$path" -fi - -dnl ======================================================== -dnl = -dnl = Set the threading model -dnl = -dnl ======================================================== -case "$target" in - -*-aix*) - case "${target_os}" in - aix3.2*) - USE_NSPR_THREADS=1 - ;; - *) - USE_PTHREADS=1 - ;; - esac - ;; - -esac - -dnl ======================================================== -dnl = -dnl = Set the default C compiler -dnl = -dnl ======================================================== -if test -z "$CC"; then - case "$target" in - - *-aix*) - if test -z "$USE_NSPR_THREADS"; then - CC=xlC_r - else - CC=xlC - fi - ;; - - *-hpux*) - CC=cc - ;; - - *-irix*) - CC=cc - ;; - - *-osf*) - CC=cc - ;; - - *-solaris*) - CC=cc - ;; - - esac -fi - -dnl ======================================================== -dnl = -dnl = Set the default C++ compiler -dnl = -dnl ======================================================== -if test -z "$CXX"; then - case "$target" in - - *-aix*) - if test -z "$USE_NSPR_THREADS"; then - CXX=xlC_r - else - CXX=xlC - fi - ;; - - *-hpux*) - case "${target_os}" in - hpux10.30) - CXX=aCC - ;; - hpux11.*) - CXX=aCC - ;; - *) - CXX=CC - ;; - esac - ;; - - *-irix*) - CXX=CC - ;; - - *-osf*) - CXX=cxx - ;; - - *-solaris*) - CXX=CC - ;; - - esac -fi - -if test -z "$SKIP_PATH_CHECKS"; then - AC_PATH_PROG(WHOAMI, $WHOAMI whoami, echo not_whoami) -fi - -if test -n "$MOZ_DEBUG"; then - AC_DEFINE(DEBUG) - DEFINES="$DEFINES -UNDEBUG" - case "${target_os}" in - beos*) - DEFINES="$DEFINES -DDEBUG_${USER}" - ;; - msvc*|mks*|cygwin*|mingw*|os2*) - DEFINES="$DEFINES -DDEBUG_`echo ${USERNAME} | sed -e 's| |_|g'`" - ;; - *) - DEFINES="$MOZ_DEBUG_ENABLE_DEFS -DDEBUG_`$WHOAMI`" - ;; - esac - MFLAGS="BUILD_DEBUG=full" -else - AC_DEFINE(NDEBUG) - DEFINES="$DEFINES -UDEBUG" - MFLAGS="BUILD_DEBUG=optimize" -fi - -dnl Use mozilla's nsinstall -if test -n "$MOZILLA_CLIENT"; then - NSINSTALL='$(dist_bindir)/nsinstall' -fi - -if test -z "$SKIP_COMPILER_CHECKS"; then -dnl ======================================================== -dnl Checks for compilers. -dnl ======================================================== -dnl NOTE that according to the latest autoconf 2.5x manual -dnl "Now, configure enters cross-compilation mode if and only if `--host' is passed." -dnl However, the mozilla build system expects us to assume different target and host -dnl means cross compiling. But, %configure in many linux RPM build systems sets the -dnl following: -dnl ./configure --build=i686-redhat-linux-gnu --host=i686-redhat-linux-gnu --target=i386-redhat-linux-gnu ... -dnl which means that the system is an i686, but we want to produce code which will run on i386 - in -dnl this case, we _do not_ want to cross compile -dnl So, additional logic: -dnl if $host = $build, do not cross compile -dnl otherwise, cross compile if host is given -cross_compiling=no -dnl host must be specified to cross compile -if test -n "$host" ; then - case $target in - *-darwin*) - if test "$host" != "$target" ; then - cross_compiling=yes - fi - ;; - *) -dnl host == build - do not cross compile - if test "$host" = "$build" ; then - cross_compiling=no -dnl host != build or host != target - do cross compile - elif test "$host" != "$target" -o "$host" != "$build" ; then - cross_compiling=yes - fi - ;; - esac -fi -if test "$cross_compiling" = "no"; then - AC_PROG_CXX - if test "$CXX" = "cl" -a -z "$CC"; then - CC=$CXX - else - AC_PROG_CC - fi - AC_PROG_CPP - AC_PROG_RANLIB - AC_PATH_PROGS(AS, as, $CC) - AC_PATH_PROGS(AR, ar, echo not_ar) - AC_PATH_PROGS(LD, ld link, echo not_ld) - AC_PATH_PROGS(STRIP, strip, echo not_strip) - AC_PATH_PROGS(WINDRES, windres, echo not_windres) - if test -z "$HOST_CC"; then - HOST_CC="$CC" - fi - if test -z "$HOST_CFLAGS"; then - HOST_CFLAGS="$CFLAGS" - fi -else - echo "cross compiling from $host to $target" - - _SAVE_CC="$CC" - _SAVE_CFLAGS="$CFLAGS" - _SAVE_LDFLAGS="$LDFLAGS" - - AC_MSG_CHECKING([for $host compiler]) - AC_CHECK_PROGS(HOST_CC, gcc cc /usr/ucb/cc, "") - if test -z "$HOST_CC"; then - AC_MSG_ERROR([no acceptable cc found in \$PATH]) - fi - AC_MSG_RESULT([$HOST_CC]) - if test -z "$HOST_CFLAGS"; then - HOST_CFLAGS="$CFLAGS" - fi - if test -z "$HOST_LDFLAGS"; then - HOST_LDFLAGS="$LDFLAGS" - fi - - CC=$_SAVE_CC - CFLAGS=$_SAVE_CFLAGS - LDFLAGS=$_SAVE_LDFLAGS - - AC_CHECK_PROGS(CC, $CC "${target_alias}-gcc" "${target}-gcc", echo) - unset ac_cv_prog_CC - AC_PROG_CC - AC_CHECK_PROGS(CXX, $CXX "${target_alias}-g++" "${target}-g++", echo) - unset ac_cv_prog_CXX - AC_PROG_CXX - - AC_CHECK_PROGS(RANLIB, $RANLIB "${target_alias}-ranlib" "${target}-ranlib", echo) - AC_CHECK_PROGS(AR, $AR "${target_alias}-ar" "${target}-ar", echo) - AC_CHECK_PROGS(AS, $AS "${target_alias}-as" "${target}-as", echo) - AC_CHECK_PROGS(LD, $LD "${target_alias}-ld" "${target}-ld", echo) - AC_CHECK_PROGS(STRIP, $STRIP "${target_alias}-strip" "${target}-strip", echo) - AC_CHECK_PROGS(WINDRES, $WINDRES "${target_alias}-windres" "${target}-windres", echo) -fi - -if test "$GCC" = "yes"; then - GNU_CC=1 -fi -if test "$GXX" = "yes"; then - GNU_CXX=1 -fi -if test "`echo | $AS -v 2>&1 | grep -c GNU`" != "0"; then - GNU_AS=1 -fi -rm -f a.out - -if test "$cross_compiling" = "yes"; then - CROSS_COMPILE=1 -else - CROSS_COMPILE= -fi - -dnl ======================================================== -dnl Check for gcc -pipe support -dnl ======================================================== -AC_MSG_CHECKING([for gcc -pipe support]) -if test -n "$GNU_CC" && test -n "$GNU_CXX" && test -n "$GNU_AS"; then - echo '#include ' > dummy-hello.c - echo 'int main() { printf("Hello World\n"); exit(0); }' >> dummy-hello.c - ${CC} -S dummy-hello.c -o dummy-hello.s 2>&5 - cat dummy-hello.s | ${AS} -o dummy-hello.S - 2>&5 - if test $? = 0; then - _res_as_stdin="yes" - else - _res_as_stdin="no" - fi - if test "$_res_as_stdin" = "yes"; then - _SAVE_CFLAGS=$CFLAGS - CFLAGS="$CFLAGS -pipe" - AC_TRY_COMPILE( [ #include ], - [printf("Hello World\n");], - [_res_gcc_pipe="yes"], - [_res_gcc_pipe="no"] ) - CFLAGS=$_SAVE_CFLAGS - fi - if test "$_res_as_stdin" = "yes" && test "$_res_gcc_pipe" = "yes"; then - _res="yes"; - CFLAGS="$CFLAGS -pipe" - CXXFLAGS="$CXXFLAGS -pipe" - else - _res="no" - fi - rm -f dummy-hello.c dummy-hello.s dummy-hello.S dummy-hello a.out - AC_MSG_RESULT([$_res]) -else - AC_MSG_RESULT([no]) -fi - -fi # SKIP_COMPILER_CHECKS - -dnl ======================================================== -dnl Checks for programs. -dnl ======================================================== -if test -z "$SKIP_PATH_CHECKS"; then - AC_PATH_PROGS(PERL, perl5 perl, echo not_perl) -elif test -z "$PERL"; then - PERL=perl -fi - -dnl ======================================================== -dnl Default platform specific options -dnl ======================================================== -OBJ_SUFFIX=o -LIB_SUFFIX=a -LIB_PREFIX=lib -DLL_SUFFIX=so -ASM_SUFFIX=s -MKSHLIB='$(LD) $(DSO_LDOPTS) -o $@' -AR_FLAGS='cr $@' -AS='$(CC)' -ASFLAGS='$(CFLAGS)' - -if test -n "$CROSS_COMPILE"; then - OS_ARCH=`echo $target_os | sed -e 's|/|_|g'` - OS_RELEASE= - OS_TEST="${target_cpu}" - case "${target_os}" in - linux*) OS_ARCH=Linux ;; - solaris*) OS_ARCH=SunOS OS_RELEASE=5 ;; - mingw*) OS_ARCH=WINNT ;; - darwin*) OS_ARCH=Darwin ;; - esac -else - OS_ARCH=`uname -s | sed -e 's|/|_|g'` - OS_RELEASE=`uname -r` - OS_TEST=`uname -m` -fi - -if test "$OS_ARCH" = "IRIX64"; then - OS_ARCH=IRIX -fi - -if test "$OS_ARCH" = "Linux"; then - OS_RELEASE=`echo $OS_RELEASE | sed 's/-.*//'` - OS_RELEASE=`echo $OS_RELEASE | awk -F. '{ print $1 "." $2 }'` -fi - -####################################################################### -# Master "Core Components" macros for getting the OS target # -####################################################################### - -# -# Note: OS_TARGET should be specified on the command line for gmake. -# When OS_TARGET=WIN95 is specified, then a Windows 95 target is built. -# The difference between the Win95 target and the WinNT target is that -# the WinNT target uses Windows NT specific features not available -# in Windows 95. The Win95 target will run on Windows NT, but (supposedly) -# at lesser performance (the Win95 target uses threads; the WinNT target -# uses fibers). -# -# When OS_TARGET=WIN16 is specified, then a Windows 3.11 (16bit) target -# is built. See: win16_3.11.mk for lots more about the Win16 target. -# -# If OS_TARGET is not specified, it defaults to $(OS_ARCH), i.e., no -# cross-compilation. -# - -# -# The following hack allows one to build on a WIN95 machine (as if -# s/he were cross-compiling on a WINNT host for a WIN95 target). -# It also accomodates for MKS's uname.exe. If you never intend -# to do development on a WIN95 machine, you don't need this hack. -# -case "$OS_ARCH" in -WIN95) - OS_ARCH=WINNT - OS_TARGET=WIN95 - ;; -Windows_95) - OS_ARCH=Windows_NT - OS_TARGET=WIN95 - ;; -Windows_98) - OS_ARCH=Windows_NT - OS_TARGET=WIN95 - ;; -CYGWIN_9*|CYGWIN_ME*) - OS_ARCH='CYGWIN_NT-4.0' - OS_TARGET=WIN95 - ;; -OS_2) - OS_ARCH=OS2 - OS_TARGET=OS2 - ;; -esac - -# -# On WIN32, we also define the variable CPU_ARCH. -# - -case "$OS_ARCH" in -WINNT) - CPU_ARCH=`uname -p` - if test "$CPU_ARCH" = "I386"; then - CPU_ARCH=x86 - fi - ;; -Windows_NT) -# -# If uname -s returns "Windows_NT", we assume that we are using -# the uname.exe in MKS toolkit. -# -# The -r option of MKS uname only returns the major version number. -# So we need to use its -v option to get the minor version number. -# Moreover, it doesn't have the -p option, so we need to use uname -m. -# - OS_ARCH=WINNT - OS_MINOR_RELEASE=`uname -v` - if test "$OS_MINOR_RELEASE" = "00"; then - OS_MINOR_RELEASE=0 - fi - OS_RELEASE="${OS_RELEASE}.${OS_MINOR_RELEASE}" - CPU_ARCH=`uname -m` - # - # MKS's uname -m returns "586" on a Pentium machine. - # - if echo "$CPU_ARCH" | grep -c 86 >/dev/null; then - CPU_ARCH=x86 - fi - ;; -CYGWIN32_NT|CYGWIN_NT*|MINGW*_NT*) -# -# If uname -s returns "CYGWIN_NT-4.0", we assume that we are using -# the uname.exe in the Cygwin tools. -# Prior to the Beta 20 release, Cygwin was called GNU-Win32. -# If uname -s returns "CYGWIN32/NT", we assume that we are using -# the uname.exe in the GNU-Win32 tools. -# If uname -s returns MINGW32_NT-5.1, we assume that we are using -# the uname.exe in the MSYS tools. -# - OS_RELEASE=`expr $OS_ARCH : '.*NT-\(.*\)'` - OS_ARCH=WINNT - CPU_ARCH=`uname -m` - # - # Cygwin's uname -m returns "i686" on a Pentium Pro machine. - # - if echo "$CPU_ARCH" | grep -c 86 >/dev/null; then - CPU_ARCH=x86 - fi - ;; -esac - -if test -n "$MOZILLA_CLIENT" && test "$OS_ARCH" = "WINNT"; then - OS_TARGET=WIN95 - if test -n "$MOZ_DEBUG" -a -z "$USE_DEBUG_RTL"; then - USE_DEBUG_RTL=1 - fi -fi -if test -z "$OS_TARGET"; then - OS_TARGET=$OS_ARCH -fi -if test "$OS_TARGET" = "WIN95"; then - OS_RELEASE="4.0" -fi -if test "$OS_TARGET" = "WIN16"; then - OS_RELEASE= -fi - -dnl ======================================================== -dnl = Mac OS X SDK support -dnl ======================================================== -AC_ARG_WITH(macos-sdk, - [ --with-macos-sdk=dir Location of platform SDK to use (Mac OS X only)], - MACOS_SDK_DIR=$withval) - -dnl ======================================================== -dnl Enable high-memory support on OS/2 by default. -dnl ======================================================== -AC_ARG_ENABLE(os2-high-mem, - [ --disable-os2-high-mem Disable high-memory support on OS/2], - [ if test "$enableval" = "no"; then - MOZ_OS2_HIGH_MEMORY= - else - MOZ_OS2_HIGH_MEMORY=1 - fi ]) - -dnl ======================================================== -dnl Override of system specific host options -dnl ======================================================== -case "$host" in -*-mingw*) - NSINSTALL=nsinstall - WIN_TOP_SRC=`cd $srcdir && pwd -W` - ;; -*-cygwin*|*-msvc*|*-mks*) - CYGWIN_WRAPPER='sh $(topsrcdir)/config/cygwin-wrapper' - NSINSTALL='$(CYGWIN_WRAPPER) nsinstall' - if test "`${PERL} -v | grep -c cygwin 2>/dev/null`" = 0; then - PERL='$(CYGWIN_WRAPPER) perl' - fi - WIN_TOP_SRC=`cygpath -w $srcdir | sed -e 's|\\\\|/|g'` - ;; -*-beos*) - HOST_CFLAGS="$HOST_CFLAGS -DXP_BEOS -DBeOS -DBEOS -D_POSIX_SOURCE" - ;; -*os2*) - ;; -*) - HOST_CFLAGS="$HOST_CFLAGS -DXP_UNIX" - ;; -esac - -dnl ======================================================== -dnl Check for --with-rpath and user supplied rpath -dnl ======================================================== -DEFAULT_RPATHFLAG=..:../lib:../../lib:../../../lib:../../../../lib -AC_ARG_WITH(rpath, - [ --with-rpath[[=dir]] Build the shared libs and cmd lines progs with an RPATH (default dir is ..:../lib:../../lib:../../../lib:../../../../lib)], -[ - if test "$withval" = "yes" ; then # set default - RPATHFLAG="$DEFAULT_RPATHFLAG" - elif test -n "$withval" ; then # user supplied - RPATHFLAG="$withval" - fi -]) - -dnl ======================================================== -dnl Override of system specific target options -dnl ======================================================== -case "$target" in - -*-aix*) - AC_DEFINE(XP_UNIX) - AC_DEFINE(AIX) - AC_DEFINE(SYSV) - DSO_LDOPTS='-brtl -bM:SRE -bnoentry -bexpall -blibpath:/usr/lib:/lib' - AC_CHECK_HEADER(sys/atomic_op.h, AC_DEFINE(AIX_HAVE_ATOMIC_OP_H)) - case "${target_os}" in - aix3.2*) - AC_DEFINE(AIX_RENAME_SELECT) - AC_DEFINE(_PR_NO_LARGE_FILES) - ;; - aix4.1*) - AC_DEFINE(AIX_TIMERS) - AC_DEFINE(_PR_NO_LARGE_FILES) - AC_DEFINE(AIX4_1) - MKSHLIB= - DSO_LDOPTS= - ;; - aix4.2*) - AC_DEFINE(AIX_TIMERS) - AC_DEFINE(_PR_HAVE_OFF64_T) - ;; - aix4.3*) - AC_DEFINE(AIX_TIMERS) - AC_DEFINE(_PR_HAVE_OFF64_T) - AC_DEFINE(AIX4_3) - AC_DEFINE(HAVE_SOCKLEN_T) - AC_DEFINE(HAVE_FCNTL_FILE_LOCKING) - USE_IPV6=1 - ;; - *) - AC_DEFINE(AIX_TIMERS) - AC_DEFINE(_PR_HAVE_OFF64_T) - AC_DEFINE(HAVE_SOCKLEN_T) - AC_DEFINE(HAVE_FCNTL_FILE_LOCKING) - USE_IPV6=1 - ;; - esac - CFLAGS="$CFLAGS -qro -qroconst" - if echo "$CC" | grep -c xlC_r; then - CFLAGS="$CFLAGS -qarch=com" - fi - AIX_WRAP='$(DIST)/lib/aixwrap.o' - AIX_TMP='./_aix_tmp.o' - if test -n "$USE_64"; then - OBJECT_MODE=64 - fi - RESOLVE_LINK_SYMBOLS=1 - ;; - -*-beos*) - AC_DEFINE(XP_BEOS) - AC_DEFINE(BeOS) - AC_DEFINE(BEOS) - AC_DEFINE(_POSIX_SOURCE) - DSO_LDOPTS=-nostart - USE_BTHREADS=1 - RESOLVE_LINK_SYMBOLS=1 - case "${target_cpu}" in - i*86) - _OPTIMIZE_FLAGS=-O2 - _DEBUG_FLAGS='-gdwarf-2 -O0' - MKSHLIB='$(CCC) $(DSO_LDOPTS) -o $@' - AC_CHECK_LIB(bind, gethostbyaddr, [OS_LIBS="$OS_LIBS -lbind -lsocket"]) - ;; - powerpc) - CC=mwcc - CCC=mwcc - LD=mwld - DSO_LDOPTS='-xms -export pragma -init _init_routine_ -term _term_routine_ -lroot -lnet /boot/develop/lib/ppc/glue-noinit.a /boot/develop/lib/ppc/init_term_dyn.o /boot/develop/lib/ppc/start_dyn.o' - _OPTIMIZE_FLAGS=-O2 - _DEBUG_FLAGS='-g -O0' - ;; - esac - ;; - -*-bsdi*) - AC_DEFINE(XP_UNIX) - AC_DEFINE(BSDI) - AC_DEFINE(NEED_BSDREGEX) - - CFLAGS="$CFLAGS -Wall -Wno-format" - CXXFLAGS="$CXXFLAGS -Wall -Wno-format" - - if echo "$OS_TEST" | grep -c 86 >/dev/null; then - CPU_ARCH=x86 - elif echo "$OS_TEST" | grep -c sparc >/dev/null; then - CPU_ARCH=sparc - fi - - DSO_LDOPTS=-r - - case "$target_os" in - bsdi1.1*) - AC_DEFINE(_PR_BSDI_JMPBUF_IS_ARRAY) - AC_DEFINE(_PR_STAT_HAS_ONLY_ST_ATIME) - AC_DEFINE(_PR_NEED_H_ERRNO) - MKSHLIB= - DSO_CFLAGS= - DSO_LDOPTS= - ;; - - bsdi2.1*) - AC_DEFINE(_PR_TIMESPEC_HAS_TS_SEC) - AC_DEFINE(_PR_BSDI_JMPBUF_IS_ARRAY) - AC_DEFINE(HAVE_DLL) - AC_DEFINE(USE_DLFCN) - AC_DEFINE(_PR_STAT_HAS_ST_ATIMESPEC) - ;; - - bsdi4.*) - AC_DEFINE(_PR_SELECT_CONST_TIMEVAL) - AC_DEFINE(_PR_BSDI_JMPBUF_IS_STRUCT) - AC_DEFINE(HAVE_DLL) - AC_DEFINE(USE_DLFCN) - AC_DEFINE(_PR_STAT_HAS_ST_ATIMESPEC) - MKSHLIB='$(CC) -o $@ $(DSO_LDOPTS)' - DSO_CFLAGS=-fPIC - DSO_LDOPTS='-shared -soname $(@:$(OBJDIR)/%.so=%.so)' - STRIP="$STRIP -d" - case "$target_os" in - bsdi4.2*) - AC_DEFINE(_PR_HAVE_GETPROTO_R) - AC_DEFINE(_PR_HAVE_GETPROTO_R_POINTER) - ;; - esac - ;; - *) - AC_DEFINE(_PR_SELECT_CONST_TIMEVAL) - AC_DEFINE(_PR_BSDI_JMPBUF_IS_STRUCT) - AC_DEFINE(HAVE_DLL) - AC_DEFINE(USE_DLFCN) - AC_DEFINE(_PR_STAT_HAS_ST_ATIMESPEC) - ;; - esac - - ;; - -*-darwin*) - AC_DEFINE(XP_UNIX) - AC_DEFINE(DARWIN) - AC_DEFINE(HAVE_BSD_FLOCK) - CFLAGS="$CFLAGS -Wmost -fno-common" - case "${target_cpu}" in - i*86*) - AC_DEFINE(i386) - CPU_ARCH=i386 - ;; - *) - AC_DEFINE(ppc) - CPU_ARCH=ppc - ;; - esac - DSO_LDOPTS='-dynamiclib -compatibility_version 1 -current_version 1 -all_load -install_name @executable_path/$@' - MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@' - STRIP="$STRIP -x -S" - DLL_SUFFIX=dylib - USE_PTHREADS=1 - - dnl MACOS_SDK_DIR will be set to the SDK location whenever one is - dnl in use. NEXT_ROOT will be set and exported if it's needed for - dnl ld. - - if test "$MACOS_SDK_DIR"; then - dnl Sync this section with the one in Mozilla's top level. - if test ! -d "$MACOS_SDK_DIR"; then - AC_MSG_ERROR([SDK not found. When using --with-macos-sdk, you must -specify a valid SDK. SDKs are installed when the optional cross-development -tools are selected during the Xcode/Developer Tools installation.]) - fi - - changequote(,) - CC_VERSION=`$CC -v 2>&1 | grep 'gcc version'` - GCC_VERSION_FULL=`echo $CC_VERSION | $PERL -pe 's/^.*gcc version ([^ ]*).*/$1/'` - GCC_VERSION=`echo $GCC_VERSION_FULL | $PERL -pe '(split(/\./))[0]>=4&&s/(^\d*\.\d*).*/$1/;'` - changequote([,]) - GCC_VERSION_MAJOR=`echo $GCC_VERSION_FULL | $PERL -pe 's/(^\d*).*/$1/;'` - if test "$GCC_VERSION_MAJOR" -lt "4" ; then - SDK_C_FRAMEWORK="-F${MACOS_SDK_DIR}/System/Library/Frameworks" - if test -d "${MACOS_SDK_DIR}/Library/Frameworks" ; then - SDK_C_FRAMEWORK="$SDK_C_FRAMEWORK -F${MACOS_SDK_DIR}/Library/Frameworks" - fi - - SDK_C_INCLUDE="-isystem ${MACOS_SDK_DIR}/usr/include/gcc/darwin/${GCC_VERSION} -isystem ${MACOS_SDK_DIR}/usr/include ${SDK_C_FRAMEWORK}" - - CFLAGS="$CFLAGS -nostdinc ${SDK_C_INCLUDE}" - - dnl CPP needs to be set for AC_CHECK_HEADER. - CPP="$CPP -nostdinc ${SDK_C_INCLUDE}" - - dnl ld support for -syslibroot is compiler-agnostic, but only - dnl available on Tiger. Although it's possible to switch on - dnl the build host's OS release to use ld -syslibroot when - dnl available, ld -syslibroot cause warnings as long as - dnl NEXT_ROOT is set. NEXT_ROOT should be set because both - dnl both the compiler and linker use it. - dnl - dnl LDFLAGS is for the utilities built in config (now and - dnl nsinstall). DSO_LDOPTS is used when linking shared - dnl libraries. - MACOS_SDK_LIBS="-L${MACOS_SDK_DIR}/usr/lib/gcc/darwin -L${MACOS_SDK_DIR}/usr/lib/gcc/darwin/${GCC_VERSION_FULL} -L${MACOS_SDK_DIR}/usr/lib ${SDK_C_FRAMEWORK}" - LDFLAGS="${MACOS_SDK_LIBS} $LDFLAGS" - DSO_LDOPTS="${MACOS_SDK_LIBS} $DSO_LDOPTS" - export NEXT_ROOT=$MACOS_SDK_DIR - - if test -n "$CROSS_COMPILE" ; then - dnl NEXT_ROOT will be in the environment, but it - dnl shouldn't be set for the build host. HOST_CXX is - dnl presently unused. - HOST_CC="NEXT_ROOT= $HOST_CC" - HOST_CXX="NEXT_ROOT= $HOST_CXX" - fi - else - dnl gcc >= 4.0 uses different paths than above, but knows - dnl how to find them itself. - CFLAGS="$CFLAGS -isysroot ${MACOS_SDK_DIR}" - - dnl CPP needs to be set for AC_CHECK_HEADER. - CPP="$CPP -isysroot ${MACOS_SDK_DIR}" - - dnl If gcc >= 4.0.0, we're guaranteed to be on Tiger, which - dnl has an ld that supports -syslibroot. Don't set - dnl NEXT_ROOT because it will be ignored and cause - dnl warnings when -syslibroot is specified. - dnl - dnl Both LDFLAGS and DSO_LDOPTS are set here, see the - dnl gcc < 4.0 case for the explanation. - if test "$GCC_VERSION_FULL" != "4.0.0" ; then - dnl gcc > 4.0.0 will pass -syslibroot to ld automatically - dnl based on the -isysroot it receives. - LDFLAGS="$LDFLAGS -isysroot ${MACOS_SDK_DIR}" - DSO_LDOPTS="$DSO_LDOPTS -isysroot ${MACOS_SDK_DIR}" - else - dnl gcc 4.0.0 doesn't pass -syslibroot to ld, it needs - dnl to be explicit. - LDFLAGS="$LDFLAGS -Wl,-syslibroot,${MACOS_SDK_DIR}" - DSO_LDOPTS="$DSO_LDOPTS -Wl,-syslibroot,${MACOS_SDK_DIR}" - fi - fi - fi - ;; - -*-dgux*) - AC_DEFINE(XP_UNIX) - AC_DEFINE(_PR_LOCAL_THREADS_ONLY) - AC_DEFINE(SVR4) - AC_DEFINE(SYSV) - AC_DEFINE(DGUX) - AC_DEFINE(_DGUX_SOURCE) - AC_DEFINE(_POSIX4A_DRAFT6_SOURCE) - DSO_LDOPTS=-G - _OPTIMIZE_FLAGS=-O2 - _DEBUG_FLAGS= - ;; - -*-dragonfly*) - if test -z "$USE_NSPR_THREADS"; then - USE_PTHREADS=1 - fi - AC_DEFINE(XP_UNIX) - AC_DEFINE(DRAGONFLY) - LD='$(CC)' - MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@' - DSO_CFLAGS=-fPIC - DSO_LDOPTS='-shared -Wl,-soname,$(notdir $@)' - ;; - -*-freebsd*) - if test -z "$USE_NSPR_THREADS"; then - USE_PTHREADS=1 - fi - AC_DEFINE(XP_UNIX) - AC_DEFINE(FREEBSD) - AC_DEFINE(HAVE_BSD_FLOCK) - LD='$(CC)' - CFLAGS="$CFLAGS $(DSO_CFLAGS) -ansi -Wall" - MOZ_OBJFORMAT=`test -x /usr/bin/objformat && /usr/bin/objformat || echo elf` - if test "$MOZ_OBJFORMAT" = "elf"; then - DLL_SUFFIX=so - else - DLL_SUFFIX=so.1.0 - fi - MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@' - DSO_CFLAGS=-fPIC - DSO_LDOPTS='-shared -Wl,-soname,$(notdir $@)' - ;; - -*-hpux*) - AC_DEFINE(XP_UNIX) - AC_DEFINE(HPUX) - AC_DEFINE(_HPUX_SOURCE) - if test "$OS_TEST" = "ia64" ; then - AC_DEFINE(ia64) - DLL_SUFFIX=so - else - AC_DEFINE(hppa) - DLL_SUFFIX=sl - fi - DSO_LDOPTS='-b +h $(notdir $@)' - if test -z "$GNU_CC"; then - CC="$CC -Ae" - CXX="$CXX -ext" - if test "$OS_RELEASE" = "B.11.23"; then - CFLAGS="$CFLAGS +Olit=all" - CXXFLAGS="$CXXFLAGS +Olit=all" - else - CFLAGS="$CFLAGS +ESlit" - CXXFLAGS="$CXXFLAGS +ESlit" - fi - DSO_CFLAGS=+Z - else - DSO_CFLAGS=-fPIC - fi - - if test -n "$MOZILLA_CLIENT"; then - DEFAULT_IMPL_STRATEGY=_EMU - fi - - if echo "$OS_RELEASE" | grep ^A.09 >/dev/null; then - AC_DEFINE(_PR_NEED_H_ERRNO) - AC_DEFINE(HPUX9) - DEFAULT_IMPL_STRATEGY=_EMU - USE_NSPR_THREADS=1 - fi - - if echo "$OS_RELEASE" | egrep '^(A.09|B.10)' >/dev/null; then - AC_DEFINE(_PR_NO_LARGE_FILES) - fi - - if echo "$OS_RELEASE" | egrep '^(B.10.10|B.10.20)' >/dev/null; then - AC_DEFINE(_PR_NEED_H_ERRNO) - fi - - if echo "$OS_RELEASE" | egrep '^(B.10.10|B.10.20)' >/dev/null; then - AC_DEFINE(HAVE_INT_LOCALTIME_R) - fi - - if echo "$OS_RELEASE" | egrep '^(B.10.30|B.11.00|B.11.11|B.11.23)' >/dev/null; then - AC_DEFINE(HAVE_POINTER_LOCALTIME_R) - fi - - if test "$OS_RELEASE" = "B.10.01"; then - AC_DEFINE(HPUX10) - DEFAULT_IMPL_STRATEGY=_EMU - fi - - if test "$OS_RELEASE" = "B.10.10"; then - AC_DEFINE(HPUX10) - AC_DEFINE(HPUX10_10) - DEFAULT_IMPL_STRATEGY=_PTH - fi - - if test "$OS_RELEASE" = "B.10.20"; then - AC_DEFINE(HPUX10) - AC_DEFINE(HPUX10_20) - if test -z "$GNU_CC"; then - CFLAGS="$CFLAGS +DAportable +DS1.1" - CXXFLAGS="$CXXFLAGS +DAportable +DS1.1" - fi - DEFAULT_IMPL_STRATEGY=_PTH - fi - - if test "$OS_RELEASE" = "B.10.30"; then - AC_DEFINE(HPUX10) - AC_DEFINE(HPUX10_30) - if test -z "$GNU_CC"; then - CFLAGS="$CFLAGS +DAportable +DS1.1" - CXXFLAGS="$CXXFLAGS +DAportable +DS1.1" - fi - DEFAULT_IMPL_STRATEGY=_PTH - fi - - if echo "$OS_RELEASE" | egrep '^(B.11.00|B.11.11)' >/dev/null; then - AC_DEFINE(HPUX10) - AC_DEFINE(HPUX11) - AC_DEFINE(_LARGEFILE64_SOURCE) - AC_DEFINE(_PR_HAVE_OFF64_T) - AC_DEFINE(HAVE_FCNTL_FILE_LOCKING) - if test -z "$GNU_CC"; then - if test -z "$USE_64"; then - CFLAGS="$CFLAGS +DAportable +DS2.0" - CXXFLAGS="$CXXFLAGS +DAportable +DS2.0" - else - CFLAGS="$CFLAGS +DA2.0W +DS2.0" - CXXFLAGS="$CXXFLAGS +DA2.0W +DS2.0" - fi - fi - DEFAULT_IMPL_STRATEGY=_PTH - fi - - if test "$OS_RELEASE" = "B.11.23"; then - AC_DEFINE(HPUX10) - AC_DEFINE(HPUX11) - AC_DEFINE(_LARGEFILE64_SOURCE) - AC_DEFINE(_PR_HAVE_OFF64_T) - AC_DEFINE(HAVE_FCNTL_FILE_LOCKING) - if test -z "$GNU_CC"; then - if test -z "$USE_64"; then - CFLAGS="$CFLAGS +DD32" - CXXFLAGS="$CXXFLAGS +DD32" - else - CFLAGS="$CFLAGS +DD64" - CXXFLAGS="$CXXFLAGS +DD64" - fi - fi - DEFAULT_IMPL_STRATEGY=_PTH - fi - - if test "$DEFAULT_RPATHFLAG" = "$RPATHFLAG" ; then - if test "$OS_RELEASE" = "B.11.23" -o "$OS_RELEASE" = "B.11.11" ; then - # add ORIGIN to default rpath - RPATHFLAG="\\\$\$ORIGIN/../lib:\\\$\$ORIGIN/../../lib:$RPATHFLAG" - fi - fi - - if test "$DEFAULT_IMPL_STRATEGY" = "_EMU"; then - USE_NSPR_THREADS=1 - USE_PTHREADS= - USE_USER_THREADS= - elif test "$DEFAULT_IMPL_STRATEGY" = "_PTH"; then - USE_PTHREADS=1 - if test "$USE_NSPR_THREADS"; then - USE_PTHREADS= - fi - if test "$USE_USER_PTHREADS"; then - USE_PTHREADS= - fi - fi - - ;; - -*-irix*) - AC_DEFINE(XP_UNIX) - AC_DEFINE(IRIX) - AC_DEFINE(SVR4) - AC_DEFINE(_SGI_MP_SOURCE) - AC_DEFINE(HAVE_FCNTL_FILE_LOCKING) - DSO_LDOPTS='-rdata_shared -shared' - MKSHLIB='$(LD) $(DSO_LDOPTS) -soname $(notdir $@) -o $@' - STRIP="$STRIP -f" - RESOLVE_LINK_SYMBOLS=1 - case "${target_os}" in - irix6*) - AC_DEFINE(IRIX6) - USE_PTHREADS=1 - USE_N32=1 - ;; - irix5*) - AC_DEFINE(IRIX5) - USE_NSPR_THREADS=1 - ;; - *) - USE_PTHREADS=1 - USE_N32=1 - ;; - esac - if test "$GNU_CC"; then - dnl - dnl If we are using gcc with native binutils, we need to - dnl suppress the - dnl #lineno "filename" num num - dnl lines, which confuse IRIX native as. Add -Wp,-P to the - dnl gcc command line, which passes -P to the preprocessor. - dnl - AS='$(CC) -Wp,-P -x assembler-with-cpp -D_ASM -mips2 $(INCLUDES)' - CFLAGS="$CFLAGS -Wall -Wno-format" - _OPTIMIZE_FLAGS="-O6" - else - if test -n "$USE_N32"; then - AS='as -D_ASM $(INCLUDES) -n32' - else - AS='as -D_ASM $(INCLUDES)' - fi - CFLAGS="$CFLAGS -fullwarn -xansi" - if test "$USE_N32"; then - _OPTIMIZE_FLAGS="-O -OPT:Olimit=4000" - else - _OPTIMIZE_FLAGS="-O -Olimit 4000" - fi - if test "$USE_MDUPDATE"; then - CFLAGS="$CFLAGS -MDupdate \$(DEPENDENCIES)" - fi - case "$target}" in - *-irix6.*) - CFLAGS="$CFLAGS -multigot" - DSO_LDOPTS="$DSO_LDOPTS -no_unresolved" - if test "$USE_N32"; then - CFLAGS="$CFLAGS -n32 -woff 1209" - DSO_LDOPTS="$DSO_LDOPTS -n32" - else - if test "$USE_64"; then - CFLAGS="$CFLAGS -64" - else - CFLAGS="$CFLAGS -32" - fi - fi - ;; - *) - CFLAGS="$CFLAGS -xgot" - ;; - esac - fi - if test "${target_os}" = "irix5.3"; then - AC_DEFINE(IRIX5_3) - fi - case "${target_os}" in - irix6.5) - if test -z "$GNU_CC"; then - CFLAGS="$CFLAGS -mips3" - fi - AC_DEFINE(_PR_HAVE_GETPROTO_R) - AC_DEFINE(_PR_HAVE_GETPROTO_R_POINTER) - AC_DEFINE(_PR_HAVE_SGI_PRDA_PROCMASK) - ;; - irix5*) - ;; - *) - AC_DEFINE(_PR_HAVE_SGI_PRDA_PROCMASK) - ;; - esac - ;; - -*-linux*) - if test -z "$USE_NSPR_THREADS"; then - USE_PTHREADS=1 - fi - AC_DEFINE(XP_UNIX) - AC_DEFINE(_POSIX_SOURCE) - AC_DEFINE(_BSD_SOURCE) - AC_DEFINE(_SVID_SOURCE) - AC_DEFINE(_LARGEFILE64_SOURCE) - AC_DEFINE(HAVE_FCNTL_FILE_LOCKING) - AC_DEFINE(LINUX) - AC_DEFINE(linux) - LD='$(CC)' - CFLAGS="$CFLAGS -ansi -Wall" - CXXFLAGS="$CXXFLAGS -ansi -Wall" - MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@' - DSO_CFLAGS=-fPIC - DSO_LDOPTS='-shared -Wl,-soname -Wl,$(notdir $@)' - OS_LIBS="$OS_LIBS -lc" - _OPTIMIZE_FLAGS=-O2 - _DEBUG_FLAGS="-g -fno-inline" # most people on linux use gcc/gdb, and that - # combo is not yet good at debugging inlined - # functions (even when using DWARF2 as the - # debugging format) - case "$OS_TEST" in - i*86) - CPU_ARCH=x86 - ;; - *) - CPU_ARCH=$OS_TEST - ;; - esac - - case "${target_cpu}" in - alpha) - AC_DEFINE(_ALPHA_) - AC_DEFINE(__alpha) - CFLAGS="$CFLAGS -mieee" - CXXFLAGS="$CXXFLAGS -mieee" - ;; - i*86) - AC_DEFINE(i386) - ;; - ia64) - ;; - m68k) - CFLAGS="$CFLAGS -m68020-40" - CXXFLAGS="$CXXFLAGS -m68020-40" - # - # gcc on Linux/m68k either has a bug or triggers a code-sequence - # bug in the 68060 which causes gcc to crash. The simplest way to - # avoid this is to enable a minimum level of optimization. - # - _DEBUG_FLAGS="$_DEBUG_FLAGS -O" - ;; - esac - ;; - -*-mingw*|*-cygwin*|*-msvc*|*-mks*) - AC_DEFINE(XP_PC) - AC_DEFINE(WIN32) - AC_DEFINE(_WINDOWS) - RESOLVE_LINK_SYMBOLS=1 - PROG_SUFFIX=.exe - if test -n "$GNU_CC"; then - CC="$CC -mno-cygwin" - CXX="$CXX -mno-cygwin" - DLL_SUFFIX=dll - MKSHLIB='$(CC) -shared -Wl,--export-all-symbols -Wl,--out-implib -Wl,$(IMPORT_LIBRARY) -o $@' - # Use temp file for windres (bug 213281) - RC="$WINDRES -O coff --use-temp-file" - else - CC=cl - CXX=cl - LD=link - # if the lib program is available, use it, otherwise use link /lib - AC_CHECK_PROG(HAVE_MSVC_LIB, lib, 1) - if test "$HAVE_MSVC_LIB" = "1" ; then - AR='lib -NOLOGO -OUT:"$@"' - else - AR='$(LD) /lib -NOLOGO -OUT:"$@"' - fi - - AR_FLAGS= - RANLIB='echo not_ranlib' - STRIP='echo not_strip' - RC=rc.exe - GARBAGE='$(OBJDIR)/vc20.pdb $(OBJDIR)/vc40.pdb' - OBJ_SUFFIX=obj - LIB_SUFFIX=lib - LIB_PREFIX= - DLL_SUFFIX=dll - - # Determine compiler version - changequote(,) - _MSVC_VER_FILTER='s|.* \([0-9]\+\.[0-9]\+\.[0-9]\+\(\.[0-9]\+\)\?\).*|\1|p' - changequote([,]) - - CC_VERSION=`"${CC}" -v 2>&1 | sed -ne "$_MSVC_VER_FILTER"` - _CC_MAJOR_VERSION=`echo ${CC_VERSION} | awk -F\. '{ print $1 }'` - _CC_MINOR_VERSION=`echo ${CC_VERSION} | awk -F\. '{ print $2 }'` - _CC_RELEASE=`echo ${CC_VERSION} | awk -F\. '{ print $3 }'` - _CC_BUILD=`echo ${CC_VERSION} | awk -F\. '{ print $4 }'` - _MSC_VER=${_CC_MAJOR_VERSION}${_CC_MINOR_VERSION} - - if test "$_CC_MAJOR_VERSION" -eq "14"; then - dnl -DYNAMICBASE is only supported on VC8SP1 or newer, - dnl so be very specific here! - dnl VC8 is 14.00.50727.42, VC8SP1 is 14.00.50727.762 - if test "$_CC_RELEASE" -gt 50727 -o \ - \( "$_CC_RELEASE" -eq 50727 -a "$_CC_BUILD" -ge 762 \); then - _USE_DYNAMICBASE=1 - fi - elif test $_CC_MAJOR_VERSION -ge 15; then - _USE_DYNAMICBASE=1 - fi - - if test -n "$_USE_DYNAMICBASE"; then - DLLFLAGS="$DLLFLAGS -DYNAMICBASE" - fi - - CFLAGS="$CFLAGS -W3 -nologo -GF -Gy" - DLLFLAGS="$DLLFLAGS -OUT:\"\$@\"" - - _DEBUG_FLAGS=-Z7 - _OPTIMIZE_FLAGS=-O2 - if test -z "$MOZ_OPTIMIZE"; then - CFLAGS="$CFLAGS -Od" - fi - - if test "$USE_DEBUG_RTL" = 1; then - CFLAGS="$CFLAGS -MDd" - else - CFLAGS="$CFLAGS -MD" - fi - - if test -n "$MOZ_DEBUG"; then - AC_DEFINE(_DEBUG) - else - DEFINES="$DEFINES -U_DEBUG" - fi - - if test -n "$MOZ_OPTIMIZE"; then - if test -n "$MOZ_DEBUG_SYMBOLS"; then - _OPTIMIZE_FLAGS="$_OPTIMIZE_FLAGS -Zi" - DLLFLAGS="$DLLFLAGS -DEBUG -OPT:REF" - LDFLAGS="$LDFLAGS -DEBUG -OPT:REF" - fi - fi - - if test -n "$MOZ_DEBUG"; then - DLLFLAGS="$DLLFLAGS -DEBUG" - LDFLAGS="$LDFLAGS -DEBUG" - fi - - OS_DLLFLAGS='-nologo -DLL -SUBSYSTEM:WINDOWS' - if test "$_MSC_VER" -le "1200" -a -z "$MOZ_DEBUG_SYMBOLS"; then - OS_DLLFLAGS="$OS_DLLFLAGS -PDB:NONE" - fi - - if test "$OS_TARGET" = "WINNT"; then - CFLAGS="$CFLAGS -GT" - if test "$CPU_ARCH" = "x86"; then - CFLAGS="$CFLAGS -G5" - fi - fi - fi # GNU_CC - - if test -n "$USE_STATIC_TLS"; then - AC_DEFINE(_PR_USE_STATIC_TLS) - fi - - if test "$OS_TARGET" = "WINNT"; then - AC_DEFINE(WINNT) - else - AC_DEFINE(WIN95) - # undefine WINNT as some versions of mingw gcc define it by default - DEFINES="$DEFINES -UWINNT" - AC_DEFINE(_PR_GLOBAL_THREADS_ONLY) - fi - - case "$OS_TARGET" in - WINNT) - ;; - WIN95) - ;; - WIN16) - ;; - *) - AC_MSG_ERROR([Missing OS_TARGET for ${target}. Use --enable-win32-target to set.]) - ;; - esac - - case "$target_cpu" in - i*86) - if test -n "$USE_64"; then - AC_DEFINE(_AMD64_) - AC_DEFINE(_M_AMD64) - else - AC_DEFINE(_X86_) - fi - ;; - alpha) - AC_DEFINE(_ALPHA_) - ;; - mips) - AC_DEFINE(_MIPS_) - ;; - x86_64) - AC_DEFINE(_AMD64_) - AC_DEFINE(_M_AMD64) - ;; - *) - AC_DEFINE(_CPU_ARCH_NOT_DEFINED) - ;; - esac - - if test -n "$USE_64"; then - AC_DEFINE(_WIN64) - fi - ;; - -*-ncr-sysv*) - AC_DEFINE(XP_UNIX) - AC_DEFINE(SVR4) - AC_DEFINE(SYSV) - AC_DEFINE(NCR) - USE_NSPR_THREADS=1 - if test "$OS_RELEASE" = "2.03"; then - AC_DEFINE(_PR_STAT_HAS_ST_ATIM) - else - AC_DEFINE(_PR_STAT_HAS_ST_ATIM_UNION) - fi - - if test -z "$GNU_CC"; then - CFLAGS="$CFLAGS -Hnocopyr" - CXXFLAGS="$CXXFLAGS -Hnocopyr" - else - CFLAGS="$CFLAGS -fPIC -Wall" - CXXFLAGS="$CXXFLAGS -fPIC -Wall" - DSO_LDOPTS=-G - fi - ;; - -mips-nec-sysv*) - AC_DEFINE(XP_UNIX) - AC_DEFINE(SVR4) - AC_DEFINE(__SVR4) - AC_DEFINE(NEC) - AC_DEFINE(nec_ews) - USE_NSPR_THREADS=1 - if test -z "$GNU_CC"; then - CC='$(NSDEPTH)/build/hcc cc -Xa -KGnum=0 -KOlimit=4000' - CXX=g++ - fi - OS_LIBS="$OS_LIBS -lsocket -lnsl -ldl" - DSO_LDOPTS=-G - ;; - -*-netbsd*) - AC_DEFINE(XP_UNIX) - AC_DEFINE(NETBSD) - AC_DEFINE(HAVE_BSD_FLOCK) - USE_NSPR_THREADS=1 - - DSO_CFLAGS='-fPIC -DPIC' - CFLAGS="$CFLAGS -ansi -Wall" - CXXFLAGS="$CXXFLAGS -ansi -Wall" - MKSHLIB='$(CC) -o $@ $(DSO_LDOPTS)' - - if test -z "$OBJECT_FMT"; then - if echo __ELF__ | ${CC-cc} -E - | grep -q __ELF__ 2>/dev/null; then - OBJECT_FMT=a.out - DLL_SUFFIX=so.1.0 - DSO_LDOPTS='-shared' - else - OBJECT_FMT=ELF - DLL_SUFFIX=so - DSO_LDOPTS='-shared -Wl,-soname,$(notdir $@)' - fi - fi - - if test "$LIBRUNPATH"; then - DSO_LDOPTS="$DSO_LDOPTS -Wl,-R$LIBRUNPATH" - fi - ;; - -mips-sony-newsos*) - AC_DEFINE(XP_UNIX) - AC_DEFINE(SONY) - AC_DEFINE(SYSV) - AC_DEFINE(SVR4) - AC_DEFINE(__svr4) - AC_DEFINE(__svr4__) - AC_DEFINE(HAVE_SVID_GETTOD) - USE_NSPR_THREADS=1 - CFLAGS="$CFLAGS -Xa -fullwarn" - CXXFLAGS="$CXXFLAGS -Xa -fullwarn" - DSO_LDOPTS=-G - ;; - -*-nextstep*|*-openstep*) - AC_DEFINE(XP_UNIX) - AC_DEFINE(NEXTSTEP) - AC_DEFINE(HAVE_BSD_FLOCK) - AC_DEFINE(_POSIX_SOURCE) - CFLAGS="$CFLAGS -Wall -fno-common -traditional-cpp -posix" - CXXFLAGS="$CXXFLAGS -Wall -fno-common -traditional-cpp -posix" - USE_NSPR_THREADS=1 - DLL_SUFFIX=dylib - ;; - - -*-nto*) - AC_DEFINE(XP_UNIX) - AC_DEFINE(NTO) - AC_DEFINE(_QNX_SOURCE) - AC_DEFINE(HAVE_POINTER_LOCALTIME_R) - MKSHLIB='$(CC) $(DSO_LDOPTS) -Wl,-soname -Wl,$(notdir $@) -o $@' - DSO_CFLAGS=-fPIC - DSO_LDOPTS=-shared - OS_LIBS="$OS_LIBS -lsocket" - _OPTIMIZE_FLAGS="-O1" - _DEBUG_FLAGS="-gstabs" - ;; - -*-openbsd*) - LD='$(CC)' - AC_DEFINE(XP_UNIX) - AC_DEFINE(OPENBSD) - AC_DEFINE(HAVE_BSD_FLOCK) - AC_DEFINE(HAVE_SOCKLEN_T) - CFLAGS="$CFLAGS -ansi -Wall" - CXXFLAGS="$CXXFLAGS -ansi -Wall" - if test "$SO_VERSION"; then - DLL_SUFFIX="so.$SO_VERSION" - else - DLL_SUFFIX=so.1.0 - fi - DSO_CFLAGS=-fPIC - USE_NSPR_THREADS=1 - DSO_LDOPTS='-shared -fPIC -Wl,-soname,$(notdir $@)' - ;; - -*-openvms*) - AC_DEFINE(XP_UNIX) - RESOLVE_LINK_SYMBOLS=1 - AR_FLAGS='c $@' - DSO_LDOPTS='-shared -auto_symvec $(LDFLAGS) $(OPTIMIZER)' - ;; - -*-os2*) - AC_DEFINE(OS2) - AC_DEFINE(XP_OS2) - AC_DEFINE(XP_PC) -# AC_DEFINE(USE_OS2_TOOLKIT_HEADERS) - AC_DEFINE(TCPV40HDRS) - AC_DEFINE(BSD_SELECT) - AC_DEFINE(_PR_GLOBAL_THREADS_ONLY) - RESOLVE_LINK_SYMBOLS=1 - NSINSTALL=nsinstall - LIB_PREFIX= - LIB_SUFFIX=lib - DLL_SUFFIX=dll - DLLTOOL='' - RC=rc.exe - PROG_SUFFIX=.exe - AR=emxomfar - AR_FLAGS='r $@' - LD='$(CC)' - CFLAGS="$CFLAGS -Wall -Zomf" - CXXFLAGS="$CFLAGS -Wall -Zomf" - MKSHLIB='$(CC) $(DSO_LDOPTS) -o $@' - DSO_CFLAGS= - DSO_LDOPTS='-Zomf -Zdll' - _OPTIMIZE_FLAGS=-O3 - _DEBUG_FLAGS="-g -fno-inline" - if test -n "$MOZ_OPTIMIZE"; then - DSO_LDOPTS="$DSO_LDOPTS -Zlinker /EXEPACK:2 -Zlinker /PACKCODE -Zlinker /PACKDATA" - fi - OS_LIBS="-lsocket" - IMPLIB='emximp -o' - FILTER='emxexp -o' - if test -n "$MOZ_OS2_HIGH_MEMORY"; then - DSO_LDOPTS="$DSO_LDOPTS -Zhigh-mem" - LDFLAGS="$LDFLAGS -Zhigh-mem" - AC_DEFINE(MOZ_OS2_HIGH_MEMORY) - fi - - # GCC for OS/2 currently predefines these, but we don't want them - DEFINES="$DEFINES -Uunix -U__unix -U__unix__" - ;; - -*-osf*) - SHELL_OVERRIDE="SHELL = /usr/bin/ksh" - AC_DEFINE(XP_UNIX) - AC_DEFINE(OSF1) - AC_DEFINE(_REENTRANT) - AC_CHECK_HEADER(machine/builtins.h, AC_DEFINE(OSF1_HAVE_MACHINE_BUILTINS_H)) - - if echo "$OS_RELEASE" | egrep -c '(V2.0|V3.2)' 2>/dev/null ; then - USE_NSPR_THREADS=1 - fi - - if test -z "$GNU_CC"; then - CC="$CC -std1 -ieee_with_inexact" - if test "$OS_RELEASE" != "V2.0"; then - CC="$CC -readonly_strings" - fi - _OPTIMIZE_FLAGS="$_OPTIMIZE_FLAGS -Olimit 4000" - fi - - if echo $OS_RELEASE | egrep -c '(V2.0|V3.2)' 2>/dev/null; then - AC_DEFINE(HAVE_INT_LOCALTIME_R) - else - AC_DEFINE(HAVE_FCNTL_FILE_LOCKING) - AC_DEFINE(HAVE_POINTER_LOCALTIME_R) - fi - if echo $OS_RELEASE | grep -c V4.0 >/dev/null; then - AC_DEFINE(OSF1V4_MAP_PRIVATE_BUG) - fi - DSO_LDOPTS='-shared -all -expect_unresolved "*" -soname $(notdir $@)' - ;; - -*-qnx*) - AC_DEFINE(XP_UNIX) - AC_DEFINE(QNX) - AC_DEFINE(_PR_NEED_H_ERRNO) - USE_NSPR_THREADS=1 - ;; - -*-*-sco*) - AC_DEFINE(XP_UNIX) - AC_DEFINE(SCO) - AC_DEFINE(sco) - AC_DEFINE(SYSV) - AC_DEFINE(_SVID3) - AC_DEFINE(_PR_NEED_H_ERRNO) - CC='cc -b elf -KPIC' - CXX='$(NSDEPTH)/build/hcpp CC +.cpp +w' - USE_NSPR_THREADS=1 - CPU_ARCH=x86 - DSO_LDOPTS='-b elf -G' - ;; - -*-sinix*) - AC_DEFINE(XP_UNIX) - AC_DEFINE(SVR4) - AC_DEFINE(SNI) - AC_DEFINE(RELIANTUNIX) - AC_DEFINE(sinix) - AC_DEFINE(HAVE_SVID_GETTOD) - if echo "$OS_TEST" | grep -c 86 2>/dev/null; then - AC_DEFINE(i386) - CPU_ARCH=x86 - else - CPU_ARCH=mips - fi - - if test "$GNU_CC"; then - AS='$(CC) -x assembler-with-cpp' - if test "$CPU_ARCH" = "mips"; then - LD=gld - fi - CFLAGS="$CFLAGS -Wall -Wno-format" - else - AS='/usr/bin/cc' - _OPTIMIZE_FLAGS='-O -F Olimit,4000' - fi - - DSO_LDOPTS='-G -z defs -h $(@:$(OBJDIR)/%.so=%.so)' - - if test "$OS_RELEASE" = "5.43"; then - AC_DEFINE(IP_MULTICAST) - fi - - OS_LIBS="$OS_LIBS -lsocket -lnsl -lresolv -ldl -lc" - USE_NSPR_THREADS=1 - ;; - -*-sunos*) - AC_DEFINE(XP_UNIX) - AC_DEFINE(SUNOS4) - CFLAGS="$CFLAGS -Wall -Wno-format" - if test "$USE_MDUPDATE"; then - CFLAGS="$CFLAGS -MDupdate \$(DEPENDENCIES)" - fi - CPU_ARCH=sparc - DLL_SUFFIX=so.1.0 - DSO_LDOPTS= - DSO_CFLAGS=-fPIC - USE_NSPR_THREADS=1 - if test "$OS_RELEASE" = "4.1.3_U1"; then - _OPTIMIZE_FLAGS= - OS_LIBS="$OS_LIBS -lm" - fi - ;; - -*-solaris*) - if test -z "$USE_USER_THREADS" && test -z "$USE_NATIVE_THREADS"; then - USE_PTHREADS=1 - fi - AC_DEFINE(XP_UNIX) - AC_DEFINE(SVR4) - AC_DEFINE(SYSV) - AC_DEFINE(__svr4) - AC_DEFINE(__svr4__) - AC_DEFINE(SOLARIS) - AC_DEFINE(HAVE_FCNTL_FILE_LOCKING) - if test -n "$GNU_CC" ; then - if test -n "$USE_64"; then - CC="$CC -m64" - CXX="$CXX -m64" - fi - LD='$(CC)' - DSO_LDOPTS='-shared -Wl,-soname -Wl,$(notdir $@)' - DSO_CFLAGS=-fPIC - CFLAGS="$CFLAGS -Wall" - CXXFLAGS="$CXXFLAGS -Wall" - if test -n "$USE_MDUPDATE"; then - CFLAGS="$CFLAGS -MDupdate \$(DEPENDENCIES)" - CXXFLAGS="$CXXFLAGS -MDupdate \$(DEPENDENCIES)" - fi - else - LD=/usr/ccs/bin/ld - RANLIB=/usr/ccs/bin/ranlib - DSO_LDOPTS='-G -h $(notdir $@)' - DSO_CFLAGS=-KPIC - if test -n "$USE_64"; then - if test "$OS_TEST" = "i86pc"; then - CC="$CC -xarch=amd64" - CXX="$CXX -xarch=amd64" - else - CC="$CC -xarch=v9" - CXX="$CXX -xarch=v9" - fi - fi - CC="$CC -xstrconst" - if test -z "$MOZ_OPTIMIZE"; then - CFLAGS="$CFLAGS -xs" - CXXFLAGS="$CXXFLAGS -xs" - fi - fi - if test "$DEFAULT_RPATHFLAG" = "$RPATHFLAG" ; then - # add origin stuff - RPATHFLAG="\\\$\$ORIGIN/../lib:\\\$\$ORIGIN/../../lib:$RPATHFLAG" - fi - if test -z "$GNU_AS"; then - ASFLAGS="$ASFLAGS -Wa,-P" - fi - if test "$OS_TEST" = "i86pc"; then - AC_DEFINE(i386) - - # The default debug format, DWARF (-g), is not supported by gcc - # on i386-ANY-sysv4/solaris, but the stabs format is. It is - # assumed that the Solaris assembler /usr/ccs/bin/as is used. - # If your gcc uses GNU as, you do not need the -Wa,-s option. - if test -n "$MOZ_DEBUG" && test -n "$GNU_CC"; then - _DEBUG_FLAGS=-gstabs - if test -z "$GNU_AS"; then - _DEBUG_FLAGS="$_DEBUG_FLAGS -Wa,-s" - fi - fi - fi - case "${target_os}" in - solaris2.3*) - AC_DEFINE(_PR_NO_LARGE_FILES) - ;; - solaris2.4*) - AC_DEFINE(_PR_NO_LARGE_FILES) - ;; - solaris2.5*) - AC_DEFINE(SOLARIS2_5) - ;; - *) - AC_DEFINE(_PR_HAVE_OFF64_T) - # The lfcompile64(5) man page on Solaris 2.6 says: - # For applications that do not wish to conform to the POSIX or - # X/Open specifications, the 64-bit transitional interfaces - # are available by default. No compile-time flags need to be - # set. - # But gcc 2.7.2.x fails to define _LARGEFILE64_SOURCE by default. - # The native compiler, gcc 2.8.x, and egcs don't have this problem. - if test -n "$GNU_CC"; then - AC_DEFINE(_LARGEFILE64_SOURCE) - fi - ;; - esac - if test "$OS_TEST" = "sun4u"; then - # 64-bit Solaris requires SPARC V9 architecture, so the following - # is not needed. - if test -z "$USE_64"; then - ULTRASPARC_LIBRARY=ultrasparc - ULTRASPARC_FILTER_LIBRARY=libatomic.so - DSO_LDOPTS="$DSO_LDOPTS -f "'$(ULTRASPARC_FILTER_LIBRARY)' - fi - fi - ;; - -*-sco-sysv5*) - AC_DEFINE(XP_UNIX) - AC_DEFINE(UNIXWARE) - AC_DEFINE(SVR4) - AC_DEFINE(SYSV) - USE_NSPR_THREADS=1 - if echo $OS_RELEASE | grep -c 2.1 2>/dev/null; then - AC_DEFINE(_PR_NO_LARGE_FILES) - CC='$(NSDEPTH)/build/hcc cc' - CXX='$(NSDEPTH)/build/hcpp CC' - else - AC_DEFINE(_LARGEFILE64_SOURCE) - AC_DEFINE(_PR_HAVE_OFF64_T) - AC_DEFINE(_PR_HAVE_SOCKADDR_LEN) - fi - DSO_LDOPTS=-G - CPU_ARCH=x86 - ;; - -*) - AC_DEFINE(XP_UNIX) - ;; - -esac - -if test -z "$SKIP_LIBRARY_CHECKS"; then -dnl ======================================================== -dnl Check for system libraries -dnl ======================================================== -dnl AC_CHECK_LIB(C, main) -dnl AC_CHECK_LIB(C_r, main) -dnl AC_CHECK_LIB(c, main) -dnl AC_CHECK_LIB(c_r, main) -dnl AC_CHECK_LIB(dce, main) -dnl AC_CHECK_LIB(dl, main) -dnl AC_CHECK_LIB(dld, main) -dnl AC_CHECK_LIB(gen, main) -dnl AC_CHECK_LIB(ip6, main) -dnl AC_CHECK_LIB(l, main) -dnl AC_CHECK_LIB(m, main) -dnl AC_CHECK_LIB(nsl, main) -dnl AC_CHECK_LIB(posix4, main) -dnl AC_CHECK_LIB(prstrms, main) -dnl AC_CHECK_LIB(prstrms_shr, main) -dnl AC_CHECK_LIB(pthread, main) -dnl AC_CHECK_LIB(pthreads, main) -dnl AC_CHECK_LIB(resolv, main) -dnl AC_CHECK_LIB(rt, main) -dnl AC_CHECK_LIB(socket, main) -dnl AC_CHECK_LIB(svld, main) -dnl AC_CHECK_LIB(thread, main) -dnl AC_CHECK_LIB(vms_jackets, main) - -AC_CHECK_FUNC(dlopen,,[ - AC_CHECK_LIB(dl, dlopen, [OS_LIBS="-ldl $OS_LIBS"]) -]) - -dnl ======================================================== -dnl Check for system header files. -dnl ======================================================== -dnl AC_HEADER_DIRENT -dnl AC_HEADER_STDC -dnl AC_HEADER_SYS_WAIT -dnl AC_CHECK_HEADERS(fcntl.h limits.h sys/file.h sys/ioctl.h sys/time.h unistd.h) - -dnl ======================================================== -dnl Check for typedefs and structs -dnl ======================================================== -dnl AC_C_CONST -dnl AC_TYPE_UID_T -dnl AC_TYPE_MODE_T -dnl AC_TYPE_OFF_T -dnl AC_TYPE_PID_T -dnl AC_TYPE_SIZE_T -dnl AC_STRUCT_ST_BLKSIZE -dnl AC_STRUCT_ST_BLOCKS -dnl AC_STRUCT_ST_RDEV -dnl AC_HEADER_TIME -dnl AC_STRUCT_TM - -dnl ======================================================== -dnl Checks for library functions. -dnl ======================================================== -AC_PROG_GCC_TRADITIONAL -AC_CHECK_FUNCS(lchown strerror getaddrinfo getnameinfo) - -dnl AC_FUNC_MEMCMP -dnl AC_FUNC_MMAP -dnl AC_FUNC_SETVBUF_REVERSED -dnl AC_FUNC_STRCOLL -dnl AC_FUNC_STRFTIME -dnl AC_FUNC_UTIME_NULL -dnl AC_FUNC_VPRINTF -dnl AC_CHECK_FUNCS(ftime getcwd gethostname gettimeofday getwd mkdir mktime putenv rmdir select socket strdup strerror strstr strtol strtoul uname) - -dnl ======================================================== -dnl Check options -dnl ======================================================== - -dnl ======================================================== -dnl = -dnl = --enable-strip -dnl = -dnl = Enable stripping of libs and executables -dnl = -dnl ======================================================== -AC_ARG_ENABLE(strip, -[ --enable-strip Enable stripping of shared libs and programs], - [ ENABLE_STRIP=1 ]) - -dnl -dnl Apparently, some systems cannot properly check for the pthread -dnl library unless is included so we need to test -dnl using it -dnl -dnl MOZ_CHECK_PTHREADS(lib, success, failure) -AC_DEFUN(MOZ_CHECK_PTHREADS, -[ -AC_MSG_CHECKING([for pthread_create in -l$1]) -echo " - #include - void *foo(void *v) { int a = 1; } - int main() { - pthread_t t; - if (!pthread_create(&t, 0, &foo, 0)) { - pthread_join(t, 0); - } - exit(0); - }" > dummy.c ; - echo "${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -l[$1] $LDFLAGS $LIBS" 1>&5; - ${CC-cc} -o dummy${ac_exeext} dummy.c $CFLAGS $CPPFLAGS -l[$1] $LDFLAGS $LIBS 2>&5; - _res=$? ; - rm -f dummy.c dummy${ac_exeext} ; - if test "$_res" = "0"; then - AC_MSG_RESULT([yes]) - [$2] - else - AC_MSG_RESULT([no]) - [$3] - fi -]) - -MOZ_CHECK_PTHREADS(pthreads, - _HAVE_PTHREADS=1 _PTHREAD_LDFLAGS="-lpthreads", - MOZ_CHECK_PTHREADS(pthread, - _HAVE_PTHREADS=1 _PTHREAD_LDFLAGS="-lpthread", - MOZ_CHECK_PTHREADS(c_r, - _HAVE_PTHREADS=1 _PTHREAD_LDFLAGS="-lc_r", - MOZ_CHECK_PTHREADS(c, - _HAVE_PTHREADS=1 - ) - ) - ) -) - -AC_ARG_WITH(pthreads, - [ --with-pthreads Use system pthreads library as thread subsystem], - [ if test "$withval" = "yes"; then - if test -n "$_HAVE_PTHREADS"; then - USE_PTHREADS=1 - USE_USER_PTHREADS= - USE_NSPR_THREADS= - else - AC_MSG_ERROR([ --with-pthreads specified for a system without pthread support ]); - fi - else - USE_PTHREADS= - _PTHREAD_LDFLAGS= - fi], - [ if test -n "$_HAVE_PTHREADS" && test -z "$USE_USER_PTHREADS" && test -z "$USER_NSPR_THREADS"; then - USE_PTHREADS=1 - USE_USER_PTHREADS= - USE_NSPR_THREADS= - fi]) - -AC_ARG_ENABLE(user-pthreads, - [ --enable-user-pthreads Build using userland pthreads], - [ if test "$enableval" = "yes"; then - if test -n "$_HAVE_PTHREADS"; then - USE_PTHREADS= - USE_USER_PTHREADS=1 - USE_NSPR_THREADS= - else - AC_MSG_ERROR([ --enable-user-pthreads specified for a system without pthread support ]); - fi - fi]) - -AC_ARG_ENABLE(nspr-threads, - [ --enable-nspr-threads Build using classic nspr threads], - [ if test "$enableval" = "yes"; then - USE_PTHREADS= - USE_USER_PTHREADS= - USE_NSPR_THREADS=1 - fi]) - -case "$target" in -*-beos*) - AC_ARG_WITH(bthreads, - [ --with-bthreads Use system bthreads library as thread subsystem (BeOS only)], - [ if test "$withval" = "yes"; then - USE_BTHREADS=1 - USE_USER_PTHREADS= - USE_PTHREADS= - fi]) - ;; - -*-solaris*) - AC_ARG_WITH(native-threads, - [ --with-native-threads Use native system threads as thread subsystem (Solaris only)], - [ if test "$withval" = "yes"; then - USE_NATIVE_THREADS=1 - USE_USER_PTHREADS= - USE_PTHREADS= - fi]) - ;; -esac - -fi # SKIP_LIBRARY_CHECKS - -AC_ARG_ENABLE(cplus, - [ --enable-cplus Enable some c++ api routines], - [ if test "$enableval" = "yes"; then - USE_CPLUS=1 - fi]) - -AC_ARG_ENABLE(ipv6, - [ --enable-ipv6 Compile ipv6 support], - [ if test "$enableval" = "yes"; then - USE_IPV6=1 - fi]) - -dnl ======================================================== -dnl = check for sasl options -dnl = This has to come after we set all of the platform specific -dnl = compiler and linker flags -dnl ======================================================== -AM_PATH_GIVEN_SASL() - -if test -n "$USE_PTHREADS"; then - dnl See if -pthread is supported. - rm -f conftest* - ac_cv_have_dash_pthread=no - AC_MSG_CHECKING(whether ${CC-cc} accepts -pthread) - echo 'int main() { return 0; }' | cat > conftest.c - ${CC-cc} -pthread -o conftest conftest.c > conftest.out 2>&1 - if test $? -eq 0; then - if test -z "`egrep -i '(unrecognize|unknown)' conftest.out | grep pthread`" && test -z "`egrep -i '(error|incorrect)' conftest.out`" ; then - ac_cv_have_dash_pthread=yes - case "$target_os" in - dragonfly*|freebsd*) -# Freebsd doesn't use -pthread for compiles, it uses them for linking - ;; - *) - CFLAGS="$CFLAGS -pthread" - CXXFLAGS="$CXXFLAGS -pthread" - ;; - esac - fi - fi - rm -f conftest* - AC_MSG_RESULT($ac_cv_have_dash_pthread) - - dnl - dnl See if -pthreads is supported. - dnl - ac_cv_have_dash_pthreads=no - if test "$ac_cv_have_dash_pthread" = "no"; then - AC_MSG_CHECKING(whether ${CC-cc} accepts -pthreads) - echo 'int main() { return 0; }' | cat > conftest.c - ${CC-cc} -pthreads -o conftest conftest.c > conftest.out 2>&1 - if test $? -eq 0; then - if test -z "`egrep -i '(unrecognize|unknown)' conftest.out | grep pthreads`" && test -z "`egrep -i '(error|incorrect)' conftest.out`" ; then - ac_cv_have_dash_pthreads=yes - CFLAGS="$CFLAGS -pthreads" - CXXFLAGS="$CXXFLAGS -pthreads" - fi - fi - rm -f conftest* - AC_MSG_RESULT($ac_cv_have_dash_pthreads) - fi - - case "$target" in - *-solaris*) - if test "$ac_cv_have_dash_pthreads" = "yes"; then - _PTHREAD_LDFLAGS= - fi - ;; - *-dragonfly*|*-freebsd*) - AC_DEFINE(_REENTRANT) - AC_DEFINE(_THREAD_SAFE) - dnl -pthread links in -lc_r, so don't specify it explicitly. - if test "$ac_cv_have_dash_pthread" = "yes"; then - _PTHREAD_LDFLAGS="-pthread" - else - _PTHREAD_LDFLAGS="-lc_r" - fi - ;; - *-openbsd*|*-bsdi*|*-netbsd*) - AC_DEFINE(_THREAD_SAFE) - dnl -pthread links in -lc_r, so don't specify it explicitly. - if test "$ac_cv_have_dash_pthread" = "yes"; then - _PTHREAD_LDFLAGS= - fi - ;; - *-linux*) - AC_DEFINE(_REENTRANT) - ;; - esac - -else - if test -n "$USE_USER_PTHREADS"; then - USE_PTHREADS= - USE_NSPR_THREADS= - else - _PTHREAD_LDFLAGS= - fi -fi -dnl Special thread exceptions - -case "$target" in -*-aix*) - if test -n "$USE_NSPR_THREADS"; then - AC_DEFINE(_PR_LOCAL_THREADS_ONLY) - fi - case "$target_os" in - aix4.1*) - if test -z "$USE_PTHREADS"; then - AC_DEFINE(AIX_RENAME_SELECT) - fi - ;; - aix4.2*) - if test -z "$USE_NSPR_THREADS"; then - AC_DEFINE(HAVE_POINTER_LOCALTIME_R) - fi - ;; - aix4.3*) - if test -z "$USE_NSPR_THREADS"; then - AC_DEFINE(HAVE_POINTER_LOCALTIME_R) - fi - if test -n "$USE_PTHREADS"; then - AC_DEFINE(_PR_HAVE_THREADSAFE_GETHOST) - fi - ;; - esac - ;; -*-bsdi*) - if test -n "$USE_PTHREADS"; then - AC_DEFINE(_PR_NEED_PTHREAD_INIT) - fi - ;; -*-freebsd*) - if test -n "$USE_NSPR_THREADS"; then - AC_DEFINE(_PR_LOCAL_THREADS_ONLY) - fi - ;; -*-hpux*) - if test -n "$USE_NSPR_THREADS"; then - AC_DEFINE(_PR_LOCAL_THREADS_ONLY) - fi - if test "$USE_PTHREADS"; then - if echo "$OS_RELEASE" | egrep '^(B.10.10|B.10.20)' >/dev/null; then - AC_DEFINE(_REENTRANT) - AC_DEFINE(_PR_DCETHREADS) - else - AC_DEFINE_UNQUOTED(_POSIX_C_SOURCE,199506L) - AC_DEFINE(_PR_HAVE_THREADSAFE_GETHOST) - fi - fi - if test "$USE_USER_PTHREADS"; then - AC_DEFINE_UNQUOTED(_POSIX_C_SOURCE,199506L) - fi - ;; -*-irix*) - if test "${target_os}" = "irix6.5"; then - if test -n "$USE_PTHREADS"; then - AC_DEFINE(_PR_HAVE_GETHOST_R) - AC_DEFINE(_PR_HAVE_GETHOST_R_POINTER) - fi - fi - ;; -*-linux*) - if test -n "$USE_NSPR_THREADS"; then - AC_DEFINE(_PR_LOCAL_THREADS_ONLY) - fi - ;; -*-mingw*|*-cygwin*|*-msvc*|*-mks*|*-os2*|*-beos*) - dnl win32, os2 & beos cannot use pthreads - USE_PTHREADS= - _PTHREAD_LDFLAGS= - USE_USER_PTHREADS= - ;; -*-netbsd*) - if test -n "$USE_NSPR_THREADS"; then - AC_DEFINE(_PR_LOCAL_THREADS_ONLY) - fi - ;; -*-osf*) - if test -n "$USE_NSPR_THREADS"; then - AC_DEFINE(_PR_LOCAL_THREADS_ONLY) - fi - if test -n "$USE_PTHREADS"; then - if echo $OS_RELEASE | egrep -c '(V2.0|V3.2)' 2>/dev/null; then - : - else - AC_DEFINE(_PR_HAVE_THREADSAFE_GETHOST) - fi - fi - ;; -*-solaris*) - if test -n "$USE_NATIVE_THREADS"; then - AC_DEFINE(_PR_GLOBAL_THREADS_ONLY) - else - if test -n "$USE_NSPR_THREADS"; then - AC_DEFINE(_PR_LOCAL_THREADS_ONLY) - fi - fi - if test -z "$USE_NSPR_THREADS"; then - AC_DEFINE(_REENTRANT) - AC_DEFINE(HAVE_POINTER_LOCALTIME_R) - fi - ;; -*-nto*) - if test -n "$USE_PTHREADS"; then - AC_DEFINE(_PR_HAVE_GETHOST_R) - AC_DEFINE(_PR_HAVE_GETHOST_R_POINTER) - fi - ;; -esac - -OS_LIBS="$_PTHREAD_LDFLAGS $OS_LIBS" - -dnl If the user passed in arg to --enable-optimize or --enable-debug, -dnl make sure that we use it. -if test -n "$_SAVE_OPTIMIZE_FLAGS"; then - _OPTIMIZE_FLAGS="$_SAVE_OPTIMIZE_FLAGS" -fi - -if test -n "$_SAVE_DEBUG_FLAGS"; then - _DEBUG_FLAGS="$_SAVE_DEBUG_FLAGS" -fi - -if test -n "$MOZ_OPTIMIZE"; then - CFLAGS="$CFLAGS $_OPTIMIZE_FLAGS" - CXXFLAGS="$CXXFLAGS $_OPTIMIZE_FLAGS" -fi - -if test -n "$MOZ_DEBUG"; then - CFLAGS="$CFLAGS $_DEBUG_FLAGS" - CXXFLAGS="$CXXFLAGS $_DEBUG_FLAGS" -fi - -dnl ======================================================== -dnl Use cygwin wrapper for win32 builds, except MinGW/MSYS -dnl ======================================================== -case "$target_os" in -cygwin*|msvc*|mks*) - CC="\$(CYGWIN_WRAPPER) $CC" - CXX="\$(CYGWIN_WRAPPER) $CXX" - RC="\$(CYGWIN_WRAPPER) $RC" - ;; -esac - -dnl ======================================================== -dnl Substitution of found variables. -dnl ======================================================== -AC_SUBST(SHELL_OVERRIDE) - -AC_SUBST(MOZILLA_CLIENT) -AC_SUBST(CC) -AC_SUBST(CXX) -AC_SUBST(CFLAGS) -AC_SUBST(CXXFLAGS) -AC_SUBST(CPPFLAGS) -AC_SUBST(HOST_CC) -AC_SUBST(HOST_CFLAGS) -AC_SUBST(LDFLAGS) -AC_SUBST(GNU_CC) -AC_SUBST(CROSS_COMPILE) - -AC_SUBST(MOZ_OPTIMIZE) - -AC_SUBST(USE_CPLUS) -AC_SUBST(USE_IPV6) -AC_SUBST(USE_N32) -AC_SUBST(USE_64) -AC_SUBST(OBJECT_MODE) -AC_SUBST(ENABLE_STRIP) - -AC_SUBST(USE_PTHREADS) -AC_SUBST(USE_BTHREADS) -AC_SUBST(USE_USER_PTHREADS) -AC_SUBST(USE_NATIVE_THREADS) -AC_SUBST(USE_NSPR_THREADS) -AC_SUBST(USE_NSS) -AC_SUBST(NSS_CFLAGS) -AC_SUBST(NSS_LIBS) - -AC_SUBST(CPU_ARCH) - -AC_SUBST(OBJ_SUFFIX) -AC_SUBST(LIB_SUFFIX) -AC_SUBST(LIB_PREFIX) -AC_SUBST(DLL_SUFFIX) -AC_SUBST(ASM_SUFFIX) -AC_SUBST(PROG_SUFFIX) -AC_SUBST(MKSHLIB) -AC_SUBST(DSO_CFLAGS) -AC_SUBST(DSO_LDOPTS) - -AC_SUBST(OS_TARGET) -AC_SUBST(OS_ARCH) -AC_SUBST(OS_RELEASE) -AC_SUBST(OS_TEST) - -AC_SUBST(DEFINES) -AC_SUBST(DEFS) -AC_SUBST(AR) -AC_SUBST(AR_FLAGS) -AC_SUBST(AS) -AC_SUBST(ASFLAGS) -AC_SUBST(LD) -AC_SUBST(WINDRES) -AC_SUBST(RANLIB) -AC_SUBST(PERL) -AC_SUBST(STRIP) -AC_SUBST(FILTER) -AC_SUBST(IMPLIB) - -AC_SUBST(OS_LIBS) -AC_SUBST(RESOLVE_LINK_SYMBOLS) -AC_SUBST(NOSUCHFILE) -AC_SUBST(MOZ_OBJFORMAT) -AC_SUBST(ULTRASPARC_LIBRARY) -AC_SUBST(ULTRASPARC_FILTER_LIBRARY) - -AC_SUBST(OBJDIR) -AC_SUBST(OBJDIR_NAME) -AC_SUBST(NSINSTALL) -AC_SUBST(OPTIMIZER) -AC_SUBST(RC) -AC_SUBST(DLLFLAGS) -AC_SUBST(EXEFLAGS) -AC_SUBST(OS_DLLFLAGS) -AC_SUBST(CYGWIN_WRAPPER) -AC_SUBST(WIN_TOP_SRC) -AC_SUBST(NEXT_ROOT) -AC_SUBST(RPATHFLAG) - -AC_SUBST(MFLAGS) - -dnl ======================================================== -dnl Generate output files. -dnl ======================================================== -MAKEFILES=" -Makefile -config/Makefile -config/autoconf.mk -ldap/Makefile -ldap/clients/tools/Makefile -ldap/include/Makefile -ldap/libraries/Makefile -ldap/libraries/libldap/Makefile -ldap/libraries/libprldap/Makefile -ldap/libraries/libldif/Makefile -ldap/libraries/liblber/Makefile -ldap/libraries/libiutil/Makefile -ldap/libraries/libssldap/Makefile -ldap/libraries/libutil/Makefile -" - -dnl since configure won't handle 2 levels of directory -dnl structure for us.. -mkdir ldap > /dev/null 2>&1 -mkdir ldap/clients > /dev/null 2>&1 - -echo $MAKEFILES > unallmakefiles - -AC_OUTPUT([$MAKEFILES]) diff --git a/c-sdk/gmakefile.win b/c-sdk/gmakefile.win deleted file mode 100644 index f020412..0000000 --- a/c-sdk/gmakefile.win +++ /dev/null @@ -1,97 +0,0 @@ -#!gmake -# -*- Mode: Makefile -*- -# -# ***** BEGIN LICENSE BLOCK ***** -# Version: MPL 1.1/GPL 2.0/LGPL 2.1 -# -# The contents of this file are subject to the Mozilla Public License Version -# 1.1 (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS IS" basis, -# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -# for the specific language governing rights and limitations under the -# License. -# -# The Original Code is the Netscape Portable Runtime (NSPR). -# -# The Initial Developer of the Original Code is -# Netscape Communications Corporation. -# Portions created by the Initial Developer are Copyright (C) 2001 -# the Initial Developer. All Rights Reserved. -# -# Contributor(s): -# -# Alternatively, the contents of this file may be used under the terms of -# either of the GNU General Public License Version 2 or later (the "GPL"), -# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -# in which case the provisions of the GPL or the LGPL are applicable instead -# of those above. If you wish to allow use of your version of this file only -# under the terms of either the GPL or the LGPL, and not to allow others to -# use your version of this file under the terms of the MPL, indicate your -# decision by deleting the provisions above and replace them with the notice -# and other provisions required by the GPL or the LGPL. If you do not delete -# the provisions above, a recipient may use your version of this file under -# the terms of any one of the MPL, the GPL or the LGPL. -# -# ***** END LICENSE BLOCK ***** - - -ifndef MOZ_SRC_FLIPPED -$(error MOZ_SRC_FLIPPED is not set) -endif - -ifndef MOZ_TOP -MOZ_TOP=mozilla -endif - -MOZ_DIST_FLIPPED = $(MOZ_SRC_FLIPPED)/mozilla/dist - -ifdef MOZ_DEBUG -MOZ_OBJDIR = WIN32_D.OBJ -else -MOZ_OBJDIR = WIN32_O.OBJ -endif - -LDAP_CONFIGURE := ../configure \ - --with-mozilla \ - --with-dist-prefix=$(MOZ_DIST_FLIPPED) \ - --with-dist-bindir=$(MOZ_DIST_FLIPPED)/$(MOZ_OBJDIR)/bin \ - --with-dist-libdir=$(MOZ_DIST_FLIPPED)/$(MOZ_OBJDIR)/lib \ - --without-nss - -ifeq (,$(MOZ_DEBUG)$(MOZ_TRACE_MALLOC)) -LDAP_CONFIGURE := $(LDAP_CONFIGURE) --enable-optimize --disable-debug -endif - -define MAKE_OBJDIR -if test ! -d $(@D) ; then rm -rf $(@D) ; nsinstall -D $(@D) ; fi -endef - - -all:: build_all - -# Argh. nmake keeps the cwd from cmd to cmd and gmake does not -# Furthermore, shmsdos doesn't support '&&' so there's a chance the -# 'cd' could fail and configure would be run in the wrong dir -# -$(MOZ_OBJDIR)/config.status: configure configure.in - @$(MAKE_OBJDIR) - cd $(MOZ_OBJDIR)/ ; \ - sh $(LDAP_CONFIGURE) - -build_all: $(MOZ_OBJDIR)/config.status check_old - $(MAKE) -C $(MOZ_OBJDIR) - -clobber_all: $(MOZ_OBJDIR)/config.status check_old - $(MAKE) -C $(MOZ_OBJDIR) clobber_all - -distclean: check_old - rm -rf WIN32_D.OBJ WIN32_O.OBJ - -check_old: - @if test -f Makefile; then $(MAKE) distclean; fi - - - diff --git a/c-sdk/ldap/Makefile.client b/c-sdk/ldap/Makefile.client deleted file mode 100644 index 9a8aead..0000000 --- a/c-sdk/ldap/Makefile.client +++ /dev/null @@ -1,78 +0,0 @@ -# -# ***** BEGIN LICENSE BLOCK ***** -# Version: MPL 1.1/GPL 2.0/LGPL 2.1 -# -# The contents of this file are subject to the Mozilla Public License Version -# 1.1 (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS IS" basis, -# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -# for the specific language governing rights and limitations under the -# License. -# -# The Original Code is Mozilla Communicator client code, released -# March 31, 1998. -# -# The Initial Developer of the Original Code is -# Netscape Communications Corporation. -# Portions created by the Initial Developer are Copyright (C) 1998-1999 -# the Initial Developer. All Rights Reserved. -# -# Contributor(s): -# -# Alternatively, the contents of this file may be used under the terms of -# either of the GNU General Public License Version 2 or later (the "GPL"), -# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -# in which case the provisions of the GPL or the LGPL are applicable instead -# of those above. If you wish to allow use of your version of this file only -# under the terms of either the GPL or the LGPL, and not to allow others to -# use your version of this file under the terms of the MPL, indicate your -# decision by deleting the provisions above and replace them with the notice -# and other provisions required by the GPL or the LGPL. If you do not delete -# the provisions above, a recipient may use your version of this file under -# the terms of any one of the MPL, the GPL or the LGPL. -# -# ***** END LICENSE BLOCK ***** - -DEPTH = ../../.. -NSPR_TREE = .. -MOD_DEPTH = .. - -include $(NSPR_TREE)/config/rules.mk -include ../build.mk - -SRCDIRS = include libraries - -ifeq ($(BUILDCLU), 1) -SRCDIRS += clients/tools -endif - -all export:: FORCE - @for i in $(SRCDIRS); do \ - echo " cd $$i; $(MAKE) -f Makefile.client $(MFLAGS) export"; \ - ( cd $$i; $(MAKE) -f Makefile.client $(MFLAGS) export ); \ - done - -libs install:: FORCE - @for i in $(SRCDIRS); do \ - echo "cd $$i; $(MAKE) -f Makefile.client $(MFLAGS) install"; \ - ( cd $$i; $(MAKE) -f Makefile.client $(MFLAGS) install ); \ - done - -clean clobber:: FORCE - @for i in $(SRCDIRS); do \ - echo "cd $$i; $(MAKE) -f Makefile.client $(MFLAGS) clean"; \ - ( cd $$i; $(MAKE) -f Makefile.client $(MFLAGS) clean ); \ - done - cd clients/tools; $(MAKE) -f Makefile.client $(MFLAGS) clean - -realclean clobber_all:: FORCE - @for i in $(SRCDIRS); do \ - echo "cd $$i; $(MAKE) -f Makefile.client $(MFLAGS) realclean"; \ - ( cd $$i; $(MAKE) -f Makefile.client $(MFLAGS) realclean ); \ - done - -FORCE: - diff --git a/c-sdk/ldap/Makefile.in b/c-sdk/ldap/Makefile.in deleted file mode 100644 index 8348d1a..0000000 --- a/c-sdk/ldap/Makefile.in +++ /dev/null @@ -1,61 +0,0 @@ -# -# ***** BEGIN LICENSE BLOCK ***** -# Version: MPL 1.1/GPL 2.0/LGPL 2.1 -# -# The contents of this file are subject to the Mozilla Public License Version -# 1.1 (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS IS" basis, -# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -# for the specific language governing rights and limitations under the -# License. -# -# The Original Code is Mozilla Communicator client code. -# -# The Initial Developer of the Original Code is -# Netscape Communications Corporation. -# Portions created by the Initial Developer are Copyright (C) 2000 -# the Initial Developer. All Rights Reserved. -# -# Contributor(s): -# -# Alternatively, the contents of this file may be used under the terms of -# either of the GNU General Public License Version 2 or later (the "GPL"), -# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -# in which case the provisions of the GPL or the LGPL are applicable instead -# of those above. If you wish to allow use of your version of this file only -# under the terms of either the GPL or the LGPL, and not to allow others to -# use your version of this file under the terms of the MPL, indicate your -# decision by deleting the provisions above and replace them with the notice -# and other provisions required by the GPL or the LGPL. If you do not delete -# the provisions above, a recipient may use your version of this file under -# the terms of any one of the MPL, the GPL or the LGPL. -# -# ***** END LICENSE BLOCK ***** - -MOD_DEPTH = .. -topsrcdir = @top_srcdir@ -srcdir = @srcdir@ - -include $(MOD_DEPTH)/config/autoconf.mk - -SRCDIRS = include libraries -ifeq ($(BUILDCLU), 1) -SRCDIRS += clients/tools -endif - -DIRS = $(SRCDIRS) - -include $(topsrcdir)/config/rules.mk - -# dummy target to allow platforms without a compiler-based depend (like GCC -# has) to call "make depend" here and not fail, at the cost of actual -# dependencies on such builds possibly being incorrect. A nasty hack, but -# this build system is going away soon. -# -depend: - -FORCE: - diff --git a/c-sdk/ldap/build/compver.sh b/c-sdk/ldap/build/compver.sh deleted file mode 100755 index fd99636..0000000 --- a/c-sdk/ldap/build/compver.sh +++ /dev/null @@ -1,98 +0,0 @@ -#!/bin/sh - -# -# ***** BEGIN LICENSE BLOCK ***** -# Version: MPL 1.1/GPL 2.0/LGPL 2.1 -# -# The contents of this file are subject to the Mozilla Public License Version -# 1.1 (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS IS" basis, -# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -# for the specific language governing rights and limitations under the -# License. -# -# The Original Code is mozilla.org code. -# -# The Initial Developer of the Original Code is -# Netscape Communications Corporation. -# Portions created by the Initial Developer are Copyright (C) 2001 -# the Initial Developer. All Rights Reserved. -# -# Contributor(s): -# -# Alternatively, the contents of this file may be used under the terms of -# either of the GNU General Public License Version 2 or later (the "GPL"), -# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -# in which case the provisions of the GPL or the LGPL are applicable instead -# of those above. If you wish to allow use of your version of this file only -# under the terms of either the GPL or the LGPL, and not to allow others to -# use your version of this file under the terms of the MPL, indicate your -# decision by deleting the provisions above and replace them with the notice -# and other provisions required by the GPL or the LGPL. If you do not delete -# the provisions above, a recipient may use your version of this file under -# the terms of any one of the MPL, the GPL or the LGPL. -# -# ***** END LICENSE BLOCK ***** - -# -# compver.sh - a script to check if the correct component version is -# available. If it is not available, it uses the nsftp.sh script to -# download the component version. The component release is assumed -# to be under /share/builds/components on a UNIX box. -# -COMP_ROOT=$1 -COMP_VERSION=$2 -COMP_VERSION_FILE=${COMP_ROOT}/Version -COMPOBJDIR=$3 -MCOM_ROOT=$4 -MODULE=$5 # Module which needs this component -COMP_RELEASE=$6 # Component release dir -COMP_NAME=$7 # component name (e.g. ldapsdk, rouge) -COMP_SUBDIRS=$8 # subdirs to ftp over -TEST_FILE=$9 # to test if ftp was successful - -if test -r ${COMP_VERSION_FILE}; then \ - CUR_VERSION=`cat ${COMP_VERSION_FILE}`; \ - - if test "${CUR_VERSION}" = "${COMP_VERSION}"; then \ - if test -d ${COMP_ROOT}/${COMPOBJDIR}; then \ - exit 0; \ - fi; \ - fi; \ -fi - -echo "************************ WARNING *************************" -echo "The MODULE ${MODULE} needs ${COMP_NAME} client libraries." -echo "The ${COMP_NAME} client libraries are missing. " -echo "" -echo "Attempting to download..." - -rm -rf ${COMP_ROOT}/${COMPOBJDIR} ${COMP_VERSION_FILE} -mkdir -p ${COMP_ROOT}/${COMPOBJDIR} - -sh ../../build/nsftp.sh ${COMP_NAME}/${COMP_VERSION}/${COMPOBJDIR} ${COMP_ROOT}/${COMPOBJDIR} - -for d in ${COMP_SUBDIRS}; do \ - mkdir -p ${COMP_ROOT}/${COMPOBJDIR}/${d}; \ - sh ../../build/nsftp.sh ${COMP_NAME}/${COMP_VERSION}/${COMPOBJDIR}/${d} ${COMP_ROOT}/${COMPOBJDIR}/${d} -done - -if test -f ${TEST_FILE}; then \ - echo "${COMP_VERSION}" > ${COMP_VERSION_FILE}; \ - echo "************************ SUCCESS! ************************"; \ -else \ - echo ""; \ - echo "Attempt to ftp over ${COMP_NAME} failed!!!"; \ - echo "Please ftp over (${COMP_SUBDIRS}) subdirectories under:"; \ - echo " ${COMP_RELEASE}"; \ - echo "and put them under:"; \ - echo " ${COMP_ROOT}/${COMPOBJDIR}"; \ - echo "Also, execute the following command: "; \ - echo " echo \"${COMP_VERSION}\" > ${COMP_VERSION_FILE}"; \ - echo "Note: Above directories are w.r.t. the MODULE ${MODULE}"; \ - echo "**********************************************************"; \ - exit 1; \ -fi diff --git a/c-sdk/ldap/build/genexports.pl b/c-sdk/ldap/build/genexports.pl deleted file mode 100755 index 3969673..0000000 --- a/c-sdk/ldap/build/genexports.pl +++ /dev/null @@ -1,272 +0,0 @@ -# -# ***** BEGIN LICENSE BLOCK ***** -# Version: MPL 1.1/GPL 2.0/LGPL 2.1 -# -# The contents of this file are subject to the Mozilla Public License Version -# 1.1 (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS IS" basis, -# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -# for the specific language governing rights and limitations under the -# License. -# -# The Original Code is mozilla.org code. -# -# The Initial Developer of the Original Code is -# Netscape Communications Corporation. -# Portions created by the Initial Developer are Copyright (C) 1997-2001 -# the Initial Developer. All Rights Reserved. -# -# Contributor(s): -# -# Alternatively, the contents of this file may be used under the terms of -# either of the GNU General Public License Version 2 or later (the "GPL"), -# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -# in which case the provisions of the GPL or the LGPL are applicable instead -# of those above. If you wish to allow use of your version of this file only -# under the terms of either the GPL or the LGPL, and not to allow others to -# use your version of this file under the terms of the MPL, indicate your -# decision by deleting the provisions above and replace them with the notice -# and other provisions required by the GPL or the LGPL. If you do not delete -# the provisions above, a recipient may use your version of this file under -# the terms of any one of the MPL, the GPL or the LGPL. -# -# ***** END LICENSE BLOCK ***** - - -# -# genexports.pl: create up-to-date export and .def files -# -# created 31 August 1997 by Mark Smith - -$type = $ARGV[0]; -$tmplfile = $ARGV[1]; -$expfile = $ARGV[2]; -$buildtype = $ARGV[3]; -$suppress_license_from_expfile = 1; - -if ( $type ne "Win16" && $type ne "Win16Rev" && $type ne "Win32" && - $type ne "WinBC" && $type ne "AIX" && $type ne "IRIX" && - $type ne "MacOS" && $type ne "SOLARIS" && $type ne "SunOS" && - $type ne "OS2" ) { - usage(); -} - -if ( $tmplfile eq "" || $expfile eq "" ) { - usage(); -} - -if ( $tmplfile ne "Standard" ) { - open( TMPL, $tmplfile ); - while() { - $line = $_; - &process_line( $type, $expfile, $line, $ARGV[3+1], $ARGV[3+2], - $ARGV[3+3] ); - } -} else { - $suppress_license_from_expfile = 0; - if ( substr( $type, 0, 3 ) eq "Win" ) { - &windows_std( $type, $expfile, $ARGV[3+1], $ARGV[3+2], $ARGV[3+3] ); - } elsif ( $type eq "SOLARIS" || $type eq "SunOS" ) { - &solaris_std( $type, $expfile, $ARGV[3+1], $ARGV[3+2], $ARGV[3+3] ); - } else { -# Simple standard template just includes exports; this works for all others. - &simple_std( $type, $expfile, $ARGV[3+1], $ARGV[3+2], $ARGV[3+3] ); - } -} - - -# process_line( type, expfile, line, arg1, arg2, arg3 ) -sub -process_line { - local( $type, $expfile, $line, $arg1, $arg2, $arg3 ) = @_; - - if ( $line eq "\$EXPORTS\n" ) { - &print_exports( $type, $expfile ); - } else { - $line =~ s/\$1/$arg1/; - $line =~ s/\$2/$arg2/; - $line =~ s/\$3/$arg3/; - print $line; - } -} - - -# usage() -sub -usage { - print STDERR "usage: genexports.pl TYPE TMPLFILE|Standard EXPFILE BUILDTYPE [ARG1 [[ARG2] [ARG3]]] > OUTFILE\n"; - print STDERR " where TYPE is Win16, Win16Rev, Win32, WinBC, AIX, IRIX, MacOS, or SOLARIS.\n"; - print STDERR " and where BUILDTYPE is matched against last field in export file.\n"; - exit 1; -} - - -# print_exports( type, exports-file ) -sub -print_exports { - local( $type, $expfile ) = @_; - - local $skipping_license = 0; - - open( EXP, $expfile ); - &print_comment( $type, "\n" ); - &print_comment( $type, "exports list (generated by genexports.pl)\n" ); - &print_comment( $type, "\n" ); - while( ) { - $line = $_; - if ( substr( $line, 0, 1 ) eq "#" ) { - if ( $suppress_license_from_expfile ) { - if ( $line =~ /.*BEGIN LICENSE BLOCK.*/ ) { - $skipping_license = 1; - next; - } elsif ( $line =~ /.*END LICENSE BLOCK.*/ ) { - $skipping_license = 0; - next; - } - } - - if ( !$skipping_license ) { - $line = substr( $line, 1 ); - $_ = $line; - if ( /^[0-9]+[\t ]/ && $type ne "OS2" ) { - &print_comment( $type, "" ); - &print_export( $type, $line ); - } else { - &print_comment( $type, $line ); - } - } - } elsif ( length( $line ) eq 1 && substr( $line, 0, 1 ) eq "\n" ) { - print "\n"; - } else { - &print_export( $type, $line ); - } - } - &print_comment( $type, "\n" ); - &print_comment( $type, "end of generated exports list.\n" ); -} - - -# print_comment( type, s ) -sub -print_comment { -# do not print comments for OS2 - if ( $type ne "OS2" ) { - local( $type, $s ) = @_; - - if ( $type eq "AIX" ) { - $prefix = "* "; - } elsif ( substr( $type, 0, 3 ) ne "Win" ) { - $prefix = "# "; - } else { - $prefix = "; "; - } - - print $prefix,$s - } -} - - -# print_export( type, expline ) -sub -print_export { - local( $type, $expline ) = @_; - -# strip trailing newline - $expline =~ s/\n$//; - -# split into pieces -# lines look like: ORDINAL SYMBOL [SYMTYPE] [BUILDTYPE] -# where SYMTYPE is "P" (for Pascal), "C", or "G" (for globals). -# P is the default. - ($ordinal,$symbol,$symtype,$bldtype) = split( /[ \t]+/, $expline, 4 ); - $upcase_symbol = $symbol; - $upcase_symbol =~ tr/a-z/A-Z/; - if ( $symtype eq "" ) { - $symtype = "P"; - } - - if ( $bldtype ne "" && $bldtype ne $buildtype ) { - return; - } - -# finally, print out an appropriate export line - if ( $type eq "Win32" ) { - if ( $symtype ne "G" ) { - print "\t$symbol\t\t\@$ordinal\n"; - } - } elsif ( $type eq "OS2" ) { - if ( $symtype ne "G" ) { - print "\t_$symbol\t\t\@$ordinal\n"; - } - } elsif ( $type eq "Win16" ) { - if ( $symtype eq "C" ) { - print "\t_$symbol\t\t\@$ordinal\n"; - } elsif ( $symtype eq "P" ) { - print "\t_$symbol=$upcase_symbol\t\t\@$ordinal\n"; - } - } elsif ( $type eq "Win16Rev" ) { - if ( $symtype ne "G" ) { - print "\t$upcase_symbol=_$symbol\t\t\@$ordinal\n"; - } - } elsif ( $type eq "WinBC" ) { - if ( $symtype ne "G" ) { - print "\t_$symbol=$symbol\t\t\@$ordinal\n"; - } - } elsif ( $type eq "MacOS" ) { - if ( $symtype ne "G" ) { - print "$symbol\n"; - } - } elsif ( $type eq "AIX" || $type eq "IRIX" ) { - print "$symbol\n"; - } elsif ( $type eq "SOLARIS" || $type eq "SunOS") { - print "\t$symbol;\n"; - } else { - print STDERR "print_export: unknown type <$type>\n"; - exit 1; - } -} - - -# windows_std( type, expfile, arg1, arg2, arg3 ) -sub -windows_std { - local( $type, $expfile, $arg1, $arg2, $arg3 ) = @_; - - process_line( $type, $expfile, "LIBRARY\tNSLIB\$1\n" ); - if ( substr( $type, 0, 5 ) eq "Win16" ) { - process_line( $type, $expfile, "CODE\tPRELOAD MOVEABLE DISCARDABLE\n" ); - process_line( $type, $expfile, "DATA\tPRELOAD MOVEABLE SINGLE\n" ); - } - process_line( $type, $expfile, "VERSION\t\$2\n" ); - process_line( $type, $expfile, "HEAPSIZE\t4096\n" ); - process_line( $type, $expfile, "EXPORTS\n" ); - process_line( $type, $expfile, "\$EXPORTS\n" ); -} - - -# solaris_std( type, expfile, arg1, arg2, arg3 ) -sub -solaris_std { - local( $type, $expfile, $arg1, $arg2, $arg3 ) = @_; - - process_line( $type, $expfile, "{\n" ); - process_line( $type, $expfile, "global:\n" ); - process_line( $type, $expfile, "\$EXPORTS\n" ); - process_line( $type, $expfile, "\n" ); - process_line( $type, $expfile, "local:\n" ); - process_line( $type, $expfile, "\t*;\n" ); - process_line( $type, $expfile, "};\n" ); -} - - -# simple_std( type, expfile, arg1, arg2, arg3 ) -sub -simple_std { - local( $type, $expfile, $arg1, $arg2, $arg3 ) = @_; - - process_line( $type, $expfile, "\$EXPORTS\n" ); -} - diff --git a/c-sdk/ldap/build/my_overrides.mk b/c-sdk/ldap/build/my_overrides.mk deleted file mode 100644 index dcc4559..0000000 --- a/c-sdk/ldap/build/my_overrides.mk +++ /dev/null @@ -1,40 +0,0 @@ -# -# ***** BEGIN LICENSE BLOCK ***** -# Version: MPL 1.1/GPL 2.0/LGPL 2.1 -# -# The contents of this file are subject to the Mozilla Public License Version -# 1.1 (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS IS" basis, -# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -# for the specific language governing rights and limitations under the -# License. -# -# The Original Code is mozilla.org LDAP SDK autoconf glue. -# -# The Initial Developer of the Original Code is -# Netscape Communications Corp. -# Portions created by the Initial Developer are Copyright (C) 2000 -# the Initial Developer. All Rights Reserved. -# -# Contributor(s): -# Dan Mosedale -# -# Alternatively, the contents of this file may be used under the terms of -# either of the GNU General Public License Version 2 or later (the "GPL"), -# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -# in which case the provisions of the GPL or the LGPL are applicable instead -# of those above. If you wish to allow use of your version of this file only -# under the terms of either the GPL or the LGPL, and not to allow others to -# use your version of this file under the terms of the MPL, indicate your -# decision by deleting the provisions above and replace them with the notice -# and other provisions required by the GPL or the LGPL. If you do not delete -# the provisions above, a recipient may use your version of this file under -# the terms of any one of the MPL, the GPL or the LGPL. -# -# ***** END LICENSE BLOCK ***** - -DIST = $(DEPTH)/dist -VPATH = $(srcdir) diff --git a/c-sdk/ldap/build/nsftp.sh b/c-sdk/ldap/build/nsftp.sh deleted file mode 100644 index 66705ba..0000000 --- a/c-sdk/ldap/build/nsftp.sh +++ /dev/null @@ -1,76 +0,0 @@ -#!/bin/sh - -# -# ***** BEGIN LICENSE BLOCK ***** -# Version: MPL 1.1/GPL 2.0/LGPL 2.1 -# -# The contents of this file are subject to the Mozilla Public License Version -# 1.1 (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS IS" basis, -# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -# for the specific language governing rights and limitations under the -# License. -# -# The Original Code is mozilla.org code. -# -# The Initial Developer of the Original Code is -# Netscape Communications Corporation. -# Portions created by the Initial Developer are Copyright (C) 1996-2001 -# the Initial Developer. All Rights Reserved. -# -# Contributor(s): -# -# Alternatively, the contents of this file may be used under the terms of -# either of the GNU General Public License Version 2 or later (the "GPL"), -# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -# in which case the provisions of the GPL or the LGPL are applicable instead -# of those above. If you wish to allow use of your version of this file only -# under the terms of either the GPL or the LGPL, and not to allow others to -# use your version of this file under the terms of the MPL, indicate your -# decision by deleting the provisions above and replace them with the notice -# and other provisions required by the GPL or the LGPL. If you do not delete -# the provisions above, a recipient may use your version of this file under -# the terms of any one of the MPL, the GPL or the LGPL. -# -# ***** END LICENSE BLOCK ***** - -# -# FTP script for downloading /share/builds/components stuff. -# -# syntax: -# nsftp -# -# Example -# -# nsftp ldapsdk/19961108 c:\3.0\ns\components\ldapsdk -# - -SERVER=$COMPONENT_FTP_SERVER -USER=ftpman -PASSWD=ftpman -TMPFILE=tmp.foo - -SRC=$1 -DEST=$2 -if [ -z "$3" ]; then - FILENAME=* -else - FILENAME=$3 -fi - -echo ${USER} contents of ${SRC} to ${DEST} - -cd ${DEST} -ftp -n ${SERVER} << -=EOF=- -user ${USER} ${PASSWD} -binary -hash -prompt -cd ${SRC} -mget ${FILENAME} -quit --=EOF=- - diff --git a/c-sdk/ldap/build/replace.pl b/c-sdk/ldap/build/replace.pl deleted file mode 100755 index 8cd04fe..0000000 --- a/c-sdk/ldap/build/replace.pl +++ /dev/null @@ -1,60 +0,0 @@ -# -# ***** BEGIN LICENSE BLOCK ***** -# Version: MPL 1.1/GPL 2.0/LGPL 2.1 -# -# The contents of this file are subject to the Mozilla Public License Version -# 1.1 (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS IS" basis, -# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -# for the specific language governing rights and limitations under the -# License. -# -# The Original Code is mozilla.org code. -# -# The Initial Developer of the Original Code is -# Netscape Communications Corporation. -# Portions created by the Initial Developer are Copyright (C) 2001 -# the Initial Developer. All Rights Reserved. -# -# Contributor(s): -# -# Alternatively, the contents of this file may be used under the terms of -# either of the GNU General Public License Version 2 or later (the "GPL"), -# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -# in which case the provisions of the GPL or the LGPL are applicable instead -# of those above. If you wish to allow use of your version of this file only -# under the terms of either the GPL or the LGPL, and not to allow others to -# use your version of this file under the terms of the MPL, indicate your -# decision by deleting the provisions above and replace them with the notice -# and other provisions required by the GPL or the LGPL. If you do not delete -# the provisions above, a recipient may use your version of this file under -# the terms of any one of the MPL, the GPL or the LGPL. -# -# ***** END LICENSE BLOCK ***** - -# -# replace.pl: perform simple string substitution on a file -# the first line in the input (template) file is also discarded. -# -# usage: perl replace.pl KEYWORD=VALUE... < TMPLFILE > OUTFILE -# -# created 17 October 2001 by Mark Smith - -use File::Basename; -push @INC, dirname($0); - -require replace; - -%keywords = {}; - -foreach $str (@ARGV) { - ($key,$val) = split( "=", $str, 2 ); - $keywords{$key} = $val; -} - -replace::GenerateHeader(*STDIN, *STDOUT, \%keywords); - -exit 0; diff --git a/c-sdk/ldap/build/replace.pm b/c-sdk/ldap/build/replace.pm deleted file mode 100644 index bd4e350..0000000 --- a/c-sdk/ldap/build/replace.pm +++ /dev/null @@ -1,77 +0,0 @@ -#!perl -w - -# -# ***** BEGIN LICENSE BLOCK ***** -# Version: MPL 1.1/GPL 2.0/LGPL 2.1 -# -# The contents of this file are subject to the Mozilla Public License Version -# 1.1 (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS IS" basis, -# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -# for the specific language governing rights and limitations under the -# License. -# -# The Original Code is mozilla.org code. -# -# The Initial Developer of the Original Code is -# Netscape Communications Corporation. -# Portions created by the Initial Developer are Copyright (C) 2002 -# the Initial Developer. All Rights Reserved. -# -# Contributor(s): -# -# Alternatively, the contents of this file may be used under the terms of -# either of the GNU General Public License Version 2 or later (the "GPL"), -# or the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), -# in which case the provisions of the GPL or the LGPL are applicable instead -# of those above. If you wish to allow use of your version of this file only -# under the terms of either the GPL or the LGPL, and not to allow others to -# use your version of this file under the terms of the MPL, indicate your -# decision by deleting the provisions above and replace them with the notice -# and other provisions required by the GPL or the LGPL. If you do not delete -# the provisions above, a recipient may use your version of this file under -# the terms of any one of the MPL, the GPL or the LGPL. -# -# ***** END LICENSE BLOCK ***** - -package replace; - -require 5.004; - -use strict; -require Exporter; - -use vars qw(@ISA @EXPORT); - -@ISA = qw(Exporter); -@EXPORT = qw( - GenerateHeader - ); - -sub GenerateHeader ($$\%) { - my($template, $header, $keywords) = @_; - local(*TEMPLATE) = $template; - local(*HEADER) = $header; - - my($first_line) = 1; - my($orig, $replace); - - while(