Changeset dab82f29
- Timestamp:
- Mar 28, 2009, 5:00:34 PM (18 years ago)
- Branches:
- owl
- Children:
- 4de643d
- Parents:
- 5189631
- Files:
-
- 1 added
- 56 edited
-
COPYING (added)
-
ChangeLog (modified) (1 diff)
-
Makefile.in (modified) (1 diff)
-
aim.c (modified) (17 diffs)
-
buddy.c (modified) (1 diff)
-
buddylist.c (modified) (1 diff)
-
cmd.c (modified) (1 diff)
-
commands.c (modified) (10 diffs)
-
config.h.in (modified) (1 diff)
-
configure (modified) (221 diffs)
-
configure.in (modified) (4 diffs)
-
context.c (modified) (1 diff)
-
dict.c (modified) (1 diff)
-
editwin.c (modified) (2 diffs)
-
errqueue.c (modified) (1 diff)
-
examples/owlconf.erik (modified) (1 diff)
-
examples/owlconf.simple (modified) (1 diff)
-
filter.c (modified) (2 diffs)
-
filterelement.c (modified) (1 diff)
-
fmtext.c (modified) (1 diff)
-
functions.c (modified) (26 diffs)
-
global.c (modified) (7 diffs)
-
help.c (modified) (1 diff)
-
history.c (modified) (1 diff)
-
keybinding.c (modified) (2 diffs)
-
keymap.c (modified) (1 diff)
-
keypress.c (modified) (1 diff)
-
keys.c (modified) (2 diffs)
-
libfaim/configure (modified) (123 diffs)
-
libfaim/rxhandlers.c (modified) (1 diff)
-
list.c (modified) (1 diff)
-
logging.c (modified) (6 diffs)
-
mainwin.c (modified) (1 diff)
-
message.c (modified) (6 diffs)
-
messagelist.c (modified) (2 diffs)
-
owl.c (modified) (10 diffs)
-
owl.h (modified) (8 diffs)
-
pair.c (modified) (1 diff)
-
perlconfig.c (modified) (3 diffs)
-
perlglue.xs (modified) (1 diff)
-
perlwrap.pm (modified) (3 diffs)
-
popexec.c (modified) (11 diffs)
-
popwin.c (modified) (1 diff)
-
regex.c (modified) (1 diff)
-
style.c (modified) (1 diff)
-
stylefunc.c (modified) (1 diff)
-
tester.c (modified) (1 diff)
-
text.c (modified) (1 diff)
-
timer.c (modified) (1 diff)
-
util.c (modified) (4 diffs)
-
variable.c (modified) (3 diffs)
-
view.c (modified) (2 diffs)
-
viewwin.c (modified) (1 diff)
-
zbuddylist.c (modified) (1 diff)
-
zcrypt.c (modified) (4 diffs)
-
zephyr.c (modified) (10 diffs)
-
zwrite.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ChangeLog
r0154e2d rdab82f29 1 1 $Id$ 2 2 3 2.1.12pre 4 Don't crash when sending/logging outgoing 5 AIM message and not logged in [BZ 90] 6 Don't crash when senging to someone not on AIM buddy list [BZ 94] 7 (patch from Alex Vandiver) 8 3 2.1.12-pre-6 4 Don't crash on mobile device AIM messages [BZ 20] 5 Don't crash when sending to someone not on AIM buddy list [BZ 94] 6 Fix overflow vulerability in zwrite.c and zcrypt.c 7 Add stack protector and -D_FORTIFY_SOURCE=2 where possible 8 Fix hang [barnowl 4c46dfdebc294ca24fef59924f01688b8ee07dee] 9 Fix segfault on missing subs [barnowl 99dabeed7de6d19acb50f1e73aa0bfe5f9469c02] 10 Fix zcrypt bufffer size bug [barnowl 559076cd86edc3a8317819814dd5877b8bc7c3cb] 11 Fix double free [barnowl e97c4a306ae2c9d2147d83da29fee59918198e70] 12 Memory leak fix [barnowl c0a90c2c7ab97b9465c9873757faf312faa0021e] 13 Memory leak fix [barnowl 95caa16b2e9ba10770d87d0955198c14c2d0e16a] 14 Memory leak fix [barnowl 1716fed8c2650e46892cf6571555eac937266c6e] 15 Add getstyle command [barnowl 216c73421653e3ef0e957aa9a9804e208a77c80e] 16 Binary search for msgid [barnowl 0c8ab5eadbb6ecc97a120c91b9a824b33538c764] 17 File-handle leak [barnowl e78397d6ac5da0de31a4e269c0ba7f3d691857a3] 18 Fix delay in jump from top to bottom [barnowl 801b7ac63b962640debbcfd422cb9a60da5fea31] 19 Load subs in chunks [barnowl 93e883d60051b80bf6d35391f9d76fd7dfd198e3] 20 Load subs in chunks [barnowl f6050ee9b0a171a5031f84409eb181062afacd18] 21 Better zsig logging [barnowl d857b667a5a9b108b1a2a26b4a5513bef2b53f80] 22 free() -> owlfree() [barnowl d524c838ac7c115628424b8ac171c3489622ea3a] 23 Escape AIM users in smartfilters [barnowl af9b92e3e7ccb7de276a94b5c7e5861b24e71eff] 24 Better regex escape chars [barnowl 80e54a7631f091be8c9762adb9746bad38104738] 25 Deal with quotes in smart filters [barnowl 4099cf83702763fa8d1efc4f1582a605431bdb77] 26 Deal with 0 length zephyr fields [barnowl 128171aaf7cefa91a4bb1eada93a19d8fd0c355c] 27 Deal with 0 length zephyr fields [barnowl 50e29e35c64d64e223d378d350a7bc4f038d78f5] 28 Deal with 0 length zephyr fields [barnowl 804ab8af8b6d00bcd7e2402df892db8fbd61a3ec] 29 Leave curmsg on screen after resize [barnowl c0f9e3009bc03e80a44de64cd5f2b4033290236e] 30 Rip out brower stuff [barnowl 8e5935d11c699a7ce5a3e6e9a47799564c696d6a] 31 Rip out browser stuff [barnowl 4f15e8e9ceada0d4b2cc969ebf43b0a1fb3709ea] 32 No passwords in command history [barnowl 6e400cc71aa59e041dce677aadf50dc1f25228e2] 33 Format NOC mssages [barnowl a1bb1980e4bca23b8329cc0e7c0bd5027055ea0a] 34 Expand ~ in loadsubs [barnowl 27d8d835dc6d58c08fae10e75aae306c49215143] 35 Expand ~ in source [barnowl 10d67d57cb29221f63a43a30643c697fc7b38911] 36 Only use resizeterm() if it's available 37 Debian backports 38 Change license to GPLv3 39 9 40 2.1.11 10 41 Don't crash doing zlocate with bad tickets. [BZ 12] -
Makefile.in
rafbf668 rdab82f29 24 24 keypress.c keymap.c keybinding.c cmd.c context.c zcrypt.c \ 25 25 aim.c buddy.c buddylist.c timer.c style.c stylefunc.c errqueue.c \ 26 zbuddylist.c muxevents.c popexec.c26 zbuddylist.c popexec.c select.c 27 27 OWL_SRC = owl.c 28 28 TESTER_SRC = tester.c -
aim.c
r9854278 rdab82f29 1 /* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar 2 * 3 * This file is part of Owl. 4 * 5 * Owl is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * Owl is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with Owl. If not, see <http://www.gnu.org/licenses/>. 17 * 18 * --------------------------------------------------------------- 19 * 20 * As of Owl version 2.1.12 there are patches contributed by 21 * developers of the the branched BarnOwl project, Copyright (c) 22 * 2006-2008 The BarnOwl Developers. All rights reserved. 23 */ 24 1 25 #include <stdio.h> 2 26 #include <stdio.h> … … 239 263 { 240 264 if (message) { 241 owl_function_error( message);265 owl_function_error("%s", message); 242 266 } else { 243 267 owl_function_error("Authentication error on login"); … … 948 972 949 973 if (modname) { 950 if (!(filename = malloc(strlen(priv->aimbinarypath)+1+strlen(modname)+4+1))) {974 if (!(filename = owl_malloc(strlen(priv->aimbinarypath)+1+strlen(modname)+4+1))) { 951 975 /* perror("memrequest: malloc"); */ 952 976 return -1; … … 954 978 sprintf(filename, "%s/%s.ocm", priv->aimbinarypath, modname); 955 979 } else { 956 if (!(filename = malloc(strlen(priv->aimbinarypath)+1+strlen(defaultmod)+1))) {980 if (!(filename = owl_malloc(strlen(priv->aimbinarypath)+1+strlen(defaultmod)+1))) { 957 981 /* perror("memrequest: malloc"); */ 958 982 return -1; … … 964 988 if (!modname) { 965 989 /* perror("memrequest: stat"); */ 966 free(filename);990 owl_free(filename); 967 991 return -1; 968 992 } … … 986 1010 int i; 987 1011 988 free(filename); /* not needed */1012 owl_free(filename); /* not needed */ 989 1013 owl_function_error("getaimdata memrequest: recieved invalid request for 0x%08lx bytes at 0x%08lx (file %s)\n", len, offset, modname); 990 1014 i = 8; … … 993 1017 } 994 1018 995 if (!(buf = malloc(i))) {1019 if (!(buf = owl_malloc(i))) { 996 1020 return -1; 997 1021 } … … 1017 1041 *buflenret = i; 1018 1042 } else { 1019 if (!(buf = malloc(len))) {1020 free(filename);1043 if (!(buf = owl_malloc(len))) { 1044 owl_free(filename); 1021 1045 return -1; 1022 1046 } … … 1024 1048 if (!(f = fopen(filename, "r"))) { 1025 1049 /* perror("memrequest: fopen"); */ 1026 free(filename);1027 free(buf);1050 owl_free(filename); 1051 owl_free(buf); 1028 1052 return -1; 1029 1053 } 1030 1054 1031 free(filename);1055 owl_free(filename); 1032 1056 1033 1057 if (fseek(f, offset, SEEK_SET) == -1) { 1034 1058 /* perror("memrequest: fseek"); */ 1035 1059 fclose(f); 1036 free(buf);1060 owl_free(buf); 1037 1061 return -1; 1038 1062 } … … 1041 1065 /* perror("memrequest: fread"); */ 1042 1066 fclose(f); 1043 free(buf);1067 owl_free(buf); 1044 1068 return -1; 1045 1069 } … … 1076 1100 if (priv->aimbinarypath && (getaimdata(sess, &buf, &buflen, offset, len, modname) == 0)) { 1077 1101 aim_sendmemblock(sess, fr->conn, offset, buflen, buf, AIM_SENDMEMBLOCK_FLAG_ISREQUEST); 1078 free(buf);1102 owl_free(buf); 1079 1103 } else { 1080 1104 owl_function_debugmsg("faimtest_memrequest: unable to use AIM binary (\"%s/%s\"), sending defaults...\n", priv->aimbinarypath, modname); … … 1342 1366 int z; 1343 1367 1344 newbuf = malloc(i+1);1368 newbuf = owl_malloc(i+1); 1345 1369 for (z = 0; z < i; z++) 1346 1370 newbuf[z] = (z % 10)+0x30; 1347 1371 newbuf[i] = '\0'; 1348 1372 /* aim_send_im(sess, userinfo->sn, AIM_IMFLAGS_ACK | AIM_IMFLAGS_AWAY, newbuf); */ 1349 free(newbuf);1373 owl_free(newbuf); 1350 1374 } 1351 1375 } else if (strstr(tmpstr, "seticqstatus")) { … … 1452 1476 * 1453 1477 */ 1454 strncpy(realmsg, args->msg, sizeof(realmsg)); 1478 if (!args->msg) { 1479 if (args->mpmsg.parts->data) { 1480 strncpy(realmsg,args->mpmsg.parts->data, sizeof(realmsg)); 1481 } else { 1482 strncpy(realmsg,"",1); 1483 } 1484 } else { 1485 strncpy(realmsg, args->msg, sizeof(realmsg)); 1486 } 1455 1487 } 1456 1488 … … 1697 1729 1698 1730 /* printf("snac threw error (reason 0x%04x: %s)\n", reason, (reason<msgerrreasonslen)?msgerrreasons[reason]:"unknown"); */ 1699 if (reason<msgerrreasonslen) owl_function_error( msgerrreasons[reason]);1731 if (reason<msgerrreasonslen) owl_function_error("%s", msgerrreasons[reason]); 1700 1732 1701 1733 return 1; … … 1714 1746 1715 1747 /* printf("message to %s bounced (reason 0x%04x: %s)\n", destsn, reason, (reason<msgerrreasonslen)?msgerrreasons[reason]:"unknown"); */ 1716 if (reason<msgerrreasonslen) owl_function_error( msgerrreasons[reason]);1748 if (reason<msgerrreasonslen) owl_function_error("%s", msgerrreasons[reason]); 1717 1749 1718 1750 if (reason==4) { … … 1735 1767 1736 1768 /* printf("user information for %s unavailable (reason 0x%04x: %s)\n", destsn, reason, (reason<msgerrreasonslen)?msgerrreasons[reason]:"unknown"); */ 1737 if (reason<msgerrreasonslen) owl_function_error( msgerrreasons[reason]);1769 if (reason<msgerrreasonslen) owl_function_error("%s", msgerrreasons[reason]); 1738 1770 1739 1771 return 1; … … 2310 2342 } 2311 2343 2344 void owl_process_aim() 2345 { 2346 if (owl_global_is_doaimevents(&g)) { 2347 owl_aim_process_events(); 2348 } 2349 } 2312 2350 2313 2351 /**********************************************************************************/ -
buddy.c
rf4d0975 rdab82f29 1 /* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar 2 * 3 * This file is part of Owl. 4 * 5 * Owl is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * Owl is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with Owl. If not, see <http://www.gnu.org/licenses/>. 17 * 18 * --------------------------------------------------------------- 19 * 20 * As of Owl version 2.1.12 there are patches contributed by 21 * developers of the the branched BarnOwl project, Copyright (c) 22 * 2006-2008 The BarnOwl Developers. All rights reserved. 23 */ 24 1 25 #include "owl.h" 2 26 -
buddylist.c
r257a22f rdab82f29 1 /* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar 2 * 3 * This file is part of Owl. 4 * 5 * Owl is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * Owl is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with Owl. If not, see <http://www.gnu.org/licenses/>. 17 * 18 * --------------------------------------------------------------- 19 * 20 * As of Owl version 2.1.12 there are patches contributed by 21 * developers of the the branched BarnOwl project, Copyright (c) 22 * 2006-2008 The BarnOwl Developers. All rights reserved. 23 */ 24 1 25 #include "owl.h" 2 26 -
cmd.c
rf1e629d rdab82f29 1 /* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar 2 * 3 * This file is part of Owl. 4 * 5 * Owl is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * Owl is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with Owl. If not, see <http://www.gnu.org/licenses/>. 17 * 18 * --------------------------------------------------------------- 19 * 20 * As of Owl version 2.1.12 there are patches contributed by 21 * developers of the the branched BarnOwl project, Copyright (c) 22 * 2006-2008 The BarnOwl Developers. All rights reserved. 23 */ 24 1 25 #include <stdio.h> 2 26 #include <stdlib.h> -
commands.c
r5e0b690 rdab82f29 1 /* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar 2 * 3 * This file is part of Owl. 4 * 5 * Owl is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * Owl is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with Owl. If not, see <http://www.gnu.org/licenses/>. 17 * 18 * --------------------------------------------------------------- 19 * 20 * As of Owl version 2.1.12 there are patches contributed by 21 * developers of the the branched BarnOwl project, Copyright (c) 22 * 2006-2008 The BarnOwl Developers. All rights reserved. 23 */ 24 1 25 #include <stdio.h> 2 26 #include <stdlib.h> … … 442 466 OWLCMD_VOID("pop-message", owl_command_pop_message, OWL_CTX_RECWIN, 443 467 "pops up a message in a window", "", ""), 444 445 OWLCMD_VOID("openurl", owl_command_openurl, OWL_CTX_INTERACTIVE,446 "opens up a URL from the current message",447 "",448 "Uses the 'webbrowser' variable to determine\n"449 "which browser to use. Currently, 'netscape'\n"450 "and 'galeon' are supported.\n"),451 468 452 469 OWLCMD_ARGS("zaway", owl_command_zaway, OWL_CTX_INTERACTIVE, … … 704 721 "getvar <varname>", ""), 705 722 723 OWLCMD_ARGS("getstyle", owl_command_getstyle, OWL_CTX_INTERACTIVE, 724 "returns the name of the style for the current view", 725 "", ""), 726 706 727 OWLCMD_ARGS("search", owl_command_search, OWL_CTX_INTERACTIVE, 707 728 "search messages for a particular string", … … 1556 1577 char *owl_command_multi(int argc, char **argv, char *buff) 1557 1578 { 1558 char *lastrv = NULL, * newbuff;1579 char *lastrv = NULL, *dupbuff, *newbuff; 1559 1580 char **commands; 1560 1581 int ncommands, i; … … 1563 1584 return NULL; 1564 1585 } 1565 newbuff = owl_strdup(buff);1566 newbuff = skiptokens( newbuff, 1);1586 dupbuff = owl_strdup(buff); 1587 newbuff = skiptokens(dupbuff, 1); 1567 1588 if (!strcmp(argv[0], "(")) { 1568 1589 for (i=strlen(newbuff)-1; i>=0; i--) { … … 1584 1605 lastrv = owl_function_command(commands[i]); 1585 1606 } 1607 owl_free(dupbuff); 1586 1608 atokenize_free(commands, ncommands); 1587 1609 return lastrv; … … 1976 1998 foo=owl_function_create_negative_filter(owl_view_get_filtname(owl_global_get_current_view(&g))); 1977 1999 owl_function_change_currentview_filter(foo); 2000 owl_free(foo); 1978 2001 return(NULL); 1979 2002 } … … 2157 2180 } 2158 2181 2159 void owl_command_openurl(void)2160 {2161 owl_function_openurl();2162 }2163 2164 2182 char *owl_command_delete(int argc, char **argv, char *buff) 2165 2183 { … … 2399 2417 } 2400 2418 2419 char *owl_command_getstyle(int argc, char **argv, char *buff) 2420 { 2421 char *stylename; 2422 if (argc != 1) { 2423 owl_function_makemsg("Wrong number of arguments for %s", argv[0]); 2424 return NULL; 2425 } 2426 stylename = owl_view_get_style_name(owl_global_get_current_view(&g)); 2427 if (stylename) stylename = owl_strdup(stylename); 2428 return stylename; 2429 } 2430 2401 2431 /*********************************************************************/ 2402 2432 /************************** EDIT SPECIFIC ****************************/ … … 2409 2439 owl_function_makemsg("Command cancelled."); 2410 2440 2411 hist=owl_editwin_get_history(e); 2412 owl_history_store(hist, owl_editwin_get_text(e)); 2413 owl_history_reset(hist); 2441 if(e->echochar == 0) { 2442 hist=owl_editwin_get_history(e); 2443 owl_history_store(hist, owl_editwin_get_text(e)); 2444 owl_history_reset(hist); 2445 } 2414 2446 2415 2447 owl_editwin_fullclear(e); -
config.h.in
r11a7c6a rdab82f29 60 60 #undef HAVE_DES_ECB_ENCRYPT_PROTO 61 61 62 #undef TERMINFO 62 63 63 #undef TERMINFO 64 /* Define to 1 if you have the `resizeterm' function. */ 65 #undef HAVE_RESIZETERM 66 -
configure
r8298425 rdab82f29 1 1 #! /bin/sh 2 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2. 59.3 # Generated by GNU Autoconf 2.61. 4 4 # 5 # Copyright (C) 2003 Free Software Foundation, Inc. 5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 6 7 # This configure script is free software; the Free Software Foundation 7 8 # gives unlimited permission to copy, distribute and modify it. … … 10 11 ## --------------------- ## 11 12 12 # Be Bourne compatible 13 # Be more Bourne compatible 14 DUALCASE=1; export DUALCASE # for MKS sh 13 15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 14 16 emulate sh … … 17 19 # is contrary to our usage. Disable this feature. 18 20 alias -g '${1+"$@"}'='"$@"' 19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 20 set -o posix 21 fi 22 DUALCASE=1; export DUALCASE # for MKS sh 23 24 # Support unset when possible. 25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 26 as_unset=unset 27 else 28 as_unset=false 29 fi 30 31 32 # Work around bugs in pre-3.0 UWIN ksh. 33 $as_unset ENV MAIL MAILPATH 34 PS1='$ ' 35 PS2='> ' 36 PS4='+ ' 37 38 # NLS nuisances. 39 for as_var in \ 40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 42 LC_TELEPHONE LC_TIME 43 do 44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 45 eval $as_var=C; export $as_var 46 else 47 $as_unset $as_var 48 fi 49 done 50 51 # Required to use basename. 52 if expr a : '\(a\)' >/dev/null 2>&1; then 53 as_expr=expr 54 else 55 as_expr=false 56 fi 57 58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 59 as_basename=basename 60 else 61 as_basename=false 62 fi 63 64 65 # Name of the executable. 66 as_me=`$as_basename "$0" || 67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 68 X"$0" : 'X\(//\)$' \| \ 69 X"$0" : 'X\(/\)$' \| \ 70 . : '\(.\)' 2>/dev/null || 71 echo X/"$0" | 72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 73 /^X\/\(\/\/\)$/{ s//\1/; q; } 74 /^X\/\(\/\).*/{ s//\1/; q; } 75 s/.*/./; q'` 76 77 78 # PATH needs CR, and LINENO needs CR and PATH. 21 setopt NO_GLOB_SUBST 22 else 23 case `(set -o) 2>/dev/null` in 24 *posix*) set -o posix ;; 25 esac 26 27 fi 28 29 30 31 32 # PATH needs CR 79 33 # Avoid depending upon Character Ranges. 80 34 as_cr_letters='abcdefghijklmnopqrstuvwxyz' … … 97 51 fi 98 52 99 100 as_lineno_1=$LINENO 101 as_lineno_2=$LINENO 102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 103 test "x$as_lineno_1" != "x$as_lineno_2" && 104 test "x$as_lineno_3" = "x$as_lineno_2" || { 105 # Find who we are. Look in the path if we contain no path at all 106 # relative or not. 107 case $0 in 108 *[\\/]* ) as_myself=$0 ;; 109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 53 # Support unset when possible. 54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 55 as_unset=unset 56 else 57 as_unset=false 58 fi 59 60 61 # IFS 62 # We need space, tab and new line, in precisely that order. Quoting is 63 # there to prevent editors from complaining about space-tab. 64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 65 # splitting by setting IFS to empty value.) 66 as_nl=' 67 ' 68 IFS=" "" $as_nl" 69 70 # Find who we are. Look in the path if we contain no directory separator. 71 case $0 in 72 *[\\/]* ) as_myself=$0 ;; 73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 110 74 for as_dir in $PATH 111 75 do … … 114 78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 115 79 done 116 117 ;; 118 esac 119 # We did not find ourselves, most probably we were run as `sh COMMAND' 120 # in which case we are not to be found in the path. 121 if test "x$as_myself" = x; then 122 as_myself=$0 80 IFS=$as_save_IFS 81 82 ;; 83 esac 84 # We did not find ourselves, most probably we were run as `sh COMMAND' 85 # in which case we are not to be found in the path. 86 if test "x$as_myself" = x; then 87 as_myself=$0 88 fi 89 if test ! -f "$as_myself"; then 90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 91 { (exit 1); exit 1; } 92 fi 93 94 # Work around bugs in pre-3.0 UWIN ksh. 95 for as_var in ENV MAIL MAILPATH 96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 97 done 98 PS1='$ ' 99 PS2='> ' 100 PS4='+ ' 101 102 # NLS nuisances. 103 for as_var in \ 104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 106 LC_TELEPHONE LC_TIME 107 do 108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 109 eval $as_var=C; export $as_var 110 else 111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 123 112 fi 124 if test ! -f "$as_myself"; then 125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 126 { (exit 1); exit 1; }; } 127 fi 128 case $CONFIG_SHELL in 129 '') 113 done 114 115 # Required to use basename. 116 if expr a : '\(a\)' >/dev/null 2>&1 && 117 test "X`expr 00001 : '.*\(...\)'`" = X001; then 118 as_expr=expr 119 else 120 as_expr=false 121 fi 122 123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 124 as_basename=basename 125 else 126 as_basename=false 127 fi 128 129 130 # Name of the executable. 131 as_me=`$as_basename -- "$0" || 132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 133 X"$0" : 'X\(//\)$' \| \ 134 X"$0" : 'X\(/\)' \| . 2>/dev/null || 135 echo X/"$0" | 136 sed '/^.*\/\([^/][^/]*\)\/*$/{ 137 s//\1/ 138 q 139 } 140 /^X\/\(\/\/\)$/{ 141 s//\1/ 142 q 143 } 144 /^X\/\(\/\).*/{ 145 s//\1/ 146 q 147 } 148 s/.*/./; q'` 149 150 # CDPATH. 151 $as_unset CDPATH 152 153 154 if test "x$CONFIG_SHELL" = x; then 155 if (eval ":") 2>/dev/null; then 156 as_have_required=yes 157 else 158 as_have_required=no 159 fi 160 161 if test $as_have_required = yes && (eval ": 162 (as_func_return () { 163 (exit \$1) 164 } 165 as_func_success () { 166 as_func_return 0 167 } 168 as_func_failure () { 169 as_func_return 1 170 } 171 as_func_ret_success () { 172 return 0 173 } 174 as_func_ret_failure () { 175 return 1 176 } 177 178 exitcode=0 179 if as_func_success; then 180 : 181 else 182 exitcode=1 183 echo as_func_success failed. 184 fi 185 186 if as_func_failure; then 187 exitcode=1 188 echo as_func_failure succeeded. 189 fi 190 191 if as_func_ret_success; then 192 : 193 else 194 exitcode=1 195 echo as_func_ret_success failed. 196 fi 197 198 if as_func_ret_failure; then 199 exitcode=1 200 echo as_func_ret_failure succeeded. 201 fi 202 203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 204 : 205 else 206 exitcode=1 207 echo positional parameters were not saved. 208 fi 209 210 test \$exitcode = 0) || { (exit 1); exit 1; } 211 212 ( 213 as_lineno_1=\$LINENO 214 as_lineno_2=\$LINENO 215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 217 ") 2> /dev/null; then 218 : 219 else 220 as_candidate_shells= 130 221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 131 222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH … … 133 224 IFS=$as_save_IFS 134 225 test -z "$as_dir" && as_dir=. 135 for as_base in sh bash ksh sh5; do 136 case $as_dir in 226 case $as_dir in 137 227 /*) 138 if ("$as_dir/$as_base" -c ' 228 for as_base in sh bash ksh sh5; do 229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 230 done;; 231 esac 232 done 233 IFS=$as_save_IFS 234 235 236 for as_shell in $as_candidate_shells $SHELL; do 237 # Try only shells that exist, to save several forks. 238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 239 { ("$as_shell") 2> /dev/null <<\_ASEOF 240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 241 emulate sh 242 NULLCMD=: 243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 244 # is contrary to our usage. Disable this feature. 245 alias -g '${1+"$@"}'='"$@"' 246 setopt NO_GLOB_SUBST 247 else 248 case `(set -o) 2>/dev/null` in 249 *posix*) set -o posix ;; 250 esac 251 252 fi 253 254 255 : 256 _ASEOF 257 }; then 258 CONFIG_SHELL=$as_shell 259 as_have_required=yes 260 if { "$as_shell" 2> /dev/null <<\_ASEOF 261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 262 emulate sh 263 NULLCMD=: 264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 265 # is contrary to our usage. Disable this feature. 266 alias -g '${1+"$@"}'='"$@"' 267 setopt NO_GLOB_SUBST 268 else 269 case `(set -o) 2>/dev/null` in 270 *posix*) set -o posix ;; 271 esac 272 273 fi 274 275 276 : 277 (as_func_return () { 278 (exit $1) 279 } 280 as_func_success () { 281 as_func_return 0 282 } 283 as_func_failure () { 284 as_func_return 1 285 } 286 as_func_ret_success () { 287 return 0 288 } 289 as_func_ret_failure () { 290 return 1 291 } 292 293 exitcode=0 294 if as_func_success; then 295 : 296 else 297 exitcode=1 298 echo as_func_success failed. 299 fi 300 301 if as_func_failure; then 302 exitcode=1 303 echo as_func_failure succeeded. 304 fi 305 306 if as_func_ret_success; then 307 : 308 else 309 exitcode=1 310 echo as_func_ret_success failed. 311 fi 312 313 if as_func_ret_failure; then 314 exitcode=1 315 echo as_func_ret_failure succeeded. 316 fi 317 318 if ( set x; as_func_ret_success y && test x = "$1" ); then 319 : 320 else 321 exitcode=1 322 echo positional parameters were not saved. 323 fi 324 325 test $exitcode = 0) || { (exit 1); exit 1; } 326 327 ( 139 328 as_lineno_1=$LINENO 140 329 as_lineno_2=$LINENO 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`142 330 test "x$as_lineno_1" != "x$as_lineno_2" && 143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 146 CONFIG_SHELL=$as_dir/$as_base 147 export CONFIG_SHELL 148 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 149 fi;; 150 esac 151 done 152 done 153 ;; 154 esac 331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 332 333 _ASEOF 334 }; then 335 break 336 fi 337 338 fi 339 340 done 341 342 if test "x$CONFIG_SHELL" != x; then 343 for as_var in BASH_ENV ENV 344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 345 done 346 export CONFIG_SHELL 347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 348 fi 349 350 351 if test $as_have_required = no; then 352 echo This script requires a shell more modern than all the 353 echo shells that I found on your system. Please install a 354 echo modern shell, or manually run the script under such a 355 echo shell if you do have one. 356 { (exit 1); exit 1; } 357 fi 358 359 360 fi 361 362 fi 363 364 365 366 (eval "as_func_return () { 367 (exit \$1) 368 } 369 as_func_success () { 370 as_func_return 0 371 } 372 as_func_failure () { 373 as_func_return 1 374 } 375 as_func_ret_success () { 376 return 0 377 } 378 as_func_ret_failure () { 379 return 1 380 } 381 382 exitcode=0 383 if as_func_success; then 384 : 385 else 386 exitcode=1 387 echo as_func_success failed. 388 fi 389 390 if as_func_failure; then 391 exitcode=1 392 echo as_func_failure succeeded. 393 fi 394 395 if as_func_ret_success; then 396 : 397 else 398 exitcode=1 399 echo as_func_ret_success failed. 400 fi 401 402 if as_func_ret_failure; then 403 exitcode=1 404 echo as_func_ret_failure succeeded. 405 fi 406 407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 408 : 409 else 410 exitcode=1 411 echo positional parameters were not saved. 412 fi 413 414 test \$exitcode = 0") || { 415 echo No shell found that supports shell functions. 416 echo Please tell autoconf@gnu.org about your system, 417 echo including any error possibly output before this 418 echo message 419 } 420 421 422 423 as_lineno_1=$LINENO 424 as_lineno_2=$LINENO 425 test "x$as_lineno_1" != "x$as_lineno_2" && 426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 155 427 156 428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 157 429 # uniformly replaced by the line number. The first 'sed' inserts a 158 # line-number line before each line; the second 'sed' does the real 159 # work. The second script uses 'N' to pair each line-number line 160 # with the numbered line, and appends trailing '-' during 161 # substitution so that $LINENO is not a special case at line end. 430 # line-number line after each line using $LINENO; the second 'sed' 431 # does the real work. The second script uses 'N' to pair each 432 # line-number line with the line containing $LINENO, and appends 433 # trailing '-' during substitution so that $LINENO is not a special 434 # case at line end. 162 435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 164 sed '=' <$as_myself | 436 # scripts with optimization help from Paolo Bonzini. Blame Lee 437 # E. McMahon (1931-1989) for sed's syntax. :-) 438 sed -n ' 439 p 440 /[$]LINENO/= 441 ' <$as_myself | 165 442 sed ' 443 s/[$]LINENO.*/&-/ 444 t lineno 445 b 446 :lineno 166 447 N 167 s,$,-, 168 : loop 169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 448 :loop 449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 170 450 t loop 171 s,-$,, 172 s,^['$as_cr_digits']*\n,, 451 s/-\n.*// 173 452 ' >$as_me.lineno && 174 chmod +x $as_me.lineno||453 chmod +x "$as_me.lineno" || 175 454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 176 455 { (exit 1); exit 1; }; } … … 178 457 # Don't try to exec as it changes $[0], causing all sort of problems 179 458 # (the dirname of $[0] is not the place where we might find the 180 # original and so on. Autoconf is especially sensi ble to this).181 . ./$as_me.lineno459 # original and so on. Autoconf is especially sensitive to this). 460 . "./$as_me.lineno" 182 461 # Exit status is that of the last command. 183 462 exit … … 185 464 186 465 187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 188 *c*,-n*) ECHO_N= ECHO_C=' 189 ' ECHO_T=' ' ;; 190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 192 esac 193 194 if expr a : '\(a\)' >/dev/null 2>&1; then 466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 467 as_dirname=dirname 468 else 469 as_dirname=false 470 fi 471 472 ECHO_C= ECHO_N= ECHO_T= 473 case `echo -n x` in 474 -n*) 475 case `echo 'x\c'` in 476 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 477 *) ECHO_C='\c';; 478 esac;; 479 *) 480 ECHO_N='-n';; 481 esac 482 483 if expr a : '\(a\)' >/dev/null 2>&1 && 484 test "X`expr 00001 : '.*\(...\)'`" = X001; then 195 485 as_expr=expr 196 486 else … … 199 489 200 490 rm -f conf$$ conf$$.exe conf$$.file 491 if test -d conf$$.dir; then 492 rm -f conf$$.dir/conf$$.file 493 else 494 rm -f conf$$.dir 495 mkdir conf$$.dir 496 fi 201 497 echo >conf$$.file 202 498 if ln -s conf$$.file conf$$ 2>/dev/null; then 203 # We could just check for DJGPP; but this test a) works b) is more generic 204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 205 if test -f conf$$.exe; then 206 # Don't use ln at all; we don't have any links 499 as_ln_s='ln -s' 500 # ... but there are two gotchas: 501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 503 # In both cases, we have to default to `cp -p'. 504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 207 505 as_ln_s='cp -p' 208 else209 as_ln_s='ln -s'210 fi211 506 elif ln conf$$.file conf$$ 2>/dev/null; then 212 507 as_ln_s=ln … … 214 509 as_ln_s='cp -p' 215 510 fi 216 rm -f conf$$ conf$$.exe conf$$.file 511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 512 rmdir conf$$.dir 2>/dev/null 217 513 218 514 if mkdir -p . 2>/dev/null; then … … 223 519 fi 224 520 225 as_executable_p="test -f" 521 if test -x / >/dev/null 2>&1; then 522 as_test_x='test -x' 523 else 524 if ls -dL / >/dev/null 2>&1; then 525 as_ls_L_option=L 526 else 527 as_ls_L_option= 528 fi 529 as_test_x=' 530 eval sh -c '\'' 531 if test -d "$1"; then 532 test -d "$1/."; 533 else 534 case $1 in 535 -*)set "./$1";; 536 esac; 537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 538 ???[sx]*):;;*)false;;esac;fi 539 '\'' sh 540 ' 541 fi 542 as_executable_p=$as_test_x 226 543 227 544 # Sed expression to map a string onto a valid CPP name. … … 232 549 233 550 234 # IFS 235 # We need space, tab and new line, in precisely that order. 236 as_nl=' 237 ' 238 IFS=" $as_nl" 239 240 # CDPATH. 241 $as_unset CDPATH 242 551 552 exec 7<&0 </dev/null 6>&1 243 553 244 554 # Name of the host. … … 247 557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 248 558 249 exec 6>&1250 251 559 # 252 560 # Initializations. 253 561 # 254 562 ac_default_prefix=/usr/local 563 ac_clean_files= 255 564 ac_config_libobj_dir=. 565 LIBOBJS= 256 566 cross_compiling=no 257 567 subdirs= … … 259 569 MAKEFLAGS= 260 570 SHELL=${CONFIG_SHELL-/bin/sh} 261 262 # Maximum number of lines to put in a shell here document.263 # This variable seems obsolete. It should probably be removed, and264 # only ac_max_sed_lines should be used.265 : ${ac_max_here_lines=38}266 571 267 572 # Identity of this package. … … 276 581 ac_includes_default="\ 277 582 #include <stdio.h> 278 #if HAVE_SYS_TYPES_H583 #ifdef HAVE_SYS_TYPES_H 279 584 # include <sys/types.h> 280 585 #endif 281 #if HAVE_SYS_STAT_H586 #ifdef HAVE_SYS_STAT_H 282 587 # include <sys/stat.h> 283 588 #endif 284 #if STDC_HEADERS589 #ifdef STDC_HEADERS 285 590 # include <stdlib.h> 286 591 # include <stddef.h> 287 592 #else 288 # if HAVE_STDLIB_H593 # ifdef HAVE_STDLIB_H 289 594 # include <stdlib.h> 290 595 # endif 291 596 #endif 292 #if HAVE_STRING_H293 # if ! STDC_HEADERS &&HAVE_MEMORY_H597 #ifdef HAVE_STRING_H 598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 294 599 # include <memory.h> 295 600 # endif 296 601 # include <string.h> 297 602 #endif 298 #if HAVE_STRINGS_H603 #ifdef HAVE_STRINGS_H 299 604 # include <strings.h> 300 605 #endif 301 #if HAVE_INTTYPES_H606 #ifdef HAVE_INTTYPES_H 302 607 # include <inttypes.h> 303 #else304 # if HAVE_STDINT_H305 # include <stdint.h>306 # endif307 608 #endif 308 #if HAVE_UNISTD_H 609 #ifdef HAVE_STDINT_H 610 # include <stdint.h> 611 #endif 612 #ifdef HAVE_UNISTD_H 309 613 # include <unistd.h> 310 614 #endif" 311 615 312 ac_subdirs_all="$ac_subdirs_all libfaim" 313 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP XSUBPPDIR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA subdirs LIBOBJS LTLIBOBJS' 616 ac_subst_vars='SHELL 617 PATH_SEPARATOR 618 PACKAGE_NAME 619 PACKAGE_TARNAME 620 PACKAGE_VERSION 621 PACKAGE_STRING 622 PACKAGE_BUGREPORT 623 exec_prefix 624 prefix 625 program_transform_name 626 bindir 627 sbindir 628 libexecdir 629 datarootdir 630 datadir 631 sysconfdir 632 sharedstatedir 633 localstatedir 634 includedir 635 oldincludedir 636 docdir 637 infodir 638 htmldir 639 dvidir 640 pdfdir 641 psdir 642 libdir 643 localedir 644 mandir 645 DEFS 646 ECHO_C 647 ECHO_N 648 ECHO_T 649 LIBS 650 build_alias 651 host_alias 652 target_alias 653 CC 654 CFLAGS 655 LDFLAGS 656 CPPFLAGS 657 ac_ct_CC 658 EXEEXT 659 OBJEXT 660 CPP 661 GREP 662 EGREP 663 XSUBPPDIR 664 INSTALL_PROGRAM 665 INSTALL_SCRIPT 666 INSTALL_DATA 667 subdirs 668 LIBOBJS 669 LTLIBOBJS' 314 670 ac_subst_files='' 671 ac_precious_vars='build_alias 672 host_alias 673 target_alias 674 CC 675 CFLAGS 676 LDFLAGS 677 LIBS 678 CPPFLAGS 679 CPP' 680 ac_subdirs_all='libfaim' 315 681 316 682 # Initialize some variables set by options. … … 339 705 # by default will actually change. 340 706 # Use braces instead of parens because sh, perl, etc. also accept them. 707 # (The list follows the same order as the GNU Coding Standards.) 341 708 bindir='${exec_prefix}/bin' 342 709 sbindir='${exec_prefix}/sbin' 343 710 libexecdir='${exec_prefix}/libexec' 344 datadir='${prefix}/share' 711 datarootdir='${prefix}/share' 712 datadir='${datarootdir}' 345 713 sysconfdir='${prefix}/etc' 346 714 sharedstatedir='${prefix}/com' 347 715 localstatedir='${prefix}/var' 348 libdir='${exec_prefix}/lib'349 716 includedir='${prefix}/include' 350 717 oldincludedir='/usr/include' 351 infodir='${prefix}/info' 352 mandir='${prefix}/man' 718 docdir='${datarootdir}/doc/${PACKAGE}' 719 infodir='${datarootdir}/info' 720 htmldir='${docdir}' 721 dvidir='${docdir}' 722 pdfdir='${docdir}' 723 psdir='${docdir}' 724 libdir='${exec_prefix}/lib' 725 localedir='${datarootdir}/locale' 726 mandir='${datarootdir}/man' 353 727 354 728 ac_prev= 729 ac_dashdash= 355 730 for ac_option 356 731 do 357 732 # If the previous option needs an argument, assign it. 358 733 if test -n "$ac_prev"; then 359 eval "$ac_prev=\$ac_option"734 eval $ac_prev=\$ac_option 360 735 ac_prev= 361 736 continue 362 737 fi 363 738 364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 739 case $ac_option in 740 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 741 *) ac_optarg=yes ;; 742 esac 365 743 366 744 # Accept the important Cygnus configure options, so we can diagnose typos. 367 745 368 case $ac_option in 746 case $ac_dashdash$ac_option in 747 --) 748 ac_dashdash=yes ;; 369 749 370 750 -bindir | --bindir | --bindi | --bind | --bin | --bi) … … 388 768 cache_file=config.cache ;; 389 769 390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)770 -datadir | --datadir | --datadi | --datad) 391 771 ac_prev=datadir ;; 392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 393 | --da=*) 772 -datadir=* | --datadir=* | --datadi=* | --datad=*) 394 773 datadir=$ac_optarg ;; 774 775 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 776 | --dataroo | --dataro | --datar) 777 ac_prev=datarootdir ;; 778 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 779 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 780 datarootdir=$ac_optarg ;; 395 781 396 782 -disable-* | --disable-*) 397 783 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 398 784 # Reject names that are not valid shell variable names. 399 expr "x$ac_feature" : ".*[^- _$as_cr_alnum]" >/dev/null &&785 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 400 786 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 401 787 { (exit 1); exit 1; }; } 402 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 403 eval "enable_$ac_feature=no" ;; 788 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 789 eval enable_$ac_feature=no ;; 790 791 -docdir | --docdir | --docdi | --doc | --do) 792 ac_prev=docdir ;; 793 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 794 docdir=$ac_optarg ;; 795 796 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 797 ac_prev=dvidir ;; 798 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 799 dvidir=$ac_optarg ;; 404 800 405 801 -enable-* | --enable-*) 406 802 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 407 803 # Reject names that are not valid shell variable names. 408 expr "x$ac_feature" : ".*[^- _$as_cr_alnum]" >/dev/null &&804 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 409 805 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 410 806 { (exit 1); exit 1; }; } 411 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 412 case $ac_option in 413 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 414 *) ac_optarg=yes ;; 415 esac 416 eval "enable_$ac_feature='$ac_optarg'" ;; 807 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 808 eval enable_$ac_feature=\$ac_optarg ;; 417 809 418 810 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ … … 441 833 host_alias=$ac_optarg ;; 442 834 835 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 836 ac_prev=htmldir ;; 837 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 838 | --ht=*) 839 htmldir=$ac_optarg ;; 840 443 841 -includedir | --includedir | --includedi | --included | --include \ 444 842 | --includ | --inclu | --incl | --inc) … … 465 863 libexecdir=$ac_optarg ;; 466 864 865 -localedir | --localedir | --localedi | --localed | --locale) 866 ac_prev=localedir ;; 867 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 868 localedir=$ac_optarg ;; 869 467 870 -localstatedir | --localstatedir | --localstatedi | --localstated \ 468 | --localstate | --localstat | --localsta | --localst \ 469 | --locals | --local | --loca | --loc | --lo) 871 | --localstate | --localstat | --localsta | --localst | --locals) 470 872 ac_prev=localstatedir ;; 471 873 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 874 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 474 875 localstatedir=$ac_optarg ;; 475 876 … … 536 937 program_transform_name=$ac_optarg ;; 537 938 939 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 940 ac_prev=pdfdir ;; 941 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 942 pdfdir=$ac_optarg ;; 943 944 -psdir | --psdir | --psdi | --psd | --ps) 945 ac_prev=psdir ;; 946 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 947 psdir=$ac_optarg ;; 948 538 949 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 539 950 | -silent | --silent | --silen | --sile | --sil) … … 588 999 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 589 1000 # Reject names that are not valid shell variable names. 590 expr "x$ac_package" : ".*[^- _$as_cr_alnum]" >/dev/null &&1001 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 591 1002 { echo "$as_me: error: invalid package name: $ac_package" >&2 592 1003 { (exit 1); exit 1; }; } 593 ac_package=`echo $ac_package| sed 's/-/_/g'` 594 case $ac_option in 595 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 596 *) ac_optarg=yes ;; 597 esac 598 eval "with_$ac_package='$ac_optarg'" ;; 1004 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1005 eval with_$ac_package=\$ac_optarg ;; 599 1006 600 1007 -without-* | --without-*) 601 1008 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 602 1009 # Reject names that are not valid shell variable names. 603 expr "x$ac_package" : ".*[^- _$as_cr_alnum]" >/dev/null &&1010 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 604 1011 { echo "$as_me: error: invalid package name: $ac_package" >&2 605 1012 { (exit 1); exit 1; }; } 606 ac_package=`echo $ac_package | sed 's/ -/_/g'`607 eval "with_$ac_package=no";;1013 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1014 eval with_$ac_package=no ;; 608 1015 609 1016 --x) … … 636 1043 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 637 1044 { (exit 1); exit 1; }; } 638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 639 eval "$ac_envvar='$ac_optarg'" 1045 eval $ac_envvar=\$ac_optarg 640 1046 export $ac_envvar ;; 641 1047 … … 657 1063 fi 658 1064 659 # Be sure to have absolute paths. 660 for ac_var in exec_prefix prefix 1065 # Be sure to have absolute directory names. 1066 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1067 datadir sysconfdir sharedstatedir localstatedir includedir \ 1068 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1069 libdir localedir mandir 661 1070 do 662 eval ac_val= $`echo $ac_var`1071 eval ac_val=\$$ac_var 663 1072 case $ac_val in 664 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 665 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 666 { (exit 1); exit 1; }; };; 1073 [\\/$]* | ?:[\\/]* ) continue;; 1074 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 667 1075 esac 668 done 669 670 # Be sure to have absolute paths. 671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 672 localstatedir libdir includedir oldincludedir infodir mandir 673 do 674 eval ac_val=$`echo $ac_var` 675 case $ac_val in 676 [\\/$]* | ?:[\\/]* ) ;; 677 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 678 { (exit 1); exit 1; }; };; 679 esac 1076 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1077 { (exit 1); exit 1; }; } 680 1078 done 681 1079 … … 704 1102 705 1103 1104 ac_pwd=`pwd` && test -n "$ac_pwd" && 1105 ac_ls_di=`ls -di .` && 1106 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1107 { echo "$as_me: error: Working directory cannot be determined" >&2 1108 { (exit 1); exit 1; }; } 1109 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1110 { echo "$as_me: error: pwd does not report name of working directory" >&2 1111 { (exit 1); exit 1; }; } 1112 1113 706 1114 # Find the source files, if location was not specified. 707 1115 if test -z "$srcdir"; then 708 1116 ac_srcdir_defaulted=yes 709 # Try the directory containing this script, then its parent.710 ac_confdir=` (dirname "$0") 2>/dev/null||1117 # Try the directory containing this script, then the parent directory. 1118 ac_confdir=`$as_dirname -- "$0" || 711 1119 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 712 1120 X"$0" : 'X\(//\)[^/]' \| \ 713 1121 X"$0" : 'X\(//\)$' \| \ 714 X"$0" : 'X\(/\)' \| \ 715 . : '\(.\)' 2>/dev/null || 1122 X"$0" : 'X\(/\)' \| . 2>/dev/null || 716 1123 echo X"$0" | 717 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 718 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 719 /^X\(\/\/\)$/{ s//\1/; q; } 720 /^X\(\/\).*/{ s//\1/; q; } 721 s/.*/./; q'` 1124 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1125 s//\1/ 1126 q 1127 } 1128 /^X\(\/\/\)[^/].*/{ 1129 s//\1/ 1130 q 1131 } 1132 /^X\(\/\/\)$/{ 1133 s//\1/ 1134 q 1135 } 1136 /^X\(\/\).*/{ 1137 s//\1/ 1138 q 1139 } 1140 s/.*/./; q'` 722 1141 srcdir=$ac_confdir 723 if test ! -r $srcdir/$ac_unique_file; then1142 if test ! -r "$srcdir/$ac_unique_file"; then 724 1143 srcdir=.. 725 1144 fi … … 727 1146 ac_srcdir_defaulted=no 728 1147 fi 729 if test ! -r $srcdir/$ac_unique_file; then730 if test "$ac_srcdir_defaulted" = yes; then731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&21148 if test ! -r "$srcdir/$ac_unique_file"; then 1149 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1150 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 732 1151 { (exit 1); exit 1; }; } 733 else 734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1152 fi 1153 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1154 ac_abs_confdir=`( 1155 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 735 1156 { (exit 1); exit 1; }; } 736 fi 737 fi 738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 739 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 740 { (exit 1); exit 1; }; } 741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 742 ac_env_build_alias_set=${build_alias+set} 743 ac_env_build_alias_value=$build_alias 744 ac_cv_env_build_alias_set=${build_alias+set} 745 ac_cv_env_build_alias_value=$build_alias 746 ac_env_host_alias_set=${host_alias+set} 747 ac_env_host_alias_value=$host_alias 748 ac_cv_env_host_alias_set=${host_alias+set} 749 ac_cv_env_host_alias_value=$host_alias 750 ac_env_target_alias_set=${target_alias+set} 751 ac_env_target_alias_value=$target_alias 752 ac_cv_env_target_alias_set=${target_alias+set} 753 ac_cv_env_target_alias_value=$target_alias 754 ac_env_CC_set=${CC+set} 755 ac_env_CC_value=$CC 756 ac_cv_env_CC_set=${CC+set} 757 ac_cv_env_CC_value=$CC 758 ac_env_CFLAGS_set=${CFLAGS+set} 759 ac_env_CFLAGS_value=$CFLAGS 760 ac_cv_env_CFLAGS_set=${CFLAGS+set} 761 ac_cv_env_CFLAGS_value=$CFLAGS 762 ac_env_LDFLAGS_set=${LDFLAGS+set} 763 ac_env_LDFLAGS_value=$LDFLAGS 764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 765 ac_cv_env_LDFLAGS_value=$LDFLAGS 766 ac_env_CPPFLAGS_set=${CPPFLAGS+set} 767 ac_env_CPPFLAGS_value=$CPPFLAGS 768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS 770 ac_env_CPP_set=${CPP+set} 771 ac_env_CPP_value=$CPP 772 ac_cv_env_CPP_set=${CPP+set} 773 ac_cv_env_CPP_value=$CPP 1157 pwd)` 1158 # When building in place, set srcdir=. 1159 if test "$ac_abs_confdir" = "$ac_pwd"; then 1160 srcdir=. 1161 fi 1162 # Remove unnecessary trailing slashes from srcdir. 1163 # Double slashes in file names in object file debugging info 1164 # mess up M-x gdb in Emacs. 1165 case $srcdir in 1166 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1167 esac 1168 for ac_var in $ac_precious_vars; do 1169 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1170 eval ac_env_${ac_var}_value=\$${ac_var} 1171 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1172 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1173 done 774 1174 775 1175 # … … 800 1200 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 801 1201 802 _ACEOF803 804 cat <<_ACEOF805 1202 Installation directories: 806 1203 --prefix=PREFIX install architecture-independent files in PREFIX … … 820 1217 --sbindir=DIR system admin executables [EPREFIX/sbin] 821 1218 --libexecdir=DIR program executables [EPREFIX/libexec] 822 --datadir=DIR read-only architecture-independent data [PREFIX/share]823 1219 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 824 1220 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] … … 827 1223 --includedir=DIR C header files [PREFIX/include] 828 1224 --oldincludedir=DIR C header files for non-gcc [/usr/include] 829 --infodir=DIR info documentation [PREFIX/info] 830 --mandir=DIR man documentation [PREFIX/man] 1225 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1226 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1227 --infodir=DIR info documentation [DATAROOTDIR/info] 1228 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1229 --mandir=DIR man documentation [DATAROOTDIR/man] 1230 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1231 --htmldir=DIR html documentation [DOCDIR] 1232 --dvidir=DIR dvi documentation [DOCDIR] 1233 --pdfdir=DIR pdf documentation [DOCDIR] 1234 --psdir=DIR ps documentation [DOCDIR] 831 1235 _ACEOF 832 1236 … … 844 1248 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 845 1249 nonstandard directory <lib dir> 846 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 847 headers in a nonstandard directory <include dir> 1250 LIBS libraries to pass to the linker, e.g. -l<library> 1251 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1252 you have headers in a nonstandard directory <include dir> 848 1253 CPP C preprocessor 849 1254 … … 852 1257 853 1258 _ACEOF 1259 ac_status=$? 854 1260 fi 855 1261 856 1262 if test "$ac_init_help" = "recursive"; then 857 1263 # If there are subdirs, report their specific --help. 858 ac_popdir=`pwd`859 1264 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 860 test -d $ac_dir|| continue1265 test -d "$ac_dir" || continue 861 1266 ac_builddir=. 862 1267 863 if test "$ac_dir" != .; then 1268 case "$ac_dir" in 1269 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1270 *) 864 1271 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 865 # A "../" for each directory in $ac_dir_suffix. 866 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 867 else 868 ac_dir_suffix= ac_top_builddir= 869 fi 1272 # A ".." for each directory in $ac_dir_suffix. 1273 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1274 case $ac_top_builddir_sub in 1275 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1276 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1277 esac ;; 1278 esac 1279 ac_abs_top_builddir=$ac_pwd 1280 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1281 # for backward compatibility: 1282 ac_top_builddir=$ac_top_build_prefix 870 1283 871 1284 case $srcdir in 872 .) # No --srcdir option.We are building in place.1285 .) # We are building in place. 873 1286 ac_srcdir=. 874 if test -z "$ac_top_builddir"; then 875 ac_top_srcdir=. 876 else 877 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 878 fi ;; 879 [\\/]* | ?:[\\/]* ) # Absolute path. 1287 ac_top_srcdir=$ac_top_builddir_sub 1288 ac_abs_top_srcdir=$ac_pwd ;; 1289 [\\/]* | ?:[\\/]* ) # Absolute name. 880 1290 ac_srcdir=$srcdir$ac_dir_suffix; 881 ac_top_srcdir=$srcdir ;; 882 *) # Relative path. 883 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 884 ac_top_srcdir=$ac_top_builddir$srcdir ;; 885 esac 886 887 # Do not use `cd foo && pwd` to compute absolute paths, because 888 # the directories may not exist. 889 case `pwd` in 890 .) ac_abs_builddir="$ac_dir";; 891 *) 892 case "$ac_dir" in 893 .) ac_abs_builddir=`pwd`;; 894 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 895 *) ac_abs_builddir=`pwd`/"$ac_dir";; 896 esac;; 897 esac 898 case $ac_abs_builddir in 899 .) ac_abs_top_builddir=${ac_top_builddir}.;; 900 *) 901 case ${ac_top_builddir}. in 902 .) ac_abs_top_builddir=$ac_abs_builddir;; 903 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 904 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 905 esac;; 906 esac 907 case $ac_abs_builddir in 908 .) ac_abs_srcdir=$ac_srcdir;; 909 *) 910 case $ac_srcdir in 911 .) ac_abs_srcdir=$ac_abs_builddir;; 912 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 913 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 914 esac;; 915 esac 916 case $ac_abs_builddir in 917 .) ac_abs_top_srcdir=$ac_top_srcdir;; 918 *) 919 case $ac_top_srcdir in 920 .) ac_abs_top_srcdir=$ac_abs_builddir;; 921 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 922 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 923 esac;; 924 esac 925 926 cd $ac_dir 927 # Check for guested configure; otherwise get Cygnus style configure. 928 if test -f $ac_srcdir/configure.gnu; then 929 echo 930 $SHELL $ac_srcdir/configure.gnu --help=recursive 931 elif test -f $ac_srcdir/configure; then 932 echo 933 $SHELL $ac_srcdir/configure --help=recursive 934 elif test -f $ac_srcdir/configure.ac || 935 test -f $ac_srcdir/configure.in; then 936 echo 937 $ac_configure --help 1291 ac_top_srcdir=$srcdir 1292 ac_abs_top_srcdir=$srcdir ;; 1293 *) # Relative name. 1294 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1295 ac_top_srcdir=$ac_top_build_prefix$srcdir 1296 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1297 esac 1298 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1299 1300 cd "$ac_dir" || { ac_status=$?; continue; } 1301 # Check for guested configure. 1302 if test -f "$ac_srcdir/configure.gnu"; then 1303 echo && 1304 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1305 elif test -f "$ac_srcdir/configure"; then 1306 echo && 1307 $SHELL "$ac_srcdir/configure" --help=recursive 938 1308 else 939 1309 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 940 fi 941 cd $ac_popdir1310 fi || ac_status=$? 1311 cd "$ac_pwd" || { ac_status=$?; break; } 942 1312 done 943 1313 fi 944 1314 945 test -n "$ac_init_help" && exit 01315 test -n "$ac_init_help" && exit $ac_status 946 1316 if $ac_init_version; then 947 1317 cat <<\_ACEOF 948 949 Copyright (C) 2003 Free Software Foundation, Inc. 1318 configure 1319 generated by GNU Autoconf 2.61 1320 1321 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 1322 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 950 1323 This configure script is free software; the Free Software Foundation 951 1324 gives unlimited permission to copy, distribute and modify it. 952 1325 _ACEOF 953 exit 0 954 fi 955 exec 5>config.log 956 cat >&5 <<_ACEOF 1326 exit 1327 fi 1328 cat >config.log <<_ACEOF 957 1329 This file contains any messages produced by compilers while 958 1330 running configure, to aid debugging if configure makes a mistake. 959 1331 960 1332 It was created by $as_me, which was 961 generated by GNU Autoconf 2. 59. Invocation command line was1333 generated by GNU Autoconf 2.61. Invocation command line was 962 1334 963 1335 $ $0 $@ 964 1336 965 1337 _ACEOF 1338 exec 5>>config.log 966 1339 { 967 1340 cat <<_ASUNAME … … 982 1355 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 983 1356 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 984 hostinfo = `(hostinfo) 2>/dev/null|| echo unknown`1357 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 985 1358 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 986 1359 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` … … 996 1369 echo "PATH: $as_dir" 997 1370 done 1371 IFS=$as_save_IFS 998 1372 999 1373 } >&5 … … 1017 1391 ac_configure_args0= 1018 1392 ac_configure_args1= 1019 ac_sep=1020 1393 ac_must_keep_next=false 1021 1394 for ac_pass in 1 2 … … 1028 1401 | -silent | --silent | --silen | --sile | --sil) 1029 1402 continue ;; 1030 * " "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)1403 *\'*) 1031 1404 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1032 1405 esac … … 1050 1423 esac 1051 1424 fi 1052 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1053 # Get rid of the leading space. 1054 ac_sep=" " 1425 ac_configure_args="$ac_configure_args '$ac_arg'" 1055 1426 ;; 1056 1427 esac … … 1063 1434 # config.log. We remove comments because anyway the quotes in there 1064 1435 # would cause problems or look ugly. 1065 # WARNING: Be sure not to use single quotes in there, as some shells,1066 # such as our DU 5.0 friend, will then `close' the trap.1436 # WARNING: Use '\'' to represent an apostrophe within the trap. 1437 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1067 1438 trap 'exit_status=$? 1068 1439 # Save into config.log some information that might help in debugging. … … 1077 1448 echo 1078 1449 # The following way of writing the cache mishandles newlines in values, 1079 { 1450 ( 1451 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1452 eval ac_val=\$$ac_var 1453 case $ac_val in #( 1454 *${as_nl}*) 1455 case $ac_var in #( 1456 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1457 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1458 esac 1459 case $ac_var in #( 1460 _ | IFS | as_nl) ;; #( 1461 *) $as_unset $ac_var ;; 1462 esac ;; 1463 esac 1464 done 1080 1465 (set) 2>&1 | 1081 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in1082 * ac_space=\ *)1466 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1467 *${as_nl}ac_space=\ *) 1083 1468 sed -n \ 1084 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1085 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1469 "s/'\''/'\''\\\\'\'''\''/g; 1470 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1471 ;; #( 1472 *) 1473 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1086 1474 ;; 1087 *) 1088 sed -n \ 1089 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1090 ;; 1091 esac; 1092 } 1475 esac | 1476 sort 1477 ) 1093 1478 echo 1094 1479 … … 1101 1486 for ac_var in $ac_subst_vars 1102 1487 do 1103 eval ac_val=$`echo $ac_var` 1104 echo "$ac_var='"'"'$ac_val'"'"'" 1488 eval ac_val=\$$ac_var 1489 case $ac_val in 1490 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1491 esac 1492 echo "$ac_var='\''$ac_val'\''" 1105 1493 done | sort 1106 1494 echo … … 1108 1496 if test -n "$ac_subst_files"; then 1109 1497 cat <<\_ASBOX 1110 ## ------------- ##1111 ## Output files. ##1112 ## ------------- ##1498 ## ------------------- ## 1499 ## File substitutions. ## 1500 ## ------------------- ## 1113 1501 _ASBOX 1114 1502 echo 1115 1503 for ac_var in $ac_subst_files 1116 1504 do 1117 eval ac_val=$`echo $ac_var` 1118 echo "$ac_var='"'"'$ac_val'"'"'" 1505 eval ac_val=\$$ac_var 1506 case $ac_val in 1507 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1508 esac 1509 echo "$ac_var='\''$ac_val'\''" 1119 1510 done | sort 1120 1511 echo … … 1128 1519 _ASBOX 1129 1520 echo 1130 sed "/^$/d" confdefs.h | sort1521 cat confdefs.h 1131 1522 echo 1132 1523 fi … … 1135 1526 echo "$as_me: exit $exit_status" 1136 1527 } >&5 1137 rm -f core *.core &&1138 rm -rfconftest* confdefs* conf$$* $ac_clean_files &&1528 rm -f core *.core core.conftest.* && 1529 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1139 1530 exit $exit_status 1140 ' 01531 ' 0 1141 1532 for ac_signal in 1 2 13 15; do 1142 1533 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal … … 1145 1536 1146 1537 # confdefs.h avoids OS command line length limits that DEFS can exceed. 1147 rm -rf conftest* confdefs.h 1148 # AIX cpp loses on an empty file, so make sure it contains at least a newline. 1149 echo >confdefs.h 1538 rm -f -r conftest* confdefs.h 1150 1539 1151 1540 # Predefined preprocessor variables. … … 1178 1567 # Let the site file select an alternate cache file if it wants to. 1179 1568 # Prefer explicitly selected file to automatically selected ones. 1180 if test -z "$CONFIG_SITE"; then 1181 if test "x$prefix" != xNONE; then 1182 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1183 else 1184 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1185 fi 1186 fi 1187 for ac_site_file in $CONFIG_SITE; do 1569 if test -n "$CONFIG_SITE"; then 1570 set x "$CONFIG_SITE" 1571 elif test "x$prefix" != xNONE; then 1572 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1573 else 1574 set x "$ac_default_prefix/share/config.site" \ 1575 "$ac_default_prefix/etc/config.site" 1576 fi 1577 shift 1578 for ac_site_file 1579 do 1188 1580 if test -r "$ac_site_file"; then 1189 1581 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 … … 1201 1593 echo "$as_me: loading cache $cache_file" >&6;} 1202 1594 case $cache_file in 1203 [\\/]* | ?:[\\/]* ) . $cache_file;;1204 *) . ./$cache_file;;1595 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1596 *) . "./$cache_file";; 1205 1597 esac 1206 1598 fi … … 1214 1606 # value. 1215 1607 ac_cache_corrupted=false 1216 for ac_var in `(set) 2>&1 | 1217 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1608 for ac_var in $ac_precious_vars; do 1218 1609 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1219 1610 eval ac_new_set=\$ac_env_${ac_var}_set 1220 eval ac_old_val= "\$ac_cv_env_${ac_var}_value"1221 eval ac_new_val= "\$ac_env_${ac_var}_value"1611 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1612 eval ac_new_val=\$ac_env_${ac_var}_value 1222 1613 case $ac_old_set,$ac_new_set in 1223 1614 set,) … … 1244 1635 if test "$ac_new_set" = set; then 1245 1636 case $ac_new_val in 1246 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1247 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1637 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1248 1638 *) ac_arg=$ac_var=$ac_new_val ;; 1249 1639 esac … … 1262 1652 fi 1263 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1264 1670 ac_ext=c 1265 1671 ac_cpp='$CPP $CPPFLAGS' … … 1270 1676 1271 1677 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 ac_config_headers="$ac_config_headers config.h" 1678 ac_config_headers="$ac_config_headers config.h" 1290 1679 1291 1680 … … 1298 1687 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1299 1688 set dummy ${ac_tool_prefix}gcc; ac_word=$2 1300 echo "$as_me:$LINENO: checking for $ac_word" >&51301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1689 { echo "$as_me:$LINENO: checking for $ac_word" >&5 1690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1302 1691 if test "${ac_cv_prog_CC+set}" = set; then 1303 1692 echo $ECHO_N "(cached) $ECHO_C" >&6 … … 1312 1701 test -z "$as_dir" && as_dir=. 1313 1702 for ac_exec_ext in '' $ac_executable_extensions; do 1314 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then1703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1315 1704 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1316 1705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 1319 1708 done 1320 1709 done 1710 IFS=$as_save_IFS 1321 1711 1322 1712 fi … … 1324 1714 CC=$ac_cv_prog_CC 1325 1715 if test -n "$CC"; then 1326 echo "$as_me:$LINENO: result: $CC" >&5 1327 echo "${ECHO_T}$CC" >&6 1328 else 1329 echo "$as_me:$LINENO: result: no" >&5 1330 echo "${ECHO_T}no" >&6 1331 fi 1716 { echo "$as_me:$LINENO: result: $CC" >&5 1717 echo "${ECHO_T}$CC" >&6; } 1718 else 1719 { echo "$as_me:$LINENO: result: no" >&5 1720 echo "${ECHO_T}no" >&6; } 1721 fi 1722 1332 1723 1333 1724 fi … … 1336 1727 # Extract the first word of "gcc", so it can be a program name with args. 1337 1728 set dummy gcc; ac_word=$2 1338 echo "$as_me:$LINENO: checking for $ac_word" >&51339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1729 { echo "$as_me:$LINENO: checking for $ac_word" >&5 1730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1340 1731 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1341 1732 echo $ECHO_N "(cached) $ECHO_C" >&6 … … 1350 1741 test -z "$as_dir" && as_dir=. 1351 1742 for ac_exec_ext in '' $ac_executable_extensions; do 1352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then1743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1353 1744 ac_cv_prog_ac_ct_CC="gcc" 1354 1745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 1357 1748 done 1358 1749 done 1750 IFS=$as_save_IFS 1359 1751 1360 1752 fi … … 1362 1754 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1363 1755 if test -n "$ac_ct_CC"; then 1364 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1365 echo "${ECHO_T}$ac_ct_CC" >&6 1366 else 1367 echo "$as_me:$LINENO: result: no" >&5 1368 echo "${ECHO_T}no" >&6 1369 fi 1370 1371 CC=$ac_ct_CC 1756 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1757 echo "${ECHO_T}$ac_ct_CC" >&6; } 1758 else 1759 { echo "$as_me:$LINENO: result: no" >&5 1760 echo "${ECHO_T}no" >&6; } 1761 fi 1762 1763 if test "x$ac_ct_CC" = x; then 1764 CC="" 1765 else 1766 case $cross_compiling:$ac_tool_warned in 1767 yes:) 1768 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 1769 whose name does not start with the host triplet. If you think this 1770 configuration is useful to you, please write to autoconf@gnu.org." >&5 1771 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 1772 whose name does not start with the host triplet. If you think this 1773 configuration is useful to you, please write to autoconf@gnu.org." >&2;} 1774 ac_tool_warned=yes ;; 1775 esac 1776 CC=$ac_ct_CC 1777 fi 1372 1778 else 1373 1779 CC="$ac_cv_prog_CC" … … 1375 1781 1376 1782 if test -z "$CC"; then 1377 if test -n "$ac_tool_prefix"; then1378 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.1783 if test -n "$ac_tool_prefix"; then 1784 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1379 1785 set dummy ${ac_tool_prefix}cc; ac_word=$2 1380 echo "$as_me:$LINENO: checking for $ac_word" >&51381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1786 { echo "$as_me:$LINENO: checking for $ac_word" >&5 1787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1382 1788 if test "${ac_cv_prog_CC+set}" = set; then 1383 1789 echo $ECHO_N "(cached) $ECHO_C" >&6 … … 1392 1798 test -z "$as_dir" && as_dir=. 1393 1799 for ac_exec_ext in '' $ac_executable_extensions; do 1394 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then1800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1395 1801 ac_cv_prog_CC="${ac_tool_prefix}cc" 1396 1802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 1399 1805 done 1400 1806 done 1807 IFS=$as_save_IFS 1401 1808 1402 1809 fi … … 1404 1811 CC=$ac_cv_prog_CC 1405 1812 if test -n "$CC"; then 1406 echo "$as_me:$LINENO: result: $CC" >&5 1407 echo "${ECHO_T}$CC" >&6 1408 else 1409 echo "$as_me:$LINENO: result: no" >&5 1410 echo "${ECHO_T}no" >&6 1411 fi 1412 1413 fi 1414 if test -z "$ac_cv_prog_CC"; then 1415 ac_ct_CC=$CC 1416 # Extract the first word of "cc", so it can be a program name with args. 1417 set dummy cc; ac_word=$2 1418 echo "$as_me:$LINENO: checking for $ac_word" >&5 1419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1420 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1421 echo $ECHO_N "(cached) $ECHO_C" >&6 1422 else 1423 if test -n "$ac_ct_CC"; then 1424 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1425 else 1426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1427 for as_dir in $PATH 1428 do 1429 IFS=$as_save_IFS 1430 test -z "$as_dir" && as_dir=. 1431 for ac_exec_ext in '' $ac_executable_extensions; do 1432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1433 ac_cv_prog_ac_ct_CC="cc" 1434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1435 break 2 1813 { echo "$as_me:$LINENO: result: $CC" >&5 1814 echo "${ECHO_T}$CC" >&6; } 1815 else 1816 { echo "$as_me:$LINENO: result: no" >&5 1817 echo "${ECHO_T}no" >&6; } 1818 fi 1819 1820 1436 1821 fi 1437 done1438 done1439 1440 fi1441 fi1442 ac_ct_CC=$ac_cv_prog_ac_ct_CC1443 if test -n "$ac_ct_CC"; then1444 echo "$as_me:$LINENO: result: $ac_ct_CC" >&51445 echo "${ECHO_T}$ac_ct_CC" >&61446 else1447 echo "$as_me:$LINENO: result: no" >&51448 echo "${ECHO_T}no" >&61449 fi1450 1451 CC=$ac_ct_CC1452 else1453 CC="$ac_cv_prog_CC"1454 fi1455 1456 1822 fi 1457 1823 if test -z "$CC"; then 1458 1824 # Extract the first word of "cc", so it can be a program name with args. 1459 1825 set dummy cc; ac_word=$2 1460 echo "$as_me:$LINENO: checking for $ac_word" >&51461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1826 { echo "$as_me:$LINENO: checking for $ac_word" >&5 1827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1462 1828 if test "${ac_cv_prog_CC+set}" = set; then 1463 1829 echo $ECHO_N "(cached) $ECHO_C" >&6 … … 1473 1839 test -z "$as_dir" && as_dir=. 1474 1840 for ac_exec_ext in '' $ac_executable_extensions; do 1475 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then1841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1476 1842 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1477 1843 ac_prog_rejected=yes … … 1484 1850 done 1485 1851 done 1852 IFS=$as_save_IFS 1486 1853 1487 1854 if test $ac_prog_rejected = yes; then … … 1501 1868 CC=$ac_cv_prog_CC 1502 1869 if test -n "$CC"; then 1503 echo "$as_me:$LINENO: result: $CC" >&5 1504 echo "${ECHO_T}$CC" >&6 1505 else 1506 echo "$as_me:$LINENO: result: no" >&5 1507 echo "${ECHO_T}no" >&6 1508 fi 1870 { echo "$as_me:$LINENO: result: $CC" >&5 1871 echo "${ECHO_T}$CC" >&6; } 1872 else 1873 { echo "$as_me:$LINENO: result: no" >&5 1874 echo "${ECHO_T}no" >&6; } 1875 fi 1876 1509 1877 1510 1878 fi 1511 1879 if test -z "$CC"; then 1512 1880 if test -n "$ac_tool_prefix"; then 1513 for ac_prog in cl 1881 for ac_prog in cl.exe 1514 1882 do 1515 1883 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1516 1884 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1517 echo "$as_me:$LINENO: checking for $ac_word" >&51518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1885 { echo "$as_me:$LINENO: checking for $ac_word" >&5 1886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1519 1887 if test "${ac_cv_prog_CC+set}" = set; then 1520 1888 echo $ECHO_N "(cached) $ECHO_C" >&6 … … 1529 1897 test -z "$as_dir" && as_dir=. 1530 1898 for ac_exec_ext in '' $ac_executable_extensions; do 1531 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then1899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1532 1900 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1533 1901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 1536 1904 done 1537 1905 done 1906 IFS=$as_save_IFS 1538 1907 1539 1908 fi … … 1541 1910 CC=$ac_cv_prog_CC 1542 1911 if test -n "$CC"; then 1543 echo "$as_me:$LINENO: result: $CC" >&5 1544 echo "${ECHO_T}$CC" >&6 1545 else 1546 echo "$as_me:$LINENO: result: no" >&5 1547 echo "${ECHO_T}no" >&6 1548 fi 1912 { echo "$as_me:$LINENO: result: $CC" >&5 1913 echo "${ECHO_T}$CC" >&6; } 1914 else 1915 { echo "$as_me:$LINENO: result: no" >&5 1916 echo "${ECHO_T}no" >&6; } 1917 fi 1918 1549 1919 1550 1920 test -n "$CC" && break … … 1553 1923 if test -z "$CC"; then 1554 1924 ac_ct_CC=$CC 1555 for ac_prog in cl 1925 for ac_prog in cl.exe 1556 1926 do 1557 1927 # Extract the first word of "$ac_prog", so it can be a program name with args. 1558 1928 set dummy $ac_prog; ac_word=$2 1559 echo "$as_me:$LINENO: checking for $ac_word" >&51560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1929 { echo "$as_me:$LINENO: checking for $ac_word" >&5 1930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1561 1931 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1562 1932 echo $ECHO_N "(cached) $ECHO_C" >&6 … … 1571 1941 test -z "$as_dir" && as_dir=. 1572 1942 for ac_exec_ext in '' $ac_executable_extensions; do 1573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then1943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1574 1944 ac_cv_prog_ac_ct_CC="$ac_prog" 1575 1945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 1578 1948 done 1579 1949 done 1950 IFS=$as_save_IFS 1580 1951 1581 1952 fi … … 1583 1954 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1584 1955 if test -n "$ac_ct_CC"; then 1585 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1586 echo "${ECHO_T}$ac_ct_CC" >&6 1587 else 1588 echo "$as_me:$LINENO: result: no" >&5 1589 echo "${ECHO_T}no" >&6 1590 fi 1956 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1957 echo "${ECHO_T}$ac_ct_CC" >&6; } 1958 else 1959 { echo "$as_me:$LINENO: result: no" >&5 1960 echo "${ECHO_T}no" >&6; } 1961 fi 1962 1591 1963 1592 1964 test -n "$ac_ct_CC" && break 1593 1965 done 1594 1966 1595 CC=$ac_ct_CC 1967 if test "x$ac_ct_CC" = x; then 1968 CC="" 1969 else 1970 case $cross_compiling:$ac_tool_warned in 1971 yes:) 1972 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 1973 whose name does not start with the host triplet. If you think this 1974 configuration is useful to you, please write to autoconf@gnu.org." >&5 1975 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 1976 whose name does not start with the host triplet. If you think this 1977 configuration is useful to you, please write to autoconf@gnu.org." >&2;} 1978 ac_tool_warned=yes ;; 1979 esac 1980 CC=$ac_ct_CC 1981 fi 1596 1982 fi 1597 1983 … … 1606 1992 1607 1993 # Provide some information about the compiler. 1608 echo "$as_me:$LINENO:" \ 1609 "checking for C compiler version" >&5 1994 echo "$as_me:$LINENO: checking for C compiler version" >&5 1610 1995 ac_compiler=`set X $ac_compile; echo $2` 1611 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1612 (eval $ac_compiler --version </dev/null >&5) 2>&5 1996 { (ac_try="$ac_compiler --version >&5" 1997 case "(($ac_try" in 1998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1999 *) ac_try_echo=$ac_try;; 2000 esac 2001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2002 (eval "$ac_compiler --version >&5") 2>&5 1613 2003 ac_status=$? 1614 2004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1615 2005 (exit $ac_status); } 1616 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1617 (eval $ac_compiler -v </dev/null >&5) 2>&5 2006 { (ac_try="$ac_compiler -v >&5" 2007 case "(($ac_try" in 2008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2009 *) ac_try_echo=$ac_try;; 2010 esac 2011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2012 (eval "$ac_compiler -v >&5") 2>&5 1618 2013 ac_status=$? 1619 2014 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1620 2015 (exit $ac_status); } 1621 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1622 (eval $ac_compiler -V </dev/null >&5) 2>&5 2016 { (ac_try="$ac_compiler -V >&5" 2017 case "(($ac_try" in 2018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2019 *) ac_try_echo=$ac_try;; 2020 esac 2021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2022 (eval "$ac_compiler -V >&5") 2>&5 1623 2023 ac_status=$? 1624 2024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 … … 1645 2045 # It will help us diagnose broken compilers, and finding out an intuition 1646 2046 # of exeext. 1647 echo "$as_me:$LINENO: checking for C compiler default output file name" >&51648 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2047 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2048 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 1649 2049 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1650 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 1651 (eval $ac_link_default) 2>&5 2050 # 2051 # List of possible output files, starting from the most likely. 2052 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2053 # only as a last resort. b.out is created by i960 compilers. 2054 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2055 # 2056 # The IRIX 6 linker writes into existing files which may not be 2057 # executable, retaining their permissions. Remove them first so a 2058 # subsequent execution test works. 2059 ac_rmfiles= 2060 for ac_file in $ac_files 2061 do 2062 case $ac_file in 2063 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2064 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2065 esac 2066 done 2067 rm -f $ac_rmfiles 2068 2069 if { (ac_try="$ac_link_default" 2070 case "(($ac_try" in 2071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2072 *) ac_try_echo=$ac_try;; 2073 esac 2074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2075 (eval "$ac_link_default") 2>&5 1652 2076 ac_status=$? 1653 2077 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1654 2078 (exit $ac_status); }; then 1655 # Find the output, starting from the most likely. This scheme is 1656 # not robust to junk in `.', hence go to wildcards (a.*) only as a last 1657 # resort. 1658 1659 # Be careful to initialize this variable, since it used to be cached. 1660 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 1661 ac_cv_exeext= 1662 # b.out is created by i960 compilers. 1663 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2079 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2080 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2081 # in a Makefile. We should not override ac_cv_exeext if it was cached, 2082 # so that the user can short-circuit this test for compilers unknown to 2083 # Autoconf. 2084 for ac_file in $ac_files '' 1664 2085 do 1665 2086 test -f "$ac_file" || continue 1666 2087 case $ac_file in 1667 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 1668 ;; 1669 conftest.$ac_ext ) 1670 # This is the source file. 2088 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 1671 2089 ;; 1672 2090 [ab].out ) … … 1675 2093 break;; 1676 2094 *.* ) 1677 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1678 # FIXME: I believe we export ac_cv_exeext for Libtool, 1679 # but it would be cool to find out if it's true. Does anybody 1680 # maintain Libtool? --akim. 1681 export ac_cv_exeext 2095 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2096 then :; else 2097 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2098 fi 2099 # We set ac_cv_exeext here because the later test for it is not 2100 # safe: cross compilers may not add the suffix if given an `-o' 2101 # argument, so we may need to know it at that point already. 2102 # Even if this section looks crufty: it has the advantage of 2103 # actually working. 1682 2104 break;; 1683 2105 * ) … … 1685 2107 esac 1686 2108 done 1687 else 2109 test "$ac_cv_exeext" = no && ac_cv_exeext= 2110 2111 else 2112 ac_file='' 2113 fi 2114 2115 { echo "$as_me:$LINENO: result: $ac_file" >&5 2116 echo "${ECHO_T}$ac_file" >&6; } 2117 if test -z "$ac_file"; then 1688 2118 echo "$as_me: failed program was:" >&5 1689 2119 sed 's/^/| /' conftest.$ac_ext >&5 … … 1697 2127 1698 2128 ac_exeext=$ac_cv_exeext 1699 echo "$as_me:$LINENO: result: $ac_file" >&5 1700 echo "${ECHO_T}$ac_file" >&6 1701 1702 # Check the compiler produces executables we can run. If not, either 2129 2130 # Check that the compiler produces executables we can run. If not, either 1703 2131 # the compiler is broken, or we cross compile. 1704 echo "$as_me:$LINENO: checking whether the C compiler works" >&51705 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2132 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2133 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 1706 2134 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1707 2135 # If not cross compiling, check that we can run a simple program. 1708 2136 if test "$cross_compiling" != yes; then 1709 2137 if { ac_try='./$ac_file' 1710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1711 (eval $ac_try) 2>&5 2138 { (case "(($ac_try" in 2139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2140 *) ac_try_echo=$ac_try;; 2141 esac 2142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2143 (eval "$ac_try") 2>&5 1712 2144 ac_status=$? 1713 2145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 … … 1728 2160 fi 1729 2161 fi 1730 echo "$as_me:$LINENO: result: yes" >&51731 echo "${ECHO_T}yes" >&6 2162 { echo "$as_me:$LINENO: result: yes" >&5 2163 echo "${ECHO_T}yes" >&6; } 1732 2164 1733 2165 rm -f a.out a.exe conftest$ac_cv_exeext b.out 1734 2166 ac_clean_files=$ac_clean_files_save 1735 # Check th e compiler produces executables we can run. If not, either2167 # Check that the compiler produces executables we can run. If not, either 1736 2168 # the compiler is broken, or we cross compile. 1737 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 1738 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1739 echo "$as_me:$LINENO: result: $cross_compiling" >&5 1740 echo "${ECHO_T}$cross_compiling" >&6 1741 1742 echo "$as_me:$LINENO: checking for suffix of executables" >&5 1743 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 1744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 1745 (eval $ac_link) 2>&5 2169 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2170 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2171 { echo "$as_me:$LINENO: result: $cross_compiling" >&5 2172 echo "${ECHO_T}$cross_compiling" >&6; } 2173 2174 { echo "$as_me:$LINENO: checking for suffix of executables" >&5 2175 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2176 if { (ac_try="$ac_link" 2177 case "(($ac_try" in 2178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2179 *) ac_try_echo=$ac_try;; 2180 esac 2181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2182 (eval "$ac_link") 2>&5 1746 2183 ac_status=$? 1747 2184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 … … 1754 2191 test -f "$ac_file" || continue 1755 2192 case $ac_file in 1756 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *. o | *.obj ) ;;2193 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 1757 2194 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1758 export ac_cv_exeext1759 2195 break;; 1760 2196 * ) break;; … … 1770 2206 1771 2207 rm -f conftest$ac_cv_exeext 1772 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&51773 echo "${ECHO_T}$ac_cv_exeext" >&6 2208 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2209 echo "${ECHO_T}$ac_cv_exeext" >&6; } 1774 2210 1775 2211 rm -f conftest.$ac_ext 1776 2212 EXEEXT=$ac_cv_exeext 1777 2213 ac_exeext=$EXEEXT 1778 echo "$as_me:$LINENO: checking for suffix of object files" >&51779 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2214 { echo "$as_me:$LINENO: checking for suffix of object files" >&5 2215 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 1780 2216 if test "${ac_cv_objext+set}" = set; then 1781 2217 echo $ECHO_N "(cached) $ECHO_C" >&6 … … 1797 2233 _ACEOF 1798 2234 rm -f conftest.o conftest.obj 1799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1800 (eval $ac_compile) 2>&5 2235 if { (ac_try="$ac_compile" 2236 case "(($ac_try" in 2237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2238 *) ac_try_echo=$ac_try;; 2239 esac 2240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2241 (eval "$ac_compile") 2>&5 1801 2242 ac_status=$? 1802 2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1803 2244 (exit $ac_status); }; then 1804 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2245 for ac_file in conftest.o conftest.obj conftest.*; do 2246 test -f "$ac_file" || continue; 1805 2247 case $ac_file in 1806 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;2248 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 1807 2249 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1808 2250 break;; … … 1822 2264 rm -f conftest.$ac_cv_objext conftest.$ac_ext 1823 2265 fi 1824 echo "$as_me:$LINENO: result: $ac_cv_objext" >&51825 echo "${ECHO_T}$ac_cv_objext" >&6 2266 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2267 echo "${ECHO_T}$ac_cv_objext" >&6; } 1826 2268 OBJEXT=$ac_cv_objext 1827 2269 ac_objext=$OBJEXT 1828 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&51829 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2270 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2271 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 1830 2272 if test "${ac_cv_c_compiler_gnu+set}" = set; then 1831 2273 echo $ECHO_N "(cached) $ECHO_C" >&6 … … 1850 2292 _ACEOF 1851 2293 rm -f conftest.$ac_objext 1852 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1853 (eval $ac_compile) 2>conftest.er1 2294 if { (ac_try="$ac_compile" 2295 case "(($ac_try" in 2296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2297 *) ac_try_echo=$ac_try;; 2298 esac 2299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2300 (eval "$ac_compile") 2>conftest.er1 1854 2301 ac_status=$? 1855 2302 grep -v '^ *+' conftest.er1 >conftest.err … … 1857 2304 cat conftest.err >&5 1858 2305 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1859 (exit $ac_status); } && 1860 { ac_try='test -z "$ac_c_werror_flag" 1861 || test ! -s conftest.err' 1862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1863 (eval $ac_try) 2>&5 1864 ac_status=$? 1865 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1866 (exit $ac_status); }; } && 1867 { ac_try='test -s conftest.$ac_objext' 1868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1869 (eval $ac_try) 2>&5 1870 ac_status=$? 1871 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1872 (exit $ac_status); }; }; then 2306 (exit $ac_status); } && { 2307 test -z "$ac_c_werror_flag" || 2308 test ! -s conftest.err 2309 } && test -s conftest.$ac_objext; then 1873 2310 ac_compiler_gnu=yes 1874 2311 else … … 1876 2313 sed 's/^/| /' conftest.$ac_ext >&5 1877 2314 1878 ac_compiler_gnu=no 1879 fi 1880 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2315 ac_compiler_gnu=no 2316 fi 2317 2318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1881 2319 ac_cv_c_compiler_gnu=$ac_compiler_gnu 1882 2320 1883 2321 fi 1884 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&51885 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2322 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2323 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 1886 2324 GCC=`test $ac_compiler_gnu = yes && echo yes` 1887 2325 ac_test_CFLAGS=${CFLAGS+set} 1888 2326 ac_save_CFLAGS=$CFLAGS 1889 CFLAGS="-g" 1890 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 1891 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2327 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2328 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 1892 2329 if test "${ac_cv_prog_cc_g+set}" = set; then 1893 2330 echo $ECHO_N "(cached) $ECHO_C" >&6 1894 2331 else 1895 cat >conftest.$ac_ext <<_ACEOF 2332 ac_save_c_werror_flag=$ac_c_werror_flag 2333 ac_c_werror_flag=yes 2334 ac_cv_prog_cc_g=no 2335 CFLAGS="-g" 2336 cat >conftest.$ac_ext <<_ACEOF 1896 2337 /* confdefs.h. */ 1897 2338 _ACEOF … … 1909 2350 _ACEOF 1910 2351 rm -f conftest.$ac_objext 1911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1912 (eval $ac_compile) 2>conftest.er1 2352 if { (ac_try="$ac_compile" 2353 case "(($ac_try" in 2354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2355 *) ac_try_echo=$ac_try;; 2356 esac 2357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2358 (eval "$ac_compile") 2>conftest.er1 1913 2359 ac_status=$? 1914 2360 grep -v '^ *+' conftest.er1 >conftest.err … … 1916 2362 cat conftest.err >&5 1917 2363 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1918 (exit $ac_status); } && 1919 { ac_try='test -z "$ac_c_werror_flag" 1920 || test ! -s conftest.err' 1921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1922 (eval $ac_try) 2>&5 1923 ac_status=$? 1924 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1925 (exit $ac_status); }; } && 1926 { ac_try='test -s conftest.$ac_objext' 1927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1928 (eval $ac_try) 2>&5 1929 ac_status=$? 1930 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1931 (exit $ac_status); }; }; then 2364 (exit $ac_status); } && { 2365 test -z "$ac_c_werror_flag" || 2366 test ! -s conftest.err 2367 } && test -s conftest.$ac_objext; then 1932 2368 ac_cv_prog_cc_g=yes 1933 2369 else … … 1935 2371 sed 's/^/| /' conftest.$ac_ext >&5 1936 2372 1937 ac_cv_prog_cc_g=no 1938 fi 1939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 1940 fi 1941 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 1942 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2373 CFLAGS="" 2374 cat >conftest.$ac_ext <<_ACEOF 2375 /* confdefs.h. */ 2376 _ACEOF 2377 cat confdefs.h >>conftest.$ac_ext 2378 cat >>conftest.$ac_ext <<_ACEOF 2379 /* end confdefs.h. */ 2380 2381 int 2382 main () 2383 { 2384 2385 ; 2386 return 0; 2387 } 2388 _ACEOF 2389 rm -f conftest.$ac_objext 2390 if { (ac_try="$ac_compile" 2391 case "(($ac_try" in 2392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2393 *) ac_try_echo=$ac_try;; 2394 esac 2395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2396 (eval "$ac_compile") 2>conftest.er1 2397 ac_status=$? 2398 grep -v '^ *+' conftest.er1 >conftest.err 2399 rm -f conftest.er1 2400 cat conftest.err >&5 2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2402 (exit $ac_status); } && { 2403 test -z "$ac_c_werror_flag" || 2404 test ! -s conftest.err 2405 } && test -s conftest.$ac_objext; then 2406 : 2407 else 2408 echo "$as_me: failed program was:" >&5 2409 sed 's/^/| /' conftest.$ac_ext >&5 2410 2411 ac_c_werror_flag=$ac_save_c_werror_flag 2412 CFLAGS="-g" 2413 cat >conftest.$ac_ext <<_ACEOF 2414 /* confdefs.h. */ 2415 _ACEOF 2416 cat confdefs.h >>conftest.$ac_ext 2417 cat >>conftest.$ac_ext <<_ACEOF 2418 /* end confdefs.h. */ 2419 2420 int 2421 main () 2422 { 2423 2424 ; 2425 return 0; 2426 } 2427 _ACEOF 2428 rm -f conftest.$ac_objext 2429 if { (ac_try="$ac_compile" 2430 case "(($ac_try" in 2431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2432 *) ac_try_echo=$ac_try;; 2433 esac 2434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2435 (eval "$ac_compile") 2>conftest.er1 2436 ac_status=$? 2437 grep -v '^ *+' conftest.er1 >conftest.err 2438 rm -f conftest.er1 2439 cat conftest.err >&5 2440 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2441 (exit $ac_status); } && { 2442 test -z "$ac_c_werror_flag" || 2443 test ! -s conftest.err 2444 } && test -s conftest.$ac_objext; then 2445 ac_cv_prog_cc_g=yes 2446 else 2447 echo "$as_me: failed program was:" >&5 2448 sed 's/^/| /' conftest.$ac_ext >&5 2449 2450 2451 fi 2452 2453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2454 fi 2455 2456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2457 fi 2458 2459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2460 ac_c_werror_flag=$ac_save_c_werror_flag 2461 fi 2462 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2463 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 1943 2464 if test "$ac_test_CFLAGS" = set; then 1944 2465 CFLAGS=$ac_save_CFLAGS … … 1956 2477 fi 1957 2478 fi 1958 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&51959 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&61960 if test "${ac_cv_prog_cc_ stdc+set}" = set; then2479 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 2480 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 2481 if test "${ac_cv_prog_cc_c89+set}" = set; then 1961 2482 echo $ECHO_N "(cached) $ECHO_C" >&6 1962 2483 else 1963 ac_cv_prog_cc_ stdc=no2484 ac_cv_prog_cc_c89=no 1964 2485 ac_save_CC=$CC 1965 2486 cat >conftest.$ac_ext <<_ACEOF … … 1995 2516 function prototypes and stuff, but not '\xHH' hex character constants. 1996 2517 These don't provoke an error unfortunately, instead are silently treated 1997 as 'x'. The following induces an error, until -std 1is added to get2518 as 'x'. The following induces an error, until -std is added to get 1998 2519 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 1999 2520 array size at least. It's necessary to write '\x00'==0 to get something 2000 that's true only with -std 1. */2521 that's true only with -std. */ 2001 2522 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2523 2524 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2525 inside strings and character constants. */ 2526 #define FOO(x) 'x' 2527 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 2002 2528 2003 2529 int test (int i, double x); … … 2015 2541 } 2016 2542 _ACEOF 2017 # Don't try gcc -ansi; that turns off useful extensions and 2018 # breaks some systems' header files. 2019 # AIX -qlanglvl=ansi 2020 # Ultrix and OSF/1 -std1 2021 # HP-UX 10.20 and later -Ae 2022 # HP-UX older versions -Aa -D_HPUX_SOURCE 2023 # SVR4 -Xc -D__EXTENSIONS__ 2024 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2543 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 2544 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2025 2545 do 2026 2546 CC="$ac_save_CC $ac_arg" 2027 2547 rm -f conftest.$ac_objext 2028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2029 (eval $ac_compile) 2>conftest.er1 2548 if { (ac_try="$ac_compile" 2549 case "(($ac_try" in 2550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2551 *) ac_try_echo=$ac_try;; 2552 esac 2553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2554 (eval "$ac_compile") 2>conftest.er1 2030 2555 ac_status=$? 2031 2556 grep -v '^ *+' conftest.er1 >conftest.err … … 2033 2558 cat conftest.err >&5 2034 2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2035 (exit $ac_status); } && 2036 { ac_try='test -z "$ac_c_werror_flag" 2037 || test ! -s conftest.err' 2038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2039 (eval $ac_try) 2>&5 2040 ac_status=$? 2041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2042 (exit $ac_status); }; } && 2043 { ac_try='test -s conftest.$ac_objext' 2044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2045 (eval $ac_try) 2>&5 2046 ac_status=$? 2047 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2048 (exit $ac_status); }; }; then 2049 ac_cv_prog_cc_stdc=$ac_arg 2050 break 2560 (exit $ac_status); } && { 2561 test -z "$ac_c_werror_flag" || 2562 test ! -s conftest.err 2563 } && test -s conftest.$ac_objext; then 2564 ac_cv_prog_cc_c89=$ac_arg 2051 2565 else 2052 2566 echo "$as_me: failed program was:" >&5 2053 2567 sed 's/^/| /' conftest.$ac_ext >&5 2054 2568 2055 fi 2056 rm -f conftest.err conftest.$ac_objext 2569 2570 fi 2571 2572 rm -f core conftest.err conftest.$ac_objext 2573 test "x$ac_cv_prog_cc_c89" != "xno" && break 2057 2574 done 2058 rm -f conftest.$ac_ext conftest.$ac_objext2575 rm -f conftest.$ac_ext 2059 2576 CC=$ac_save_CC 2060 2577 2061 2578 fi 2062 2063 case "x$ac_cv_prog_cc_stdc" in 2064 x|xno) 2065 echo "$as_me:$LINENO: result: none needed" >&5 2066 echo "${ECHO_T}none needed" >&6 ;; 2579 # AC_CACHE_VAL 2580 case "x$ac_cv_prog_cc_c89" in 2581 x) 2582 { echo "$as_me:$LINENO: result: none needed" >&5 2583 echo "${ECHO_T}none needed" >&6; } ;; 2584 xno) 2585 { echo "$as_me:$LINENO: result: unsupported" >&5 2586 echo "${ECHO_T}unsupported" >&6; } ;; 2067 2587 *) 2068 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2069 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2070 CC="$CC $ac_cv_prog_cc_stdc" ;; 2071 esac 2072 2073 # Some people use a C++ compiler to compile C. Since we use `exit', 2074 # in C++ we need to declare it. In case someone uses the same compiler 2075 # for both compiling C and C++ we need to have the C++ compiler decide 2076 # the declaration of exit, since it's the most demanding environment. 2588 CC="$CC $ac_cv_prog_cc_c89" 2589 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 2590 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 2591 esac 2592 2593 2594 ac_ext=c 2595 ac_cpp='$CPP $CPPFLAGS' 2596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2598 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2599 2600 2601 if test "$GCC" = yes; then 2602 CFLAGS="$CFLAGS -Wall -g -D_FORTIFY_SOURCE=2"; 2603 fi 2604 2605 { echo "$as_me:$LINENO: checking for /usr/athena/include" >&5 2606 echo $ECHO_N "checking for /usr/athena/include... $ECHO_C" >&6; } 2607 if test -d /usr/athena/include; then 2608 CFLAGS=${CFLAGS}\ -I/usr/athena/include 2609 CPPFLAGS=${CPPFLAGS}\ -I/usr/athena/include 2610 { echo "$as_me:$LINENO: result: yes" >&5 2611 echo "${ECHO_T}yes" >&6; } 2612 else 2613 { echo "$as_me:$LINENO: result: no" >&5 2614 echo "${ECHO_T}no" >&6; } 2615 fi 2616 { echo "$as_me:$LINENO: checking for /usr/athena/lib" >&5 2617 echo $ECHO_N "checking for /usr/athena/lib... $ECHO_C" >&6; } 2618 if test -d /usr/athena/lib; then 2619 LDFLAGS=-L/usr/athena/lib\ ${LDFLAGS} 2620 { echo "$as_me:$LINENO: result: yes" >&5 2621 echo "${ECHO_T}yes" >&6; } 2622 else 2623 { echo "$as_me:$LINENO: result: no" >&5 2624 echo "${ECHO_T}no" >&6; } 2625 fi 2626 2627 { echo "$as_me:$LINENO: checking for /usr/include/kerberosIV" >&5 2628 echo $ECHO_N "checking for /usr/include/kerberosIV... $ECHO_C" >&6; } 2629 if test -d /usr/include/kerberosIV; then 2630 CFLAGS=${CFLAGS}\ -I/usr/include/kerberosIV 2631 CPPFLAGS=${CPPFLAGS}\ -I/usr/include/kerberosIV 2632 { echo "$as_me:$LINENO: result: yes" >&5 2633 echo "${ECHO_T}yes" >&6; } 2634 else 2635 { echo "$as_me:$LINENO: result: no" >&5 2636 echo "${ECHO_T}no" >&6; } 2637 fi 2638 2639 PROTECT_CFLAGS=${PROTECT_CFLAGS-"-fstack-protector"} 2640 SAVE_CFLAGS=$CFLAGS 2641 CFLAGS="$CFLAGS $PROTECT_CFLAGS" 2642 { echo "$as_me:$LINENO: checking whether protection cflags work" >&5 2643 echo $ECHO_N "checking whether protection cflags work... $ECHO_C" >&6; } 2644 2077 2645 cat >conftest.$ac_ext <<_ACEOF 2078 #ifndef __cplusplus 2079 choke me 2080 #endif 2646 int i; 2081 2647 _ACEOF 2082 2648 rm -f conftest.$ac_objext 2083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2084 (eval $ac_compile) 2>conftest.er1 2649 if { (ac_try="$ac_compile" 2650 case "(($ac_try" in 2651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2652 *) ac_try_echo=$ac_try;; 2653 esac 2654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2655 (eval "$ac_compile") 2>conftest.er1 2085 2656 ac_status=$? 2086 2657 grep -v '^ *+' conftest.er1 >conftest.err … … 2088 2659 cat conftest.err >&5 2089 2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2090 (exit $ac_status); } && 2091 { ac_try='test -z "$ac_c_werror_flag" 2092 || test ! -s conftest.err' 2093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2094 (eval $ac_try) 2>&5 2095 ac_status=$? 2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2097 (exit $ac_status); }; } && 2098 { ac_try='test -s conftest.$ac_objext' 2099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2100 (eval $ac_try) 2>&5 2101 ac_status=$? 2102 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2103 (exit $ac_status); }; }; then 2104 for ac_declaration in \ 2105 '' \ 2106 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2107 'extern "C" void std::exit (int); using std::exit;' \ 2108 'extern "C" void exit (int) throw ();' \ 2109 'extern "C" void exit (int);' \ 2110 'void exit (int);' 2111 do 2112 cat >conftest.$ac_ext <<_ACEOF 2661 (exit $ac_status); } && { 2662 test -z "$ac_c_werror_flag" || 2663 test ! -s conftest.err 2664 } && test -s conftest.$ac_objext; then 2665 { echo "$as_me:$LINENO: result: yes" >&5 2666 echo "${ECHO_T}yes" >&6; } 2667 else 2668 echo "$as_me: failed program was:" >&5 2669 sed 's/^/| /' conftest.$ac_ext >&5 2670 2671 { echo "$as_me:$LINENO: result: no" >&5 2672 echo "${ECHO_T}no" >&6; } 2673 CFLAGS=$SAVE_CFLAGS 2674 fi 2675 2676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2677 2678 2679 { echo "$as_me:$LINENO: checking for __stack_chk_guard in -lssp" >&5 2680 echo $ECHO_N "checking for __stack_chk_guard in -lssp... $ECHO_C" >&6; } 2681 if test "${ac_cv_lib_ssp___stack_chk_guard+set}" = set; then 2682 echo $ECHO_N "(cached) $ECHO_C" >&6 2683 else 2684 ac_check_lib_save_LIBS=$LIBS 2685 LIBS="-lssp $LIBS" 2686 cat >conftest.$ac_ext <<_ACEOF 2113 2687 /* confdefs.h. */ 2114 2688 _ACEOF … … 2116 2690 cat >>conftest.$ac_ext <<_ACEOF 2117 2691 /* end confdefs.h. */ 2118 $ac_declaration 2119 #include <stdlib.h> 2692 2693 /* Override any GCC internal prototype to avoid an error. 2694 Use char because int might match the return type of a GCC 2695 builtin and then its argument prototype would still apply. */ 2696 #ifdef __cplusplus 2697 extern "C" 2698 #endif 2699 char __stack_chk_guard (); 2120 2700 int 2121 2701 main () 2122 2702 { 2123 exit (42);2703 return __stack_chk_guard (); 2124 2704 ; 2125 2705 return 0; 2126 2706 } 2127 2707 _ACEOF 2128 rm -f conftest.$ac_objext 2129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2130 (eval $ac_compile) 2>conftest.er1 2708 rm -f conftest.$ac_objext conftest$ac_exeext 2709 if { (ac_try="$ac_link" 2710 case "(($ac_try" in 2711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2712 *) ac_try_echo=$ac_try;; 2713 esac 2714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2715 (eval "$ac_link") 2>conftest.er1 2131 2716 ac_status=$? 2132 2717 grep -v '^ *+' conftest.er1 >conftest.err … … 2134 2719 cat conftest.err >&5 2135 2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2136 (exit $ac_status); } && 2137 { ac_try='test -z "$ac_c_werror_flag" 2138 || test ! -s conftest.err' 2139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2140 (eval $ac_try) 2>&5 2141 ac_status=$? 2142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2143 (exit $ac_status); }; } && 2144 { ac_try='test -s conftest.$ac_objext' 2145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2146 (eval $ac_try) 2>&5 2147 ac_status=$? 2148 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2149 (exit $ac_status); }; }; then 2150 : 2721 (exit $ac_status); } && { 2722 test -z "$ac_c_werror_flag" || 2723 test ! -s conftest.err 2724 } && test -s conftest$ac_exeext && 2725 $as_test_x conftest$ac_exeext; then 2726 ac_cv_lib_ssp___stack_chk_guard=yes 2151 2727 else 2152 2728 echo "$as_me: failed program was:" >&5 2153 2729 sed 's/^/| /' conftest.$ac_ext >&5 2154 2730 2155 continue 2156 fi 2157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2158 cat >conftest.$ac_ext <<_ACEOF 2731 ac_cv_lib_ssp___stack_chk_guard=no 2732 fi 2733 2734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 2735 conftest$ac_exeext conftest.$ac_ext 2736 LIBS=$ac_check_lib_save_LIBS 2737 fi 2738 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssp___stack_chk_guard" >&5 2739 echo "${ECHO_T}$ac_cv_lib_ssp___stack_chk_guard" >&6; } 2740 if test $ac_cv_lib_ssp___stack_chk_guard = yes; then 2741 cat >>confdefs.h <<_ACEOF 2742 #define HAVE_LIBSSP 1 2743 _ACEOF 2744 2745 LIBS="-lssp $LIBS" 2746 2747 fi 2748 2749 2750 { echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5 2751 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6; } 2752 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then 2753 echo $ECHO_N "(cached) $ECHO_C" >&6 2754 else 2755 ac_check_lib_save_LIBS=$LIBS 2756 LIBS="-lncurses $LIBS" 2757 cat >conftest.$ac_ext <<_ACEOF 2159 2758 /* confdefs.h. */ 2160 2759 _ACEOF … … 2162 2761 cat >>conftest.$ac_ext <<_ACEOF 2163 2762 /* end confdefs.h. */ 2164 $ac_declaration 2763 2764 /* Override any GCC internal prototype to avoid an error. 2765 Use char because int might match the return type of a GCC 2766 builtin and then its argument prototype would still apply. */ 2767 #ifdef __cplusplus 2768 extern "C" 2769 #endif 2770 char initscr (); 2165 2771 int 2166 2772 main () 2167 2773 { 2168 exit (42);2774 return initscr (); 2169 2775 ; 2170 2776 return 0; 2171 2777 } 2172 2778 _ACEOF 2173 rm -f conftest.$ac_objext 2174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2175 (eval $ac_compile) 2>conftest.er1 2779 rm -f conftest.$ac_objext conftest$ac_exeext 2780 if { (ac_try="$ac_link" 2781 case "(($ac_try" in 2782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2783 *) ac_try_echo=$ac_try;; 2784 esac 2785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2786 (eval "$ac_link") 2>conftest.er1 2176 2787 ac_status=$? 2177 2788 grep -v '^ *+' conftest.er1 >conftest.err … … 2179 2790 cat conftest.err >&5 2180 2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2181 (exit $ac_status); } && 2182 { ac_try='test -z "$ac_c_werror_flag" 2183 || test ! -s conftest.err' 2184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2185 (eval $ac_try) 2>&5 2186 ac_status=$? 2187 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2188 (exit $ac_status); }; } && 2189 { ac_try='test -s conftest.$ac_objext' 2190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2191 (eval $ac_try) 2>&5 2192 ac_status=$? 2193 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2194 (exit $ac_status); }; }; then 2195 break 2792 (exit $ac_status); } && { 2793 test -z "$ac_c_werror_flag" || 2794 test ! -s conftest.err 2795 } && test -s conftest$ac_exeext && 2796 $as_test_x conftest$ac_exeext; then 2797 ac_cv_lib_ncurses_initscr=yes 2196 2798 else 2197 2799 echo "$as_me: failed program was:" >&5 2198 2800 sed 's/^/| /' conftest.$ac_ext >&5 2199 2801 2200 fi 2201 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2202 done 2203 rm -f conftest* 2204 if test -n "$ac_declaration"; then 2205 echo '#ifdef __cplusplus' >>confdefs.h 2206 echo $ac_declaration >>confdefs.h 2207 echo '#endif' >>confdefs.h 2208 fi 2209 2210 else 2211 echo "$as_me: failed program was:" >&5 2212 sed 's/^/| /' conftest.$ac_ext >&5 2213 2214 fi 2215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2216 ac_ext=c 2217 ac_cpp='$CPP $CPPFLAGS' 2218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2220 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2221 2222 2223 if test "$GCC" = yes; then 2224 CFLAGS="$CFLAGS -Wall -g"; 2225 fi 2226 2227 2228 echo "$as_me:$LINENO: checking for /usr/athena/include" >&5 2229 echo $ECHO_N "checking for /usr/athena/include... $ECHO_C" >&6 2230 if test -d /usr/athena/include; then 2231 CFLAGS=${CFLAGS}\ -I/usr/athena/include 2232 CPPFLAGS=${CPPFLAGS}\ -I/usr/athena/include 2233 echo "$as_me:$LINENO: result: yes" >&5 2234 echo "${ECHO_T}yes" >&6 2235 else 2236 echo "$as_me:$LINENO: result: no" >&5 2237 echo "${ECHO_T}no" >&6 2238 fi 2239 echo "$as_me:$LINENO: checking for /usr/athena/lib" >&5 2240 echo $ECHO_N "checking for /usr/athena/lib... $ECHO_C" >&6 2241 if test -d /usr/athena/lib; then 2242 LDFLAGS=-L/usr/athena/lib\ ${LDFLAGS} 2243 echo "$as_me:$LINENO: result: yes" >&5 2244 echo "${ECHO_T}yes" >&6 2245 else 2246 echo "$as_me:$LINENO: result: no" >&5 2247 echo "${ECHO_T}no" >&6 2248 fi 2249 2250 echo "$as_me:$LINENO: checking for /usr/include/kerberosIV" >&5 2251 echo $ECHO_N "checking for /usr/include/kerberosIV... $ECHO_C" >&6 2252 if test -d /usr/include/kerberosIV; then 2253 CFLAGS=${CFLAGS}\ -I/usr/include/kerberosIV 2254 CPPFLAGS=${CPPFLAGS}\ -I/usr/include/kerberosIV 2255 echo "$as_me:$LINENO: result: yes" >&5 2256 echo "${ECHO_T}yes" >&6 2257 else 2258 echo "$as_me:$LINENO: result: no" >&5 2259 echo "${ECHO_T}no" >&6 2260 fi 2261 2262 2263 echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5 2264 echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6 2265 if test "${ac_cv_lib_ncurses_initscr+set}" = set; then 2802 ac_cv_lib_ncurses_initscr=no 2803 fi 2804 2805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 2806 conftest$ac_exeext conftest.$ac_ext 2807 LIBS=$ac_check_lib_save_LIBS 2808 fi 2809 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5 2810 echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6; } 2811 if test $ac_cv_lib_ncurses_initscr = yes; then 2812 cat >>confdefs.h <<_ACEOF 2813 #define HAVE_LIBNCURSES 1 2814 _ACEOF 2815 2816 LIBS="-lncurses $LIBS" 2817 2818 else 2819 2820 { echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5 2821 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6; } 2822 if test "${ac_cv_lib_curses_initscr+set}" = set; then 2266 2823 echo $ECHO_N "(cached) $ECHO_C" >&6 2267 2824 else 2268 2825 ac_check_lib_save_LIBS=$LIBS 2269 LIBS="-l ncurses $LIBS"2826 LIBS="-lcurses $LIBS" 2270 2827 cat >conftest.$ac_ext <<_ACEOF 2271 2828 /* confdefs.h. */ … … 2275 2832 /* end confdefs.h. */ 2276 2833 2277 /* Override any gcc2 internal prototype to avoid an error. */ 2834 /* Override any GCC internal prototype to avoid an error. 2835 Use char because int might match the return type of a GCC 2836 builtin and then its argument prototype would still apply. */ 2278 2837 #ifdef __cplusplus 2279 2838 extern "C" 2280 2839 #endif 2281 /* We use char because int might match the return type of a gcc22282 builtin and then its argument prototype would still apply. */2283 2840 char initscr (); 2284 2841 int 2285 2842 main () 2286 2843 { 2287 initscr ();2844 return initscr (); 2288 2845 ; 2289 2846 return 0; … … 2291 2848 _ACEOF 2292 2849 rm -f conftest.$ac_objext conftest$ac_exeext 2293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2294 (eval $ac_link) 2>conftest.er1 2850 if { (ac_try="$ac_link" 2851 case "(($ac_try" in 2852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2853 *) ac_try_echo=$ac_try;; 2854 esac 2855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2856 (eval "$ac_link") 2>conftest.er1 2295 2857 ac_status=$? 2296 2858 grep -v '^ *+' conftest.er1 >conftest.err … … 2298 2860 cat conftest.err >&5 2299 2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2300 (exit $ac_status); } && 2301 { ac_try='test -z "$ac_c_werror_flag" 2302 || test ! -s conftest.err' 2303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2304 (eval $ac_try) 2>&5 2305 ac_status=$? 2306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2307 (exit $ac_status); }; } && 2308 { ac_try='test -s conftest$ac_exeext' 2309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2310 (eval $ac_try) 2>&5 2311 ac_status=$? 2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2313 (exit $ac_status); }; }; then 2314 ac_cv_lib_ncurses_initscr=yes 2862 (exit $ac_status); } && { 2863 test -z "$ac_c_werror_flag" || 2864 test ! -s conftest.err 2865 } && test -s conftest$ac_exeext && 2866 $as_test_x conftest$ac_exeext; then 2867 ac_cv_lib_curses_initscr=yes 2315 2868 else 2316 2869 echo "$as_me: failed program was:" >&5 2317 2870 sed 's/^/| /' conftest.$ac_ext >&5 2318 2871 2319 ac_cv_lib_ncurses_initscr=no 2320 fi 2321 rm -f conftest.err conftest.$ac_objext \ 2872 ac_cv_lib_curses_initscr=no 2873 fi 2874 2875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 2322 2876 conftest$ac_exeext conftest.$ac_ext 2323 2877 LIBS=$ac_check_lib_save_LIBS 2324 2878 fi 2325 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&52326 echo "${ECHO_T}$ac_cv_lib_ ncurses_initscr" >&62327 if test $ac_cv_lib_ ncurses_initscr = yes; then2879 { echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5 2880 echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6; } 2881 if test $ac_cv_lib_curses_initscr = yes; then 2328 2882 cat >>confdefs.h <<_ACEOF 2329 #define HAVE_LIBNCURSES 1 2330 _ACEOF 2331 2332 LIBS="-lncurses $LIBS" 2333 2334 else 2335 2336 echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5 2337 echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6 2338 if test "${ac_cv_lib_curses_initscr+set}" = set; then 2883 #define HAVE_LIBCURSES 1 2884 _ACEOF 2885 2886 LIBS="-lcurses $LIBS" 2887 2888 else 2889 { { echo "$as_me:$LINENO: error: No curses library found." >&5 2890 echo "$as_me: error: No curses library found." >&2;} 2891 { (exit 1); exit 1; }; } 2892 fi 2893 2894 fi 2895 2896 2897 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5 2898 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; } 2899 if test "${ac_cv_lib_com_err_com_err+set}" = set; then 2339 2900 echo $ECHO_N "(cached) $ECHO_C" >&6 2340 2901 else 2341 2902 ac_check_lib_save_LIBS=$LIBS 2342 LIBS="-lcurses $LIBS" 2343 2903 LIBS="-lcom_err $LIBS" 2344 2904 cat >conftest.$ac_ext <<_ACEOF 2345 2905 /* confdefs.h. */ … … 2349 2909 /* end confdefs.h. */ 2350 2910 2351 /* Override any gcc2 internal prototype to avoid an error. */ 2911 /* Override any GCC internal prototype to avoid an error. 2912 Use char because int might match the return type of a GCC 2913 builtin and then its argument prototype would still apply. */ 2352 2914 #ifdef __cplusplus 2353 2915 extern "C" 2354 2916 #endif 2355 /* We use char because int might match the return type of a gcc2 2356 builtin and then its argument prototype would still apply. */ 2357 char initscr (); 2917 char com_err (); 2358 2918 int 2359 2919 main () 2360 2920 { 2361 initscr ();2921 return com_err (); 2362 2922 ; 2363 2923 return 0; … … 2365 2925 _ACEOF 2366 2926 rm -f conftest.$ac_objext conftest$ac_exeext 2367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2368 (eval $ac_link) 2>conftest.er1 2927 if { (ac_try="$ac_link" 2928 case "(($ac_try" in 2929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2930 *) ac_try_echo=$ac_try;; 2931 esac 2932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2933 (eval "$ac_link") 2>conftest.er1 2369 2934 ac_status=$? 2370 2935 grep -v '^ *+' conftest.er1 >conftest.err … … 2372 2937 cat conftest.err >&5 2373 2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2374 (exit $ac_status); } && 2375 { ac_try='test -z "$ac_c_werror_flag" 2376 || test ! -s conftest.err' 2377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2378 (eval $ac_try) 2>&5 2379 ac_status=$? 2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2381 (exit $ac_status); }; } && 2382 { ac_try='test -s conftest$ac_exeext' 2383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2384 (eval $ac_try) 2>&5 2385 ac_status=$? 2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2387 (exit $ac_status); }; }; then 2388 ac_cv_lib_curses_initscr=yes 2939 (exit $ac_status); } && { 2940 test -z "$ac_c_werror_flag" || 2941 test ! -s conftest.err 2942 } && test -s conftest$ac_exeext && 2943 $as_test_x conftest$ac_exeext; then 2944 ac_cv_lib_com_err_com_err=yes 2389 2945 else 2390 2946 echo "$as_me: failed program was:" >&5 2391 2947 sed 's/^/| /' conftest.$ac_ext >&5 2392 2948 2393 ac_cv_lib_curses_initscr=no 2394 fi 2395 rm -f conftest.err conftest.$ac_objext \ 2949 ac_cv_lib_com_err_com_err=no 2950 fi 2951 2952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 2396 2953 conftest$ac_exeext conftest.$ac_ext 2397 2954 LIBS=$ac_check_lib_save_LIBS 2398 2955 fi 2399 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&52400 echo "${ECHO_T}$ac_cv_lib_c urses_initscr" >&62401 if test $ac_cv_lib_c urses_initscr = yes; then2956 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5 2957 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; } 2958 if test $ac_cv_lib_com_err_com_err = yes; then 2402 2959 cat >>confdefs.h <<_ACEOF 2403 #define HAVE_LIBCURSES 1 2404 _ACEOF 2405 2406 LIBS="-lcurses $LIBS" 2407 2408 else 2409 { { echo "$as_me:$LINENO: error: No curses library found." >&5 2410 echo "$as_me: error: No curses library found." >&2;} 2411 { (exit 1); exit 1; }; } 2412 fi 2413 2414 fi 2415 2416 2417 echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5 2418 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6 2419 if test "${ac_cv_lib_com_err_com_err+set}" = set; then 2960 #define HAVE_LIBCOM_ERR 1 2961 _ACEOF 2962 2963 LIBS="-lcom_err $LIBS" 2964 2965 fi 2966 2967 2968 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 2969 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } 2970 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 2420 2971 echo $ECHO_N "(cached) $ECHO_C" >&6 2421 2972 else 2422 2973 ac_check_lib_save_LIBS=$LIBS 2423 LIBS="-l com_err$LIBS"2974 LIBS="-lnsl $LIBS" 2424 2975 cat >conftest.$ac_ext <<_ACEOF 2425 2976 /* confdefs.h. */ … … 2429 2980 /* end confdefs.h. */ 2430 2981 2431 /* Override any gcc2 internal prototype to avoid an error. */ 2982 /* Override any GCC internal prototype to avoid an error. 2983 Use char because int might match the return type of a GCC 2984 builtin and then its argument prototype would still apply. */ 2432 2985 #ifdef __cplusplus 2433 2986 extern "C" 2434 2987 #endif 2435 /* We use char because int might match the return type of a gcc2 2436 builtin and then its argument prototype would still apply. */ 2437 char com_err (); 2988 char gethostbyname (); 2438 2989 int 2439 2990 main () 2440 2991 { 2441 com_err();2992 return gethostbyname (); 2442 2993 ; 2443 2994 return 0; … … 2445 2996 _ACEOF 2446 2997 rm -f conftest.$ac_objext conftest$ac_exeext 2447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2448 (eval $ac_link) 2>conftest.er1 2998 if { (ac_try="$ac_link" 2999 case "(($ac_try" in 3000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3001 *) ac_try_echo=$ac_try;; 3002 esac 3003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3004 (eval "$ac_link") 2>conftest.er1 2449 3005 ac_status=$? 2450 3006 grep -v '^ *+' conftest.er1 >conftest.err … … 2452 3008 cat conftest.err >&5 2453 3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2454 (exit $ac_status); } && 2455 { ac_try='test -z "$ac_c_werror_flag" 2456 || test ! -s conftest.err' 2457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2458 (eval $ac_try) 2>&5 2459 ac_status=$? 2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2461 (exit $ac_status); }; } && 2462 { ac_try='test -s conftest$ac_exeext' 2463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2464 (eval $ac_try) 2>&5 2465 ac_status=$? 2466 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2467 (exit $ac_status); }; }; then 2468 ac_cv_lib_com_err_com_err=yes 3010 (exit $ac_status); } && { 3011 test -z "$ac_c_werror_flag" || 3012 test ! -s conftest.err 3013 } && test -s conftest$ac_exeext && 3014 $as_test_x conftest$ac_exeext; then 3015 ac_cv_lib_nsl_gethostbyname=yes 2469 3016 else 2470 3017 echo "$as_me: failed program was:" >&5 2471 3018 sed 's/^/| /' conftest.$ac_ext >&5 2472 3019 2473 ac_cv_lib_com_err_com_err=no 2474 fi 2475 rm -f conftest.err conftest.$ac_objext \ 3020 ac_cv_lib_nsl_gethostbyname=no 3021 fi 3022 3023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 2476 3024 conftest$ac_exeext conftest.$ac_ext 2477 3025 LIBS=$ac_check_lib_save_LIBS 2478 3026 fi 2479 echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&52480 echo "${ECHO_T}$ac_cv_lib_ com_err_com_err" >&62481 if test $ac_cv_lib_ com_err_com_err= yes; then3027 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 3028 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } 3029 if test $ac_cv_lib_nsl_gethostbyname = yes; then 2482 3030 cat >>confdefs.h <<_ACEOF 2483 #define HAVE_LIB COM_ERR12484 _ACEOF 2485 2486 LIBS="-l com_err$LIBS"2487 2488 fi 2489 2490 2491 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&52492 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&62493 if test "${ac_cv_lib_ nsl_gethostbyname+set}" = set; then3031 #define HAVE_LIBNSL 1 3032 _ACEOF 3033 3034 LIBS="-lnsl $LIBS" 3035 3036 fi 3037 3038 3039 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 3040 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; } 3041 if test "${ac_cv_lib_socket_socket+set}" = set; then 2494 3042 echo $ECHO_N "(cached) $ECHO_C" >&6 2495 3043 else 2496 3044 ac_check_lib_save_LIBS=$LIBS 2497 LIBS="-l nsl$LIBS"3045 LIBS="-lsocket $LIBS" 2498 3046 cat >conftest.$ac_ext <<_ACEOF 2499 3047 /* confdefs.h. */ … … 2503 3051 /* end confdefs.h. */ 2504 3052 2505 /* Override any gcc2 internal prototype to avoid an error. */ 3053 /* Override any GCC internal prototype to avoid an error. 3054 Use char because int might match the return type of a GCC 3055 builtin and then its argument prototype would still apply. */ 2506 3056 #ifdef __cplusplus 2507 3057 extern "C" 2508 3058 #endif 2509 /* We use char because int might match the return type of a gcc2 2510 builtin and then its argument prototype would still apply. */ 2511 char gethostbyname (); 3059 char socket (); 2512 3060 int 2513 3061 main () 2514 3062 { 2515 gethostbyname();3063 return socket (); 2516 3064 ; 2517 3065 return 0; … … 2519 3067 _ACEOF 2520 3068 rm -f conftest.$ac_objext conftest$ac_exeext 2521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2522 (eval $ac_link) 2>conftest.er1 3069 if { (ac_try="$ac_link" 3070 case "(($ac_try" in 3071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3072 *) ac_try_echo=$ac_try;; 3073 esac 3074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3075 (eval "$ac_link") 2>conftest.er1 2523 3076 ac_status=$? 2524 3077 grep -v '^ *+' conftest.er1 >conftest.err … … 2526 3079 cat conftest.err >&5 2527 3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2528 (exit $ac_status); } && 2529 { ac_try='test -z "$ac_c_werror_flag" 2530 || test ! -s conftest.err' 2531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2532 (eval $ac_try) 2>&5 2533 ac_status=$? 2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2535 (exit $ac_status); }; } && 2536 { ac_try='test -s conftest$ac_exeext' 2537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2538 (eval $ac_try) 2>&5 2539 ac_status=$? 2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2541 (exit $ac_status); }; }; then 2542 ac_cv_lib_nsl_gethostbyname=yes 3081 (exit $ac_status); } && { 3082 test -z "$ac_c_werror_flag" || 3083 test ! -s conftest.err 3084 } && test -s conftest$ac_exeext && 3085 $as_test_x conftest$ac_exeext; then 3086 ac_cv_lib_socket_socket=yes 2543 3087 else 2544 3088 echo "$as_me: failed program was:" >&5 2545 3089 sed 's/^/| /' conftest.$ac_ext >&5 2546 3090 2547 ac_cv_lib_nsl_gethostbyname=no 2548 fi 2549 rm -f conftest.err conftest.$ac_objext \ 3091 ac_cv_lib_socket_socket=no 3092 fi 3093 3094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 2550 3095 conftest$ac_exeext conftest.$ac_ext 2551 3096 LIBS=$ac_check_lib_save_LIBS 2552 3097 fi 2553 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&52554 echo "${ECHO_T}$ac_cv_lib_ nsl_gethostbyname" >&62555 if test $ac_cv_lib_ nsl_gethostbyname= yes; then3098 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 3099 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; } 3100 if test $ac_cv_lib_socket_socket = yes; then 2556 3101 cat >>confdefs.h <<_ACEOF 2557 #define HAVE_LIB NSL12558 _ACEOF 2559 2560 LIBS="-l nsl$LIBS"2561 2562 fi 2563 2564 2565 echo "$as_me:$LINENO: checking for socket in -lsocket" >&52566 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&62567 if test "${ac_cv_lib_ socket_socket+set}" = set; then3102 #define HAVE_LIBSOCKET 1 3103 _ACEOF 3104 3105 LIBS="-lsocket $LIBS" 3106 3107 fi 3108 3109 3110 { echo "$as_me:$LINENO: checking for krb5_derive_key in -lk5crypto" >&5 3111 echo $ECHO_N "checking for krb5_derive_key in -lk5crypto... $ECHO_C" >&6; } 3112 if test "${ac_cv_lib_k5crypto_krb5_derive_key+set}" = set; then 2568 3113 echo $ECHO_N "(cached) $ECHO_C" >&6 2569 3114 else 2570 3115 ac_check_lib_save_LIBS=$LIBS 2571 LIBS="-l socket$LIBS"3116 LIBS="-lk5crypto $LIBS" 2572 3117 cat >conftest.$ac_ext <<_ACEOF 2573 3118 /* confdefs.h. */ … … 2577 3122 /* end confdefs.h. */ 2578 3123 2579 /* Override any gcc2 internal prototype to avoid an error. */ 3124 /* Override any GCC internal prototype to avoid an error. 3125 Use char because int might match the return type of a GCC 3126 builtin and then its argument prototype would still apply. */ 2580 3127 #ifdef __cplusplus 2581 3128 extern "C" 2582 3129 #endif 2583 /* We use char because int might match the return type of a gcc2 2584 builtin and then its argument prototype would still apply. */ 2585 char socket (); 3130 char krb5_derive_key (); 2586 3131 int 2587 3132 main () 2588 3133 { 2589 socket();3134 return krb5_derive_key (); 2590 3135 ; 2591 3136 return 0; … … 2593 3138 _ACEOF 2594 3139 rm -f conftest.$ac_objext conftest$ac_exeext 2595 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2596 (eval $ac_link) 2>conftest.er1 3140 if { (ac_try="$ac_link" 3141 case "(($ac_try" in 3142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3143 *) ac_try_echo=$ac_try;; 3144 esac 3145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3146 (eval "$ac_link") 2>conftest.er1 2597 3147 ac_status=$? 2598 3148 grep -v '^ *+' conftest.er1 >conftest.err … … 2600 3150 cat conftest.err >&5 2601 3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2602 (exit $ac_status); } && 2603 { ac_try='test -z "$ac_c_werror_flag" 2604 || test ! -s conftest.err' 2605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2606 (eval $ac_try) 2>&5 2607 ac_status=$? 2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2609 (exit $ac_status); }; } && 2610 { ac_try='test -s conftest$ac_exeext' 2611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2612 (eval $ac_try) 2>&5 2613 ac_status=$? 2614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2615 (exit $ac_status); }; }; then 2616 ac_cv_lib_socket_socket=yes 3152 (exit $ac_status); } && { 3153 test -z "$ac_c_werror_flag" || 3154 test ! -s conftest.err 3155 } && test -s conftest$ac_exeext && 3156 $as_test_x conftest$ac_exeext; then 3157 ac_cv_lib_k5crypto_krb5_derive_key=yes 2617 3158 else 2618 3159 echo "$as_me: failed program was:" >&5 2619 3160 sed 's/^/| /' conftest.$ac_ext >&5 2620 3161 2621 ac_cv_lib_socket_socket=no 2622 fi 2623 rm -f conftest.err conftest.$ac_objext \ 3162 ac_cv_lib_k5crypto_krb5_derive_key=no 3163 fi 3164 3165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 2624 3166 conftest$ac_exeext conftest.$ac_ext 2625 3167 LIBS=$ac_check_lib_save_LIBS 2626 3168 fi 2627 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&52628 echo "${ECHO_T}$ac_cv_lib_ socket_socket" >&62629 if test $ac_cv_lib_ socket_socket= yes; then3169 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_krb5_derive_key" >&5 3170 echo "${ECHO_T}$ac_cv_lib_k5crypto_krb5_derive_key" >&6; } 3171 if test $ac_cv_lib_k5crypto_krb5_derive_key = yes; then 2630 3172 cat >>confdefs.h <<_ACEOF 2631 #define HAVE_LIB SOCKET12632 _ACEOF 2633 2634 LIBS="-l socket$LIBS"2635 2636 fi 2637 2638 2639 echo "$as_me:$LINENO: checking for krb5_derive_key in -lk5crypto" >&52640 echo $ECHO_N "checking for krb5_derive_key in -lk5crypto... $ECHO_C" >&62641 if test "${ac_cv_lib_ k5crypto_krb5_derive_key+set}" = set; then3173 #define HAVE_LIBK5CRYPTO 1 3174 _ACEOF 3175 3176 LIBS="-lk5crypto $LIBS" 3177 3178 fi 3179 3180 3181 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5 3182 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; } 3183 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then 2642 3184 echo $ECHO_N "(cached) $ECHO_C" >&6 2643 3185 else 2644 3186 ac_check_lib_save_LIBS=$LIBS 2645 LIBS="-l k5crypto$LIBS"3187 LIBS="-ldes425 $LIBS" 2646 3188 cat >conftest.$ac_ext <<_ACEOF 2647 3189 /* confdefs.h. */ … … 2651 3193 /* end confdefs.h. */ 2652 3194 2653 /* Override any gcc2 internal prototype to avoid an error. */ 3195 /* Override any GCC internal prototype to avoid an error. 3196 Use char because int might match the return type of a GCC 3197 builtin and then its argument prototype would still apply. */ 2654 3198 #ifdef __cplusplus 2655 3199 extern "C" 2656 3200 #endif 2657 /* We use char because int might match the return type of a gcc2 2658 builtin and then its argument prototype would still apply. */ 2659 char krb5_derive_key (); 3201 char des_cbc_encrypt (); 2660 3202 int 2661 3203 main () 2662 3204 { 2663 krb5_derive_key();3205 return des_cbc_encrypt (); 2664 3206 ; 2665 3207 return 0; … … 2667 3209 _ACEOF 2668 3210 rm -f conftest.$ac_objext conftest$ac_exeext 2669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2670 (eval $ac_link) 2>conftest.er1 3211 if { (ac_try="$ac_link" 3212 case "(($ac_try" in 3213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3214 *) ac_try_echo=$ac_try;; 3215 esac 3216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3217 (eval "$ac_link") 2>conftest.er1 2671 3218 ac_status=$? 2672 3219 grep -v '^ *+' conftest.er1 >conftest.err … … 2674 3221 cat conftest.err >&5 2675 3222 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2676 (exit $ac_status); } && 2677 { ac_try='test -z "$ac_c_werror_flag" 2678 || test ! -s conftest.err' 2679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2680 (eval $ac_try) 2>&5 2681 ac_status=$? 2682 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2683 (exit $ac_status); }; } && 2684 { ac_try='test -s conftest$ac_exeext' 2685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2686 (eval $ac_try) 2>&5 2687 ac_status=$? 2688 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2689 (exit $ac_status); }; }; then 2690 ac_cv_lib_k5crypto_krb5_derive_key=yes 3223 (exit $ac_status); } && { 3224 test -z "$ac_c_werror_flag" || 3225 test ! -s conftest.err 3226 } && test -s conftest$ac_exeext && 3227 $as_test_x conftest$ac_exeext; then 3228 ac_cv_lib_des425_des_cbc_encrypt=yes 2691 3229 else 2692 3230 echo "$as_me: failed program was:" >&5 2693 3231 sed 's/^/| /' conftest.$ac_ext >&5 2694 3232 2695 ac_cv_lib_k5crypto_krb5_derive_key=no 2696 fi 2697 rm -f conftest.err conftest.$ac_objext \ 3233 ac_cv_lib_des425_des_cbc_encrypt=no 3234 fi 3235 3236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 2698 3237 conftest$ac_exeext conftest.$ac_ext 2699 3238 LIBS=$ac_check_lib_save_LIBS 2700 3239 fi 2701 echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_krb5_derive_key" >&52702 echo "${ECHO_T}$ac_cv_lib_ k5crypto_krb5_derive_key" >&62703 if test $ac_cv_lib_ k5crypto_krb5_derive_key= yes; then3240 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5 3241 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; } 3242 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then 2704 3243 cat >>confdefs.h <<_ACEOF 2705 #define HAVE_LIB K5CRYPTO12706 _ACEOF 2707 2708 LIBS="-l k5crypto$LIBS"2709 2710 fi 2711 2712 2713 echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&52714 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&62715 if test "${ac_cv_lib_ des425_des_cbc_encrypt+set}" = set; then3244 #define HAVE_LIBDES425 1 3245 _ACEOF 3246 3247 LIBS="-ldes425 $LIBS" 3248 3249 fi 3250 3251 3252 { echo "$as_me:$LINENO: checking for res_search in -lresolv" >&5 3253 echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&6; } 3254 if test "${ac_cv_lib_resolv_res_search+set}" = set; then 2716 3255 echo $ECHO_N "(cached) $ECHO_C" >&6 2717 3256 else 2718 3257 ac_check_lib_save_LIBS=$LIBS 2719 LIBS="-l des425$LIBS"3258 LIBS="-lresolv $LIBS" 2720 3259 cat >conftest.$ac_ext <<_ACEOF 2721 3260 /* confdefs.h. */ … … 2725 3264 /* end confdefs.h. */ 2726 3265 2727 /* Override any gcc2 internal prototype to avoid an error. */ 3266 /* Override any GCC internal prototype to avoid an error. 3267 Use char because int might match the return type of a GCC 3268 builtin and then its argument prototype would still apply. */ 2728 3269 #ifdef __cplusplus 2729 3270 extern "C" 2730 3271 #endif 2731 /* We use char because int might match the return type of a gcc2 2732 builtin and then its argument prototype would still apply. */ 2733 char des_cbc_encrypt (); 3272 char res_search (); 2734 3273 int 2735 3274 main () 2736 3275 { 2737 des_cbc_encrypt();3276 return res_search (); 2738 3277 ; 2739 3278 return 0; … … 2741 3280 _ACEOF 2742 3281 rm -f conftest.$ac_objext conftest$ac_exeext 2743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2744 (eval $ac_link) 2>conftest.er1 3282 if { (ac_try="$ac_link" 3283 case "(($ac_try" in 3284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3285 *) ac_try_echo=$ac_try;; 3286 esac 3287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3288 (eval "$ac_link") 2>conftest.er1 2745 3289 ac_status=$? 2746 3290 grep -v '^ *+' conftest.er1 >conftest.err … … 2748 3292 cat conftest.err >&5 2749 3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2750 (exit $ac_status); } && 2751 { ac_try='test -z "$ac_c_werror_flag" 2752 || test ! -s conftest.err' 2753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2754 (eval $ac_try) 2>&5 2755 ac_status=$? 2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2757 (exit $ac_status); }; } && 2758 { ac_try='test -s conftest$ac_exeext' 2759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2760 (eval $ac_try) 2>&5 2761 ac_status=$? 2762 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2763 (exit $ac_status); }; }; then 2764 ac_cv_lib_des425_des_cbc_encrypt=yes 3294 (exit $ac_status); } && { 3295 test -z "$ac_c_werror_flag" || 3296 test ! -s conftest.err 3297 } && test -s conftest$ac_exeext && 3298 $as_test_x conftest$ac_exeext; then 3299 ac_cv_lib_resolv_res_search=yes 2765 3300 else 2766 3301 echo "$as_me: failed program was:" >&5 2767 3302 sed 's/^/| /' conftest.$ac_ext >&5 2768 3303 2769 ac_cv_lib_des425_des_cbc_encrypt=no 2770 fi 2771 rm -f conftest.err conftest.$ac_objext \ 3304 ac_cv_lib_resolv_res_search=no 3305 fi 3306 3307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 2772 3308 conftest$ac_exeext conftest.$ac_ext 2773 3309 LIBS=$ac_check_lib_save_LIBS 2774 3310 fi 2775 echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&52776 echo "${ECHO_T}$ac_cv_lib_ des425_des_cbc_encrypt" >&62777 if test $ac_cv_lib_ des425_des_cbc_encrypt= yes; then3311 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&5 3312 echo "${ECHO_T}$ac_cv_lib_resolv_res_search" >&6; } 3313 if test $ac_cv_lib_resolv_res_search = yes; then 2778 3314 cat >>confdefs.h <<_ACEOF 2779 #define HAVE_LIB DES42512780 _ACEOF 2781 2782 LIBS="-l des425$LIBS"2783 2784 fi 2785 2786 2787 echo "$as_me:$LINENO: checking for des_quad_cksum in -ldes" >&52788 echo $ECHO_N "checking for des_quad_cksum in -ldes... $ECHO_C" >&62789 if test "${ac_cv_lib_ des_des_quad_cksum+set}" = set; then3315 #define HAVE_LIBRESOLV 1 3316 _ACEOF 3317 3318 LIBS="-lresolv $LIBS" 3319 3320 fi 3321 3322 3323 { echo "$as_me:$LINENO: checking for krb5_get_credentials in -lkrb5" >&5 3324 echo $ECHO_N "checking for krb5_get_credentials in -lkrb5... $ECHO_C" >&6; } 3325 if test "${ac_cv_lib_krb5_krb5_get_credentials+set}" = set; then 2790 3326 echo $ECHO_N "(cached) $ECHO_C" >&6 2791 3327 else 2792 3328 ac_check_lib_save_LIBS=$LIBS 2793 LIBS="-l des$LIBS"3329 LIBS="-lkrb5 $LIBS" 2794 3330 cat >conftest.$ac_ext <<_ACEOF 2795 3331 /* confdefs.h. */ … … 2799 3335 /* end confdefs.h. */ 2800 3336 2801 /* Override any gcc2 internal prototype to avoid an error. */ 3337 /* Override any GCC internal prototype to avoid an error. 3338 Use char because int might match the return type of a GCC 3339 builtin and then its argument prototype would still apply. */ 2802 3340 #ifdef __cplusplus 2803 3341 extern "C" 2804 3342 #endif 2805 /* We use char because int might match the return type of a gcc2 2806 builtin and then its argument prototype would still apply. */ 2807 char des_quad_cksum (); 3343 char krb5_get_credentials (); 2808 3344 int 2809 3345 main () 2810 3346 { 2811 des_quad_cksum();3347 return krb5_get_credentials (); 2812 3348 ; 2813 3349 return 0; … … 2815 3351 _ACEOF 2816 3352 rm -f conftest.$ac_objext conftest$ac_exeext 2817 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2818 (eval $ac_link) 2>conftest.er1 3353 if { (ac_try="$ac_link" 3354 case "(($ac_try" in 3355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3356 *) ac_try_echo=$ac_try;; 3357 esac 3358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3359 (eval "$ac_link") 2>conftest.er1 2819 3360 ac_status=$? 2820 3361 grep -v '^ *+' conftest.er1 >conftest.err … … 2822 3363 cat conftest.err >&5 2823 3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2824 (exit $ac_status); } && 2825 { ac_try='test -z "$ac_c_werror_flag" 2826 || test ! -s conftest.err' 2827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2828 (eval $ac_try) 2>&5 2829 ac_status=$? 2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2831 (exit $ac_status); }; } && 2832 { ac_try='test -s conftest$ac_exeext' 2833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2834 (eval $ac_try) 2>&5 2835 ac_status=$? 2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2837 (exit $ac_status); }; }; then 2838 ac_cv_lib_des_des_quad_cksum=yes 3365 (exit $ac_status); } && { 3366 test -z "$ac_c_werror_flag" || 3367 test ! -s conftest.err 3368 } && test -s conftest$ac_exeext && 3369 $as_test_x conftest$ac_exeext; then 3370 ac_cv_lib_krb5_krb5_get_credentials=yes 2839 3371 else 2840 3372 echo "$as_me: failed program was:" >&5 2841 3373 sed 's/^/| /' conftest.$ac_ext >&5 2842 3374 2843 ac_cv_lib_des_des_quad_cksum=no 2844 fi 2845 rm -f conftest.err conftest.$ac_objext \ 3375 ac_cv_lib_krb5_krb5_get_credentials=no 3376 fi 3377 3378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 2846 3379 conftest$ac_exeext conftest.$ac_ext 2847 3380 LIBS=$ac_check_lib_save_LIBS 2848 3381 fi 2849 echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_quad_cksum" >&52850 echo "${ECHO_T}$ac_cv_lib_ des_des_quad_cksum" >&62851 if test $ac_cv_lib_ des_des_quad_cksum= yes; then3382 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_get_credentials" >&5 3383 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_get_credentials" >&6; } 3384 if test $ac_cv_lib_krb5_krb5_get_credentials = yes; then 2852 3385 cat >>confdefs.h <<_ACEOF 2853 #define HAVE_LIB DES12854 _ACEOF 2855 2856 LIBS="-l des$LIBS"2857 2858 fi 2859 2860 2861 echo "$as_me:$LINENO: checking for res_search in -lresolv" >&52862 echo $ECHO_N "checking for res_search in -lresolv... $ECHO_C" >&62863 if test "${ac_cv_lib_ resolv_res_search+set}" = set; then3386 #define HAVE_LIBKRB5 1 3387 _ACEOF 3388 3389 LIBS="-lkrb5 $LIBS" 3390 3391 fi 3392 3393 3394 { echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb4" >&5 3395 echo $ECHO_N "checking for krb_sendauth in -lkrb4... $ECHO_C" >&6; } 3396 if test "${ac_cv_lib_krb4_krb_sendauth+set}" = set; then 2864 3397 echo $ECHO_N "(cached) $ECHO_C" >&6 2865 3398 else 2866 3399 ac_check_lib_save_LIBS=$LIBS 2867 LIBS="-l resolv$LIBS"3400 LIBS="-lkrb4 $LIBS" 2868 3401 cat >conftest.$ac_ext <<_ACEOF 2869 3402 /* confdefs.h. */ … … 2873 3406 /* end confdefs.h. */ 2874 3407 2875 /* Override any gcc2 internal prototype to avoid an error. */ 3408 /* Override any GCC internal prototype to avoid an error. 3409 Use char because int might match the return type of a GCC 3410 builtin and then its argument prototype would still apply. */ 2876 3411 #ifdef __cplusplus 2877 3412 extern "C" 2878 3413 #endif 2879 /* We use char because int might match the return type of a gcc2 2880 builtin and then its argument prototype would still apply. */ 2881 char res_search (); 3414 char krb_sendauth (); 2882 3415 int 2883 3416 main () 2884 3417 { 2885 re s_search ();3418 return krb_sendauth (); 2886 3419 ; 2887 3420 return 0; … … 2889 3422 _ACEOF 2890 3423 rm -f conftest.$ac_objext conftest$ac_exeext 2891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2892 (eval $ac_link) 2>conftest.er1 3424 if { (ac_try="$ac_link" 3425 case "(($ac_try" in 3426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3427 *) ac_try_echo=$ac_try;; 3428 esac 3429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3430 (eval "$ac_link") 2>conftest.er1 2893 3431 ac_status=$? 2894 3432 grep -v '^ *+' conftest.er1 >conftest.err … … 2896 3434 cat conftest.err >&5 2897 3435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2898 (exit $ac_status); } && 2899 { ac_try='test -z "$ac_c_werror_flag" 2900 || test ! -s conftest.err' 2901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2902 (eval $ac_try) 2>&5 2903 ac_status=$? 2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2905 (exit $ac_status); }; } && 2906 { ac_try='test -s conftest$ac_exeext' 2907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2908 (eval $ac_try) 2>&5 2909 ac_status=$? 2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2911 (exit $ac_status); }; }; then 2912 ac_cv_lib_resolv_res_search=yes 3436 (exit $ac_status); } && { 3437 test -z "$ac_c_werror_flag" || 3438 test ! -s conftest.err 3439 } && test -s conftest$ac_exeext && 3440 $as_test_x conftest$ac_exeext; then 3441 ac_cv_lib_krb4_krb_sendauth=yes 2913 3442 else 2914 3443 echo "$as_me: failed program was:" >&5 2915 3444 sed 's/^/| /' conftest.$ac_ext >&5 2916 3445 2917 ac_cv_lib_resolv_res_search=no 2918 fi 2919 rm -f conftest.err conftest.$ac_objext \ 3446 ac_cv_lib_krb4_krb_sendauth=no 3447 fi 3448 3449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 2920 3450 conftest$ac_exeext conftest.$ac_ext 2921 3451 LIBS=$ac_check_lib_save_LIBS 2922 3452 fi 2923 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_search" >&52924 echo "${ECHO_T}$ac_cv_lib_ resolv_res_search" >&62925 if test $ac_cv_lib_ resolv_res_search = yes; then3453 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_sendauth" >&5 3454 echo "${ECHO_T}$ac_cv_lib_krb4_krb_sendauth" >&6; } 3455 if test $ac_cv_lib_krb4_krb_sendauth = yes; then 2926 3456 cat >>confdefs.h <<_ACEOF 2927 #define HAVE_LIBRESOLV 1 2928 _ACEOF 2929 2930 LIBS="-lresolv $LIBS" 2931 2932 fi 2933 2934 2935 echo "$as_me:$LINENO: checking for krb5_get_credentials in -lkrb5" >&5 2936 echo $ECHO_N "checking for krb5_get_credentials in -lkrb5... $ECHO_C" >&6 2937 if test "${ac_cv_lib_krb5_krb5_get_credentials+set}" = set; then 3457 #define HAVE_LIBKRB4 1 3458 _ACEOF 3459 3460 LIBS="-lkrb4 $LIBS" 3461 3462 else 3463 3464 { echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&5 3465 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&6; } 3466 if test "${ac_cv_lib_krb_krb_sendauth+set}" = set; then 2938 3467 echo $ECHO_N "(cached) $ECHO_C" >&6 2939 3468 else 2940 3469 ac_check_lib_save_LIBS=$LIBS 2941 LIBS="-lkrb 5$LIBS"3470 LIBS="-lkrb $LIBS" 2942 3471 cat >conftest.$ac_ext <<_ACEOF 2943 3472 /* confdefs.h. */ … … 2947 3476 /* end confdefs.h. */ 2948 3477 2949 /* Override any gcc2 internal prototype to avoid an error. */ 3478 /* Override any GCC internal prototype to avoid an error. 3479 Use char because int might match the return type of a GCC 3480 builtin and then its argument prototype would still apply. */ 2950 3481 #ifdef __cplusplus 2951 3482 extern "C" 2952 3483 #endif 2953 /* We use char because int might match the return type of a gcc2 2954 builtin and then its argument prototype would still apply. */ 2955 char krb5_get_credentials (); 3484 char krb_sendauth (); 2956 3485 int 2957 3486 main () 2958 3487 { 2959 krb5_get_credentials();3488 return krb_sendauth (); 2960 3489 ; 2961 3490 return 0; … … 2963 3492 _ACEOF 2964 3493 rm -f conftest.$ac_objext conftest$ac_exeext 2965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2966 (eval $ac_link) 2>conftest.er1 3494 if { (ac_try="$ac_link" 3495 case "(($ac_try" in 3496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3497 *) ac_try_echo=$ac_try;; 3498 esac 3499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3500 (eval "$ac_link") 2>conftest.er1 2967 3501 ac_status=$? 2968 3502 grep -v '^ *+' conftest.er1 >conftest.err … … 2970 3504 cat conftest.err >&5 2971 3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2972 (exit $ac_status); } && 2973 { ac_try='test -z "$ac_c_werror_flag" 2974 || test ! -s conftest.err' 2975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2976 (eval $ac_try) 2>&5 2977 ac_status=$? 2978 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2979 (exit $ac_status); }; } && 2980 { ac_try='test -s conftest$ac_exeext' 2981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2982 (eval $ac_try) 2>&5 2983 ac_status=$? 2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2985 (exit $ac_status); }; }; then 2986 ac_cv_lib_krb5_krb5_get_credentials=yes 3506 (exit $ac_status); } && { 3507 test -z "$ac_c_werror_flag" || 3508 test ! -s conftest.err 3509 } && test -s conftest$ac_exeext && 3510 $as_test_x conftest$ac_exeext; then 3511 ac_cv_lib_krb_krb_sendauth=yes 2987 3512 else 2988 3513 echo "$as_me: failed program was:" >&5 2989 3514 sed 's/^/| /' conftest.$ac_ext >&5 2990 3515 2991 ac_cv_lib_krb5_krb5_get_credentials=no 2992 fi 2993 rm -f conftest.err conftest.$ac_objext \ 3516 ac_cv_lib_krb_krb_sendauth=no 3517 fi 3518 3519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 2994 3520 conftest$ac_exeext conftest.$ac_ext 2995 3521 LIBS=$ac_check_lib_save_LIBS 2996 3522 fi 2997 echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_get_credentials" >&52998 echo "${ECHO_T}$ac_cv_lib_krb 5_krb5_get_credentials" >&62999 if test $ac_cv_lib_krb 5_krb5_get_credentials= yes; then3523 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5 3524 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6; } 3525 if test $ac_cv_lib_krb_krb_sendauth = yes; then 3000 3526 cat >>confdefs.h <<_ACEOF 3001 #define HAVE_LIBKRB5 1 3002 _ACEOF 3003 3004 LIBS="-lkrb5 $LIBS" 3005 3006 fi 3007 3008 3009 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb4" >&5 3010 echo $ECHO_N "checking for krb_sendauth in -lkrb4... $ECHO_C" >&6 3011 if test "${ac_cv_lib_krb4_krb_sendauth+set}" = set; then 3527 #define HAVE_LIBKRB 1 3528 _ACEOF 3529 3530 LIBS="-lkrb $LIBS" 3531 3532 fi 3533 3534 fi 3535 3536 3537 { echo "$as_me:$LINENO: checking for ZGetSender in -lzephyr" >&5 3538 echo $ECHO_N "checking for ZGetSender in -lzephyr... $ECHO_C" >&6; } 3539 if test "${ac_cv_lib_zephyr_ZGetSender+set}" = set; then 3012 3540 echo $ECHO_N "(cached) $ECHO_C" >&6 3013 3541 else 3014 3542 ac_check_lib_save_LIBS=$LIBS 3015 LIBS="-l krb4$LIBS"3543 LIBS="-lzephyr $LIBS" 3016 3544 cat >conftest.$ac_ext <<_ACEOF 3017 3545 /* confdefs.h. */ … … 3021 3549 /* end confdefs.h. */ 3022 3550 3023 /* Override any gcc2 internal prototype to avoid an error. */ 3551 /* Override any GCC internal prototype to avoid an error. 3552 Use char because int might match the return type of a GCC 3553 builtin and then its argument prototype would still apply. */ 3024 3554 #ifdef __cplusplus 3025 3555 extern "C" 3026 3556 #endif 3027 /* We use char because int might match the return type of a gcc2 3028 builtin and then its argument prototype would still apply. */ 3029 char krb_sendauth (); 3557 char ZGetSender (); 3030 3558 int 3031 3559 main () 3032 3560 { 3033 krb_sendauth();3561 return ZGetSender (); 3034 3562 ; 3035 3563 return 0; … … 3037 3565 _ACEOF 3038 3566 rm -f conftest.$ac_objext conftest$ac_exeext 3039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3040 (eval $ac_link) 2>conftest.er1 3567 if { (ac_try="$ac_link" 3568 case "(($ac_try" in 3569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3570 *) ac_try_echo=$ac_try;; 3571 esac 3572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3573 (eval "$ac_link") 2>conftest.er1 3041 3574 ac_status=$? 3042 3575 grep -v '^ *+' conftest.er1 >conftest.err … … 3044 3577 cat conftest.err >&5 3045 3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3046 (exit $ac_status); } && 3047 { ac_try='test -z "$ac_c_werror_flag" 3048 || test ! -s conftest.err' 3049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3050 (eval $ac_try) 2>&5 3051 ac_status=$? 3052 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3053 (exit $ac_status); }; } && 3054 { ac_try='test -s conftest$ac_exeext' 3055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3056 (eval $ac_try) 2>&5 3057 ac_status=$? 3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3059 (exit $ac_status); }; }; then 3060 ac_cv_lib_krb4_krb_sendauth=yes 3579 (exit $ac_status); } && { 3580 test -z "$ac_c_werror_flag" || 3581 test ! -s conftest.err 3582 } && test -s conftest$ac_exeext && 3583 $as_test_x conftest$ac_exeext; then 3584 ac_cv_lib_zephyr_ZGetSender=yes 3061 3585 else 3062 3586 echo "$as_me: failed program was:" >&5 3063 3587 sed 's/^/| /' conftest.$ac_ext >&5 3064 3588 3065 ac_cv_lib_krb4_krb_sendauth=no 3066 fi 3067 rm -f conftest.err conftest.$ac_objext \ 3589 ac_cv_lib_zephyr_ZGetSender=no 3590 fi 3591 3592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3068 3593 conftest$ac_exeext conftest.$ac_ext 3069 3594 LIBS=$ac_check_lib_save_LIBS 3070 3595 fi 3071 echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_sendauth" >&53072 echo "${ECHO_T}$ac_cv_lib_ krb4_krb_sendauth" >&63073 if test $ac_cv_lib_ krb4_krb_sendauth= yes; then3596 { echo "$as_me:$LINENO: result: $ac_cv_lib_zephyr_ZGetSender" >&5 3597 echo "${ECHO_T}$ac_cv_lib_zephyr_ZGetSender" >&6; } 3598 if test $ac_cv_lib_zephyr_ZGetSender = yes; then 3074 3599 cat >>confdefs.h <<_ACEOF 3075 #define HAVE_LIB KRB413076 _ACEOF 3077 3078 LIBS="-l krb4$LIBS"3079 3080 else 3081 3082 echo "$as_me:$LINENO: checking for krb_sendauth in -lkrb" >&53083 echo $ECHO_N "checking for krb_sendauth in -lkrb... $ECHO_C" >&63084 if test "${ac_cv_lib_ krb_krb_sendauth+set}" = set; then3600 #define HAVE_LIBZEPHYR 1 3601 _ACEOF 3602 3603 LIBS="-lzephyr $LIBS" 3604 3605 fi 3606 3607 { echo "$as_me:$LINENO: checking for ZInitLocationInfo in -lzephyr" >&5 3608 echo $ECHO_N "checking for ZInitLocationInfo in -lzephyr... $ECHO_C" >&6; } 3609 if test "${ac_cv_lib_zephyr_ZInitLocationInfo+set}" = set; then 3085 3610 echo $ECHO_N "(cached) $ECHO_C" >&6 3086 3611 else 3087 3612 ac_check_lib_save_LIBS=$LIBS 3088 LIBS="-l krb$LIBS"3613 LIBS="-lzephyr $LIBS" 3089 3614 cat >conftest.$ac_ext <<_ACEOF 3090 3615 /* confdefs.h. */ … … 3094 3619 /* end confdefs.h. */ 3095 3620 3096 /* Override any gcc2 internal prototype to avoid an error. */ 3621 /* Override any GCC internal prototype to avoid an error. 3622 Use char because int might match the return type of a GCC 3623 builtin and then its argument prototype would still apply. */ 3097 3624 #ifdef __cplusplus 3098 3625 extern "C" 3099 3626 #endif 3100 /* We use char because int might match the return type of a gcc2 3101 builtin and then its argument prototype would still apply. */ 3102 char krb_sendauth (); 3627 char ZInitLocationInfo (); 3103 3628 int 3104 3629 main () 3105 3630 { 3106 krb_sendauth();3631 return ZInitLocationInfo (); 3107 3632 ; 3108 3633 return 0; … … 3110 3635 _ACEOF 3111 3636 rm -f conftest.$ac_objext conftest$ac_exeext 3112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3113 (eval $ac_link) 2>conftest.er1 3637 if { (ac_try="$ac_link" 3638 case "(($ac_try" in 3639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3640 *) ac_try_echo=$ac_try;; 3641 esac 3642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3643 (eval "$ac_link") 2>conftest.er1 3114 3644 ac_status=$? 3115 3645 grep -v '^ *+' conftest.er1 >conftest.err … … 3117 3647 cat conftest.err >&5 3118 3648 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3119 (exit $ac_status); } && 3120 { ac_try='test -z "$ac_c_werror_flag" 3121 || test ! -s conftest.err' 3122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3123 (eval $ac_try) 2>&5 3124 ac_status=$? 3125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3126 (exit $ac_status); }; } && 3127 { ac_try='test -s conftest$ac_exeext' 3128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3129 (eval $ac_try) 2>&5 3130 ac_status=$? 3131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3132 (exit $ac_status); }; }; then 3133 ac_cv_lib_krb_krb_sendauth=yes 3649 (exit $ac_status); } && { 3650 test -z "$ac_c_werror_flag" || 3651 test ! -s conftest.err 3652 } && test -s conftest$ac_exeext && 3653 $as_test_x conftest$ac_exeext; then 3654 ac_cv_lib_zephyr_ZInitLocationInfo=yes 3134 3655 else 3135 3656 echo "$as_me: failed program was:" >&5 3136 3657 sed 's/^/| /' conftest.$ac_ext >&5 3137 3658 3138 ac_cv_lib_krb_krb_sendauth=no 3139 fi 3140 rm -f conftest.err conftest.$ac_objext \ 3659 ac_cv_lib_zephyr_ZInitLocationInfo=no 3660 fi 3661 3662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3141 3663 conftest$ac_exeext conftest.$ac_ext 3142 3664 LIBS=$ac_check_lib_save_LIBS 3143 3665 fi 3144 echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_sendauth" >&5 3145 echo "${ECHO_T}$ac_cv_lib_krb_krb_sendauth" >&6 3146 if test $ac_cv_lib_krb_krb_sendauth = yes; then 3147 cat >>confdefs.h <<_ACEOF 3148 #define HAVE_LIBKRB 1 3149 _ACEOF 3150 3151 LIBS="-lkrb $LIBS" 3152 3153 fi 3154 3155 fi 3156 3157 3158 echo "$as_me:$LINENO: checking for ZGetSender in -lzephyr" >&5 3159 echo $ECHO_N "checking for ZGetSender in -lzephyr... $ECHO_C" >&6 3160 if test "${ac_cv_lib_zephyr_ZGetSender+set}" = set; then 3161 echo $ECHO_N "(cached) $ECHO_C" >&6 3162 else 3163 ac_check_lib_save_LIBS=$LIBS 3164 LIBS="-lzephyr $LIBS" 3165 cat >conftest.$ac_ext <<_ACEOF 3166 /* confdefs.h. */ 3167 _ACEOF 3168 cat confdefs.h >>conftest.$ac_ext 3169 cat >>conftest.$ac_ext <<_ACEOF 3170 /* end confdefs.h. */ 3171 3172 /* Override any gcc2 internal prototype to avoid an error. */ 3173 #ifdef __cplusplus 3174 extern "C" 3175 #endif 3176 /* We use char because int might match the return type of a gcc2 3177 builtin and then its argument prototype would still apply. */ 3178 char ZGetSender (); 3179 int 3180 main () 3181 { 3182 ZGetSender (); 3183 ; 3184 return 0; 3185 } 3186 _ACEOF 3187 rm -f conftest.$ac_objext conftest$ac_exeext 3188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3189 (eval $ac_link) 2>conftest.er1 3190 ac_status=$? 3191 grep -v '^ *+' conftest.er1 >conftest.err 3192 rm -f conftest.er1 3193 cat conftest.err >&5 3194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3195 (exit $ac_status); } && 3196 { ac_try='test -z "$ac_c_werror_flag" 3197 || test ! -s conftest.err' 3198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3199 (eval $ac_try) 2>&5 3200 ac_status=$? 3201 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3202 (exit $ac_status); }; } && 3203 { ac_try='test -s conftest$ac_exeext' 3204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3205 (eval $ac_try) 2>&5 3206 ac_status=$? 3207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3208 (exit $ac_status); }; }; then 3209 ac_cv_lib_zephyr_ZGetSender=yes 3210 else 3211 echo "$as_me: failed program was:" >&5 3212 sed 's/^/| /' conftest.$ac_ext >&5 3213 3214 ac_cv_lib_zephyr_ZGetSender=no 3215 fi 3216 rm -f conftest.err conftest.$ac_objext \ 3217 conftest$ac_exeext conftest.$ac_ext 3218 LIBS=$ac_check_lib_save_LIBS 3219 fi 3220 echo "$as_me:$LINENO: result: $ac_cv_lib_zephyr_ZGetSender" >&5 3221 echo "${ECHO_T}$ac_cv_lib_zephyr_ZGetSender" >&6 3222 if test $ac_cv_lib_zephyr_ZGetSender = yes; then 3223 cat >>confdefs.h <<_ACEOF 3224 #define HAVE_LIBZEPHYR 1 3225 _ACEOF 3226 3227 LIBS="-lzephyr $LIBS" 3228 3229 fi 3230 3231 echo "$as_me:$LINENO: checking for ZInitLocationInfo in -lzephyr" >&5 3232 echo $ECHO_N "checking for ZInitLocationInfo in -lzephyr... $ECHO_C" >&6 3233 if test "${ac_cv_lib_zephyr_ZInitLocationInfo+set}" = set; then 3234 echo $ECHO_N "(cached) $ECHO_C" >&6 3235 else 3236 ac_check_lib_save_LIBS=$LIBS 3237 LIBS="-lzephyr $LIBS" 3238 cat >conftest.$ac_ext <<_ACEOF 3239 /* confdefs.h. */ 3240 _ACEOF 3241 cat confdefs.h >>conftest.$ac_ext 3242 cat >>conftest.$ac_ext <<_ACEOF 3243 /* end confdefs.h. */ 3244 3245 /* Override any gcc2 internal prototype to avoid an error. */ 3246 #ifdef __cplusplus 3247 extern "C" 3248 #endif 3249 /* We use char because int might match the return type of a gcc2 3250 builtin and then its argument prototype would still apply. */ 3251 char ZInitLocationInfo (); 3252 int 3253 main () 3254 { 3255 ZInitLocationInfo (); 3256 ; 3257 return 0; 3258 } 3259 _ACEOF 3260 rm -f conftest.$ac_objext conftest$ac_exeext 3261 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3262 (eval $ac_link) 2>conftest.er1 3263 ac_status=$? 3264 grep -v '^ *+' conftest.er1 >conftest.err 3265 rm -f conftest.er1 3266 cat conftest.err >&5 3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3268 (exit $ac_status); } && 3269 { ac_try='test -z "$ac_c_werror_flag" 3270 || test ! -s conftest.err' 3271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3272 (eval $ac_try) 2>&5 3273 ac_status=$? 3274 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3275 (exit $ac_status); }; } && 3276 { ac_try='test -s conftest$ac_exeext' 3277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3278 (eval $ac_try) 2>&5 3279 ac_status=$? 3280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3281 (exit $ac_status); }; }; then 3282 ac_cv_lib_zephyr_ZInitLocationInfo=yes 3283 else 3284 echo "$as_me: failed program was:" >&5 3285 sed 's/^/| /' conftest.$ac_ext >&5 3286 3287 ac_cv_lib_zephyr_ZInitLocationInfo=no 3288 fi 3289 rm -f conftest.err conftest.$ac_objext \ 3290 conftest$ac_exeext conftest.$ac_ext 3291 LIBS=$ac_check_lib_save_LIBS 3292 fi 3293 echo "$as_me:$LINENO: result: $ac_cv_lib_zephyr_ZInitLocationInfo" >&5 3294 echo "${ECHO_T}$ac_cv_lib_zephyr_ZInitLocationInfo" >&6 3666 { echo "$as_me:$LINENO: result: $ac_cv_lib_zephyr_ZInitLocationInfo" >&5 3667 echo "${ECHO_T}$ac_cv_lib_zephyr_ZInitLocationInfo" >&6; } 3295 3668 if test $ac_cv_lib_zephyr_ZInitLocationInfo = yes; then 3296 3669 … … 3306 3679 3307 3680 3308 for ac_func in use_default_colors des_string_to_key des_key_sched des_ecb_encrypt 3681 3682 for ac_func in use_default_colors resizeterm des_string_to_key des_key_sched des_ecb_encrypt 3309 3683 do 3310 3684 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 3311 echo "$as_me:$LINENO: checking for $ac_func" >&53312 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 3313 if eval "test \"\${$as_ac_var+set}\" = set"; then3685 { echo "$as_me:$LINENO: checking for $ac_func" >&5 3686 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 3687 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 3314 3688 echo $ECHO_N "(cached) $ECHO_C" >&6 3315 3689 else … … 3337 3711 #undef $ac_func 3338 3712 3339 /* Override any gcc2 internal prototype to avoid an error. */ 3713 /* Override any GCC internal prototype to avoid an error. 3714 Use char because int might match the return type of a GCC 3715 builtin and then its argument prototype would still apply. */ 3340 3716 #ifdef __cplusplus 3341 3717 extern "C" 3342 {3343 3718 #endif 3344 /* We use char because int might match the return type of a gcc23345 builtin and then its argument prototype would still apply. */3346 3719 char $ac_func (); 3347 3720 /* The GNU C library defines this for functions which it implements 3348 3721 to always fail with ENOSYS. Some functions are actually named 3349 3722 something starting with __ and the normal name is an alias. */ 3350 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)3723 #if defined __stub_$ac_func || defined __stub___$ac_func 3351 3724 choke me 3352 #else3353 char (*f) () = $ac_func;3354 #endif3355 #ifdef __cplusplus3356 }3357 3725 #endif 3358 3726 … … 3360 3728 main () 3361 3729 { 3362 return f != $ac_func;3730 return $ac_func (); 3363 3731 ; 3364 3732 return 0; … … 3366 3734 _ACEOF 3367 3735 rm -f conftest.$ac_objext conftest$ac_exeext 3368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3369 (eval $ac_link) 2>conftest.er1 3736 if { (ac_try="$ac_link" 3737 case "(($ac_try" in 3738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3739 *) ac_try_echo=$ac_try;; 3740 esac 3741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3742 (eval "$ac_link") 2>conftest.er1 3370 3743 ac_status=$? 3371 3744 grep -v '^ *+' conftest.er1 >conftest.err … … 3373 3746 cat conftest.err >&5 3374 3747 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3375 (exit $ac_status); } && 3376 { ac_try='test -z "$ac_c_werror_flag" 3377 || test ! -s conftest.err' 3378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3379 (eval $ac_try) 2>&5 3380 ac_status=$? 3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3382 (exit $ac_status); }; } && 3383 { ac_try='test -s conftest$ac_exeext' 3384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3385 (eval $ac_try) 2>&5 3386 ac_status=$? 3387 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3388 (exit $ac_status); }; }; then 3748 (exit $ac_status); } && { 3749 test -z "$ac_c_werror_flag" || 3750 test ! -s conftest.err 3751 } && test -s conftest$ac_exeext && 3752 $as_test_x conftest$ac_exeext; then 3389 3753 eval "$as_ac_var=yes" 3390 3754 else … … 3392 3756 sed 's/^/| /' conftest.$ac_ext >&5 3393 3757 3394 eval "$as_ac_var=no" 3395 fi 3396 rm -f conftest.err conftest.$ac_objext \ 3758 eval "$as_ac_var=no" 3759 fi 3760 3761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 3397 3762 conftest$ac_exeext conftest.$ac_ext 3398 3763 fi 3399 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 3400 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 3764 ac_res=`eval echo '${'$as_ac_var'}'` 3765 { echo "$as_me:$LINENO: result: $ac_res" >&5 3766 echo "${ECHO_T}$ac_res" >&6; } 3401 3767 if test `eval echo '${'$as_ac_var'}'` = yes; then 3402 3768 cat >>confdefs.h <<_ACEOF … … 3408 3774 3409 3775 3410 echo "$as_me:$LINENO: checking for des_ecb_encrypt prototype" >&53411 echo $ECHO_N "checking for des_ecb_encrypt prototype... $ECHO_C" >&6 3776 { echo "$as_me:$LINENO: checking for des_ecb_encrypt prototype" >&5 3777 echo $ECHO_N "checking for des_ecb_encrypt prototype... $ECHO_C" >&6; } 3412 3778 cat >conftest.$ac_ext <<_ACEOF 3413 3779 /* confdefs.h. */ … … 3427 3793 _ACEOF 3428 3794 rm -f conftest.$ac_objext 3429 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3430 (eval $ac_compile) 2>conftest.er1 3795 if { (ac_try="$ac_compile" 3796 case "(($ac_try" in 3797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3798 *) ac_try_echo=$ac_try;; 3799 esac 3800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3801 (eval "$ac_compile") 2>conftest.er1 3431 3802 ac_status=$? 3432 3803 grep -v '^ *+' conftest.er1 >conftest.err … … 3434 3805 cat conftest.err >&5 3435 3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3436 (exit $ac_status); } && 3437 { ac_try='test -z "$ac_c_werror_flag" 3438 || test ! -s conftest.err' 3439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3440 (eval $ac_try) 2>&5 3441 ac_status=$? 3442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3443 (exit $ac_status); }; } && 3444 { ac_try='test -s conftest.$ac_objext' 3445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3446 (eval $ac_try) 2>&5 3447 ac_status=$? 3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3449 (exit $ac_status); }; }; then 3807 (exit $ac_status); } && { 3808 test -z "$ac_c_werror_flag" || 3809 test ! -s conftest.err 3810 } && test -s conftest.$ac_objext; then 3450 3811 ac_cv_des_ecb_encrypt_proto=no 3451 3812 else … … 3453 3814 sed 's/^/| /' conftest.$ac_ext >&5 3454 3815 3455 ac_cv_des_ecb_encrypt_proto=yes 3456 fi 3457 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3458 echo "$as_me:$LINENO: result: $ac_cv_des_ecb_encrypt_proto" >&5 3459 echo "${ECHO_T}$ac_cv_des_ecb_encrypt_proto" >&6 3816 ac_cv_des_ecb_encrypt_proto=yes 3817 fi 3818 3819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3820 { echo "$as_me:$LINENO: result: $ac_cv_des_ecb_encrypt_proto" >&5 3821 echo "${ECHO_T}$ac_cv_des_ecb_encrypt_proto" >&6; } 3460 3822 if test "$ac_cv_des_ecb_encrypt_proto" = yes; then 3461 3823 … … 3471 3833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3472 3834 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3473 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&53474 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 3835 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3836 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3475 3837 # On Suns, sometimes $CPP names a directory. 3476 3838 if test -n "$CPP" && test -d "$CPP"; then … … 3506 3868 Syntax error 3507 3869 _ACEOF 3508 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3509 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3870 if { (ac_try="$ac_cpp conftest.$ac_ext" 3871 case "(($ac_try" in 3872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3873 *) ac_try_echo=$ac_try;; 3874 esac 3875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3510 3877 ac_status=$? 3511 3878 grep -v '^ *+' conftest.er1 >conftest.err … … 3513 3880 cat conftest.err >&5 3514 3881 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3515 (exit $ac_status); } >/dev/null; then 3516 if test -s conftest.err; then 3517 ac_cpp_err=$ac_c_preproc_warn_flag 3518 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3519 else 3520 ac_cpp_err= 3521 fi 3522 else 3523 ac_cpp_err=yes 3524 fi 3525 if test -z "$ac_cpp_err"; then 3882 (exit $ac_status); } >/dev/null && { 3883 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3884 test ! -s conftest.err 3885 }; then 3526 3886 : 3527 3887 else … … 3532 3892 continue 3533 3893 fi 3894 3534 3895 rm -f conftest.err conftest.$ac_ext 3535 3896 3536 # OK, works on sane cases. Now check whether non -existent headers3897 # OK, works on sane cases. Now check whether nonexistent headers 3537 3898 # can be detected and how. 3538 3899 cat >conftest.$ac_ext <<_ACEOF … … 3544 3905 #include <ac_nonexistent.h> 3545 3906 _ACEOF 3546 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3547 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3907 if { (ac_try="$ac_cpp conftest.$ac_ext" 3908 case "(($ac_try" in 3909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3910 *) ac_try_echo=$ac_try;; 3911 esac 3912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3913 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3548 3914 ac_status=$? 3549 3915 grep -v '^ *+' conftest.er1 >conftest.err … … 3551 3917 cat conftest.err >&5 3552 3918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3553 (exit $ac_status); } >/dev/null; then 3554 if test -s conftest.err; then 3555 ac_cpp_err=$ac_c_preproc_warn_flag 3556 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3557 else 3558 ac_cpp_err= 3559 fi 3560 else 3561 ac_cpp_err=yes 3562 fi 3563 if test -z "$ac_cpp_err"; then 3919 (exit $ac_status); } >/dev/null && { 3920 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3921 test ! -s conftest.err 3922 }; then 3564 3923 # Broken: success on invalid input. 3565 3924 continue … … 3572 3931 break 3573 3932 fi 3933 3574 3934 rm -f conftest.err conftest.$ac_ext 3575 3935 … … 3589 3949 ac_cv_prog_CPP=$CPP 3590 3950 fi 3591 echo "$as_me:$LINENO: result: $CPP" >&53592 echo "${ECHO_T}$CPP" >&6 3951 { echo "$as_me:$LINENO: result: $CPP" >&5 3952 echo "${ECHO_T}$CPP" >&6; } 3593 3953 ac_preproc_ok=false 3594 3954 for ac_c_preproc_warn_flag in '' yes … … 3613 3973 Syntax error 3614 3974 _ACEOF 3615 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3616 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3975 if { (ac_try="$ac_cpp conftest.$ac_ext" 3976 case "(($ac_try" in 3977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3978 *) ac_try_echo=$ac_try;; 3979 esac 3980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3981 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3617 3982 ac_status=$? 3618 3983 grep -v '^ *+' conftest.er1 >conftest.err … … 3620 3985 cat conftest.err >&5 3621 3986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3622 (exit $ac_status); } >/dev/null; then 3623 if test -s conftest.err; then 3624 ac_cpp_err=$ac_c_preproc_warn_flag 3625 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3626 else 3627 ac_cpp_err= 3628 fi 3629 else 3630 ac_cpp_err=yes 3631 fi 3632 if test -z "$ac_cpp_err"; then 3987 (exit $ac_status); } >/dev/null && { 3988 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 3989 test ! -s conftest.err 3990 }; then 3633 3991 : 3634 3992 else … … 3639 3997 continue 3640 3998 fi 3999 3641 4000 rm -f conftest.err conftest.$ac_ext 3642 4001 3643 # OK, works on sane cases. Now check whether non -existent headers4002 # OK, works on sane cases. Now check whether nonexistent headers 3644 4003 # can be detected and how. 3645 4004 cat >conftest.$ac_ext <<_ACEOF … … 3651 4010 #include <ac_nonexistent.h> 3652 4011 _ACEOF 3653 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3654 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4012 if { (ac_try="$ac_cpp conftest.$ac_ext" 4013 case "(($ac_try" in 4014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4015 *) ac_try_echo=$ac_try;; 4016 esac 4017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4018 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 3655 4019 ac_status=$? 3656 4020 grep -v '^ *+' conftest.er1 >conftest.err … … 3658 4022 cat conftest.err >&5 3659 4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3660 (exit $ac_status); } >/dev/null; then 3661 if test -s conftest.err; then 3662 ac_cpp_err=$ac_c_preproc_warn_flag 3663 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3664 else 3665 ac_cpp_err= 3666 fi 3667 else 3668 ac_cpp_err=yes 3669 fi 3670 if test -z "$ac_cpp_err"; then 4024 (exit $ac_status); } >/dev/null && { 4025 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4026 test ! -s conftest.err 4027 }; then 3671 4028 # Broken: success on invalid input. 3672 4029 continue … … 3679 4036 break 3680 4037 fi 4038 3681 4039 rm -f conftest.err conftest.$ac_ext 3682 4040 … … 3701 4059 3702 4060 3703 echo "$as_me:$LINENO: checking for egrep" >&53704 echo $ECHO_N "checking for egrep... $ECHO_C" >&63705 if test "${ac_cv_p rog_egrep+set}" = set; then4061 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 4062 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 4063 if test "${ac_cv_path_GREP+set}" = set; then 3706 4064 echo $ECHO_N "(cached) $ECHO_C" >&6 3707 4065 else 3708 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3709 then ac_cv_prog_egrep='grep -E' 3710 else ac_cv_prog_egrep='egrep' 4066 # Extract the first word of "grep ggrep" to use in msg output 4067 if test -z "$GREP"; then 4068 set dummy grep ggrep; ac_prog_name=$2 4069 if test "${ac_cv_path_GREP+set}" = set; then 4070 echo $ECHO_N "(cached) $ECHO_C" >&6 4071 else 4072 ac_path_GREP_found=false 4073 # Loop through the user's path and test for each of PROGNAME-LIST 4074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4075 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4076 do 4077 IFS=$as_save_IFS 4078 test -z "$as_dir" && as_dir=. 4079 for ac_prog in grep ggrep; do 4080 for ac_exec_ext in '' $ac_executable_extensions; do 4081 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4082 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4083 # Check for GNU ac_path_GREP and select it if it is found. 4084 # Check for GNU $ac_path_GREP 4085 case `"$ac_path_GREP" --version 2>&1` in 4086 *GNU*) 4087 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4088 *) 4089 ac_count=0 4090 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4091 while : 4092 do 4093 cat "conftest.in" "conftest.in" >"conftest.tmp" 4094 mv "conftest.tmp" "conftest.in" 4095 cp "conftest.in" "conftest.nl" 4096 echo 'GREP' >> "conftest.nl" 4097 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4098 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4099 ac_count=`expr $ac_count + 1` 4100 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4101 # Best one so far, save it but keep looking for a better one 4102 ac_cv_path_GREP="$ac_path_GREP" 4103 ac_path_GREP_max=$ac_count 3711 4104 fi 3712 fi 3713 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3714 echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3715 EGREP=$ac_cv_prog_egrep 3716 3717 3718 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 3719 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4105 # 10*(2^10) chars as input seems more than enough 4106 test $ac_count -gt 10 && break 4107 done 4108 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4109 esac 4110 4111 4112 $ac_path_GREP_found && break 3 4113 done 4114 done 4115 4116 done 4117 IFS=$as_save_IFS 4118 4119 4120 fi 4121 4122 GREP="$ac_cv_path_GREP" 4123 if test -z "$GREP"; then 4124 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4125 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4126 { (exit 1); exit 1; }; } 4127 fi 4128 4129 else 4130 ac_cv_path_GREP=$GREP 4131 fi 4132 4133 4134 fi 4135 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4136 echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 4137 GREP="$ac_cv_path_GREP" 4138 4139 4140 { echo "$as_me:$LINENO: checking for egrep" >&5 4141 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 4142 if test "${ac_cv_path_EGREP+set}" = set; then 4143 echo $ECHO_N "(cached) $ECHO_C" >&6 4144 else 4145 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4146 then ac_cv_path_EGREP="$GREP -E" 4147 else 4148 # Extract the first word of "egrep" to use in msg output 4149 if test -z "$EGREP"; then 4150 set dummy egrep; ac_prog_name=$2 4151 if test "${ac_cv_path_EGREP+set}" = set; then 4152 echo $ECHO_N "(cached) $ECHO_C" >&6 4153 else 4154 ac_path_EGREP_found=false 4155 # Loop through the user's path and test for each of PROGNAME-LIST 4156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4157 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4158 do 4159 IFS=$as_save_IFS 4160 test -z "$as_dir" && as_dir=. 4161 for ac_prog in egrep; do 4162 for ac_exec_ext in '' $ac_executable_extensions; do 4163 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4164 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4165 # Check for GNU ac_path_EGREP and select it if it is found. 4166 # Check for GNU $ac_path_EGREP 4167 case `"$ac_path_EGREP" --version 2>&1` in 4168 *GNU*) 4169 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4170 *) 4171 ac_count=0 4172 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4173 while : 4174 do 4175 cat "conftest.in" "conftest.in" >"conftest.tmp" 4176 mv "conftest.tmp" "conftest.in" 4177 cp "conftest.in" "conftest.nl" 4178 echo 'EGREP' >> "conftest.nl" 4179 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4180 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4181 ac_count=`expr $ac_count + 1` 4182 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4183 # Best one so far, save it but keep looking for a better one 4184 ac_cv_path_EGREP="$ac_path_EGREP" 4185 ac_path_EGREP_max=$ac_count 4186 fi 4187 # 10*(2^10) chars as input seems more than enough 4188 test $ac_count -gt 10 && break 4189 done 4190 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4191 esac 4192 4193 4194 $ac_path_EGREP_found && break 3 4195 done 4196 done 4197 4198 done 4199 IFS=$as_save_IFS 4200 4201 4202 fi 4203 4204 EGREP="$ac_cv_path_EGREP" 4205 if test -z "$EGREP"; then 4206 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4207 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4208 { (exit 1); exit 1; }; } 4209 fi 4210 4211 else 4212 ac_cv_path_EGREP=$EGREP 4213 fi 4214 4215 4216 fi 4217 fi 4218 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4219 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } 4220 EGREP="$ac_cv_path_EGREP" 4221 4222 4223 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4224 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } 3720 4225 if test "${ac_cv_header_stdc+set}" = set; then 3721 4226 echo $ECHO_N "(cached) $ECHO_C" >&6 … … 3741 4246 _ACEOF 3742 4247 rm -f conftest.$ac_objext 3743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3744 (eval $ac_compile) 2>conftest.er1 4248 if { (ac_try="$ac_compile" 4249 case "(($ac_try" in 4250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4251 *) ac_try_echo=$ac_try;; 4252 esac 4253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4254 (eval "$ac_compile") 2>conftest.er1 3745 4255 ac_status=$? 3746 4256 grep -v '^ *+' conftest.er1 >conftest.err … … 3748 4258 cat conftest.err >&5 3749 4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3750 (exit $ac_status); } && 3751 { ac_try='test -z "$ac_c_werror_flag" 3752 || test ! -s conftest.err' 3753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3754 (eval $ac_try) 2>&5 3755 ac_status=$? 3756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3757 (exit $ac_status); }; } && 3758 { ac_try='test -s conftest.$ac_objext' 3759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3760 (eval $ac_try) 2>&5 3761 ac_status=$? 3762 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3763 (exit $ac_status); }; }; then 4260 (exit $ac_status); } && { 4261 test -z "$ac_c_werror_flag" || 4262 test ! -s conftest.err 4263 } && test -s conftest.$ac_objext; then 3764 4264 ac_cv_header_stdc=yes 3765 4265 else … … 3767 4267 sed 's/^/| /' conftest.$ac_ext >&5 3768 4268 3769 ac_cv_header_stdc=no 3770 fi 3771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4269 ac_cv_header_stdc=no 4270 fi 4271 4272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3772 4273 3773 4274 if test $ac_cv_header_stdc = yes; then … … 3825 4326 /* end confdefs.h. */ 3826 4327 #include <ctype.h> 4328 #include <stdlib.h> 3827 4329 #if ((' ' & 0x0FF) == 0x020) 3828 4330 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') … … 3844 4346 if (XOR (islower (i), ISLOWER (i)) 3845 4347 || toupper (i) != TOUPPER (i)) 3846 exit(2);3847 exit (0);4348 return 2; 4349 return 0; 3848 4350 } 3849 4351 _ACEOF 3850 4352 rm -f conftest$ac_exeext 3851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3852 (eval $ac_link) 2>&5 4353 if { (ac_try="$ac_link" 4354 case "(($ac_try" in 4355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4356 *) ac_try_echo=$ac_try;; 4357 esac 4358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4359 (eval "$ac_link") 2>&5 3853 4360 ac_status=$? 3854 4361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3855 4362 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 3856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3857 (eval $ac_try) 2>&5 4363 { (case "(($ac_try" in 4364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4365 *) ac_try_echo=$ac_try;; 4366 esac 4367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4368 (eval "$ac_try") 2>&5 3858 4369 ac_status=$? 3859 4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5 … … 3868 4379 ac_cv_header_stdc=no 3869 4380 fi 3870 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 3871 fi 3872 fi 3873 fi 3874 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 3875 echo "${ECHO_T}$ac_cv_header_stdc" >&6 4381 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4382 fi 4383 4384 4385 fi 4386 fi 4387 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4388 echo "${ECHO_T}$ac_cv_header_stdc" >&6; } 3876 4389 if test $ac_cv_header_stdc = yes; then 3877 4390 … … 3882 4395 fi 3883 4396 3884 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&53885 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6 4397 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 4398 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } 3886 4399 if test "${ac_cv_header_sys_wait_h+set}" = set; then 3887 4400 echo $ECHO_N "(cached) $ECHO_C" >&6 … … 3896 4409 #include <sys/wait.h> 3897 4410 #ifndef WEXITSTATUS 3898 # define WEXITSTATUS(stat_val) ((unsigned )(stat_val) >> 8)4411 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 3899 4412 #endif 3900 4413 #ifndef WIFEXITED … … 3913 4426 _ACEOF 3914 4427 rm -f conftest.$ac_objext 3915 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3916 (eval $ac_compile) 2>conftest.er1 4428 if { (ac_try="$ac_compile" 4429 case "(($ac_try" in 4430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4431 *) ac_try_echo=$ac_try;; 4432 esac 4433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4434 (eval "$ac_compile") 2>conftest.er1 3917 4435 ac_status=$? 3918 4436 grep -v '^ *+' conftest.er1 >conftest.err … … 3920 4438 cat conftest.err >&5 3921 4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3922 (exit $ac_status); } && 3923 { ac_try='test -z "$ac_c_werror_flag" 3924 || test ! -s conftest.err' 3925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3926 (eval $ac_try) 2>&5 3927 ac_status=$? 3928 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3929 (exit $ac_status); }; } && 3930 { ac_try='test -s conftest.$ac_objext' 3931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3932 (eval $ac_try) 2>&5 3933 ac_status=$? 3934 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3935 (exit $ac_status); }; }; then 4440 (exit $ac_status); } && { 4441 test -z "$ac_c_werror_flag" || 4442 test ! -s conftest.err 4443 } && test -s conftest.$ac_objext; then 3936 4444 ac_cv_header_sys_wait_h=yes 3937 4445 else … … 3939 4447 sed 's/^/| /' conftest.$ac_ext >&5 3940 4448 3941 ac_cv_header_sys_wait_h=no 3942 fi 3943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3944 fi 3945 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 3946 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6 4449 ac_cv_header_sys_wait_h=no 4450 fi 4451 4452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4453 fi 4454 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 4455 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; } 3947 4456 if test $ac_cv_header_sys_wait_h = yes; then 3948 4457 … … 3967 4476 do 3968 4477 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 3969 echo "$as_me:$LINENO: checking for $ac_header" >&53970 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 3971 if eval "test \"\${$as_ac_Header+set}\" = set"; then4478 { echo "$as_me:$LINENO: checking for $ac_header" >&5 4479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 3972 4481 echo $ECHO_N "(cached) $ECHO_C" >&6 3973 4482 else … … 3983 4492 _ACEOF 3984 4493 rm -f conftest.$ac_objext 3985 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3986 (eval $ac_compile) 2>conftest.er1 4494 if { (ac_try="$ac_compile" 4495 case "(($ac_try" in 4496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4497 *) ac_try_echo=$ac_try;; 4498 esac 4499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4500 (eval "$ac_compile") 2>conftest.er1 3987 4501 ac_status=$? 3988 4502 grep -v '^ *+' conftest.er1 >conftest.err … … 3990 4504 cat conftest.err >&5 3991 4505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3992 (exit $ac_status); } && 3993 { ac_try='test -z "$ac_c_werror_flag" 3994 || test ! -s conftest.err' 3995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3996 (eval $ac_try) 2>&5 3997 ac_status=$? 3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3999 (exit $ac_status); }; } && 4000 { ac_try='test -s conftest.$ac_objext' 4001 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4002 (eval $ac_try) 2>&5 4003 ac_status=$? 4004 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4005 (exit $ac_status); }; }; then 4506 (exit $ac_status); } && { 4507 test -z "$ac_c_werror_flag" || 4508 test ! -s conftest.err 4509 } && test -s conftest.$ac_objext; then 4006 4510 eval "$as_ac_Header=yes" 4007 4511 else … … 4009 4513 sed 's/^/| /' conftest.$ac_ext >&5 4010 4514 4011 eval "$as_ac_Header=no" 4012 fi 4013 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4014 fi 4015 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4016 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4515 eval "$as_ac_Header=no" 4516 fi 4517 4518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4519 fi 4520 ac_res=`eval echo '${'$as_ac_Header'}'` 4521 { echo "$as_me:$LINENO: result: $ac_res" >&5 4522 echo "${ECHO_T}$ac_res" >&6; } 4017 4523 if test `eval echo '${'$as_ac_Header'}'` = yes; then 4018 4524 cat >>confdefs.h <<_ACEOF … … 4033 4539 do 4034 4540 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4035 if eval "test \"\${$as_ac_Header+set}\" = set"; then4036 echo "$as_me:$LINENO: checking for $ac_header" >&54037 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4038 if eval "test \"\${$as_ac_Header+set}\" = set"; then4541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4542 { echo "$as_me:$LINENO: checking for $ac_header" >&5 4543 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4039 4545 echo $ECHO_N "(cached) $ECHO_C" >&6 4040 4546 fi 4041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4042 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4547 ac_res=`eval echo '${'$as_ac_Header'}'` 4548 { echo "$as_me:$LINENO: result: $ac_res" >&5 4549 echo "${ECHO_T}$ac_res" >&6; } 4043 4550 else 4044 4551 # Is the header compilable? 4045 echo "$as_me:$LINENO: checking $ac_header usability" >&54046 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4552 { echo "$as_me:$LINENO: checking $ac_header usability" >&5 4553 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } 4047 4554 cat >conftest.$ac_ext <<_ACEOF 4048 4555 /* confdefs.h. */ … … 4055 4562 _ACEOF 4056 4563 rm -f conftest.$ac_objext 4057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4058 (eval $ac_compile) 2>conftest.er1 4564 if { (ac_try="$ac_compile" 4565 case "(($ac_try" in 4566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4567 *) ac_try_echo=$ac_try;; 4568 esac 4569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4570 (eval "$ac_compile") 2>conftest.er1 4059 4571 ac_status=$? 4060 4572 grep -v '^ *+' conftest.er1 >conftest.err … … 4062 4574 cat conftest.err >&5 4063 4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4064 (exit $ac_status); } && 4065 { ac_try='test -z "$ac_c_werror_flag" 4066 || test ! -s conftest.err' 4067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4068 (eval $ac_try) 2>&5 4069 ac_status=$? 4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4071 (exit $ac_status); }; } && 4072 { ac_try='test -s conftest.$ac_objext' 4073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4074 (eval $ac_try) 2>&5 4075 ac_status=$? 4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4077 (exit $ac_status); }; }; then 4576 (exit $ac_status); } && { 4577 test -z "$ac_c_werror_flag" || 4578 test ! -s conftest.err 4579 } && test -s conftest.$ac_objext; then 4078 4580 ac_header_compiler=yes 4079 4581 else … … 4081 4583 sed 's/^/| /' conftest.$ac_ext >&5 4082 4584 4083 ac_header_compiler=no 4084 fi 4085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4086 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4087 echo "${ECHO_T}$ac_header_compiler" >&6 4585 ac_header_compiler=no 4586 fi 4587 4588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4589 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4590 echo "${ECHO_T}$ac_header_compiler" >&6; } 4088 4591 4089 4592 # Is the header present? 4090 echo "$as_me:$LINENO: checking $ac_header presence" >&54091 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4593 { echo "$as_me:$LINENO: checking $ac_header presence" >&5 4594 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } 4092 4595 cat >conftest.$ac_ext <<_ACEOF 4093 4596 /* confdefs.h. */ … … 4098 4601 #include <$ac_header> 4099 4602 _ACEOF 4100 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4101 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4603 if { (ac_try="$ac_cpp conftest.$ac_ext" 4604 case "(($ac_try" in 4605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4606 *) ac_try_echo=$ac_try;; 4607 esac 4608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 4609 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 4102 4610 ac_status=$? 4103 4611 grep -v '^ *+' conftest.er1 >conftest.err … … 4105 4613 cat conftest.err >&5 4106 4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4107 (exit $ac_status); } >/dev/null; then 4108 if test -s conftest.err; then 4109 ac_cpp_err=$ac_c_preproc_warn_flag 4110 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4111 else 4112 ac_cpp_err= 4113 fi 4114 else 4115 ac_cpp_err=yes 4116 fi 4117 if test -z "$ac_cpp_err"; then 4615 (exit $ac_status); } >/dev/null && { 4616 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 4617 test ! -s conftest.err 4618 }; then 4118 4619 ac_header_preproc=yes 4119 4620 else … … 4123 4624 ac_header_preproc=no 4124 4625 fi 4626 4125 4627 rm -f conftest.err conftest.$ac_ext 4126 echo "$as_me:$LINENO: result: $ac_header_preproc" >&54127 echo "${ECHO_T}$ac_header_preproc" >&6 4628 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4629 echo "${ECHO_T}$ac_header_preproc" >&6; } 4128 4630 4129 4631 # So? What about this header? … … 4149 4651 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4150 4652 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4151 ( 4152 cat <<\_ASBOX 4153 ## ------------------------------------------ ## 4154 ## Report this to the AC_PACKAGE_NAME lists. ## 4155 ## ------------------------------------------ ## 4156 _ASBOX 4157 ) | 4158 sed "s/^/$as_me: WARNING: /" >&2 4653 4159 4654 ;; 4160 4655 esac 4161 echo "$as_me:$LINENO: checking for $ac_header" >&54162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4163 if eval "test \"\${$as_ac_Header+set}\" = set"; then4656 { echo "$as_me:$LINENO: checking for $ac_header" >&5 4657 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } 4658 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4164 4659 echo $ECHO_N "(cached) $ECHO_C" >&6 4165 4660 else 4166 4661 eval "$as_ac_Header=\$ac_header_preproc" 4167 4662 fi 4168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4169 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4663 ac_res=`eval echo '${'$as_ac_Header'}'` 4664 { echo "$as_me:$LINENO: result: $ac_res" >&5 4665 echo "${ECHO_T}$ac_res" >&6; } 4170 4666 4171 4667 fi … … 4184 4680 CFLAGS=${CFLAGS}\ ${FOO} 4185 4681 4186 echo "$as_me:$LINENO: checking for the perl xsubpp precompiler" >&54187 echo $ECHO_N "checking for the perl xsubpp precompiler... $ECHO_C" >&6 4682 { echo "$as_me:$LINENO: checking for the perl xsubpp precompiler" >&5 4683 echo $ECHO_N "checking for the perl xsubpp precompiler... $ECHO_C" >&6; } 4188 4684 XSUBPPDIR="`(perl -MExtUtils::MakeMaker -e 'print ExtUtils::MakeMaker->new({NAME => qw(owl)})->tool_xsubpp;') | grep \^XSUBPPDIR | sed -e 's/XSUBPPDIR = //g;'`" 4189 4685 if test -n "${XSUBPPDIR}"; then 4190 echo "$as_me:$LINENO: result: ${XSUBPPDIR}" >&54191 echo "${ECHO_T}${XSUBPPDIR}" >&6 4686 { echo "$as_me:$LINENO: result: ${XSUBPPDIR}" >&5 4687 echo "${ECHO_T}${XSUBPPDIR}" >&6; } 4192 4688 else 4193 4689 { { echo "$as_me:$LINENO: error: not found" >&5 … … 4200 4696 LDFLAGS=${LDFLAGS}\ ${FOO} 4201 4697 4202 echo "$as_me:$LINENO: checking for /usr/share/terminfo" >&54203 echo $ECHO_N "checking for /usr/share/terminfo... $ECHO_C" >&6 4698 { echo "$as_me:$LINENO: checking for /usr/share/terminfo" >&5 4699 echo $ECHO_N "checking for /usr/share/terminfo... $ECHO_C" >&6; } 4204 4700 if test "${ac_cv_file__usr_share_terminfo+set}" = set; then 4205 4701 echo $ECHO_N "(cached) $ECHO_C" >&6 … … 4215 4711 fi 4216 4712 fi 4217 echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_terminfo" >&54218 echo "${ECHO_T}$ac_cv_file__usr_share_terminfo" >&6 4713 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_terminfo" >&5 4714 echo "${ECHO_T}$ac_cv_file__usr_share_terminfo" >&6; } 4219 4715 if test $ac_cv_file__usr_share_terminfo = yes; then 4220 4716 … … 4224 4720 4225 4721 else 4226 echo "$as_me:$LINENO: checking for /usr/share/lib/terminfo" >&54227 echo $ECHO_N "checking for /usr/share/lib/terminfo... $ECHO_C" >&6 4722 { echo "$as_me:$LINENO: checking for /usr/share/lib/terminfo" >&5 4723 echo $ECHO_N "checking for /usr/share/lib/terminfo... $ECHO_C" >&6; } 4228 4724 if test "${ac_cv_file__usr_share_lib_terminfo+set}" = set; then 4229 4725 echo $ECHO_N "(cached) $ECHO_C" >&6 … … 4239 4735 fi 4240 4736 fi 4241 echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_lib_terminfo" >&54242 echo "${ECHO_T}$ac_cv_file__usr_share_lib_terminfo" >&6 4737 { echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_lib_terminfo" >&5 4738 echo "${ECHO_T}$ac_cv_file__usr_share_lib_terminfo" >&6; } 4243 4739 if test $ac_cv_file__usr_share_lib_terminfo = yes; then 4244 4740 … … 4259 4755 4260 4756 ac_aux_dir= 4261 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do4262 if test -f $ac_dir/install-sh; then4757 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 4758 if test -f "$ac_dir/install-sh"; then 4263 4759 ac_aux_dir=$ac_dir 4264 4760 ac_install_sh="$ac_aux_dir/install-sh -c" 4265 4761 break 4266 elif test -f $ac_dir/install.sh; then4762 elif test -f "$ac_dir/install.sh"; then 4267 4763 ac_aux_dir=$ac_dir 4268 4764 ac_install_sh="$ac_aux_dir/install.sh -c" 4269 4765 break 4270 elif test -f $ac_dir/shtool; then4766 elif test -f "$ac_dir/shtool"; then 4271 4767 ac_aux_dir=$ac_dir 4272 4768 ac_install_sh="$ac_aux_dir/shtool install -c" … … 4275 4771 done 4276 4772 if test -z "$ac_aux_dir"; then 4277 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&54278 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}4773 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 4774 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 4279 4775 { (exit 1); exit 1; }; } 4280 4776 fi 4281 ac_config_guess="$SHELL $ac_aux_dir/config.guess" 4282 ac_config_sub="$SHELL $ac_aux_dir/config.sub" 4283 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 4777 4778 # These three variables are undocumented and unsupported, 4779 # and are intended to be withdrawn in a future Autoconf release. 4780 # They can cause serious problems if a builder's source tree is in a directory 4781 # whose full name contains unusual characters. 4782 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 4783 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 4784 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 4785 4284 4786 4285 4787 # Find a good install program. We prefer a C program (faster), … … 4296 4798 # OS/2's system install, which has a completely different semantic 4297 4799 # ./install, which can be erroneously created by make from ./install.sh. 4298 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&54299 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 4800 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 4801 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 4300 4802 if test -z "$INSTALL"; then 4301 4803 if test "${ac_cv_path_install+set}" = set; then … … 4319 4821 for ac_prog in ginstall scoinst install; do 4320 4822 for ac_exec_ext in '' $ac_executable_extensions; do 4321 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then4823 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 4322 4824 if test $ac_prog = install && 4323 4825 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then … … 4338 4840 esac 4339 4841 done 4842 IFS=$as_save_IFS 4340 4843 4341 4844 … … 4344 4847 INSTALL=$ac_cv_path_install 4345 4848 else 4346 # As a last resort, use the slow shell script. We don't cache a4347 # pathfor INSTALL within a source directory, because that will4849 # As a last resort, use the slow shell script. Don't cache a 4850 # value for INSTALL within a source directory, because that will 4348 4851 # break other packages using the cache if that directory is 4349 # removed, or if the path is relative.4852 # removed, or if the value is a relative name. 4350 4853 INSTALL=$ac_install_sh 4351 4854 fi 4352 4855 fi 4353 echo "$as_me:$LINENO: result: $INSTALL" >&54354 echo "${ECHO_T}$INSTALL" >&6 4856 { echo "$as_me:$LINENO: result: $INSTALL" >&5 4857 echo "${ECHO_T}$INSTALL" >&6; } 4355 4858 4356 4859 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. … … 4363 4866 4364 4867 4365 4366 4367 4868 subdirs="$subdirs libfaim" 4368 4869 4369 4870 4370 ac_config_files="$ac_config_files Makefile" 4871 ac_config_files="$ac_config_files Makefile" 4872 4371 4873 cat >confcache <<\_ACEOF 4372 4874 # This file is a shell script that caches the results of configure … … 4387 4889 # The following way of writing the cache mishandles newlines in values, 4388 4890 # but we know of no workaround that is simple, portable, and efficient. 4389 # So, don't put newlines in cache variables' values.4891 # So, we kill variables containing newlines. 4390 4892 # Ultrix sh set writes to stderr and can't be redirected directly, 4391 4893 # and sets the high bit in the cache file unless we assign to the vars. 4392 { 4894 ( 4895 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 4896 eval ac_val=\$$ac_var 4897 case $ac_val in #( 4898 *${as_nl}*) 4899 case $ac_var in #( 4900 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 4901 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 4902 esac 4903 case $ac_var in #( 4904 _ | IFS | as_nl) ;; #( 4905 *) $as_unset $ac_var ;; 4906 esac ;; 4907 esac 4908 done 4909 4393 4910 (set) 2>&1 | 4394 case `(ac_space=' '; set | grep ac_space) 2>&1` in4395 * ac_space=\ *)4911 case $as_nl`(ac_space=' '; set) 2>&1` in #( 4912 *${as_nl}ac_space=\ *) 4396 4913 # `set' does not quote correctly, so add quotes (double-quote 4397 4914 # substitution turns \\\\ into \\, and sed turns \\ into \). … … 4399 4916 "s/'/'\\\\''/g; 4400 4917 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 4401 ;; 4918 ;; #( 4402 4919 *) 4403 4920 # `set' quotes correctly as required by POSIX, so do not add quotes. 4404 sed -n \ 4405 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 4921 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 4406 4922 ;; 4407 esac; 4408 } | 4923 esac | 4924 sort 4925 ) | 4409 4926 sed ' 4927 /^ac_cv_env_/b end 4410 4928 t clear 4411 : clear4929 :clear 4412 4930 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 4413 4931 t end 4414 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 4415 : end' >>confcache 4416 if diff $cache_file confcache >/dev/null 2>&1; then :; else 4417 if test -w $cache_file; then 4418 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 4932 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 4933 :end' >>confcache 4934 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 4935 if test -w "$cache_file"; then 4936 test "x$cache_file" != "x/dev/null" && 4937 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 4938 echo "$as_me: updating cache $cache_file" >&6;} 4419 4939 cat confcache >$cache_file 4420 4940 else 4421 echo "not updating unwritable cache $cache_file" 4941 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 4942 echo "$as_me: not updating unwritable cache $cache_file" >&6;} 4422 4943 fi 4423 4944 fi … … 4427 4948 # Let make expand exec_prefix. 4428 4949 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 4429 4430 # VPATH may cause trouble with some makes, so we remove $(srcdir),4431 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and4432 # trailing colons and then remove the whole line if VPATH becomes empty4433 # (actually we leave an empty line to preserve line numbers).4434 if test "x$srcdir" = x.; then4435 ac_vpsub='/^[ ]*VPATH[ ]*=/{4436 s/:*\$(srcdir):*/:/;4437 s/:*\${srcdir}:*/:/;4438 s/:*@srcdir@:*/:/;4439 s/^\([^=]*=[ ]*\):*/\1/;4440 s/:*$//;4441 s/^[^=]*=[ ]*$//;4442 }'4443 fi4444 4950 4445 4951 DEFS=-DHAVE_CONFIG_H … … 4449 4955 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 4450 4956 # 1. Remove the extension, and $U if already installed. 4451 ac_i=`echo "$ac_i" | 4452 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 4453 # 2. Add them. 4454 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 4455 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 4957 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 4958 ac_i=`echo "$ac_i" | sed "$ac_script"` 4959 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 4960 # will be set to the directory where LIBOBJS objects are built. 4961 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 4962 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 4456 4963 done 4457 4964 LIBOBJS=$ac_libobjs … … 4484 4991 ## --------------------- ## 4485 4992 4486 # Be Bourne compatible 4993 # Be more Bourne compatible 4994 DUALCASE=1; export DUALCASE # for MKS sh 4487 4995 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 4488 4996 emulate sh … … 4491 4999 # is contrary to our usage. Disable this feature. 4492 5000 alias -g '${1+"$@"}'='"$@"' 4493 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 4494 set -o posix 4495 fi 4496 DUALCASE=1; export DUALCASE # for MKS sh 4497 4498 # Support unset when possible. 4499 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4500 as_unset=unset 4501 else 4502 as_unset=false 4503 fi 4504 4505 4506 # Work around bugs in pre-3.0 UWIN ksh. 4507 $as_unset ENV MAIL MAILPATH 4508 PS1='$ ' 4509 PS2='> ' 4510 PS4='+ ' 4511 4512 # NLS nuisances. 4513 for as_var in \ 4514 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 4515 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 4516 LC_TELEPHONE LC_TIME 4517 do 4518 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 4519 eval $as_var=C; export $as_var 4520 else 4521 $as_unset $as_var 4522 fi 4523 done 4524 4525 # Required to use basename. 4526 if expr a : '\(a\)' >/dev/null 2>&1; then 4527 as_expr=expr 4528 else 4529 as_expr=false 4530 fi 4531 4532 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 4533 as_basename=basename 4534 else 4535 as_basename=false 4536 fi 4537 4538 4539 # Name of the executable. 4540 as_me=`$as_basename "$0" || 4541 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 4542 X"$0" : 'X\(//\)$' \| \ 4543 X"$0" : 'X\(/\)$' \| \ 4544 . : '\(.\)' 2>/dev/null || 4545 echo X/"$0" | 4546 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 4547 /^X\/\(\/\/\)$/{ s//\1/; q; } 4548 /^X\/\(\/\).*/{ s//\1/; q; } 4549 s/.*/./; q'` 4550 4551 4552 # PATH needs CR, and LINENO needs CR and PATH. 5001 setopt NO_GLOB_SUBST 5002 else 5003 case `(set -o) 2>/dev/null` in 5004 *posix*) set -o posix ;; 5005 esac 5006 5007 fi 5008 5009 5010 5011 5012 # PATH needs CR 4553 5013 # Avoid depending upon Character Ranges. 4554 5014 as_cr_letters='abcdefghijklmnopqrstuvwxyz' … … 4571 5031 fi 4572 5032 4573 4574 as_lineno_1=$LINENO 4575 as_lineno_2=$LINENO 4576 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 4577 test "x$as_lineno_1" != "x$as_lineno_2" && 4578 test "x$as_lineno_3" = "x$as_lineno_2" || { 4579 # Find who we are. Look in the path if we contain no path at all 4580 # relative or not. 4581 case $0 in 4582 *[\\/]* ) as_myself=$0 ;; 4583 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5033 # Support unset when possible. 5034 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5035 as_unset=unset 5036 else 5037 as_unset=false 5038 fi 5039 5040 5041 # IFS 5042 # We need space, tab and new line, in precisely that order. Quoting is 5043 # there to prevent editors from complaining about space-tab. 5044 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 5045 # splitting by setting IFS to empty value.) 5046 as_nl=' 5047 ' 5048 IFS=" "" $as_nl" 5049 5050 # Find who we are. Look in the path if we contain no directory separator. 5051 case $0 in 5052 *[\\/]* ) as_myself=$0 ;; 5053 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4584 5054 for as_dir in $PATH 4585 5055 do … … 4588 5058 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 4589 5059 done 4590 4591 ;; 4592 esac 4593 # We did not find ourselves, most probably we were run as `sh COMMAND' 4594 # in which case we are not to be found in the path. 4595 if test "x$as_myself" = x; then 4596 as_myself=$0 5060 IFS=$as_save_IFS 5061 5062 ;; 5063 esac 5064 # We did not find ourselves, most probably we were run as `sh COMMAND' 5065 # in which case we are not to be found in the path. 5066 if test "x$as_myself" = x; then 5067 as_myself=$0 5068 fi 5069 if test ! -f "$as_myself"; then 5070 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 5071 { (exit 1); exit 1; } 5072 fi 5073 5074 # Work around bugs in pre-3.0 UWIN ksh. 5075 for as_var in ENV MAIL MAILPATH 5076 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 5077 done 5078 PS1='$ ' 5079 PS2='> ' 5080 PS4='+ ' 5081 5082 # NLS nuisances. 5083 for as_var in \ 5084 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 5085 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 5086 LC_TELEPHONE LC_TIME 5087 do 5088 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 5089 eval $as_var=C; export $as_var 5090 else 5091 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 4597 5092 fi 4598 if test ! -f "$as_myself"; then 4599 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 4600 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 4601 { (exit 1); exit 1; }; } 4602 fi 4603 case $CONFIG_SHELL in 4604 '') 4605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4606 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 4607 do 4608 IFS=$as_save_IFS 4609 test -z "$as_dir" && as_dir=. 4610 for as_base in sh bash ksh sh5; do 4611 case $as_dir in 4612 /*) 4613 if ("$as_dir/$as_base" -c ' 5093 done 5094 5095 # Required to use basename. 5096 if expr a : '\(a\)' >/dev/null 2>&1 && 5097 test "X`expr 00001 : '.*\(...\)'`" = X001; then 5098 as_expr=expr 5099 else 5100 as_expr=false 5101 fi 5102 5103 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 5104 as_basename=basename 5105 else 5106 as_basename=false 5107 fi 5108 5109 5110 # Name of the executable. 5111 as_me=`$as_basename -- "$0" || 5112 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 5113 X"$0" : 'X\(//\)$' \| \ 5114 X"$0" : 'X\(/\)' \| . 2>/dev/null || 5115 echo X/"$0" | 5116 sed '/^.*\/\([^/][^/]*\)\/*$/{ 5117 s//\1/ 5118 q 5119 } 5120 /^X\/\(\/\/\)$/{ 5121 s//\1/ 5122 q 5123 } 5124 /^X\/\(\/\).*/{ 5125 s//\1/ 5126 q 5127 } 5128 s/.*/./; q'` 5129 5130 # CDPATH. 5131 $as_unset CDPATH 5132 5133 5134 4614 5135 as_lineno_1=$LINENO 4615 5136 as_lineno_2=$LINENO 4616 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`4617 5137 test "x$as_lineno_1" != "x$as_lineno_2" && 4618 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 4619 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 4620 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 4621 CONFIG_SHELL=$as_dir/$as_base 4622 export CONFIG_SHELL 4623 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 4624 fi;; 4625 esac 4626 done 4627 done 4628 ;; 4629 esac 5138 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 4630 5139 4631 5140 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 4632 5141 # uniformly replaced by the line number. The first 'sed' inserts a 4633 # line-number line before each line; the second 'sed' does the real 4634 # work. The second script uses 'N' to pair each line-number line 4635 # with the numbered line, and appends trailing '-' during 4636 # substitution so that $LINENO is not a special case at line end. 5142 # line-number line after each line using $LINENO; the second 'sed' 5143 # does the real work. The second script uses 'N' to pair each 5144 # line-number line with the line containing $LINENO, and appends 5145 # trailing '-' during substitution so that $LINENO is not a special 5146 # case at line end. 4637 5147 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 4638 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 4639 sed '=' <$as_myself | 5148 # scripts with optimization help from Paolo Bonzini. Blame Lee 5149 # E. McMahon (1931-1989) for sed's syntax. :-) 5150 sed -n ' 5151 p 5152 /[$]LINENO/= 5153 ' <$as_myself | 4640 5154 sed ' 5155 s/[$]LINENO.*/&-/ 5156 t lineno 5157 b 5158 :lineno 4641 5159 N 4642 s,$,-, 4643 : loop 4644 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 5160 :loop 5161 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 4645 5162 t loop 4646 s,-$,, 4647 s,^['$as_cr_digits']*\n,, 5163 s/-\n.*// 4648 5164 ' >$as_me.lineno && 4649 chmod +x $as_me.lineno || 4650 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 4651 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 5165 chmod +x "$as_me.lineno" || 5166 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 4652 5167 { (exit 1); exit 1; }; } 4653 5168 4654 5169 # Don't try to exec as it changes $[0], causing all sort of problems 4655 5170 # (the dirname of $[0] is not the place where we might find the 4656 # original and so on. Autoconf is especially sensi ble to this).4657 . ./$as_me.lineno5171 # original and so on. Autoconf is especially sensitive to this). 5172 . "./$as_me.lineno" 4658 5173 # Exit status is that of the last command. 4659 5174 exit … … 4661 5176 4662 5177 4663 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 4664 *c*,-n*) ECHO_N= ECHO_C=' 4665 ' ECHO_T=' ' ;; 4666 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 4667 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 4668 esac 4669 4670 if expr a : '\(a\)' >/dev/null 2>&1; then 5178 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 5179 as_dirname=dirname 5180 else 5181 as_dirname=false 5182 fi 5183 5184 ECHO_C= ECHO_N= ECHO_T= 5185 case `echo -n x` in 5186 -n*) 5187 case `echo 'x\c'` in 5188 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 5189 *) ECHO_C='\c';; 5190 esac;; 5191 *) 5192 ECHO_N='-n';; 5193 esac 5194 5195 if expr a : '\(a\)' >/dev/null 2>&1 && 5196 test "X`expr 00001 : '.*\(...\)'`" = X001; then 4671 5197 as_expr=expr 4672 5198 else … … 4675 5201 4676 5202 rm -f conf$$ conf$$.exe conf$$.file 5203 if test -d conf$$.dir; then 5204 rm -f conf$$.dir/conf$$.file 5205 else 5206 rm -f conf$$.dir 5207 mkdir conf$$.dir 5208 fi 4677 5209 echo >conf$$.file 4678 5210 if ln -s conf$$.file conf$$ 2>/dev/null; then 4679 # We could just check for DJGPP; but this test a) works b) is more generic 4680 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 4681 if test -f conf$$.exe; then 4682 # Don't use ln at all; we don't have any links 5211 as_ln_s='ln -s' 5212 # ... but there are two gotchas: 5213 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 5214 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 5215 # In both cases, we have to default to `cp -p'. 5216 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 4683 5217 as_ln_s='cp -p' 4684 else4685 as_ln_s='ln -s'4686 fi4687 5218 elif ln conf$$.file conf$$ 2>/dev/null; then 4688 5219 as_ln_s=ln … … 4690 5221 as_ln_s='cp -p' 4691 5222 fi 4692 rm -f conf$$ conf$$.exe conf$$.file 5223 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 5224 rmdir conf$$.dir 2>/dev/null 4693 5225 4694 5226 if mkdir -p . 2>/dev/null; then … … 4699 5231 fi 4700 5232 4701 as_executable_p="test -f" 5233 if test -x / >/dev/null 2>&1; then 5234 as_test_x='test -x' 5235 else 5236 if ls -dL / >/dev/null 2>&1; then 5237 as_ls_L_option=L 5238 else 5239 as_ls_L_option= 5240 fi 5241 as_test_x=' 5242 eval sh -c '\'' 5243 if test -d "$1"; then 5244 test -d "$1/."; 5245 else 5246 case $1 in 5247 -*)set "./$1";; 5248 esac; 5249 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 5250 ???[sx]*):;;*)false;;esac;fi 5251 '\'' sh 5252 ' 5253 fi 5254 as_executable_p=$as_test_x 4702 5255 4703 5256 # Sed expression to map a string onto a valid CPP name. … … 4708 5261 4709 5262 4710 # IFS4711 # We need space, tab and new line, in precisely that order.4712 as_nl='4713 '4714 IFS=" $as_nl"4715 4716 # CDPATH.4717 $as_unset CDPATH4718 4719 5263 exec 6>&1 4720 5264 4721 # Open the log real soon, to keep \$[0] and so on meaningful, and to5265 # Save the log message, to keep $[0] and so on meaningful, and to 4722 5266 # report actual input values of CONFIG_FILES etc. instead of their 4723 # values after options handling. Logging --version etc. is OK. 4724 exec 5>>config.log 4725 { 4726 echo 4727 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 4728 ## Running $as_me. ## 4729 _ASBOX 4730 } >&5 4731 cat >&5 <<_CSEOF 4732 5267 # values after options handling. 5268 ac_log=" 4733 5269 This file was extended by $as_me, which was 4734 generated by GNU Autoconf 2. 59. Invocation command line was5270 generated by GNU Autoconf 2.61. Invocation command line was 4735 5271 4736 5272 CONFIG_FILES = $CONFIG_FILES … … 4740 5276 $ $0 $@ 4741 5277 4742 _CSEOF 4743 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 4744 echo >&5 4745 _ACEOF 4746 5278 on `(hostname || uname -n) 2>/dev/null | sed 1q` 5279 " 5280 5281 _ACEOF 5282 5283 cat >>$CONFIG_STATUS <<_ACEOF 4747 5284 # Files that config.status was made for. 4748 if test -n "$ac_config_files"; then 4749 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 4750 fi 4751 4752 if test -n "$ac_config_headers"; then 4753 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 4754 fi 4755 4756 if test -n "$ac_config_links"; then 4757 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 4758 fi 4759 4760 if test -n "$ac_config_commands"; then 4761 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 4762 fi 5285 config_files="$ac_config_files" 5286 config_headers="$ac_config_headers" 5287 5288 _ACEOF 4763 5289 4764 5290 cat >>$CONFIG_STATUS <<\_ACEOF 4765 4766 5291 ac_cs_usage="\ 4767 5292 \`$as_me' instantiates files from templates according to the … … 4771 5296 4772 5297 -h, --help print this help, then exit 4773 -V, --version print version number , then exit5298 -V, --version print version number and configuration settings, then exit 4774 5299 -q, --quiet do not print progress messages 4775 5300 -d, --debug don't remove temporary files … … 4787 5312 4788 5313 Report bugs to <bug-autoconf@gnu.org>." 4789 _ACEOF 4790 5314 5315 _ACEOF 4791 5316 cat >>$CONFIG_STATUS <<_ACEOF 4792 5317 ac_cs_version="\\ 4793 5318 config.status 4794 configured by $0, generated by GNU Autoconf 2. 59,4795 with options \\"`echo "$ac_configure_args" | sed 's/ [\\""\`\$]/\\\\&/g'`\\"4796 4797 Copyright (C) 200 3Free Software Foundation, Inc.5319 configured by $0, generated by GNU Autoconf 2.61, 5320 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 5321 5322 Copyright (C) 2006 Free Software Foundation, Inc. 4798 5323 This config.status script is free software; the Free Software Foundation 4799 5324 gives unlimited permission to copy, distribute and modify it." 4800 srcdir=$srcdir 4801 INSTALL="$INSTALL" 5325 5326 ac_pwd='$ac_pwd' 5327 srcdir='$srcdir' 5328 INSTALL='$INSTALL' 4802 5329 _ACEOF 4803 5330 … … 4810 5337 case $1 in 4811 5338 --*=*) 4812 ac_option=`expr " x$1" : 'x\([^=]*\)='`4813 ac_optarg=`expr " x$1" : 'x[^=]*=\(.*\)'`5339 ac_option=`expr "X$1" : 'X\([^=]*\)='` 5340 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 4814 5341 ac_shift=: 4815 5342 ;; 4816 -*)5343 *) 4817 5344 ac_option=$1 4818 5345 ac_optarg=$2 4819 5346 ac_shift=shift 4820 5347 ;; 4821 *) # This is not an option, so the user has probably given explicit4822 # arguments.4823 ac_option=$14824 ac_need_defaults=false;;4825 5348 esac 4826 5349 4827 5350 case $ac_option in 4828 5351 # Handling of the options. 4829 _ACEOF4830 cat >>$CONFIG_STATUS <<\_ACEOF4831 5352 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 4832 5353 ac_cs_recheck=: ;; 4833 --version | --vers* | -V ) 4834 echo "$ac_cs_version"; exit 0 ;; 4835 --he | --h) 4836 # Conflict between --help and --header 4837 { { echo "$as_me:$LINENO: error: ambiguous option: $1 4838 Try \`$0 --help' for more information." >&5 4839 echo "$as_me: error: ambiguous option: $1 4840 Try \`$0 --help' for more information." >&2;} 4841 { (exit 1); exit 1; }; };; 4842 --help | --hel | -h ) 4843 echo "$ac_cs_usage"; exit 0 ;; 4844 --debug | --d* | -d ) 5354 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 5355 echo "$ac_cs_version"; exit ;; 5356 --debug | --debu | --deb | --de | --d | -d ) 4845 5357 debug=: ;; 4846 5358 --file | --fil | --fi | --f ) … … 4852 5364 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 4853 5365 ac_need_defaults=false;; 5366 --he | --h) 5367 # Conflict between --help and --header 5368 { echo "$as_me: error: ambiguous option: $1 5369 Try \`$0 --help' for more information." >&2 5370 { (exit 1); exit 1; }; };; 5371 --help | --hel | -h ) 5372 echo "$ac_cs_usage"; exit ;; 4854 5373 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 4855 5374 | -silent | --silent | --silen | --sile | --sil | --si | --s) … … 4857 5376 4858 5377 # This is an error. 4859 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 4860 Try \`$0 --help' for more information." >&5 4861 echo "$as_me: error: unrecognized option: $1 4862 Try \`$0 --help' for more information." >&2;} 5378 -*) { echo "$as_me: error: unrecognized option: $1 5379 Try \`$0 --help' for more information." >&2 4863 5380 { (exit 1); exit 1; }; } ;; 4864 5381 4865 *) ac_config_targets="$ac_config_targets $1" ;; 5382 *) ac_config_targets="$ac_config_targets $1" 5383 ac_need_defaults=false ;; 4866 5384 4867 5385 esac … … 4879 5397 cat >>$CONFIG_STATUS <<_ACEOF 4880 5398 if \$ac_cs_recheck; then 4881 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 4882 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 4883 fi 4884 4885 _ACEOF 4886 4887 4888 4889 4890 5399 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 5400 CONFIG_SHELL=$SHELL 5401 export CONFIG_SHELL 5402 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 5403 fi 5404 5405 _ACEOF 4891 5406 cat >>$CONFIG_STATUS <<\_ACEOF 5407 exec 5>>config.log 5408 { 5409 echo 5410 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 5411 ## Running $as_me. ## 5412 _ASBOX 5413 echo "$ac_log" 5414 } >&5 5415 5416 _ACEOF 5417 cat >>$CONFIG_STATUS <<_ACEOF 5418 _ACEOF 5419 5420 cat >>$CONFIG_STATUS <<\_ACEOF 5421 5422 # Handling of arguments. 4892 5423 for ac_config_target in $ac_config_targets 4893 5424 do 4894 case "$ac_config_target"in4895 # Handling of arguments.4896 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;4897 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 5425 case $ac_config_target in 5426 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 5427 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 5428 4898 5429 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 4899 5430 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} … … 4901 5432 esac 4902 5433 done 5434 4903 5435 4904 5436 # If the user did not use the arguments to specify the items to instantiate, … … 4912 5444 4913 5445 # Have a temporary directory for convenience. Make it in the build tree 4914 # simply because there is no reason to putit here, and in addition,5446 # simply because there is no reason against having it here, and in addition, 4915 5447 # creating and moving files from /tmp can sometimes cause problems. 4916 # Create a temporary directory, and hook for its removal unless debugging. 5448 # Hook for its removal unless debugging. 5449 # Note that there is a small window in which the directory will not be cleaned: 5450 # after its creation but before its name has been assigned to `$tmp'. 4917 5451 $debug || 4918 5452 { 4919 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 5453 tmp= 5454 trap 'exit_status=$? 5455 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 5456 ' 0 4920 5457 trap '{ (exit 1); exit 1; }' 1 2 13 15 4921 5458 } 4922 4923 5459 # Create a (secure) tmp directory for tmp files. 4924 5460 4925 5461 { 4926 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&5462 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 4927 5463 test -n "$tmp" && test -d "$tmp" 4928 5464 } || 4929 5465 { 4930 tmp=./conf stat$$-$RANDOM4931 (umask 077 && mkdir $tmp)5466 tmp=./conf$$-$RANDOM 5467 (umask 077 && mkdir "$tmp") 4932 5468 } || 4933 5469 { … … 4936 5472 } 4937 5473 4938 _ACEOF4939 4940 cat >>$CONFIG_STATUS <<_ACEOF4941 4942 5474 # 4943 # CONFIG_FILES section.5475 # Set up the sed scripts for CONFIG_FILES section. 4944 5476 # 4945 5477 4946 5478 # No need to generate the scripts if there are no CONFIG_FILES. 4947 5479 # This happens for instance when ./config.status config.h 4948 if test -n "\$CONFIG_FILES"; then 4949 # Protect against being on the right side of a sed subst in config.status. 4950 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 4951 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 4952 s,@SHELL@,$SHELL,;t t 4953 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 4954 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 4955 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 4956 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 4957 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 4958 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 4959 s,@exec_prefix@,$exec_prefix,;t t 4960 s,@prefix@,$prefix,;t t 4961 s,@program_transform_name@,$program_transform_name,;t t 4962 s,@bindir@,$bindir,;t t 4963 s,@sbindir@,$sbindir,;t t 4964 s,@libexecdir@,$libexecdir,;t t 4965 s,@datadir@,$datadir,;t t 4966 s,@sysconfdir@,$sysconfdir,;t t 4967 s,@sharedstatedir@,$sharedstatedir,;t t 4968 s,@localstatedir@,$localstatedir,;t t 4969 s,@libdir@,$libdir,;t t 4970 s,@includedir@,$includedir,;t t 4971 s,@oldincludedir@,$oldincludedir,;t t 4972 s,@infodir@,$infodir,;t t 4973 s,@mandir@,$mandir,;t t 4974 s,@build_alias@,$build_alias,;t t 4975 s,@host_alias@,$host_alias,;t t 4976 s,@target_alias@,$target_alias,;t t 4977 s,@DEFS@,$DEFS,;t t 4978 s,@ECHO_C@,$ECHO_C,;t t 4979 s,@ECHO_N@,$ECHO_N,;t t 4980 s,@ECHO_T@,$ECHO_T,;t t 4981 s,@LIBS@,$LIBS,;t t 4982 s,@CC@,$CC,;t t 4983 s,@CFLAGS@,$CFLAGS,;t t 4984 s,@LDFLAGS@,$LDFLAGS,;t t 4985 s,@CPPFLAGS@,$CPPFLAGS,;t t 4986 s,@ac_ct_CC@,$ac_ct_CC,;t t 4987 s,@EXEEXT@,$EXEEXT,;t t 4988 s,@OBJEXT@,$OBJEXT,;t t 4989 s,@CPP@,$CPP,;t t 4990 s,@EGREP@,$EGREP,;t t 4991 s,@XSUBPPDIR@,$XSUBPPDIR,;t t 4992 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 4993 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 4994 s,@INSTALL_DATA@,$INSTALL_DATA,;t t 4995 s,@subdirs@,$subdirs,;t t 4996 s,@LIBOBJS@,$LIBOBJS,;t t 4997 s,@LTLIBOBJS@,$LTLIBOBJS,;t t 4998 CEOF 4999 5000 _ACEOF 5001 5002 cat >>$CONFIG_STATUS <<\_ACEOF 5003 # Split the substitutions into bite-sized pieces for seds with 5004 # small command number limits, like on Digital OSF/1 and HP-UX. 5005 ac_max_sed_lines=48 5006 ac_sed_frag=1 # Number of current file. 5007 ac_beg=1 # First line for current file. 5008 ac_end=$ac_max_sed_lines # Line after last line for current file. 5009 ac_more_lines=: 5010 ac_sed_cmds= 5011 while $ac_more_lines; do 5012 if test $ac_beg -gt 1; then 5013 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 5014 else 5015 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 5480 if test -n "$CONFIG_FILES"; then 5481 5482 _ACEOF 5483 5484 5485 5486 ac_delim='%!_!# ' 5487 for ac_last_try in false false false false false :; do 5488 cat >conf$$subs.sed <<_ACEOF 5489 SHELL!$SHELL$ac_delim 5490 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 5491 PACKAGE_NAME!$PACKAGE_NAME$ac_delim 5492 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 5493 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 5494 PACKAGE_STRING!$PACKAGE_STRING$ac_delim 5495 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 5496 exec_prefix!$exec_prefix$ac_delim 5497 prefix!$prefix$ac_delim 5498 program_transform_name!$program_transform_name$ac_delim 5499 bindir!$bindir$ac_delim 5500 sbindir!$sbindir$ac_delim 5501 libexecdir!$libexecdir$ac_delim 5502 datarootdir!$datarootdir$ac_delim 5503 datadir!$datadir$ac_delim 5504 sysconfdir!$sysconfdir$ac_delim 5505 sharedstatedir!$sharedstatedir$ac_delim 5506 localstatedir!$localstatedir$ac_delim 5507 includedir!$includedir$ac_delim 5508 oldincludedir!$oldincludedir$ac_delim 5509 docdir!$docdir$ac_delim 5510 infodir!$infodir$ac_delim 5511 htmldir!$htmldir$ac_delim 5512 dvidir!$dvidir$ac_delim 5513 pdfdir!$pdfdir$ac_delim 5514 psdir!$psdir$ac_delim 5515 libdir!$libdir$ac_delim 5516 localedir!$localedir$ac_delim 5517 mandir!$mandir$ac_delim 5518 DEFS!$DEFS$ac_delim 5519 ECHO_C!$ECHO_C$ac_delim 5520 ECHO_N!$ECHO_N$ac_delim 5521 ECHO_T!$ECHO_T$ac_delim 5522 LIBS!$LIBS$ac_delim 5523 build_alias!$build_alias$ac_delim 5524 host_alias!$host_alias$ac_delim 5525 target_alias!$target_alias$ac_delim 5526 CC!$CC$ac_delim 5527 CFLAGS!$CFLAGS$ac_delim 5528 LDFLAGS!$LDFLAGS$ac_delim 5529 CPPFLAGS!$CPPFLAGS$ac_delim 5530 ac_ct_CC!$ac_ct_CC$ac_delim 5531 EXEEXT!$EXEEXT$ac_delim 5532 OBJEXT!$OBJEXT$ac_delim 5533 CPP!$CPP$ac_delim 5534 GREP!$GREP$ac_delim 5535 EGREP!$EGREP$ac_delim 5536 XSUBPPDIR!$XSUBPPDIR$ac_delim 5537 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim 5538 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim 5539 INSTALL_DATA!$INSTALL_DATA$ac_delim 5540 subdirs!$subdirs$ac_delim 5541 LIBOBJS!$LIBOBJS$ac_delim 5542 LTLIBOBJS!$LTLIBOBJS$ac_delim 5543 _ACEOF 5544 5545 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 54; then 5546 break 5547 elif $ac_last_try; then 5548 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 5549 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 5550 { (exit 1); exit 1; }; } 5551 else 5552 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 5553 fi 5554 done 5555 5556 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 5557 if test -n "$ac_eof"; then 5558 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 5559 ac_eof=`expr $ac_eof + 1` 5560 fi 5561 5562 cat >>$CONFIG_STATUS <<_ACEOF 5563 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 5564 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 5565 _ACEOF 5566 sed ' 5567 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 5568 s/^/s,@/; s/!/@,|#_!!_#|/ 5569 :n 5570 t n 5571 s/'"$ac_delim"'$/,g/; t 5572 s/$/\\/; p 5573 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 5574 ' >>$CONFIG_STATUS <conf$$subs.sed 5575 rm -f conf$$subs.sed 5576 cat >>$CONFIG_STATUS <<_ACEOF 5577 :end 5578 s/|#_!!_#|//g 5579 CEOF$ac_eof 5580 _ACEOF 5581 5582 5583 # VPATH may cause trouble with some makes, so we remove $(srcdir), 5584 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 5585 # trailing colons and then remove the whole line if VPATH becomes empty 5586 # (actually we leave an empty line to preserve line numbers). 5587 if test "x$srcdir" = x.; then 5588 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 5589 s/:*\$(srcdir):*/:/ 5590 s/:*\${srcdir}:*/:/ 5591 s/:*@srcdir@:*/:/ 5592 s/^\([^=]*=[ ]*\):*/\1/ 5593 s/:*$// 5594 s/^[^=]*=[ ]*$// 5595 }' 5596 fi 5597 5598 cat >>$CONFIG_STATUS <<\_ACEOF 5599 fi # test -n "$CONFIG_FILES" 5600 5601 5602 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS 5603 do 5604 case $ac_tag in 5605 :[FHLC]) ac_mode=$ac_tag; continue;; 5606 esac 5607 case $ac_mode$ac_tag in 5608 :[FHL]*:*);; 5609 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 5610 echo "$as_me: error: Invalid tag $ac_tag." >&2;} 5611 { (exit 1); exit 1; }; };; 5612 :[FH]-) ac_tag=-:-;; 5613 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 5614 esac 5615 ac_save_IFS=$IFS 5616 IFS=: 5617 set x $ac_tag 5618 IFS=$ac_save_IFS 5619 shift 5620 ac_file=$1 5621 shift 5622 5623 case $ac_mode in 5624 :L) ac_source=$1;; 5625 :[FH]) 5626 ac_file_inputs= 5627 for ac_f 5628 do 5629 case $ac_f in 5630 -) ac_f="$tmp/stdin";; 5631 *) # Look for the file first in the build tree, then in the source tree 5632 # (if the path is not absolute). The absolute path cannot be DOS-style, 5633 # because $ac_f cannot contain `:'. 5634 test -f "$ac_f" || 5635 case $ac_f in 5636 [\\/$]*) false;; 5637 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 5638 esac || 5639 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 5640 echo "$as_me: error: cannot find input file: $ac_f" >&2;} 5641 { (exit 1); exit 1; }; };; 5642 esac 5643 ac_file_inputs="$ac_file_inputs $ac_f" 5644 done 5645 5646 # Let's still pretend it is `configure' which instantiates (i.e., don't 5647 # use $as_me), people would be surprised to read: 5648 # /* config.h. Generated by config.status. */ 5649 configure_input="Generated from "`IFS=: 5650 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 5651 if test x"$ac_file" != x-; then 5652 configure_input="$ac_file. $configure_input" 5653 { echo "$as_me:$LINENO: creating $ac_file" >&5 5654 echo "$as_me: creating $ac_file" >&6;} 5016 5655 fi 5017 if test ! -s $tmp/subs.frag; then 5018 ac_more_lines=false 5019 else 5020 # The purpose of the label and of the branching condition is to 5021 # speed up the sed processing (if there are no `@' at all, there 5022 # is no need to browse any of the substitutions). 5023 # These are the two extra sed commands mentioned above. 5024 (echo ':t 5025 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 5026 if test -z "$ac_sed_cmds"; then 5027 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 5028 else 5029 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 5030 fi 5031 ac_sed_frag=`expr $ac_sed_frag + 1` 5032 ac_beg=$ac_end 5033 ac_end=`expr $ac_end + $ac_max_sed_lines` 5034 fi 5035 done 5036 if test -z "$ac_sed_cmds"; then 5037 ac_sed_cmds=cat 5038 fi 5039 fi # test -n "$CONFIG_FILES" 5040 5041 _ACEOF 5042 cat >>$CONFIG_STATUS <<\_ACEOF 5043 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 5044 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 5045 case $ac_file in 5046 - | *:- | *:-:* ) # input from stdin 5047 cat >$tmp/stdin 5048 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 5049 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 5050 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 5051 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 5052 * ) ac_file_in=$ac_file.in ;; 5656 5657 case $ac_tag in 5658 *:-:* | *:-) cat >"$tmp/stdin";; 5659 esac 5660 ;; 5053 5661 esac 5054 5662 5055 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 5056 ac_dir=`(dirname "$ac_file") 2>/dev/null || 5663 ac_dir=`$as_dirname -- "$ac_file" || 5057 5664 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5058 5665 X"$ac_file" : 'X\(//\)[^/]' \| \ 5059 5666 X"$ac_file" : 'X\(//\)$' \| \ 5060 X"$ac_file" : 'X\(/\)' \| \ 5061 . : '\(.\)' 2>/dev/null || 5667 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 5062 5668 echo X"$ac_file" | 5063 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 5064 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 5065 /^X\(\/\/\)$/{ s//\1/; q; } 5066 /^X\(\/\).*/{ s//\1/; q; } 5067 s/.*/./; q'` 5068 { if $as_mkdir_p; then 5069 mkdir -p "$ac_dir" 5070 else 5071 as_dir="$ac_dir" 5669 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 5670 s//\1/ 5671 q 5672 } 5673 /^X\(\/\/\)[^/].*/{ 5674 s//\1/ 5675 q 5676 } 5677 /^X\(\/\/\)$/{ 5678 s//\1/ 5679 q 5680 } 5681 /^X\(\/\).*/{ 5682 s//\1/ 5683 q 5684 } 5685 s/.*/./; q'` 5686 { as_dir="$ac_dir" 5687 case $as_dir in #( 5688 -*) as_dir=./$as_dir;; 5689 esac 5690 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 5072 5691 as_dirs= 5073 while test ! -d "$as_dir"; do 5074 as_dirs="$as_dir $as_dirs" 5075 as_dir=`(dirname "$as_dir") 2>/dev/null || 5692 while :; do 5693 case $as_dir in #( 5694 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 5695 *) as_qdir=$as_dir;; 5696 esac 5697 as_dirs="'$as_qdir' $as_dirs" 5698 as_dir=`$as_dirname -- "$as_dir" || 5076 5699 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5077 5700 X"$as_dir" : 'X\(//\)[^/]' \| \ 5078 5701 X"$as_dir" : 'X\(//\)$' \| \ 5079 X"$as_dir" : 'X\(/\)' \| \ 5080 . : '\(.\)' 2>/dev/null || 5702 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 5081 5703 echo X"$as_dir" | 5082 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 5083 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 5084 /^X\(\/\/\)$/{ s//\1/; q; } 5085 /^X\(\/\).*/{ s//\1/; q; } 5086 s/.*/./; q'` 5704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 5705 s//\1/ 5706 q 5707 } 5708 /^X\(\/\/\)[^/].*/{ 5709 s//\1/ 5710 q 5711 } 5712 /^X\(\/\/\)$/{ 5713 s//\1/ 5714 q 5715 } 5716 /^X\(\/\).*/{ 5717 s//\1/ 5718 q 5719 } 5720 s/.*/./; q'` 5721 test -d "$as_dir" && break 5087 5722 done 5088 test ! -n "$as_dirs" || mkdir $as_dirs5089 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&55090 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}5723 test -z "$as_dirs" || eval "mkdir $as_dirs" 5724 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 5725 echo "$as_me: error: cannot create directory $as_dir" >&2;} 5091 5726 { (exit 1); exit 1; }; }; } 5092 5093 5727 ac_builddir=. 5094 5728 5095 if test "$ac_dir" != .; then 5729 case "$ac_dir" in 5730 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 5731 *) 5096 5732 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 5097 # A "../" for each directory in $ac_dir_suffix. 5098 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 5099 else 5100 ac_dir_suffix= ac_top_builddir= 5101 fi 5733 # A ".." for each directory in $ac_dir_suffix. 5734 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 5735 case $ac_top_builddir_sub in 5736 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 5737 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 5738 esac ;; 5739 esac 5740 ac_abs_top_builddir=$ac_pwd 5741 ac_abs_builddir=$ac_pwd$ac_dir_suffix 5742 # for backward compatibility: 5743 ac_top_builddir=$ac_top_build_prefix 5102 5744 5103 5745 case $srcdir in 5104 .) # No --srcdir option.We are building in place.5746 .) # We are building in place. 5105 5747 ac_srcdir=. 5106 if test -z "$ac_top_builddir"; then 5107 ac_top_srcdir=. 5108 else 5109 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 5110 fi ;; 5111 [\\/]* | ?:[\\/]* ) # Absolute path. 5748 ac_top_srcdir=$ac_top_builddir_sub 5749 ac_abs_top_srcdir=$ac_pwd ;; 5750 [\\/]* | ?:[\\/]* ) # Absolute name. 5112 5751 ac_srcdir=$srcdir$ac_dir_suffix; 5113 ac_top_srcdir=$srcdir ;; 5114 *) # Relative path. 5115 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 5116 ac_top_srcdir=$ac_top_builddir$srcdir ;; 5117 esac 5118 5119 # Do not use `cd foo && pwd` to compute absolute paths, because 5120 # the directories may not exist. 5121 case `pwd` in 5122 .) ac_abs_builddir="$ac_dir";; 5123 *) 5124 case "$ac_dir" in 5125 .) ac_abs_builddir=`pwd`;; 5126 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 5127 *) ac_abs_builddir=`pwd`/"$ac_dir";; 5128 esac;; 5129 esac 5130 case $ac_abs_builddir in 5131 .) ac_abs_top_builddir=${ac_top_builddir}.;; 5132 *) 5133 case ${ac_top_builddir}. in 5134 .) ac_abs_top_builddir=$ac_abs_builddir;; 5135 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 5136 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 5137 esac;; 5138 esac 5139 case $ac_abs_builddir in 5140 .) ac_abs_srcdir=$ac_srcdir;; 5141 *) 5142 case $ac_srcdir in 5143 .) ac_abs_srcdir=$ac_abs_builddir;; 5144 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 5145 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 5146 esac;; 5147 esac 5148 case $ac_abs_builddir in 5149 .) ac_abs_top_srcdir=$ac_top_srcdir;; 5150 *) 5151 case $ac_top_srcdir in 5152 .) ac_abs_top_srcdir=$ac_abs_builddir;; 5153 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 5154 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 5155 esac;; 5156 esac 5157 5752 ac_top_srcdir=$srcdir 5753 ac_abs_top_srcdir=$srcdir ;; 5754 *) # Relative name. 5755 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 5756 ac_top_srcdir=$ac_top_build_prefix$srcdir 5757 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 5758 esac 5759 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 5760 5761 5762 case $ac_mode in 5763 :F) 5764 # 5765 # CONFIG_FILE 5766 # 5158 5767 5159 5768 case $INSTALL in 5160 5769 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 5161 *) ac_INSTALL=$ac_top_build dir$INSTALL ;;5770 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 5162 5771 esac 5163 5164 if test x"$ac_file" != x-; then 5165 { echo "$as_me:$LINENO: creating $ac_file" >&5 5166 echo "$as_me: creating $ac_file" >&6;} 5167 rm -f "$ac_file" 5168 fi 5169 # Let's still pretend it is `configure' which instantiates (i.e., don't 5170 # use $as_me), people would be surprised to read: 5171 # /* config.h. Generated by config.status. */ 5172 if test x"$ac_file" = x-; then 5173 configure_input= 5174 else 5175 configure_input="$ac_file. " 5176 fi 5177 configure_input=$configure_input"Generated from `echo $ac_file_in | 5178 sed 's,.*/,,'` by configure." 5179 5180 # First look for the input files in the build tree, otherwise in the 5181 # src tree. 5182 ac_file_inputs=`IFS=: 5183 for f in $ac_file_in; do 5184 case $f in 5185 -) echo $tmp/stdin ;; 5186 [\\/$]*) 5187 # Absolute (can't be DOS-style, as IFS=:) 5188 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 5189 echo "$as_me: error: cannot find input file: $f" >&2;} 5190 { (exit 1); exit 1; }; } 5191 echo "$f";; 5192 *) # Relative 5193 if test -f "$f"; then 5194 # Build tree 5195 echo "$f" 5196 elif test -f "$srcdir/$f"; then 5197 # Source tree 5198 echo "$srcdir/$f" 5199 else 5200 # /dev/null tree 5201 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 5202 echo "$as_me: error: cannot find input file: $f" >&2;} 5203 { (exit 1); exit 1; }; } 5204 fi;; 5205 esac 5206 done` || { (exit 1); exit 1; } 5207 _ACEOF 5772 _ACEOF 5773 5774 cat >>$CONFIG_STATUS <<\_ACEOF 5775 # If the template does not know about datarootdir, expand it. 5776 # FIXME: This hack should be removed a few years after 2.60. 5777 ac_datarootdir_hack=; ac_datarootdir_seen= 5778 5779 case `sed -n '/datarootdir/ { 5780 p 5781 q 5782 } 5783 /@datadir@/p 5784 /@docdir@/p 5785 /@infodir@/p 5786 /@localedir@/p 5787 /@mandir@/p 5788 ' $ac_file_inputs` in 5789 *datarootdir*) ac_datarootdir_seen=yes;; 5790 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 5791 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 5792 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 5793 _ACEOF 5794 cat >>$CONFIG_STATUS <<_ACEOF 5795 ac_datarootdir_hack=' 5796 s&@datadir@&$datadir&g 5797 s&@docdir@&$docdir&g 5798 s&@infodir@&$infodir&g 5799 s&@localedir@&$localedir&g 5800 s&@mandir@&$mandir&g 5801 s&\\\${datarootdir}&$datarootdir&g' ;; 5802 esac 5803 _ACEOF 5804 5805 # Neutralize VPATH when `$srcdir' = `.'. 5806 # Shell code in configure.ac might set extrasub. 5807 # FIXME: do we really want to maintain this feature? 5208 5808 cat >>$CONFIG_STATUS <<_ACEOF 5209 5809 sed "$ac_vpsub … … 5213 5813 :t 5214 5814 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 5215 s,@configure_input@,$configure_input,;t t 5216 s,@srcdir@,$ac_srcdir,;t t 5217 s,@abs_srcdir@,$ac_abs_srcdir,;t t 5218 s,@top_srcdir@,$ac_top_srcdir,;t t 5219 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 5220 s,@builddir@,$ac_builddir,;t t 5221 s,@abs_builddir@,$ac_abs_builddir,;t t 5222 s,@top_builddir@,$ac_top_builddir,;t t 5223 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 5224 s,@INSTALL@,$ac_INSTALL,;t t 5225 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 5226 rm -f $tmp/stdin 5227 if test x"$ac_file" != x-; then 5228 mv $tmp/out $ac_file 5229 else 5230 cat $tmp/out 5231 rm -f $tmp/out 5232 fi 5233 5234 done 5235 _ACEOF 5236 cat >>$CONFIG_STATUS <<\_ACEOF 5237 5238 # 5239 # CONFIG_HEADER section. 5240 # 5241 5242 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 5243 # NAME is the cpp macro being defined and VALUE is the value it is being given. 5244 # 5245 # ac_d sets the value in "#define NAME VALUE" lines. 5246 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 5247 ac_dB='[ ].*$,\1#\2' 5815 s&@configure_input@&$configure_input&;t t 5816 s&@top_builddir@&$ac_top_builddir_sub&;t t 5817 s&@srcdir@&$ac_srcdir&;t t 5818 s&@abs_srcdir@&$ac_abs_srcdir&;t t 5819 s&@top_srcdir@&$ac_top_srcdir&;t t 5820 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 5821 s&@builddir@&$ac_builddir&;t t 5822 s&@abs_builddir@&$ac_abs_builddir&;t t 5823 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 5824 s&@INSTALL@&$ac_INSTALL&;t t 5825 $ac_datarootdir_hack 5826 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out 5827 5828 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 5829 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 5830 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 5831 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 5832 which seems to be undefined. Please make sure it is defined." >&5 5833 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 5834 which seems to be undefined. Please make sure it is defined." >&2;} 5835 5836 rm -f "$tmp/stdin" 5837 case $ac_file in 5838 -) cat "$tmp/out"; rm -f "$tmp/out";; 5839 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 5840 esac 5841 ;; 5842 :H) 5843 # 5844 # CONFIG_HEADER 5845 # 5846 _ACEOF 5847 5848 # Transform confdefs.h into a sed script `conftest.defines', that 5849 # substitutes the proper values into config.h.in to produce config.h. 5850 rm -f conftest.defines conftest.tail 5851 # First, append a space to every undef/define line, to ease matching. 5852 echo 's/$/ /' >conftest.defines 5853 # Then, protect against being on the right side of a sed subst, or in 5854 # an unquoted here document, in config.status. If some macros were 5855 # called several times there might be several #defines for the same 5856 # symbol, which is useless. But do not sort them, since the last 5857 # AC_DEFINE must be honored. 5858 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 5859 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where 5860 # NAME is the cpp macro being defined, VALUE is the value it is being given. 5861 # PARAMS is the parameter list in the macro definition--in most cases, it's 5862 # just an empty string. 5863 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' 5864 ac_dB='\\)[ (].*,\\1define\\2' 5248 5865 ac_dC=' ' 5249 ac_dD=',;t' 5250 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 5251 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 5252 ac_uB='$,\1#\2define\3' 5253 ac_uC=' ' 5254 ac_uD=',;t' 5255 5256 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 5257 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 5258 case $ac_file in 5259 - | *:- | *:-:* ) # input from stdin 5260 cat >$tmp/stdin 5261 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 5262 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 5263 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 5264 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 5265 * ) ac_file_in=$ac_file.in ;; 5266 esac 5267 5268 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 5269 echo "$as_me: creating $ac_file" >&6;} 5270 5271 # First look for the input files in the build tree, otherwise in the 5272 # src tree. 5273 ac_file_inputs=`IFS=: 5274 for f in $ac_file_in; do 5275 case $f in 5276 -) echo $tmp/stdin ;; 5277 [\\/$]*) 5278 # Absolute (can't be DOS-style, as IFS=:) 5279 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 5280 echo "$as_me: error: cannot find input file: $f" >&2;} 5281 { (exit 1); exit 1; }; } 5282 # Do quote $f, to prevent DOS paths from being IFS'd. 5283 echo "$f";; 5284 *) # Relative 5285 if test -f "$f"; then 5286 # Build tree 5287 echo "$f" 5288 elif test -f "$srcdir/$f"; then 5289 # Source tree 5290 echo "$srcdir/$f" 5291 else 5292 # /dev/null tree 5293 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 5294 echo "$as_me: error: cannot find input file: $f" >&2;} 5295 { (exit 1); exit 1; }; } 5296 fi;; 5297 esac 5298 done` || { (exit 1); exit 1; } 5299 # Remove the trailing spaces. 5300 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 5301 5302 _ACEOF 5303 5304 # Transform confdefs.h into two sed scripts, `conftest.defines' and 5305 # `conftest.undefs', that substitutes the proper values into 5306 # config.h.in to produce config.h. The first handles `#define' 5307 # templates, and the second `#undef' templates. 5308 # And first: Protect against being on the right side of a sed subst in 5309 # config.status. Protect against being in an unquoted here document 5310 # in config.status. 5311 rm -f conftest.defines conftest.undefs 5312 # Using a here document instead of a string reduces the quoting nightmare. 5313 # Putting comments in sed scripts is not portable. 5314 # 5315 # `end' is used to avoid that the second main sed command (meant for 5316 # 0-ary CPP macros) applies to n-ary macro definitions. 5317 # See the Autoconf documentation for `clear'. 5318 cat >confdef2sed.sed <<\_ACEOF 5319 s/[\\&,]/\\&/g 5320 s,[\\$`],\\&,g 5321 t clear 5322 : clear 5323 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 5324 t end 5325 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 5326 : end 5327 _ACEOF 5328 # If some macros were called several times there might be several times 5329 # the same #defines, which is useless. Nevertheless, we may not want to 5330 # sort them, since we want the *last* AC-DEFINE to be honored. 5331 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 5332 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 5333 rm -f confdef2sed.sed 5334 5335 # This sed command replaces #undef with comments. This is necessary, for 5866 ac_dD=' ,' 5867 5868 uniq confdefs.h | 5869 sed -n ' 5870 t rset 5871 :rset 5872 s/^[ ]*#[ ]*define[ ][ ]*// 5873 t ok 5874 d 5875 :ok 5876 s/[\\&,]/\\&/g 5877 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p 5878 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p 5879 ' >>conftest.defines 5880 5881 # Remove the space that was appended to ease matching. 5882 # Then replace #undef with comments. This is necessary, for 5336 5883 # example, in the case of _POSIX_SOURCE, which is predefined and required 5337 5884 # on some systems where configure will not decide to define it. 5338 cat >>conftest.undefs <<\_ACEOF 5339 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 5340 _ACEOF 5341 5342 # Break up conftest.defines because some shells have a limit on the size 5343 # of here documents, and old seds have small limits too (100 cmds). 5344 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 5345 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 5346 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 5347 echo ' :' >>$CONFIG_STATUS 5348 rm -f conftest.tail 5349 while grep . conftest.defines >/dev/null 5885 # (The regexp can be short, since the line contains either #define or #undef.) 5886 echo 's/ $// 5887 s,^[ #]*u.*,/* & */,' >>conftest.defines 5888 5889 # Break up conftest.defines: 5890 ac_max_sed_lines=50 5891 5892 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" 5893 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" 5894 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" 5895 # et cetera. 5896 ac_in='$ac_file_inputs' 5897 ac_out='"$tmp/out1"' 5898 ac_nxt='"$tmp/out2"' 5899 5900 while : 5350 5901 do 5351 # Write a limited-size here document to $tmp/defines.sed. 5352 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 5353 # Speed up: don't consider the non `#define' lines. 5354 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 5355 # Work around the forget-to-reset-the-flag bug. 5356 echo 't clr' >>$CONFIG_STATUS 5357 echo ': clr' >>$CONFIG_STATUS 5358 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 5902 # Write a here document: 5903 cat >>$CONFIG_STATUS <<_ACEOF 5904 # First, check the format of the line: 5905 cat >"\$tmp/defines.sed" <<\\CEOF 5906 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def 5907 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def 5908 b 5909 :def 5910 _ACEOF 5911 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS 5359 5912 echo 'CEOF 5360 sed -f $tmp/defines.sed $tmp/in >$tmp/out 5361 rm -f $tmp/in 5362 mv $tmp/out $tmp/in 5363 ' >>$CONFIG_STATUS 5364 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 5913 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS 5914 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in 5915 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail 5916 grep . conftest.tail >/dev/null || break 5365 5917 rm -f conftest.defines 5366 5918 mv conftest.tail conftest.defines 5367 5919 done 5368 rm -f conftest.defines 5369 echo ' fi # grep' >>$CONFIG_STATUS 5370 echo >>$CONFIG_STATUS 5371 5372 # Break up conftest.undefs because some shells have a limit on the size 5373 # of here documents, and old seds have small limits too (100 cmds). 5374 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 5375 rm -f conftest.tail 5376 while grep . conftest.undefs >/dev/null 5377 do 5378 # Write a limited-size here document to $tmp/undefs.sed. 5379 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 5380 # Speed up: don't consider the non `#undef' 5381 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 5382 # Work around the forget-to-reset-the-flag bug. 5383 echo 't clr' >>$CONFIG_STATUS 5384 echo ': clr' >>$CONFIG_STATUS 5385 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 5386 echo 'CEOF 5387 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 5388 rm -f $tmp/in 5389 mv $tmp/out $tmp/in 5390 ' >>$CONFIG_STATUS 5391 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 5392 rm -f conftest.undefs 5393 mv conftest.tail conftest.undefs 5394 done 5395 rm -f conftest.undefs 5396 5920 rm -f conftest.defines conftest.tail 5921 5922 echo "ac_result=$ac_in" >>$CONFIG_STATUS 5397 5923 cat >>$CONFIG_STATUS <<\_ACEOF 5398 # Let's still pretend it is `configure' which instantiates (i.e., don't5399 # use $as_me), people would be surprised to read:5400 # /* config.h. Generated by config.status. */5401 if test x"$ac_file" = x-; then5402 echo "/* Generated by configure. */" >$tmp/config.h5403 else5404 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h5405 fi5406 cat $tmp/in >>$tmp/config.h5407 rm -f $tmp/in5408 5924 if test x"$ac_file" != x-; then 5409 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 5925 echo "/* $configure_input */" >"$tmp/config.h" 5926 cat "$ac_result" >>"$tmp/config.h" 5927 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 5410 5928 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 5411 5929 echo "$as_me: $ac_file is unchanged" >&6;} 5412 5930 else 5413 ac_dir=`(dirname "$ac_file") 2>/dev/null ||5414 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \5415 X"$ac_file" : 'X\(//\)[^/]' \| \5416 X"$ac_file" : 'X\(//\)$' \| \5417 X"$ac_file" : 'X\(/\)' \| \5418 . : '\(.\)' 2>/dev/null ||5419 echo X"$ac_file" |5420 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }5421 /^X\(\/\/\)[^/].*/{ s//\1/; q; }5422 /^X\(\/\/\)$/{ s//\1/; q; }5423 /^X\(\/\).*/{ s//\1/; q; }5424 s/.*/./; q'`5425 { if $as_mkdir_p; then5426 mkdir -p "$ac_dir"5427 else5428 as_dir="$ac_dir"5429 as_dirs=5430 while test ! -d "$as_dir"; do5431 as_dirs="$as_dir $as_dirs"5432 as_dir=`(dirname "$as_dir") 2>/dev/null ||5433 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \5434 X"$as_dir" : 'X\(//\)[^/]' \| \5435 X"$as_dir" : 'X\(//\)$' \| \5436 X"$as_dir" : 'X\(/\)' \| \5437 . : '\(.\)' 2>/dev/null ||5438 echo X"$as_dir" |5439 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }5440 /^X\(\/\/\)[^/].*/{ s//\1/; q; }5441 /^X\(\/\/\)$/{ s//\1/; q; }5442 /^X\(\/\).*/{ s//\1/; q; }5443 s/.*/./; q'`5444 done5445 test ! -n "$as_dirs" || mkdir $as_dirs5446 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&55447 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}5448 { (exit 1); exit 1; }; }; }5449 5450 5931 rm -f $ac_file 5451 mv $tmp/config.h$ac_file5932 mv "$tmp/config.h" $ac_file 5452 5933 fi 5453 5934 else 5454 cat $tmp/config.h5455 rm -f $tmp/config.h5935 echo "/* $configure_input */" 5936 cat "$ac_result" 5456 5937 fi 5457 done 5458 _ACEOF 5459 5460 cat >>$CONFIG_STATUS <<\_ACEOF 5938 rm -f "$tmp/out12" 5939 ;; 5940 5941 5942 esac 5943 5944 done # for ac_tag 5945 5461 5946 5462 5947 { (exit 0); exit 0; } … … 5495 5980 ac_sub_configure_args= 5496 5981 ac_prev= 5497 for ac_arg in $ac_configure_args; do 5982 eval "set x $ac_configure_args" 5983 shift 5984 for ac_arg 5985 do 5498 5986 if test -n "$ac_prev"; then 5499 5987 ac_prev= … … 5518 6006 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 5519 6007 ;; 5520 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; 6008 *) 6009 case $ac_arg in 6010 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 6011 esac 6012 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; 5521 6013 esac 5522 6014 done … … 5524 6016 # Always prepend --prefix to ensure using the same prefix 5525 6017 # in subdir configurations. 5526 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" 6018 ac_arg="--prefix=$prefix" 6019 case $ac_arg in 6020 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 6021 esac 6022 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" 6023 6024 # Pass --silent 6025 if test "$silent" = yes; then 6026 ac_sub_configure_args="--silent $ac_sub_configure_args" 6027 fi 5527 6028 5528 6029 ac_popdir=`pwd` … … 5531 6032 # Do not complain, so a configure script can configure whichever 5532 6033 # parts of a large source tree are present. 5533 test -d $srcdir/$ac_dir || continue 5534 5535 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 5536 echo "$as_me: configuring in $ac_dir" >&6;} 5537 { if $as_mkdir_p; then 5538 mkdir -p "$ac_dir" 5539 else 5540 as_dir="$ac_dir" 6034 test -d "$srcdir/$ac_dir" || continue 6035 6036 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" 6037 echo "$as_me:$LINENO: $ac_msg" >&5 6038 echo "$ac_msg" >&6 6039 { as_dir="$ac_dir" 6040 case $as_dir in #( 6041 -*) as_dir=./$as_dir;; 6042 esac 6043 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 5541 6044 as_dirs= 5542 while test ! -d "$as_dir"; do 5543 as_dirs="$as_dir $as_dirs" 5544 as_dir=`(dirname "$as_dir") 2>/dev/null || 6045 while :; do 6046 case $as_dir in #( 6047 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 6048 *) as_qdir=$as_dir;; 6049 esac 6050 as_dirs="'$as_qdir' $as_dirs" 6051 as_dir=`$as_dirname -- "$as_dir" || 5545 6052 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5546 6053 X"$as_dir" : 'X\(//\)[^/]' \| \ 5547 6054 X"$as_dir" : 'X\(//\)$' \| \ 5548 X"$as_dir" : 'X\(/\)' \| \ 5549 . : '\(.\)' 2>/dev/null || 6055 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 5550 6056 echo X"$as_dir" | 5551 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 5552 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 5553 /^X\(\/\/\)$/{ s//\1/; q; } 5554 /^X\(\/\).*/{ s//\1/; q; } 5555 s/.*/./; q'` 6057 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6058 s//\1/ 6059 q 6060 } 6061 /^X\(\/\/\)[^/].*/{ 6062 s//\1/ 6063 q 6064 } 6065 /^X\(\/\/\)$/{ 6066 s//\1/ 6067 q 6068 } 6069 /^X\(\/\).*/{ 6070 s//\1/ 6071 q 6072 } 6073 s/.*/./; q'` 6074 test -d "$as_dir" && break 5556 6075 done 5557 test ! -n "$as_dirs" || mkdir $as_dirs5558 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&55559 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}6076 test -z "$as_dirs" || eval "mkdir $as_dirs" 6077 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 6078 echo "$as_me: error: cannot create directory $as_dir" >&2;} 5560 6079 { (exit 1); exit 1; }; }; } 5561 5562 6080 ac_builddir=. 5563 6081 5564 if test "$ac_dir" != .; then 6082 case "$ac_dir" in 6083 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 6084 *) 5565 6085 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 5566 # A "../" for each directory in $ac_dir_suffix. 5567 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 5568 else 5569 ac_dir_suffix= ac_top_builddir= 5570 fi 6086 # A ".." for each directory in $ac_dir_suffix. 6087 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 6088 case $ac_top_builddir_sub in 6089 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 6090 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 6091 esac ;; 6092 esac 6093 ac_abs_top_builddir=$ac_pwd 6094 ac_abs_builddir=$ac_pwd$ac_dir_suffix 6095 # for backward compatibility: 6096 ac_top_builddir=$ac_top_build_prefix 5571 6097 5572 6098 case $srcdir in 5573 .) # No --srcdir option.We are building in place.6099 .) # We are building in place. 5574 6100 ac_srcdir=. 5575 if test -z "$ac_top_builddir"; then 5576 ac_top_srcdir=. 5577 else 5578 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 5579 fi ;; 5580 [\\/]* | ?:[\\/]* ) # Absolute path. 6101 ac_top_srcdir=$ac_top_builddir_sub 6102 ac_abs_top_srcdir=$ac_pwd ;; 6103 [\\/]* | ?:[\\/]* ) # Absolute name. 5581 6104 ac_srcdir=$srcdir$ac_dir_suffix; 5582 ac_top_srcdir=$srcdir ;; 5583 *) # Relative path. 5584 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 5585 ac_top_srcdir=$ac_top_builddir$srcdir ;; 5586 esac 5587 5588 # Do not use `cd foo && pwd` to compute absolute paths, because 5589 # the directories may not exist. 5590 case `pwd` in 5591 .) ac_abs_builddir="$ac_dir";; 5592 *) 5593 case "$ac_dir" in 5594 .) ac_abs_builddir=`pwd`;; 5595 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 5596 *) ac_abs_builddir=`pwd`/"$ac_dir";; 5597 esac;; 5598 esac 5599 case $ac_abs_builddir in 5600 .) ac_abs_top_builddir=${ac_top_builddir}.;; 5601 *) 5602 case ${ac_top_builddir}. in 5603 .) ac_abs_top_builddir=$ac_abs_builddir;; 5604 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 5605 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 5606 esac;; 5607 esac 5608 case $ac_abs_builddir in 5609 .) ac_abs_srcdir=$ac_srcdir;; 5610 *) 5611 case $ac_srcdir in 5612 .) ac_abs_srcdir=$ac_abs_builddir;; 5613 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 5614 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 5615 esac;; 5616 esac 5617 case $ac_abs_builddir in 5618 .) ac_abs_top_srcdir=$ac_top_srcdir;; 5619 *) 5620 case $ac_top_srcdir in 5621 .) ac_abs_top_srcdir=$ac_abs_builddir;; 5622 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 5623 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 5624 esac;; 5625 esac 5626 5627 5628 cd $ac_dir 6105 ac_top_srcdir=$srcdir 6106 ac_abs_top_srcdir=$srcdir ;; 6107 *) # Relative name. 6108 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 6109 ac_top_srcdir=$ac_top_build_prefix$srcdir 6110 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 6111 esac 6112 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 6113 6114 6115 cd "$ac_dir" 5629 6116 5630 6117 # Check for guested configure; otherwise get Cygnus style configure. 5631 if test -f $ac_srcdir/configure.gnu; then 5632 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" 5633 elif test -f $ac_srcdir/configure; then 5634 ac_sub_configure="$SHELL '$ac_srcdir/configure'" 5635 elif test -f $ac_srcdir/configure.in; then 5636 ac_sub_configure=$ac_configure 6118 if test -f "$ac_srcdir/configure.gnu"; then 6119 ac_sub_configure=$ac_srcdir/configure.gnu 6120 elif test -f "$ac_srcdir/configure"; then 6121 ac_sub_configure=$ac_srcdir/configure 6122 elif test -f "$ac_srcdir/configure.in"; then 6123 # This should be Cygnus configure. 6124 ac_sub_configure=$ac_aux_dir/configure 5637 6125 else 5638 6126 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 … … 5646 6134 case $cache_file in 5647 6135 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; 5648 *) # Relative path.5649 ac_sub_cache_file=$ac_top_build dir$cache_file ;;6136 *) # Relative name. 6137 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; 5650 6138 esac 5651 6139 5652 { echo "$as_me:$LINENO: running $ ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&55653 echo "$as_me: running $ ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}6140 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 6141 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} 5654 6142 # The eval makes quoting arguments work. 5655 eval $ac_sub_configure$ac_sub_configure_args \5656 --cache-file= $ac_sub_cache_file --srcdir=$ac_srcdir||6143 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ 6144 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || 5657 6145 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 5658 6146 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} … … 5660 6148 fi 5661 6149 5662 cd $ac_popdir6150 cd "$ac_popdir" 5663 6151 done 5664 6152 fi -
configure.in
r8298425 rdab82f29 9 9 dnl If we're using GCC, enable all warnings 10 10 if test "$GCC" = yes; then 11 CFLAGS="$CFLAGS -Wall -g ";11 CFLAGS="$CFLAGS -Wall -g -D_FORTIFY_SOURCE=2"; 12 12 fi 13 14 13 15 14 dnl Check for Athena … … 40 39 fi 41 40 41 dnl check for stack-protector 42 PROTECT_CFLAGS=${PROTECT_CFLAGS-"-fstack-protector"} 43 SAVE_CFLAGS=$CFLAGS 44 CFLAGS="$CFLAGS $PROTECT_CFLAGS" 45 AC_MSG_CHECKING(whether protection cflags work) 46 AC_COMPILE_IFELSE(int i;, 47 [AC_MSG_RESULT(yes)], 48 [AC_MSG_RESULT(no) 49 CFLAGS=$SAVE_CFLAGS]) 50 51 AC_CHECK_LIB(ssp, __stack_chk_guard,,) 42 52 AC_CHECK_LIB(ncurses, initscr,, 43 53 AC_CHECK_LIB(curses, initscr,, AC_MSG_ERROR(No curses library found.))) … … 48 58 dnl AC_CHECK_LIB(des425, req_act_vno) 49 59 AC_CHECK_LIB(des425, des_cbc_encrypt) 50 AC_CHECK_LIB(des, des_quad_cksum)60 dnl AC_CHECK_LIB(des, des_quad_cksum) 51 61 AC_CHECK_LIB(resolv, res_search) 52 62 AC_CHECK_LIB(krb5, krb5_get_credentials) … … 57 67 AC_CHECK_LIB(zephyr, ZInitLocationInfo, AC_DEFINE([HAVE_LIBZEPHYR_ZINITLOCATIONINFO], [], [Have ZInitLocationInfo]),) 58 68 59 AC_CHECK_FUNCS(use_default_colors des_string_to_key des_key_sched des_ecb_encrypt)69 AC_CHECK_FUNCS(use_default_colors resizeterm des_string_to_key des_key_sched des_ecb_encrypt) 60 70 61 71 AC_MSG_CHECKING(for des_ecb_encrypt prototype) -
context.c
rcf83b7a rdab82f29 1 /* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar 2 * 3 * This file is part of Owl. 4 * 5 * Owl is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * Owl is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with Owl. If not, see <http://www.gnu.org/licenses/>. 17 * 18 * --------------------------------------------------------------- 19 * 20 * As of Owl version 2.1.12 there are patches contributed by 21 * developers of the the branched BarnOwl project, Copyright (c) 22 * 2006-2008 The BarnOwl Developers. All rights reserved. 23 */ 24 1 25 #include <string.h> 2 26 #include "owl.h" -
dict.c
r1aee7d9 rdab82f29 1 /* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar 2 * 3 * This file is part of Owl. 4 * 5 * Owl is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * Owl is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with Owl. If not, see <http://www.gnu.org/licenses/>. 17 * 18 * --------------------------------------------------------------- 19 * 20 * As of Owl version 2.1.12 there are patches contributed by 21 * developers of the the branched BarnOwl project, Copyright (c) 22 * 2006-2008 The BarnOwl Developers. All rights reserved. 23 */ 24 1 25 /* Dictionary data abstraction. 2 26 * Maps from strings to pointers. -
editwin.c
r12c35df rdab82f29 1 /* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar 2 * 3 * This file is part of Owl. 4 * 5 * Owl is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * Owl is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with Owl. If not, see <http://www.gnu.org/licenses/>. 17 * 18 * --------------------------------------------------------------- 19 * 20 * As of Owl version 2.1.12 there are patches contributed by 21 * developers of the the branched BarnOwl project, Copyright (c) 22 * 2006-2008 The BarnOwl Developers. All rights reserved. 23 */ 24 1 25 #include "owl.h" 2 26 #include <stdlib.h> … … 711 735 while (1) { 712 736 z=_owl_editwin_get_index_from_xy(e); 713 if (e->buff[z+1]==' ' || e->buff[z+1]=='\n' || e->buff[z+1]=='\0') break; 737 /* z == e->bufflen check added to prevent a hang I (nelhage) have 738 seen repeatedly while using owl. I'm not sure precisely what 739 conditions lead to it. */ 740 if (z == e->bufflen 741 || e->buff[z+1]==' ' || e->buff[z+1]=='\n' || e->buff[z+1]=='\0') break; 714 742 owl_editwin_delete_char(e); 715 743 } -
errqueue.c
rec6ff52 rdab82f29 1 /* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar 2 * 3 * This file is part of Owl. 4 * 5 * Owl is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * Owl is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with Owl. If not, see <http://www.gnu.org/licenses/>. 17 * 18 * --------------------------------------------------------------- 19 * 20 * As of Owl version 2.1.12 there are patches contributed by 21 * developers of the the branched BarnOwl project, Copyright (c) 22 * 2006-2008 The BarnOwl Developers. All rights reserved. 23 */ 24 1 25 #include "owl.h" 2 26 -
examples/owlconf.erik
r5d9c664 rdab82f29 147 147 owl::command("set -q rxping on"); 148 148 owl::command("set -q typewinsize 5"); 149 if ($ENV{"DISPLAY"} eq ":0.0") {150 owl::command("set -q webbrowser galeon");151 }152 149 owl::command("filter me recipient %me% or ( sender %me% and class message and instance personal ) or class mail or type aim"); 153 150 owl::command("filter owl instance ^owl.*"); -
examples/owlconf.simple
r2b14303 rdab82f29 93 93 # owl::command('set -q view_home all'); 94 94 95 96 ## Which webbrowser to use to launch URLs with the 'w' key.97 # owl::command('set -q webbrowser netscape');98 # owl::command('set -q webbrowser galeon');99 # owl::command('set -q webbrowser none');100 95 101 96 ## Default message to send when zaway is on (toggle with 'A') -
filter.c
r15b34fd rdab82f29 1 /* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar 2 * 3 * This file is part of Owl. 4 * 5 * Owl is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * Owl is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with Owl. If not, see <http://www.gnu.org/licenses/>. 17 * 18 * --------------------------------------------------------------- 19 * 20 * As of Owl version 2.1.12 there are patches contributed by 21 * developers of the the branched BarnOwl project, Copyright (c) 22 * 2006-2008 The BarnOwl Developers. All rights reserved. 23 */ 24 1 25 #include <string.h> 2 26 #include "owl.h" … … 13 37 argv=owl_parseline(string, &argc); 14 38 out=owl_filter_init(f, name, argc, argv); 15 /* owl_parsefree(argv, argc); */39 owl_parsefree(argv, argc); 16 40 return(out); 17 41 } -
filterelement.c
r32eed98 rdab82f29 1 /* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar 2 * 3 * This file is part of Owl. 4 * 5 * Owl is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * Owl is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with Owl. If not, see <http://www.gnu.org/licenses/>. 17 * 18 * --------------------------------------------------------------- 19 * 20 * As of Owl version 2.1.12 there are patches contributed by 21 * developers of the the branched BarnOwl project, Copyright (c) 22 * 2006-2008 The BarnOwl Developers. All rights reserved. 23 */ 24 1 25 #include "owl.h" 2 26 -
fmtext.c
ra0a5179 rdab82f29 1 /* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar 2 * 3 * This file is part of Owl. 4 * 5 * Owl is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * Owl is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with Owl. If not, see <http://www.gnu.org/licenses/>. 17 * 18 * --------------------------------------------------------------- 19 * 20 * As of Owl version 2.1.12 there are patches contributed by 21 * developers of the the branched BarnOwl project, Copyright (c) 22 * 2006-2008 The BarnOwl Developers. All rights reserved. 23 */ 24 1 25 #include "owl.h" 2 26 #include <stdlib.h> -
functions.c
r3c7d086a rdab82f29 1 /* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar 2 * 3 * This file is part of Owl. 4 * 5 * Owl is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * Owl is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with Owl. If not, see <http://www.gnu.org/licenses/>. 17 * 18 * --------------------------------------------------------------- 19 * 20 * As of Owl version 2.1.12 there are patches contributed by 21 * developers of the the branched BarnOwl project, Copyright (c) 22 * 2006-2008 The BarnOwl Developers. All rights reserved. 23 */ 24 1 25 #include <stdio.h> 2 26 #include <stdlib.h> … … 125 149 text="" 126 150 "Owl version " OWL_VERSION_STRING "\n" 127 "Copyright (c) 2004 James Kretchmar. All rights reserved.\n"128 151 "\n" 129 "Redistribution and use in source and binary forms, with or without\n" 130 "modification, are permitted provided that the following conditions are\n" 131 "met:\n" 152 "Copyright (c) 2002,2003,2004,2009 James M. Kretchmar\n" 132 153 "\n" 133 " * Redistributions of source code must retain the above copyright\n" 134 " notice, this list of conditions and the following disclaimer.\n" 154 "Owl is free software: you can redistribute it and/or modify\n" 155 "it under the terms of the GNU General Public License as published by\n" 156 "the Free Software Foundation, either version 3 of the License, or\n" 157 "(at your option) any later version.\n" 135 158 "\n" 136 " * Redistributions in binary form must reproduce the above copyright\n"137 " notice, this list of conditions and the following disclaimer in\n"138 " the documentation and/or other materials provided withthe\n"139 " distribution.\n"159 "Owl is distributed in the hope that it will be useful,\n" 160 "but WITHOUT ANY WARRANTY; without even the implied warranty of\n" 161 "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n" 162 "GNU General Public License for more details.\n" 140 163 "\n" 141 " * Redistributions in any form must be accompanied by information on\n" 142 " how to obtain complete source code for the Owl software and any\n" 143 " accompanying software that uses the Owl software. The source code\n" 144 " must either be included in the distribution or be available for no\n" 145 " more than the cost of distribution plus a nominal fee, and must be\n" 146 " freely redistributable under reasonable conditions. For an\n" 147 " executable file, complete source code means the source code for\n" 148 " all modules it contains. It does not include source code for\n" 149 " modules or files that typically accompany the major components of\n" 150 " the operating system on which the executable file runs.\n" 164 "You should have received a copy of the GNU General Public License\n" 165 "along with Owl. If not, see <http://www.gnu.org/licenses/>.\n" 151 166 "\n" 152 "THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR\n" 153 "IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\n" 154 "WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR\n" 155 "NON-INFRINGEMENT, ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE\n" 156 "LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR\n" 157 "CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF\n" 158 "SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR\n" 159 "BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,\n" 160 "WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE\n" 161 "OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN\n" 162 "IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n"; 167 "---------------------------------------------------------------\n" 168 "\n" 169 "As of Owl version 2.1.12 there are patches contributed by\n" 170 "developers of the the branched BarnOwl project, Copyright (c)\n" 171 "2006-2008 The BarnOwl Developers. All rights reserved.\n"; 163 172 owl_function_popless_text(text); 164 173 } … … 399 408 m=owl_function_make_outgoing_zephyr(mymsg, line, owl_zwrite_get_zsig(&z)); 400 409 401 if (m) { 402 /* log it */ 403 owl_log_message(m); 404 405 /* add it or nuke it */ 406 if (owl_global_is_displayoutgoing(&g)) { 407 owl_function_add_message(m); 408 } else { 409 owl_message_free(m); 410 } 410 /* log it */ 411 owl_log_message(m); 412 413 /* add it or nuke it */ 414 if (owl_global_is_displayoutgoing(&g)) { 415 owl_function_add_message(m); 411 416 } else { 412 owl_ function_error("Could not create outgoing zephyr message");417 owl_message_free(m); 413 418 } 414 419 } … … 439 444 mymsg=owl_zwrite_get_message(&z); 440 445 #ifdef OWL_ENABLE_ZCRYPT 441 cryptmsg=owl_malloc(strlen(mymsg)*4); 446 /* Allocate enough space for the crypted message. For each byte of 447 * the message, the encoded cyphertext will have two bytes. Block 448 * size is 8 bytes of input, or 16 bytes of output, so make sure we 449 * have at least one block worth of space allocated. If the message 450 * is empty, no blocks are sent, but we still allocate one 451 * block. The additional 16 bytes also provide space for the null 452 * terminator, as we will never use all of it for cyphertext. 453 */ 454 cryptmsg=owl_malloc((strlen(mymsg)*2)+16); 442 455 ret=owl_zcrypt_encrypt(cryptmsg, mymsg, owl_zwrite_get_class(&z), owl_zwrite_get_instance(&z)); 443 456 if (ret) { … … 445 458 owl_function_beep(); 446 459 owl_free(cryptmsg); 460 owl_zwrite_free(&z); 447 461 return; 448 462 } … … 463 477 mymsg=owl_zwrite_get_message(&z); 464 478 m=owl_function_make_outgoing_zephyr(mymsg, line, owl_zwrite_get_zsig(&z)); 465 if (m) { 466 /* log it */ 467 owl_log_message(m); 468 469 /* add it or nuke it */ 470 if (owl_global_is_displayoutgoing(&g)) { 471 owl_function_add_message(m); 472 } else { 473 owl_message_free(m); 474 } 479 480 /* log it */ 481 owl_log_message(m); 482 483 /* add it or nuke it */ 484 if (owl_global_is_displayoutgoing(&g)) { 485 owl_function_add_message(m); 475 486 } else { 476 owl_ function_error("Could not create outgoing zephyr message");487 owl_message_free(m); 477 488 } 478 489 } … … 505 516 m=owl_function_make_outgoing_aim(msg, to); 506 517 507 if (m) { 508 /* log it */ 509 owl_log_message(m); 510 511 /* display it or nuke it */ 512 if (owl_global_is_displayoutgoing(&g)) { 513 owl_function_add_message(m); 514 } else { 515 owl_message_free(m); 516 } 517 } else { 518 owl_function_error("Could not create outgoing AIM message"); 518 /* log it */ 519 owl_log_message(m); 520 521 /* display it or nuke it */ 522 if (owl_global_is_displayoutgoing(&g)) { 523 owl_function_add_message(m); 524 } else { 525 owl_message_free(m); 519 526 } 520 527 … … 887 894 { 888 895 int ret, ret2; 889 char *foo ;896 char *foo, *path; 890 897 891 898 if (file==NULL) { 892 899 ret=owl_zephyr_loadsubs(NULL, 0); 893 900 } else { 894 ret=owl_zephyr_loadsubs(file, 1); 901 path = owl_util_makepath(file); 902 ret=owl_zephyr_loadsubs(path, 1); 903 free(path); 895 904 } 896 905 … … 1020 1029 owl_function_debugmsg("Quitting Owl"); 1021 1030 exit(0); 1022 }1023 1024 void owl_function_openurl()1025 {1026 /* visit the first url in the current message */1027 owl_message *m;1028 owl_view *v;1029 char *ptr1, *ptr2, *text, url[LINE], tmpbuff[LINE];1030 int webbrowser;1031 1032 webbrowser = owl_global_get_webbrowser(&g);1033 1034 if (webbrowser < 0 || webbrowser == OWL_WEBBROWSER_NONE) {1035 owl_function_error("No browser selected");1036 return;1037 }1038 1039 v=owl_global_get_current_view(&g);1040 1041 m=owl_view_get_element(v, owl_global_get_curmsg(&g));1042 1043 if (!m || owl_view_get_size(v)==0) {1044 owl_function_error("No current message selected");1045 return;1046 }1047 1048 text=owl_message_get_text(m);1049 1050 /* First look for a good URL */1051 if ((ptr1=strstr(text, "http://"))!=NULL) {1052 ptr2=strpbrk(ptr1, " \n\t");1053 if (ptr2) {1054 strncpy(url, ptr1, ptr2-ptr1+1);1055 url[ptr2-ptr1+1]='\0';1056 } else {1057 strcpy(url, ptr1);1058 }1059 1060 /* if we had <http strip a trailing > */1061 if (ptr1>text && ptr1[-1]=='<') {1062 if (url[strlen(url)-1]=='>') {1063 url[strlen(url)-1]='\0';1064 }1065 }1066 } else if ((ptr1=strstr(text, "https://"))!=NULL) {1067 /* Look for an https URL */1068 ptr2=strpbrk(ptr1, " \n\t");1069 if (ptr2) {1070 strncpy(url, ptr1, ptr2-ptr1+1);1071 url[ptr2-ptr1+1]='\0';1072 } else {1073 strcpy(url, ptr1);1074 }1075 1076 /* if we had <http strip a trailing > */1077 if (ptr1>text && ptr1[-1]=='<') {1078 if (url[strlen(url)-1]=='>') {1079 url[strlen(url)-1]='\0';1080 }1081 }1082 } else if ((ptr1=strstr(text, "www."))!=NULL) {1083 /* if we can't find a real url look for www.something */1084 ptr2=strpbrk(ptr1, " \n\t");1085 if (ptr2) {1086 strncpy(url, ptr1, ptr2-ptr1+1);1087 url[ptr2-ptr1+1]='\0';1088 } else {1089 strcpy(url, ptr1);1090 }1091 } else {1092 owl_function_beep();1093 owl_function_error("Could not find URL to open.");1094 return;1095 }1096 1097 /* Make sure there aren't any quotes or \'s in the url */1098 for (ptr1 = url; *ptr1; ptr1++) {1099 if (*ptr1 == '"' || *ptr1 == '\\') {1100 owl_function_beep();1101 owl_function_error("URL contains invalid characters.");1102 return;1103 }1104 }1105 1106 /* NOTE: There are potentially serious security issues here... */1107 1108 /* open the page */1109 owl_function_makemsg("Opening %s", url);1110 if (webbrowser == OWL_WEBBROWSER_NETSCAPE) {1111 snprintf(tmpbuff, LINE, "netscape -remote \"openURL(%s)\" > /dev/null 2> /dev/null", url);1112 system(tmpbuff);1113 } else if (webbrowser == OWL_WEBBROWSER_GALEON) {1114 snprintf(tmpbuff, LINE, "galeon \"%s\" > /dev/null 2> /dev/null &", url);1115 system(tmpbuff);1116 } else if (webbrowser == OWL_WEBBROWSER_OPERA) {1117 snprintf(tmpbuff, LINE, "opera \"%s\" > /dev/null 2> /dev/null &", url);1118 system(tmpbuff);1119 }1120 1031 } 1121 1032 … … 1239 1150 int owl_function_calculate_topmsg_normal(int direction, owl_view *v, int curmsg, int topmsg, int recwinlines) 1240 1151 { 1241 int savey, j,i, foo, y;1152 int savey, i, foo, y; 1242 1153 1243 1154 if (curmsg<0) return(topmsg); … … 1248 1159 } 1249 1160 1250 /* Find number of lines from top to bottom of curmsg (store in savey) */ 1251 savey=0; 1252 for (i=topmsg; i<=curmsg; i++) { 1253 savey+=owl_message_get_numlines(owl_view_get_element(v, i)); 1161 /* If curmsg is so far past topmsg that there are more messages than 1162 lines, skip the line counting that follows because we're 1163 certainly off screen. */ 1164 savey=curmsg-topmsg; 1165 if (savey <= recwinlines) { 1166 /* Find number of lines from top to bottom of curmsg (store in savey) */ 1167 savey = 0; 1168 for (i=topmsg; i<=curmsg; i++) { 1169 savey+=owl_message_get_numlines(owl_view_get_element(v, i)); 1170 } 1254 1171 } 1255 1172 … … 1258 1175 if (savey > recwinlines) { 1259 1176 topmsg=curmsg; 1260 savey=owl_message_get_numlines(owl_view_get_element(v, i));1177 savey=owl_message_get_numlines(owl_view_get_element(v, curmsg)); 1261 1178 direction=OWL_DIRECTION_UPWARDS; 1262 1179 } … … 1266 1183 if (savey < (recwinlines / 4)) { 1267 1184 y=0; 1268 for ( j=curmsg; j>=0; j--) {1269 foo=owl_message_get_numlines(owl_view_get_element(v, j));1185 for (i=curmsg; i>=0; i--) { 1186 foo=owl_message_get_numlines(owl_view_get_element(v, i)); 1270 1187 /* will we run the curmsg off the screen? */ 1271 1188 if ((foo+y) >= recwinlines) { 1272 j++;1273 if ( j>curmsg) j=curmsg;1189 i++; 1190 if (i>curmsg) i=curmsg; 1274 1191 break; 1275 1192 } … … 1278 1195 if (y > (recwinlines / 2)) break; 1279 1196 } 1280 if ( j<0) j=0;1281 return( j);1197 if (i<0) i=0; 1198 return(i); 1282 1199 } 1283 1200 } … … 1288 1205 y=0; 1289 1206 /* count lines from the top until we can save 1/2 the screen size */ 1290 for ( j=topmsg; j<curmsg; j++) {1291 y+=owl_message_get_numlines(owl_view_get_element(v, j));1207 for (i=topmsg; i<curmsg; i++) { 1208 y+=owl_message_get_numlines(owl_view_get_element(v, i)); 1292 1209 if (y > (recwinlines / 2)) break; 1293 1210 } 1294 if ( j==curmsg) {1295 j--;1211 if (i==curmsg) { 1212 i--; 1296 1213 } 1297 return( j+1);1214 return(i+1); 1298 1215 } 1299 1216 } … … 1475 1392 void owl_function_about() 1476 1393 { 1477 char buff[5000]; 1478 1479 sprintf(buff, "This is owl version %s\n", OWL_VERSION_STRING); 1480 strcat(buff, "\nOwl was written by James Kretchmar at the Massachusetts\n"); 1481 strcat(buff, "Institute of Technology. The first version, 0.5, was\n"); 1482 strcat(buff, "released in March 2002.\n"); 1483 strcat(buff, "\n"); 1484 strcat(buff, "The name 'owl' was chosen in reference to the owls in the\n"); 1485 strcat(buff, "Harry Potter novels, who are tasked with carrying messages\n"); 1486 strcat(buff, "between Witches and Wizards.\n"); 1487 strcat(buff, "\n"); 1488 strcat(buff, "Copyright 2002 Massachusetts Institute of Technology\n"); 1489 strcat(buff, "\n"); 1490 strcat(buff, "Permission to use, copy, modify, and distribute this\n"); 1491 strcat(buff, "software and its documentation for any purpose and without\n"); 1492 strcat(buff, "fee is hereby granted, provided that the above copyright\n"); 1493 strcat(buff, "notice and this permission notice appear in all copies\n"); 1494 strcat(buff, "and in supporting documentation. No representation is\n"); 1495 strcat(buff, "made about the suitability of this software for any\n"); 1496 strcat(buff, "purpose. It is provided \"as is\" without express\n"); 1497 strcat(buff, "or implied warranty.\n"); 1498 owl_function_popless_text(buff); 1394 owl_function_show_license(); 1499 1395 } 1500 1396 … … 2594 2490 /* downcase it */ 2595 2491 downstr(filtname); 2596 /* turn spaces into dots */2492 /* turn spaces, single quotes, and double quotes into dots */ 2597 2493 owl_text_tr(filtname, ' ', '.'); 2494 owl_text_tr(filtname, '\'', '.'); 2495 owl_text_tr(filtname, '"', '.'); 2598 2496 2599 2497 /* if it already exists then go with it. This lets users override */ … … 2606 2504 tmpclass=owl_text_quote(class, OWL_REGEX_QUOTECHARS, OWL_REGEX_QUOTEWITH); 2607 2505 owl_text_tr(tmpclass, ' ', '.'); 2506 owl_text_tr(tmpclass, '\'', '.'); 2507 owl_text_tr(tmpclass, '"', '.'); 2608 2508 if (instance) { 2609 2509 tmpinstance=owl_text_quote(instance, OWL_REGEX_QUOTECHARS, OWL_REGEX_QUOTEWITH); 2610 2510 owl_text_tr(tmpinstance, ' ', '.'); 2511 owl_text_tr(tmpinstance, '\'', '.'); 2512 owl_text_tr(tmpinstance, '"', '.'); 2611 2513 } 2612 2514 sprintf(argbuff, "( class ^%s$ )", tmpclass); … … 2683 2585 owl_filter *f; 2684 2586 char *argbuff, *filtname; 2587 char *escuser; 2685 2588 2686 2589 /* name for the filter */ … … 2696 2599 f=owl_malloc(sizeof(owl_filter)); 2697 2600 2601 escuser = owl_text_quote(user, OWL_REGEX_QUOTECHARS, OWL_REGEX_QUOTEWITH); 2602 2698 2603 argbuff=owl_malloc(1000); 2699 2604 sprintf(argbuff, 2700 "( type ^aim$ and ( ( sender ^%s$ and recipient ^%s$ ) or ( sender ^%s$ and recipient ^%s$ ) ) )",2701 user, owl_global_get_aim_screenname(&g), owl_global_get_aim_screenname(&g),user);2605 "( type ^aim$ and ( ( sender ^%s$ and recipient ^%s$ ) or ( sender ^%s$ and recipient ^%s$ ) ) )", 2606 escuser, owl_global_get_aim_screenname(&g), owl_global_get_aim_screenname(&g), escuser); 2702 2607 2703 2608 owl_filter_init_fromstring(f, filtname, argbuff); … … 2708 2613 /* free stuff */ 2709 2614 owl_free(argbuff); 2615 owl_free(escuser); 2710 2616 2711 2617 return(filtname); … … 2989 2895 quoted=owl_text_quote(class, OWL_REGEX_QUOTECHARS, OWL_REGEX_QUOTEWITH); 2990 2896 owl_text_tr(quoted, ' ', '.'); 2897 owl_text_tr(quoted, '\'', '.'); 2898 owl_text_tr(quoted, '"', '.'); 2991 2899 sprintf(buff, "%s ^%s$", buff, quoted); 2992 2900 owl_free(quoted); … … 2997 2905 quoted=owl_text_quote(inst, OWL_REGEX_QUOTECHARS, OWL_REGEX_QUOTEWITH); 2998 2906 owl_text_tr(quoted, ' ', '.'); 2907 owl_text_tr(quoted, '\'', '.'); 2908 owl_text_tr(quoted, '"', '.'); 2999 2909 sprintf(buff, "%s and instance ^%s$", buff, quoted); 3000 2910 owl_free(quoted); … … 3003 2913 quoted=owl_text_quote(recip, OWL_REGEX_QUOTECHARS, OWL_REGEX_QUOTEWITH); 3004 2914 owl_text_tr(quoted, ' ', '.'); 2915 owl_text_tr(quoted, '\'', '.'); 2916 owl_text_tr(quoted, '"', '.'); 3005 2917 sprintf(buff, "%s and recipient ^%s$", buff, quoted); 3006 2918 owl_free(quoted); … … 3270 3182 owl_fmtext_append_normal(&fm, line); 3271 3183 owl_free(tmp); 3184 owl_free(line); 3272 3185 } 3273 3186 if (numlocs>=200) { … … 3428 3341 void owl_function_source(char *filename) 3429 3342 { 3343 char *path; 3430 3344 FILE *file; 3431 3345 char buff[LINE]; 3346 int fail_silent = 0; 3432 3347 3433 3348 if (!filename) { 3434 filename=owl_sprintf("%s/%s", owl_global_get_homedir(&g), OWL_STARTUP_FILE); 3435 file=fopen(filename, "r"); 3436 owl_free(filename); 3437 } else { 3438 file=fopen(filename, "r"); 3439 } 3349 fail_silent = 1; 3350 path = owl_sprintf("%s/%s", owl_global_get_homedir(&g), OWL_STARTUP_FILE); 3351 } else { 3352 path = owl_util_makepath(filename); 3353 } 3354 file=fopen(path, "r"); 3355 owl_free(path); 3440 3356 if (!file) { 3441 /* just fail silently if it doesn't exist */ 3357 if (!fail_silent) { 3358 owl_function_error("Error opening file: %s", filename); 3359 } 3442 3360 return; 3443 3361 } 3444 3362 while (fgets(buff, LINE, file)!=NULL) { 3363 if (buff[0] == '#') continue; 3445 3364 buff[strlen(buff)-1]='\0'; 3446 3365 owl_function_command(buff); -
global.c
r176d3443 rdab82f29 1 /* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar 2 * 3 * This file is part of Owl. 4 * 5 * Owl is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * Owl is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with Owl. If not, see <http://www.gnu.org/licenses/>. 17 * 18 * --------------------------------------------------------------- 19 * 20 * As of Owl version 2.1.12 there are patches contributed by 21 * developers of the the branched BarnOwl project, Copyright (c) 22 * 2006-2008 The BarnOwl Developers. All rights reserved. 23 */ 24 1 25 #include <stdio.h> 2 26 #include <unistd.h> … … 50 74 owl_keys_setup_keymaps(&g->kh); 51 75 52 owl_list_create(&(g->muxevents));53 76 owl_list_create(&(g->filterlist)); 54 77 owl_list_create(&(g->puntlist)); … … 110 133 owl_zbuddylist_create(&(g->zbuddies)); 111 134 owl_timer_create_countdown(&(g->zephyr_buddycheck_timer), 60*3); 135 136 owl_list_create(&(g->dispatchlist)); 112 137 } 113 138 … … 392 417 } 393 418 419 #ifdef HAVE_RESIZETERM 394 420 resizeterm(size.ws_row, size.ws_col); 421 #endif 395 422 396 423 /* re-initialize the windows */ … … 399 426 /* in case any styles rely on the current width */ 400 427 owl_messagelist_invalidate_formats(owl_global_get_msglist(g)); 428 429 /* recalculate the topmsg to make sure the current message is on 430 * screen */ 431 owl_function_calculate_topmsg(OWL_DIRECTION_NONE); 401 432 402 433 /* refresh stuff */ … … 522 553 } 523 554 524 /* muxevents */525 526 owl_muxevents *owl_global_get_muxevents(owl_global *g) {527 return(&(g->muxevents));528 }529 530 555 /* filterlist */ 531 556 … … 889 914 return(&(g->startup_tio)); 890 915 } 916 917 owl_list *owl_global_get_dispatchlist(owl_global *g) 918 { 919 return &(g->dispatchlist); 920 } -
help.c
r3895e23 rdab82f29 1 /* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar 2 * 3 * This file is part of Owl. 4 * 5 * Owl is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * Owl is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with Owl. If not, see <http://www.gnu.org/licenses/>. 17 * 18 * --------------------------------------------------------------- 19 * 20 * As of Owl version 2.1.12 there are patches contributed by 21 * developers of the the branched BarnOwl project, Copyright (c) 22 * 2006-2008 The BarnOwl Developers. All rights reserved. 23 */ 24 1 25 #include "owl.h" 2 26 #include <string.h> -
history.c
r52f3507 rdab82f29 1 /* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar 2 * 3 * This file is part of Owl. 4 * 5 * Owl is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * Owl is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with Owl. If not, see <http://www.gnu.org/licenses/>. 17 * 18 * --------------------------------------------------------------- 19 * 20 * As of Owl version 2.1.12 there are patches contributed by 21 * developers of the the branched BarnOwl project, Copyright (c) 22 * 2006-2008 The BarnOwl Developers. All rights reserved. 23 */ 24 1 25 #include "owl.h" 2 26 -
keybinding.c
r176d3443 rdab82f29 1 /* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar 2 * 3 * This file is part of Owl. 4 * 5 * Owl is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * Owl is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with Owl. If not, see <http://www.gnu.org/licenses/>. 17 * 18 * --------------------------------------------------------------- 19 * 20 * As of Owl version 2.1.12 there are patches contributed by 21 * developers of the the branched BarnOwl project, Copyright (c) 22 * 2006-2008 The BarnOwl Developers. All rights reserved. 23 */ 24 1 25 #include <ctype.h> 2 26 #include <string.h> … … 44 68 } 45 69 kb->j[i] = 0; 70 71 atokenize_free(ktokens, nktokens); 46 72 47 73 if (command) kb->command = owl_strdup(command); -
keymap.c
rcf83b7a rdab82f29 1 /* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar 2 * 3 * This file is part of Owl. 4 * 5 * Owl is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * Owl is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with Owl. If not, see <http://www.gnu.org/licenses/>. 17 * 18 * --------------------------------------------------------------- 19 * 20 * As of Owl version 2.1.12 there are patches contributed by 21 * developers of the the branched BarnOwl project, Copyright (c) 22 * 2006-2008 The BarnOwl Developers. All rights reserved. 23 */ 24 1 25 #include <string.h> 2 26 #include "owl.h" -
keypress.c
r948b942 rdab82f29 1 /* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar 2 * 3 * This file is part of Owl. 4 * 5 * Owl is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * Owl is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with Owl. If not, see <http://www.gnu.org/licenses/>. 17 * 18 * --------------------------------------------------------------- 19 * 20 * As of Owl version 2.1.12 there are patches contributed by 21 * developers of the the branched BarnOwl project, Copyright (c) 22 * 2006-2008 The BarnOwl Developers. All rights reserved. 23 */ 24 1 25 #include <ctype.h> 2 26 #include <string.h> -
keys.c
r3895e23 rdab82f29 1 /* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar 2 * 3 * This file is part of Owl. 4 * 5 * Owl is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * Owl is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with Owl. If not, see <http://www.gnu.org/licenses/>. 17 * 18 * --------------------------------------------------------------- 19 * 20 * As of Owl version 2.1.12 there are patches contributed by 21 * developers of the the branched BarnOwl project, Copyright (c) 22 * 2006-2008 The BarnOwl Developers. All rights reserved. 23 */ 24 1 25 #include "owl.h" 2 26 … … 275 299 BIND_CMD("M-r", "reply -e", "reply to the current message, but allow editing of recipient"); 276 300 BIND_CMD("M-R", "reply -e sender", "reply to sender of the current message, but allow editing of recipient"); 277 278 BIND_CMD("w", "openurl", "open a URL using a webbrowser");279 301 280 302 BIND_CMD("C-c", "", "no effect in this mode"); -
libfaim/configure
r1ef65fb rdab82f29 1 1 #! /bin/sh 2 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2. 59.3 # Generated by GNU Autoconf 2.61. 4 4 # 5 # Copyright (C) 2003 Free Software Foundation, Inc. 5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 6 7 # This configure script is free software; the Free Software Foundation 7 8 # gives unlimited permission to copy, distribute and modify it. … … 10 11 ## --------------------- ## 11 12 12 # Be Bourne compatible 13 # Be more Bourne compatible 14 DUALCASE=1; export DUALCASE # for MKS sh 13 15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 14 16 emulate sh … … 17 19 # is contrary to our usage. Disable this feature. 18 20 alias -g '${1+"$@"}'='"$@"' 19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 20 set -o posix 21 fi 22 DUALCASE=1; export DUALCASE # for MKS sh 23 24 # Support unset when possible. 25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 26 as_unset=unset 27 else 28 as_unset=false 29 fi 30 31 32 # Work around bugs in pre-3.0 UWIN ksh. 33 $as_unset ENV MAIL MAILPATH 34 PS1='$ ' 35 PS2='> ' 36 PS4='+ ' 37 38 # NLS nuisances. 39 for as_var in \ 40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 42 LC_TELEPHONE LC_TIME 43 do 44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 45 eval $as_var=C; export $as_var 46 else 47 $as_unset $as_var 48 fi 49 done 50 51 # Required to use basename. 52 if expr a : '\(a\)' >/dev/null 2>&1; then 53 as_expr=expr 54 else 55 as_expr=false 56 fi 57 58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 59 as_basename=basename 60 else 61 as_basename=false 62 fi 63 64 65 # Name of the executable. 66 as_me=`$as_basename "$0" || 67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 68 X"$0" : 'X\(//\)$' \| \ 69 X"$0" : 'X\(/\)$' \| \ 70 . : '\(.\)' 2>/dev/null || 71 echo X/"$0" | 72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 73 /^X\/\(\/\/\)$/{ s//\1/; q; } 74 /^X\/\(\/\).*/{ s//\1/; q; } 75 s/.*/./; q'` 76 77 78 # PATH needs CR, and LINENO needs CR and PATH. 21 setopt NO_GLOB_SUBST 22 else 23 case `(set -o) 2>/dev/null` in 24 *posix*) set -o posix ;; 25 esac 26 27 fi 28 29 30 31 32 # PATH needs CR 79 33 # Avoid depending upon Character Ranges. 80 34 as_cr_letters='abcdefghijklmnopqrstuvwxyz' … … 97 51 fi 98 52 99 100 as_lineno_1=$LINENO 101 as_lineno_2=$LINENO 102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 103 test "x$as_lineno_1" != "x$as_lineno_2" && 104 test "x$as_lineno_3" = "x$as_lineno_2" || { 105 # Find who we are. Look in the path if we contain no path at all 106 # relative or not. 107 case $0 in 108 *[\\/]* ) as_myself=$0 ;; 109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 53 # Support unset when possible. 54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 55 as_unset=unset 56 else 57 as_unset=false 58 fi 59 60 61 # IFS 62 # We need space, tab and new line, in precisely that order. Quoting is 63 # there to prevent editors from complaining about space-tab. 64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 65 # splitting by setting IFS to empty value.) 66 as_nl=' 67 ' 68 IFS=" "" $as_nl" 69 70 # Find who we are. Look in the path if we contain no directory separator. 71 case $0 in 72 *[\\/]* ) as_myself=$0 ;; 73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 110 74 for as_dir in $PATH 111 75 do … … 114 78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 115 79 done 116 117 ;; 118 esac 119 # We did not find ourselves, most probably we were run as `sh COMMAND' 120 # in which case we are not to be found in the path. 121 if test "x$as_myself" = x; then 122 as_myself=$0 80 IFS=$as_save_IFS 81 82 ;; 83 esac 84 # We did not find ourselves, most probably we were run as `sh COMMAND' 85 # in which case we are not to be found in the path. 86 if test "x$as_myself" = x; then 87 as_myself=$0 88 fi 89 if test ! -f "$as_myself"; then 90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 91 { (exit 1); exit 1; } 92 fi 93 94 # Work around bugs in pre-3.0 UWIN ksh. 95 for as_var in ENV MAIL MAILPATH 96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 97 done 98 PS1='$ ' 99 PS2='> ' 100 PS4='+ ' 101 102 # NLS nuisances. 103 for as_var in \ 104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 106 LC_TELEPHONE LC_TIME 107 do 108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 109 eval $as_var=C; export $as_var 110 else 111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 123 112 fi 124 if test ! -f "$as_myself"; then 125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 126 { (exit 1); exit 1; }; } 127 fi 128 case $CONFIG_SHELL in 129 '') 113 done 114 115 # Required to use basename. 116 if expr a : '\(a\)' >/dev/null 2>&1 && 117 test "X`expr 00001 : '.*\(...\)'`" = X001; then 118 as_expr=expr 119 else 120 as_expr=false 121 fi 122 123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 124 as_basename=basename 125 else 126 as_basename=false 127 fi 128 129 130 # Name of the executable. 131 as_me=`$as_basename -- "$0" || 132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 133 X"$0" : 'X\(//\)$' \| \ 134 X"$0" : 'X\(/\)' \| . 2>/dev/null || 135 echo X/"$0" | 136 sed '/^.*\/\([^/][^/]*\)\/*$/{ 137 s//\1/ 138 q 139 } 140 /^X\/\(\/\/\)$/{ 141 s//\1/ 142 q 143 } 144 /^X\/\(\/\).*/{ 145 s//\1/ 146 q 147 } 148 s/.*/./; q'` 149 150 # CDPATH. 151 $as_unset CDPATH 152 153 154 if test "x$CONFIG_SHELL" = x; then 155 if (eval ":") 2>/dev/null; then 156 as_have_required=yes 157 else 158 as_have_required=no 159 fi 160 161 if test $as_have_required = yes && (eval ": 162 (as_func_return () { 163 (exit \$1) 164 } 165 as_func_success () { 166 as_func_return 0 167 } 168 as_func_failure () { 169 as_func_return 1 170 } 171 as_func_ret_success () { 172 return 0 173 } 174 as_func_ret_failure () { 175 return 1 176 } 177 178 exitcode=0 179 if as_func_success; then 180 : 181 else 182 exitcode=1 183 echo as_func_success failed. 184 fi 185 186 if as_func_failure; then 187 exitcode=1 188 echo as_func_failure succeeded. 189 fi 190 191 if as_func_ret_success; then 192 : 193 else 194 exitcode=1 195 echo as_func_ret_success failed. 196 fi 197 198 if as_func_ret_failure; then 199 exitcode=1 200 echo as_func_ret_failure succeeded. 201 fi 202 203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 204 : 205 else 206 exitcode=1 207 echo positional parameters were not saved. 208 fi 209 210 test \$exitcode = 0) || { (exit 1); exit 1; } 211 212 ( 213 as_lineno_1=\$LINENO 214 as_lineno_2=\$LINENO 215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && 216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } 217 ") 2> /dev/null; then 218 : 219 else 220 as_candidate_shells= 130 221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 131 222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH … … 133 224 IFS=$as_save_IFS 134 225 test -z "$as_dir" && as_dir=. 135 for as_base in sh bash ksh sh5; do 136 case $as_dir in 226 case $as_dir in 137 227 /*) 138 if ("$as_dir/$as_base" -c ' 228 for as_base in sh bash ksh sh5; do 229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base" 230 done;; 231 esac 232 done 233 IFS=$as_save_IFS 234 235 236 for as_shell in $as_candidate_shells $SHELL; do 237 # Try only shells that exist, to save several forks. 238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 239 { ("$as_shell") 2> /dev/null <<\_ASEOF 240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 241 emulate sh 242 NULLCMD=: 243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 244 # is contrary to our usage. Disable this feature. 245 alias -g '${1+"$@"}'='"$@"' 246 setopt NO_GLOB_SUBST 247 else 248 case `(set -o) 2>/dev/null` in 249 *posix*) set -o posix ;; 250 esac 251 252 fi 253 254 255 : 256 _ASEOF 257 }; then 258 CONFIG_SHELL=$as_shell 259 as_have_required=yes 260 if { "$as_shell" 2> /dev/null <<\_ASEOF 261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 262 emulate sh 263 NULLCMD=: 264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 265 # is contrary to our usage. Disable this feature. 266 alias -g '${1+"$@"}'='"$@"' 267 setopt NO_GLOB_SUBST 268 else 269 case `(set -o) 2>/dev/null` in 270 *posix*) set -o posix ;; 271 esac 272 273 fi 274 275 276 : 277 (as_func_return () { 278 (exit $1) 279 } 280 as_func_success () { 281 as_func_return 0 282 } 283 as_func_failure () { 284 as_func_return 1 285 } 286 as_func_ret_success () { 287 return 0 288 } 289 as_func_ret_failure () { 290 return 1 291 } 292 293 exitcode=0 294 if as_func_success; then 295 : 296 else 297 exitcode=1 298 echo as_func_success failed. 299 fi 300 301 if as_func_failure; then 302 exitcode=1 303 echo as_func_failure succeeded. 304 fi 305 306 if as_func_ret_success; then 307 : 308 else 309 exitcode=1 310 echo as_func_ret_success failed. 311 fi 312 313 if as_func_ret_failure; then 314 exitcode=1 315 echo as_func_ret_failure succeeded. 316 fi 317 318 if ( set x; as_func_ret_success y && test x = "$1" ); then 319 : 320 else 321 exitcode=1 322 echo positional parameters were not saved. 323 fi 324 325 test $exitcode = 0) || { (exit 1); exit 1; } 326 327 ( 139 328 as_lineno_1=$LINENO 140 329 as_lineno_2=$LINENO 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`142 330 test "x$as_lineno_1" != "x$as_lineno_2" && 143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 146 CONFIG_SHELL=$as_dir/$as_base 147 export CONFIG_SHELL 148 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 149 fi;; 150 esac 151 done 152 done 153 ;; 154 esac 331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } 332 333 _ASEOF 334 }; then 335 break 336 fi 337 338 fi 339 340 done 341 342 if test "x$CONFIG_SHELL" != x; then 343 for as_var in BASH_ENV ENV 344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 345 done 346 export CONFIG_SHELL 347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 348 fi 349 350 351 if test $as_have_required = no; then 352 echo This script requires a shell more modern than all the 353 echo shells that I found on your system. Please install a 354 echo modern shell, or manually run the script under such a 355 echo shell if you do have one. 356 { (exit 1); exit 1; } 357 fi 358 359 360 fi 361 362 fi 363 364 365 366 (eval "as_func_return () { 367 (exit \$1) 368 } 369 as_func_success () { 370 as_func_return 0 371 } 372 as_func_failure () { 373 as_func_return 1 374 } 375 as_func_ret_success () { 376 return 0 377 } 378 as_func_ret_failure () { 379 return 1 380 } 381 382 exitcode=0 383 if as_func_success; then 384 : 385 else 386 exitcode=1 387 echo as_func_success failed. 388 fi 389 390 if as_func_failure; then 391 exitcode=1 392 echo as_func_failure succeeded. 393 fi 394 395 if as_func_ret_success; then 396 : 397 else 398 exitcode=1 399 echo as_func_ret_success failed. 400 fi 401 402 if as_func_ret_failure; then 403 exitcode=1 404 echo as_func_ret_failure succeeded. 405 fi 406 407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then 408 : 409 else 410 exitcode=1 411 echo positional parameters were not saved. 412 fi 413 414 test \$exitcode = 0") || { 415 echo No shell found that supports shell functions. 416 echo Please tell autoconf@gnu.org about your system, 417 echo including any error possibly output before this 418 echo message 419 } 420 421 422 423 as_lineno_1=$LINENO 424 as_lineno_2=$LINENO 425 test "x$as_lineno_1" != "x$as_lineno_2" && 426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 155 427 156 428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 157 429 # uniformly replaced by the line number. The first 'sed' inserts a 158 # line-number line before each line; the second 'sed' does the real 159 # work. The second script uses 'N' to pair each line-number line 160 # with the numbered line, and appends trailing '-' during 161 # substitution so that $LINENO is not a special case at line end. 430 # line-number line after each line using $LINENO; the second 'sed' 431 # does the real work. The second script uses 'N' to pair each 432 # line-number line with the line containing $LINENO, and appends 433 # trailing '-' during substitution so that $LINENO is not a special 434 # case at line end. 162 435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 164 sed '=' <$as_myself | 436 # scripts with optimization help from Paolo Bonzini. Blame Lee 437 # E. McMahon (1931-1989) for sed's syntax. :-) 438 sed -n ' 439 p 440 /[$]LINENO/= 441 ' <$as_myself | 165 442 sed ' 443 s/[$]LINENO.*/&-/ 444 t lineno 445 b 446 :lineno 166 447 N 167 s,$,-, 168 : loop 169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 448 :loop 449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 170 450 t loop 171 s,-$,, 172 s,^['$as_cr_digits']*\n,, 451 s/-\n.*// 173 452 ' >$as_me.lineno && 174 chmod +x $as_me.lineno||453 chmod +x "$as_me.lineno" || 175 454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 176 455 { (exit 1); exit 1; }; } … … 178 457 # Don't try to exec as it changes $[0], causing all sort of problems 179 458 # (the dirname of $[0] is not the place where we might find the 180 # original and so on. Autoconf is especially sensi ble to this).181 . ./$as_me.lineno459 # original and so on. Autoconf is especially sensitive to this). 460 . "./$as_me.lineno" 182 461 # Exit status is that of the last command. 183 462 exit … … 185 464 186 465 187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 188 *c*,-n*) ECHO_N= ECHO_C=' 189 ' ECHO_T=' ' ;; 190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 467 as_dirname=dirname 468 else 469 as_dirname=false 470 fi 471 472 ECHO_C= ECHO_N= ECHO_T= 473 case `echo -n x` in 474 -n*) 475 case `echo 'x\c'` in 476 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 477 *) ECHO_C='\c';; 478 esac;; 479 *) 480 ECHO_N='-n';; 192 481 esac 193 482 194 if expr a : '\(a\)' >/dev/null 2>&1; then 483 if expr a : '\(a\)' >/dev/null 2>&1 && 484 test "X`expr 00001 : '.*\(...\)'`" = X001; then 195 485 as_expr=expr 196 486 else … … 199 489 200 490 rm -f conf$$ conf$$.exe conf$$.file 491 if test -d conf$$.dir; then 492 rm -f conf$$.dir/conf$$.file 493 else 494 rm -f conf$$.dir 495 mkdir conf$$.dir 496 fi 201 497 echo >conf$$.file 202 498 if ln -s conf$$.file conf$$ 2>/dev/null; then 203 # We could just check for DJGPP; but this test a) works b) is more generic 204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 205 if test -f conf$$.exe; then 206 # Don't use ln at all; we don't have any links 499 as_ln_s='ln -s' 500 # ... but there are two gotchas: 501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 503 # In both cases, we have to default to `cp -p'. 504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 207 505 as_ln_s='cp -p' 208 else209 as_ln_s='ln -s'210 fi211 506 elif ln conf$$.file conf$$ 2>/dev/null; then 212 507 as_ln_s=ln … … 214 509 as_ln_s='cp -p' 215 510 fi 216 rm -f conf$$ conf$$.exe conf$$.file 511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 512 rmdir conf$$.dir 2>/dev/null 217 513 218 514 if mkdir -p . 2>/dev/null; then … … 223 519 fi 224 520 225 as_executable_p="test -f" 521 if test -x / >/dev/null 2>&1; then 522 as_test_x='test -x' 523 else 524 if ls -dL / >/dev/null 2>&1; then 525 as_ls_L_option=L 526 else 527 as_ls_L_option= 528 fi 529 as_test_x=' 530 eval sh -c '\'' 531 if test -d "$1"; then 532 test -d "$1/."; 533 else 534 case $1 in 535 -*)set "./$1";; 536 esac; 537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 538 ???[sx]*):;;*)false;;esac;fi 539 '\'' sh 540 ' 541 fi 542 as_executable_p=$as_test_x 226 543 227 544 # Sed expression to map a string onto a valid CPP name. … … 232 549 233 550 234 # IFS 235 # We need space, tab and new line, in precisely that order. 236 as_nl=' 237 ' 238 IFS=" $as_nl" 239 240 # CDPATH. 241 $as_unset CDPATH 242 551 552 exec 7<&0 </dev/null 6>&1 243 553 244 554 # Name of the host. … … 247 557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 248 558 249 exec 6>&1250 251 559 # 252 560 # Initializations. 253 561 # 254 562 ac_default_prefix=/usr/local 563 ac_clean_files= 255 564 ac_config_libobj_dir=. 565 LIBOBJS= 256 566 cross_compiling=no 257 567 subdirs= … … 259 569 MAKEFLAGS= 260 570 SHELL=${CONFIG_SHELL-/bin/sh} 261 262 # Maximum number of lines to put in a shell here document.263 # This variable seems obsolete. It should probably be removed, and264 # only ac_max_sed_lines should be used.265 : ${ac_max_here_lines=38}266 571 267 572 # Identity of this package. … … 273 578 274 579 ac_unique_file="bos.c" 275 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT RANLIB ac_ct_RANLIB LIBOBJS LTLIBOBJS' 580 ac_subst_vars='SHELL 581 PATH_SEPARATOR 582 PACKAGE_NAME 583 PACKAGE_TARNAME 584 PACKAGE_VERSION 585 PACKAGE_STRING 586 PACKAGE_BUGREPORT 587 exec_prefix 588 prefix 589 program_transform_name 590 bindir 591 sbindir 592 libexecdir 593 datarootdir 594 datadir 595 sysconfdir 596 sharedstatedir 597 localstatedir 598 includedir 599 oldincludedir 600 docdir 601 infodir 602 htmldir 603 dvidir 604 pdfdir 605 psdir 606 libdir 607 localedir 608 mandir 609 DEFS 610 ECHO_C 611 ECHO_N 612 ECHO_T 613 LIBS 614 build_alias 615 host_alias 616 target_alias 617 CC 618 CFLAGS 619 LDFLAGS 620 CPPFLAGS 621 ac_ct_CC 622 EXEEXT 623 OBJEXT 624 RANLIB 625 LIBOBJS 626 LTLIBOBJS' 276 627 ac_subst_files='' 628 ac_precious_vars='build_alias 629 host_alias 630 target_alias 631 CC 632 CFLAGS 633 LDFLAGS 634 LIBS 635 CPPFLAGS' 636 277 637 278 638 # Initialize some variables set by options. … … 301 661 # by default will actually change. 302 662 # Use braces instead of parens because sh, perl, etc. also accept them. 663 # (The list follows the same order as the GNU Coding Standards.) 303 664 bindir='${exec_prefix}/bin' 304 665 sbindir='${exec_prefix}/sbin' 305 666 libexecdir='${exec_prefix}/libexec' 306 datadir='${prefix}/share' 667 datarootdir='${prefix}/share' 668 datadir='${datarootdir}' 307 669 sysconfdir='${prefix}/etc' 308 670 sharedstatedir='${prefix}/com' 309 671 localstatedir='${prefix}/var' 310 libdir='${exec_prefix}/lib'311 672 includedir='${prefix}/include' 312 673 oldincludedir='/usr/include' 313 infodir='${prefix}/info' 314 mandir='${prefix}/man' 674 docdir='${datarootdir}/doc/${PACKAGE}' 675 infodir='${datarootdir}/info' 676 htmldir='${docdir}' 677 dvidir='${docdir}' 678 pdfdir='${docdir}' 679 psdir='${docdir}' 680 libdir='${exec_prefix}/lib' 681 localedir='${datarootdir}/locale' 682 mandir='${datarootdir}/man' 315 683 316 684 ac_prev= 685 ac_dashdash= 317 686 for ac_option 318 687 do 319 688 # If the previous option needs an argument, assign it. 320 689 if test -n "$ac_prev"; then 321 eval "$ac_prev=\$ac_option"690 eval $ac_prev=\$ac_option 322 691 ac_prev= 323 692 continue 324 693 fi 325 694 326 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 695 case $ac_option in 696 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 697 *) ac_optarg=yes ;; 698 esac 327 699 328 700 # Accept the important Cygnus configure options, so we can diagnose typos. 329 701 330 case $ac_option in 702 case $ac_dashdash$ac_option in 703 --) 704 ac_dashdash=yes ;; 331 705 332 706 -bindir | --bindir | --bindi | --bind | --bin | --bi) … … 350 724 cache_file=config.cache ;; 351 725 352 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)726 -datadir | --datadir | --datadi | --datad) 353 727 ac_prev=datadir ;; 354 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 355 | --da=*) 728 -datadir=* | --datadir=* | --datadi=* | --datad=*) 356 729 datadir=$ac_optarg ;; 730 731 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 732 | --dataroo | --dataro | --datar) 733 ac_prev=datarootdir ;; 734 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 735 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 736 datarootdir=$ac_optarg ;; 357 737 358 738 -disable-* | --disable-*) 359 739 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 360 740 # Reject names that are not valid shell variable names. 361 expr "x$ac_feature" : ".*[^- _$as_cr_alnum]" >/dev/null &&741 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 362 742 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 363 743 { (exit 1); exit 1; }; } 364 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 365 eval "enable_$ac_feature=no" ;; 744 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 745 eval enable_$ac_feature=no ;; 746 747 -docdir | --docdir | --docdi | --doc | --do) 748 ac_prev=docdir ;; 749 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 750 docdir=$ac_optarg ;; 751 752 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 753 ac_prev=dvidir ;; 754 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 755 dvidir=$ac_optarg ;; 366 756 367 757 -enable-* | --enable-*) 368 758 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 369 759 # Reject names that are not valid shell variable names. 370 expr "x$ac_feature" : ".*[^- _$as_cr_alnum]" >/dev/null &&760 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 371 761 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 372 762 { (exit 1); exit 1; }; } 373 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 374 case $ac_option in 375 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 376 *) ac_optarg=yes ;; 377 esac 378 eval "enable_$ac_feature='$ac_optarg'" ;; 763 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 764 eval enable_$ac_feature=\$ac_optarg ;; 379 765 380 766 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ … … 403 789 host_alias=$ac_optarg ;; 404 790 791 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 792 ac_prev=htmldir ;; 793 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 794 | --ht=*) 795 htmldir=$ac_optarg ;; 796 405 797 -includedir | --includedir | --includedi | --included | --include \ 406 798 | --includ | --inclu | --incl | --inc) … … 427 819 libexecdir=$ac_optarg ;; 428 820 821 -localedir | --localedir | --localedi | --localed | --locale) 822 ac_prev=localedir ;; 823 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 824 localedir=$ac_optarg ;; 825 429 826 -localstatedir | --localstatedir | --localstatedi | --localstated \ 430 | --localstate | --localstat | --localsta | --localst \ 431 | --locals | --local | --loca | --loc | --lo) 827 | --localstate | --localstat | --localsta | --localst | --locals) 432 828 ac_prev=localstatedir ;; 433 829 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 434 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 435 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 830 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 436 831 localstatedir=$ac_optarg ;; 437 832 … … 498 893 program_transform_name=$ac_optarg ;; 499 894 895 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 896 ac_prev=pdfdir ;; 897 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 898 pdfdir=$ac_optarg ;; 899 900 -psdir | --psdir | --psdi | --psd | --ps) 901 ac_prev=psdir ;; 902 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 903 psdir=$ac_optarg ;; 904 500 905 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 501 906 | -silent | --silent | --silen | --sile | --sil) … … 550 955 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 551 956 # Reject names that are not valid shell variable names. 552 expr "x$ac_package" : ".*[^- _$as_cr_alnum]" >/dev/null &&957 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 553 958 { echo "$as_me: error: invalid package name: $ac_package" >&2 554 959 { (exit 1); exit 1; }; } 555 ac_package=`echo $ac_package| sed 's/-/_/g'` 556 case $ac_option in 557 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 558 *) ac_optarg=yes ;; 559 esac 560 eval "with_$ac_package='$ac_optarg'" ;; 960 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 961 eval with_$ac_package=\$ac_optarg ;; 561 962 562 963 -without-* | --without-*) 563 964 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 564 965 # Reject names that are not valid shell variable names. 565 expr "x$ac_package" : ".*[^- _$as_cr_alnum]" >/dev/null &&966 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 566 967 { echo "$as_me: error: invalid package name: $ac_package" >&2 567 968 { (exit 1); exit 1; }; } 568 ac_package=`echo $ac_package | sed 's/ -/_/g'`569 eval "with_$ac_package=no";;969 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 970 eval with_$ac_package=no ;; 570 971 571 972 --x) … … 598 999 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 599 1000 { (exit 1); exit 1; }; } 600 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 601 eval "$ac_envvar='$ac_optarg'" 1001 eval $ac_envvar=\$ac_optarg 602 1002 export $ac_envvar ;; 603 1003 … … 619 1019 fi 620 1020 621 # Be sure to have absolute paths. 622 for ac_var in exec_prefix prefix 1021 # Be sure to have absolute directory names. 1022 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1023 datadir sysconfdir sharedstatedir localstatedir includedir \ 1024 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1025 libdir localedir mandir 623 1026 do 624 eval ac_val= $`echo $ac_var`1027 eval ac_val=\$$ac_var 625 1028 case $ac_val in 626 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 627 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 628 { (exit 1); exit 1; }; };; 1029 [\\/$]* | ?:[\\/]* ) continue;; 1030 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 629 1031 esac 630 done 631 632 # Be sure to have absolute paths. 633 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 634 localstatedir libdir includedir oldincludedir infodir mandir 635 do 636 eval ac_val=$`echo $ac_var` 637 case $ac_val in 638 [\\/$]* | ?:[\\/]* ) ;; 639 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 640 { (exit 1); exit 1; }; };; 641 esac 1032 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1033 { (exit 1); exit 1; }; } 642 1034 done 643 1035 … … 666 1058 667 1059 1060 ac_pwd=`pwd` && test -n "$ac_pwd" && 1061 ac_ls_di=`ls -di .` && 1062 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1063 { echo "$as_me: error: Working directory cannot be determined" >&2 1064 { (exit 1); exit 1; }; } 1065 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1066 { echo "$as_me: error: pwd does not report name of working directory" >&2 1067 { (exit 1); exit 1; }; } 1068 1069 668 1070 # Find the source files, if location was not specified. 669 1071 if test -z "$srcdir"; then 670 1072 ac_srcdir_defaulted=yes 671 # Try the directory containing this script, then its parent.672 ac_confdir=` (dirname "$0") 2>/dev/null||1073 # Try the directory containing this script, then the parent directory. 1074 ac_confdir=`$as_dirname -- "$0" || 673 1075 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 674 1076 X"$0" : 'X\(//\)[^/]' \| \ 675 1077 X"$0" : 'X\(//\)$' \| \ 676 X"$0" : 'X\(/\)' \| \ 677 . : '\(.\)' 2>/dev/null || 1078 X"$0" : 'X\(/\)' \| . 2>/dev/null || 678 1079 echo X"$0" | 679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 680 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 681 /^X\(\/\/\)$/{ s//\1/; q; } 682 /^X\(\/\).*/{ s//\1/; q; } 683 s/.*/./; q'` 1080 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1081 s//\1/ 1082 q 1083 } 1084 /^X\(\/\/\)[^/].*/{ 1085 s//\1/ 1086 q 1087 } 1088 /^X\(\/\/\)$/{ 1089 s//\1/ 1090 q 1091 } 1092 /^X\(\/\).*/{ 1093 s//\1/ 1094 q 1095 } 1096 s/.*/./; q'` 684 1097 srcdir=$ac_confdir 685 if test ! -r $srcdir/$ac_unique_file; then1098 if test ! -r "$srcdir/$ac_unique_file"; then 686 1099 srcdir=.. 687 1100 fi … … 689 1102 ac_srcdir_defaulted=no 690 1103 fi 691 if test ! -r $srcdir/$ac_unique_file; then692 if test "$ac_srcdir_defaulted" = yes; then693 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&21104 if test ! -r "$srcdir/$ac_unique_file"; then 1105 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1106 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 694 1107 { (exit 1); exit 1; }; } 695 else 696 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1108 fi 1109 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1110 ac_abs_confdir=`( 1111 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 697 1112 { (exit 1); exit 1; }; } 698 fi 699 fi 700 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 701 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 702 { (exit 1); exit 1; }; } 703 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 704 ac_env_build_alias_set=${build_alias+set} 705 ac_env_build_alias_value=$build_alias 706 ac_cv_env_build_alias_set=${build_alias+set} 707 ac_cv_env_build_alias_value=$build_alias 708 ac_env_host_alias_set=${host_alias+set} 709 ac_env_host_alias_value=$host_alias 710 ac_cv_env_host_alias_set=${host_alias+set} 711 ac_cv_env_host_alias_value=$host_alias 712 ac_env_target_alias_set=${target_alias+set} 713 ac_env_target_alias_value=$target_alias 714 ac_cv_env_target_alias_set=${target_alias+set} 715 ac_cv_env_target_alias_value=$target_alias 716 ac_env_CC_set=${CC+set} 717 ac_env_CC_value=$CC 718 ac_cv_env_CC_set=${CC+set} 719 ac_cv_env_CC_value=$CC 720 ac_env_CFLAGS_set=${CFLAGS+set} 721 ac_env_CFLAGS_value=$CFLAGS 722 ac_cv_env_CFLAGS_set=${CFLAGS+set} 723 ac_cv_env_CFLAGS_value=$CFLAGS 724 ac_env_LDFLAGS_set=${LDFLAGS+set} 725 ac_env_LDFLAGS_value=$LDFLAGS 726 ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 727 ac_cv_env_LDFLAGS_value=$LDFLAGS 728 ac_env_CPPFLAGS_set=${CPPFLAGS+set} 729 ac_env_CPPFLAGS_value=$CPPFLAGS 730 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 731 ac_cv_env_CPPFLAGS_value=$CPPFLAGS 1113 pwd)` 1114 # When building in place, set srcdir=. 1115 if test "$ac_abs_confdir" = "$ac_pwd"; then 1116 srcdir=. 1117 fi 1118 # Remove unnecessary trailing slashes from srcdir. 1119 # Double slashes in file names in object file debugging info 1120 # mess up M-x gdb in Emacs. 1121 case $srcdir in 1122 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1123 esac 1124 for ac_var in $ac_precious_vars; do 1125 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1126 eval ac_env_${ac_var}_value=\$${ac_var} 1127 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1128 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1129 done 732 1130 733 1131 # … … 758 1156 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 759 1157 760 _ACEOF761 762 cat <<_ACEOF763 1158 Installation directories: 764 1159 --prefix=PREFIX install architecture-independent files in PREFIX … … 778 1173 --sbindir=DIR system admin executables [EPREFIX/sbin] 779 1174 --libexecdir=DIR program executables [EPREFIX/libexec] 780 --datadir=DIR read-only architecture-independent data [PREFIX/share]781 1175 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 782 1176 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] … … 785 1179 --includedir=DIR C header files [PREFIX/include] 786 1180 --oldincludedir=DIR C header files for non-gcc [/usr/include] 787 --infodir=DIR info documentation [PREFIX/info] 788 --mandir=DIR man documentation [PREFIX/man] 1181 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1182 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1183 --infodir=DIR info documentation [DATAROOTDIR/info] 1184 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1185 --mandir=DIR man documentation [DATAROOTDIR/man] 1186 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1187 --htmldir=DIR html documentation [DOCDIR] 1188 --dvidir=DIR dvi documentation [DOCDIR] 1189 --pdfdir=DIR pdf documentation [DOCDIR] 1190 --psdir=DIR ps documentation [DOCDIR] 789 1191 _ACEOF 790 1192 … … 802 1204 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 803 1205 nonstandard directory <lib dir> 804 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 805 headers in a nonstandard directory <include dir> 1206 LIBS libraries to pass to the linker, e.g. -l<library> 1207 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1208 you have headers in a nonstandard directory <include dir> 806 1209 807 1210 Use these variables to override the choices made by `configure' or to help … … 809 1212 810 1213 _ACEOF 1214 ac_status=$? 811 1215 fi 812 1216 813 1217 if test "$ac_init_help" = "recursive"; then 814 1218 # If there are subdirs, report their specific --help. 815 ac_popdir=`pwd`816 1219 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 817 test -d $ac_dir|| continue1220 test -d "$ac_dir" || continue 818 1221 ac_builddir=. 819 1222 820 if test "$ac_dir" != .; then 1223 case "$ac_dir" in 1224 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1225 *) 821 1226 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 822 # A "../" for each directory in $ac_dir_suffix. 823 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 824 else 825 ac_dir_suffix= ac_top_builddir= 826 fi 1227 # A ".." for each directory in $ac_dir_suffix. 1228 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1229 case $ac_top_builddir_sub in 1230 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1231 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1232 esac ;; 1233 esac 1234 ac_abs_top_builddir=$ac_pwd 1235 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1236 # for backward compatibility: 1237 ac_top_builddir=$ac_top_build_prefix 827 1238 828 1239 case $srcdir in 829 .) # No --srcdir option.We are building in place.1240 .) # We are building in place. 830 1241 ac_srcdir=. 831 if test -z "$ac_top_builddir"; then 832 ac_top_srcdir=. 833 else 834 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 835 fi ;; 836 [\\/]* | ?:[\\/]* ) # Absolute path. 1242 ac_top_srcdir=$ac_top_builddir_sub 1243 ac_abs_top_srcdir=$ac_pwd ;; 1244 [\\/]* | ?:[\\/]* ) # Absolute name. 837 1245 ac_srcdir=$srcdir$ac_dir_suffix; 838 ac_top_srcdir=$srcdir ;; 839 *) # Relative path. 840 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 841 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1246 ac_top_srcdir=$srcdir 1247 ac_abs_top_srcdir=$srcdir ;; 1248 *) # Relative name. 1249 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1250 ac_top_srcdir=$ac_top_build_prefix$srcdir 1251 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 842 1252 esac 843 844 # Do not use `cd foo && pwd` to compute absolute paths, because 845 # the directories may not exist. 846 case `pwd` in 847 .) ac_abs_builddir="$ac_dir";; 848 *) 849 case "$ac_dir" in 850 .) ac_abs_builddir=`pwd`;; 851 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 852 *) ac_abs_builddir=`pwd`/"$ac_dir";; 853 esac;; 854 esac 855 case $ac_abs_builddir in 856 .) ac_abs_top_builddir=${ac_top_builddir}.;; 857 *) 858 case ${ac_top_builddir}. in 859 .) ac_abs_top_builddir=$ac_abs_builddir;; 860 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 861 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 862 esac;; 863 esac 864 case $ac_abs_builddir in 865 .) ac_abs_srcdir=$ac_srcdir;; 866 *) 867 case $ac_srcdir in 868 .) ac_abs_srcdir=$ac_abs_builddir;; 869 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 870 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 871 esac;; 872 esac 873 case $ac_abs_builddir in 874 .) ac_abs_top_srcdir=$ac_top_srcdir;; 875 *) 876 case $ac_top_srcdir in 877 .) ac_abs_top_srcdir=$ac_abs_builddir;; 878 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 879 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 880 esac;; 881 esac 882 883 cd $ac_dir 884 # Check for guested configure; otherwise get Cygnus style configure. 885 if test -f $ac_srcdir/configure.gnu; then 886 echo 887 $SHELL $ac_srcdir/configure.gnu --help=recursive 888 elif test -f $ac_srcdir/configure; then 889 echo 890 $SHELL $ac_srcdir/configure --help=recursive 891 elif test -f $ac_srcdir/configure.ac || 892 test -f $ac_srcdir/configure.in; then 893 echo 894 $ac_configure --help 1253 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1254 1255 cd "$ac_dir" || { ac_status=$?; continue; } 1256 # Check for guested configure. 1257 if test -f "$ac_srcdir/configure.gnu"; then 1258 echo && 1259 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1260 elif test -f "$ac_srcdir/configure"; then 1261 echo && 1262 $SHELL "$ac_srcdir/configure" --help=recursive 895 1263 else 896 1264 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 897 fi 898 cd $ac_popdir1265 fi || ac_status=$? 1266 cd "$ac_pwd" || { ac_status=$?; break; } 899 1267 done 900 1268 fi 901 1269 902 test -n "$ac_init_help" && exit 01270 test -n "$ac_init_help" && exit $ac_status 903 1271 if $ac_init_version; then 904 1272 cat <<\_ACEOF 905 906 Copyright (C) 2003 Free Software Foundation, Inc. 1273 configure 1274 generated by GNU Autoconf 2.61 1275 1276 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 1277 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 907 1278 This configure script is free software; the Free Software Foundation 908 1279 gives unlimited permission to copy, distribute and modify it. 909 1280 _ACEOF 910 exit 0 911 fi 912 exec 5>config.log 913 cat >&5 <<_ACEOF 1281 exit 1282 fi 1283 cat >config.log <<_ACEOF 914 1284 This file contains any messages produced by compilers while 915 1285 running configure, to aid debugging if configure makes a mistake. 916 1286 917 1287 It was created by $as_me, which was 918 generated by GNU Autoconf 2. 59. Invocation command line was1288 generated by GNU Autoconf 2.61. Invocation command line was 919 1289 920 1290 $ $0 $@ 921 1291 922 1292 _ACEOF 1293 exec 5>>config.log 923 1294 { 924 1295 cat <<_ASUNAME … … 939 1310 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 940 1311 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 941 hostinfo = `(hostinfo) 2>/dev/null|| echo unknown`1312 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 942 1313 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 943 1314 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` … … 953 1324 echo "PATH: $as_dir" 954 1325 done 1326 IFS=$as_save_IFS 955 1327 956 1328 } >&5 … … 974 1346 ac_configure_args0= 975 1347 ac_configure_args1= 976 ac_sep=977 1348 ac_must_keep_next=false 978 1349 for ac_pass in 1 2 … … 985 1356 | -silent | --silent | --silen | --sile | --sil) 986 1357 continue ;; 987 * " "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)1358 *\'*) 988 1359 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 989 1360 esac … … 1007 1378 esac 1008 1379 fi 1009 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1010 # Get rid of the leading space. 1011 ac_sep=" " 1380 ac_configure_args="$ac_configure_args '$ac_arg'" 1012 1381 ;; 1013 1382 esac … … 1020 1389 # config.log. We remove comments because anyway the quotes in there 1021 1390 # would cause problems or look ugly. 1022 # WARNING: Be sure not to use single quotes in there, as some shells,1023 # such as our DU 5.0 friend, will then `close' the trap.1391 # WARNING: Use '\'' to represent an apostrophe within the trap. 1392 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1024 1393 trap 'exit_status=$? 1025 1394 # Save into config.log some information that might help in debugging. … … 1034 1403 echo 1035 1404 # The following way of writing the cache mishandles newlines in values, 1036 { 1405 ( 1406 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1407 eval ac_val=\$$ac_var 1408 case $ac_val in #( 1409 *${as_nl}*) 1410 case $ac_var in #( 1411 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 1412 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 1413 esac 1414 case $ac_var in #( 1415 _ | IFS | as_nl) ;; #( 1416 *) $as_unset $ac_var ;; 1417 esac ;; 1418 esac 1419 done 1037 1420 (set) 2>&1 | 1038 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in1039 * ac_space=\ *)1421 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1422 *${as_nl}ac_space=\ *) 1040 1423 sed -n \ 1041 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1042 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1424 "s/'\''/'\''\\\\'\'''\''/g; 1425 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1426 ;; #( 1427 *) 1428 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1043 1429 ;; 1044 *) 1045 sed -n \ 1046 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1047 ;; 1048 esac; 1049 } 1430 esac | 1431 sort 1432 ) 1050 1433 echo 1051 1434 … … 1058 1441 for ac_var in $ac_subst_vars 1059 1442 do 1060 eval ac_val=$`echo $ac_var` 1061 echo "$ac_var='"'"'$ac_val'"'"'" 1443 eval ac_val=\$$ac_var 1444 case $ac_val in 1445 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1446 esac 1447 echo "$ac_var='\''$ac_val'\''" 1062 1448 done | sort 1063 1449 echo … … 1065 1451 if test -n "$ac_subst_files"; then 1066 1452 cat <<\_ASBOX 1067 ## ------------- ##1068 ## Output files. ##1069 ## ------------- ##1453 ## ------------------- ## 1454 ## File substitutions. ## 1455 ## ------------------- ## 1070 1456 _ASBOX 1071 1457 echo 1072 1458 for ac_var in $ac_subst_files 1073 1459 do 1074 eval ac_val=$`echo $ac_var` 1075 echo "$ac_var='"'"'$ac_val'"'"'" 1460 eval ac_val=\$$ac_var 1461 case $ac_val in 1462 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1463 esac 1464 echo "$ac_var='\''$ac_val'\''" 1076 1465 done | sort 1077 1466 echo … … 1085 1474 _ASBOX 1086 1475 echo 1087 sed "/^$/d" confdefs.h | sort1476 cat confdefs.h 1088 1477 echo 1089 1478 fi … … 1092 1481 echo "$as_me: exit $exit_status" 1093 1482 } >&5 1094 rm -f core *.core &&1095 rm -rfconftest* confdefs* conf$$* $ac_clean_files &&1483 rm -f core *.core core.conftest.* && 1484 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1096 1485 exit $exit_status 1097 ' 01486 ' 0 1098 1487 for ac_signal in 1 2 13 15; do 1099 1488 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal … … 1102 1491 1103 1492 # confdefs.h avoids OS command line length limits that DEFS can exceed. 1104 rm -rf conftest* confdefs.h 1105 # AIX cpp loses on an empty file, so make sure it contains at least a newline. 1106 echo >confdefs.h 1493 rm -f -r conftest* confdefs.h 1107 1494 1108 1495 # Predefined preprocessor variables. … … 1135 1522 # Let the site file select an alternate cache file if it wants to. 1136 1523 # Prefer explicitly selected file to automatically selected ones. 1137 if test -z "$CONFIG_SITE"; then 1138 if test "x$prefix" != xNONE; then 1139 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1140 else 1141 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1142 fi 1143 fi 1144 for ac_site_file in $CONFIG_SITE; do 1524 if test -n "$CONFIG_SITE"; then 1525 set x "$CONFIG_SITE" 1526 elif test "x$prefix" != xNONE; then 1527 set x "$prefix/share/config.site" "$prefix/etc/config.site" 1528 else 1529 set x "$ac_default_prefix/share/config.site" \ 1530 "$ac_default_prefix/etc/config.site" 1531 fi 1532 shift 1533 for ac_site_file 1534 do 1145 1535 if test -r "$ac_site_file"; then 1146 1536 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 … … 1158 1548 echo "$as_me: loading cache $cache_file" >&6;} 1159 1549 case $cache_file in 1160 [\\/]* | ?:[\\/]* ) . $cache_file;;1161 *) . ./$cache_file;;1550 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1551 *) . "./$cache_file";; 1162 1552 esac 1163 1553 fi … … 1171 1561 # value. 1172 1562 ac_cache_corrupted=false 1173 for ac_var in `(set) 2>&1 | 1174 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1563 for ac_var in $ac_precious_vars; do 1175 1564 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1176 1565 eval ac_new_set=\$ac_env_${ac_var}_set 1177 eval ac_old_val= "\$ac_cv_env_${ac_var}_value"1178 eval ac_new_val= "\$ac_env_${ac_var}_value"1566 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1567 eval ac_new_val=\$ac_env_${ac_var}_value 1179 1568 case $ac_old_set,$ac_new_set in 1180 1569 set,) … … 1201 1590 if test "$ac_new_set" = set; then 1202 1591 case $ac_new_val in 1203 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1204 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1592 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1205 1593 *) ac_arg=$ac_var=$ac_new_val ;; 1206 1594 esac … … 1219 1607 fi 1220 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1221 1625 ac_ext=c 1222 1626 ac_cpp='$CPP $CPPFLAGS' … … 1224 1628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1225 1629 ac_compiler_gnu=$ac_cv_c_compiler_gnu 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1630 1244 1631 … … 1253 1640 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1254 1641 set dummy ${ac_tool_prefix}gcc; ac_word=$2 1255 echo "$as_me:$LINENO: checking for $ac_word" >&51256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1642 { echo "$as_me:$LINENO: checking for $ac_word" >&5 1643 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1257 1644 if test "${ac_cv_prog_CC+set}" = set; then 1258 1645 echo $ECHO_N "(cached) $ECHO_C" >&6 … … 1267 1654 test -z "$as_dir" && as_dir=. 1268 1655 for ac_exec_ext in '' $ac_executable_extensions; do 1269 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then1656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1270 1657 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1271 1658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 1274 1661 done 1275 1662 done 1663 IFS=$as_save_IFS 1276 1664 1277 1665 fi … … 1279 1667 CC=$ac_cv_prog_CC 1280 1668 if test -n "$CC"; then 1281 echo "$as_me:$LINENO: result: $CC" >&5 1282 echo "${ECHO_T}$CC" >&6 1283 else 1284 echo "$as_me:$LINENO: result: no" >&5 1285 echo "${ECHO_T}no" >&6 1286 fi 1669 { echo "$as_me:$LINENO: result: $CC" >&5 1670 echo "${ECHO_T}$CC" >&6; } 1671 else 1672 { echo "$as_me:$LINENO: result: no" >&5 1673 echo "${ECHO_T}no" >&6; } 1674 fi 1675 1287 1676 1288 1677 fi … … 1291 1680 # Extract the first word of "gcc", so it can be a program name with args. 1292 1681 set dummy gcc; ac_word=$2 1293 echo "$as_me:$LINENO: checking for $ac_word" >&51294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1682 { echo "$as_me:$LINENO: checking for $ac_word" >&5 1683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1295 1684 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1296 1685 echo $ECHO_N "(cached) $ECHO_C" >&6 … … 1305 1694 test -z "$as_dir" && as_dir=. 1306 1695 for ac_exec_ext in '' $ac_executable_extensions; do 1307 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then1696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1308 1697 ac_cv_prog_ac_ct_CC="gcc" 1309 1698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 1312 1701 done 1313 1702 done 1703 IFS=$as_save_IFS 1314 1704 1315 1705 fi … … 1317 1707 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1318 1708 if test -n "$ac_ct_CC"; then 1319 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1320 echo "${ECHO_T}$ac_ct_CC" >&6 1321 else 1322 echo "$as_me:$LINENO: result: no" >&5 1323 echo "${ECHO_T}no" >&6 1324 fi 1325 1326 CC=$ac_ct_CC 1709 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1710 echo "${ECHO_T}$ac_ct_CC" >&6; } 1711 else 1712 { echo "$as_me:$LINENO: result: no" >&5 1713 echo "${ECHO_T}no" >&6; } 1714 fi 1715 1716 if test "x$ac_ct_CC" = x; then 1717 CC="" 1718 else 1719 case $cross_compiling:$ac_tool_warned in 1720 yes:) 1721 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 1722 whose name does not start with the host triplet. If you think this 1723 configuration is useful to you, please write to autoconf@gnu.org." >&5 1724 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 1725 whose name does not start with the host triplet. If you think this 1726 configuration is useful to you, please write to autoconf@gnu.org." >&2;} 1727 ac_tool_warned=yes ;; 1728 esac 1729 CC=$ac_ct_CC 1730 fi 1327 1731 else 1328 1732 CC="$ac_cv_prog_CC" … … 1330 1734 1331 1735 if test -z "$CC"; then 1332 if test -n "$ac_tool_prefix"; then1333 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.1736 if test -n "$ac_tool_prefix"; then 1737 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1334 1738 set dummy ${ac_tool_prefix}cc; ac_word=$2 1335 echo "$as_me:$LINENO: checking for $ac_word" >&51336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1739 { echo "$as_me:$LINENO: checking for $ac_word" >&5 1740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1337 1741 if test "${ac_cv_prog_CC+set}" = set; then 1338 1742 echo $ECHO_N "(cached) $ECHO_C" >&6 … … 1347 1751 test -z "$as_dir" && as_dir=. 1348 1752 for ac_exec_ext in '' $ac_executable_extensions; do 1349 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then1753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1350 1754 ac_cv_prog_CC="${ac_tool_prefix}cc" 1351 1755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 1354 1758 done 1355 1759 done 1760 IFS=$as_save_IFS 1356 1761 1357 1762 fi … … 1359 1764 CC=$ac_cv_prog_CC 1360 1765 if test -n "$CC"; then 1361 echo "$as_me:$LINENO: result: $CC" >&5 1362 echo "${ECHO_T}$CC" >&6 1363 else 1364 echo "$as_me:$LINENO: result: no" >&5 1365 echo "${ECHO_T}no" >&6 1366 fi 1367 1368 fi 1369 if test -z "$ac_cv_prog_CC"; then 1370 ac_ct_CC=$CC 1371 # Extract the first word of "cc", so it can be a program name with args. 1372 set dummy cc; ac_word=$2 1373 echo "$as_me:$LINENO: checking for $ac_word" >&5 1374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1375 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1376 echo $ECHO_N "(cached) $ECHO_C" >&6 1377 else 1378 if test -n "$ac_ct_CC"; then 1379 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1380 else 1381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1382 for as_dir in $PATH 1383 do 1384 IFS=$as_save_IFS 1385 test -z "$as_dir" && as_dir=. 1386 for ac_exec_ext in '' $ac_executable_extensions; do 1387 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1388 ac_cv_prog_ac_ct_CC="cc" 1389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1390 break 2 1766 { echo "$as_me:$LINENO: result: $CC" >&5 1767 echo "${ECHO_T}$CC" >&6; } 1768 else 1769 { echo "$as_me:$LINENO: result: no" >&5 1770 echo "${ECHO_T}no" >&6; } 1771 fi 1772 1773 1391 1774 fi 1392 done1393 done1394 1395 fi1396 fi1397 ac_ct_CC=$ac_cv_prog_ac_ct_CC1398 if test -n "$ac_ct_CC"; then1399 echo "$as_me:$LINENO: result: $ac_ct_CC" >&51400 echo "${ECHO_T}$ac_ct_CC" >&61401 else1402 echo "$as_me:$LINENO: result: no" >&51403 echo "${ECHO_T}no" >&61404 fi1405 1406 CC=$ac_ct_CC1407 else1408 CC="$ac_cv_prog_CC"1409 fi1410 1411 1775 fi 1412 1776 if test -z "$CC"; then 1413 1777 # Extract the first word of "cc", so it can be a program name with args. 1414 1778 set dummy cc; ac_word=$2 1415 echo "$as_me:$LINENO: checking for $ac_word" >&51416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1779 { echo "$as_me:$LINENO: checking for $ac_word" >&5 1780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1417 1781 if test "${ac_cv_prog_CC+set}" = set; then 1418 1782 echo $ECHO_N "(cached) $ECHO_C" >&6 … … 1428 1792 test -z "$as_dir" && as_dir=. 1429 1793 for ac_exec_ext in '' $ac_executable_extensions; do 1430 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then1794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1431 1795 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1432 1796 ac_prog_rejected=yes … … 1439 1803 done 1440 1804 done 1805 IFS=$as_save_IFS 1441 1806 1442 1807 if test $ac_prog_rejected = yes; then … … 1456 1821 CC=$ac_cv_prog_CC 1457 1822 if test -n "$CC"; then 1458 echo "$as_me:$LINENO: result: $CC" >&5 1459 echo "${ECHO_T}$CC" >&6 1460 else 1461 echo "$as_me:$LINENO: result: no" >&5 1462 echo "${ECHO_T}no" >&6 1463 fi 1823 { echo "$as_me:$LINENO: result: $CC" >&5 1824 echo "${ECHO_T}$CC" >&6; } 1825 else 1826 { echo "$as_me:$LINENO: result: no" >&5 1827 echo "${ECHO_T}no" >&6; } 1828 fi 1829 1464 1830 1465 1831 fi 1466 1832 if test -z "$CC"; then 1467 1833 if test -n "$ac_tool_prefix"; then 1468 for ac_prog in cl 1834 for ac_prog in cl.exe 1469 1835 do 1470 1836 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1471 1837 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1472 echo "$as_me:$LINENO: checking for $ac_word" >&51473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1838 { echo "$as_me:$LINENO: checking for $ac_word" >&5 1839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1474 1840 if test "${ac_cv_prog_CC+set}" = set; then 1475 1841 echo $ECHO_N "(cached) $ECHO_C" >&6 … … 1484 1850 test -z "$as_dir" && as_dir=. 1485 1851 for ac_exec_ext in '' $ac_executable_extensions; do 1486 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then1852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1487 1853 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1488 1854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 1491 1857 done 1492 1858 done 1859 IFS=$as_save_IFS 1493 1860 1494 1861 fi … … 1496 1863 CC=$ac_cv_prog_CC 1497 1864 if test -n "$CC"; then 1498 echo "$as_me:$LINENO: result: $CC" >&5 1499 echo "${ECHO_T}$CC" >&6 1500 else 1501 echo "$as_me:$LINENO: result: no" >&5 1502 echo "${ECHO_T}no" >&6 1503 fi 1865 { echo "$as_me:$LINENO: result: $CC" >&5 1866 echo "${ECHO_T}$CC" >&6; } 1867 else 1868 { echo "$as_me:$LINENO: result: no" >&5 1869 echo "${ECHO_T}no" >&6; } 1870 fi 1871 1504 1872 1505 1873 test -n "$CC" && break … … 1508 1876 if test -z "$CC"; then 1509 1877 ac_ct_CC=$CC 1510 for ac_prog in cl 1878 for ac_prog in cl.exe 1511 1879 do 1512 1880 # Extract the first word of "$ac_prog", so it can be a program name with args. 1513 1881 set dummy $ac_prog; ac_word=$2 1514 echo "$as_me:$LINENO: checking for $ac_word" >&51515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1882 { echo "$as_me:$LINENO: checking for $ac_word" >&5 1883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 1516 1884 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1517 1885 echo $ECHO_N "(cached) $ECHO_C" >&6 … … 1526 1894 test -z "$as_dir" && as_dir=. 1527 1895 for ac_exec_ext in '' $ac_executable_extensions; do 1528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then1896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 1529 1897 ac_cv_prog_ac_ct_CC="$ac_prog" 1530 1898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 1533 1901 done 1534 1902 done 1903 IFS=$as_save_IFS 1535 1904 1536 1905 fi … … 1538 1907 ac_ct_CC=$ac_cv_prog_ac_ct_CC 1539 1908 if test -n "$ac_ct_CC"; then 1540 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1541 echo "${ECHO_T}$ac_ct_CC" >&6 1542 else 1543 echo "$as_me:$LINENO: result: no" >&5 1544 echo "${ECHO_T}no" >&6 1545 fi 1909 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1910 echo "${ECHO_T}$ac_ct_CC" >&6; } 1911 else 1912 { echo "$as_me:$LINENO: result: no" >&5 1913 echo "${ECHO_T}no" >&6; } 1914 fi 1915 1546 1916 1547 1917 test -n "$ac_ct_CC" && break 1548 1918 done 1549 1919 1550 CC=$ac_ct_CC 1920 if test "x$ac_ct_CC" = x; then 1921 CC="" 1922 else 1923 case $cross_compiling:$ac_tool_warned in 1924 yes:) 1925 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 1926 whose name does not start with the host triplet. If you think this 1927 configuration is useful to you, please write to autoconf@gnu.org." >&5 1928 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 1929 whose name does not start with the host triplet. If you think this 1930 configuration is useful to you, please write to autoconf@gnu.org." >&2;} 1931 ac_tool_warned=yes ;; 1932 esac 1933 CC=$ac_ct_CC 1934 fi 1551 1935 fi 1552 1936 … … 1561 1945 1562 1946 # Provide some information about the compiler. 1563 echo "$as_me:$LINENO:" \ 1564 "checking for C compiler version" >&5 1947 echo "$as_me:$LINENO: checking for C compiler version" >&5 1565 1948 ac_compiler=`set X $ac_compile; echo $2` 1566 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 1567 (eval $ac_compiler --version </dev/null >&5) 2>&5 1949 { (ac_try="$ac_compiler --version >&5" 1950 case "(($ac_try" in 1951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1952 *) ac_try_echo=$ac_try;; 1953 esac 1954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 1955 (eval "$ac_compiler --version >&5") 2>&5 1568 1956 ac_status=$? 1569 1957 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1570 1958 (exit $ac_status); } 1571 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 1572 (eval $ac_compiler -v </dev/null >&5) 2>&5 1959 { (ac_try="$ac_compiler -v >&5" 1960 case "(($ac_try" in 1961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1962 *) ac_try_echo=$ac_try;; 1963 esac 1964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 1965 (eval "$ac_compiler -v >&5") 2>&5 1573 1966 ac_status=$? 1574 1967 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1575 1968 (exit $ac_status); } 1576 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 1577 (eval $ac_compiler -V </dev/null >&5) 2>&5 1969 { (ac_try="$ac_compiler -V >&5" 1970 case "(($ac_try" in 1971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1972 *) ac_try_echo=$ac_try;; 1973 esac 1974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 1975 (eval "$ac_compiler -V >&5") 2>&5 1578 1976 ac_status=$? 1579 1977 echo "$as_me:$LINENO: \$? = $ac_status" >&5 … … 1600 1998 # It will help us diagnose broken compilers, and finding out an intuition 1601 1999 # of exeext. 1602 echo "$as_me:$LINENO: checking for C compiler default output file name" >&51603 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2000 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2001 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } 1604 2002 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 1605 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 1606 (eval $ac_link_default) 2>&5 2003 # 2004 # List of possible output files, starting from the most likely. 2005 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) 2006 # only as a last resort. b.out is created by i960 compilers. 2007 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' 2008 # 2009 # The IRIX 6 linker writes into existing files which may not be 2010 # executable, retaining their permissions. Remove them first so a 2011 # subsequent execution test works. 2012 ac_rmfiles= 2013 for ac_file in $ac_files 2014 do 2015 case $ac_file in 2016 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 2017 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2018 esac 2019 done 2020 rm -f $ac_rmfiles 2021 2022 if { (ac_try="$ac_link_default" 2023 case "(($ac_try" in 2024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2025 *) ac_try_echo=$ac_try;; 2026 esac 2027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2028 (eval "$ac_link_default") 2>&5 1607 2029 ac_status=$? 1608 2030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1609 2031 (exit $ac_status); }; then 1610 # Find the output, starting from the most likely. This scheme is 1611 # not robust to junk in `.', hence go to wildcards (a.*) only as a last 1612 # resort. 1613 1614 # Be careful to initialize this variable, since it used to be cached. 1615 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 1616 ac_cv_exeext= 1617 # b.out is created by i960 compilers. 1618 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2032 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2033 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2034 # in a Makefile. We should not override ac_cv_exeext if it was cached, 2035 # so that the user can short-circuit this test for compilers unknown to 2036 # Autoconf. 2037 for ac_file in $ac_files '' 1619 2038 do 1620 2039 test -f "$ac_file" || continue 1621 2040 case $ac_file in 1622 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 1623 ;; 1624 conftest.$ac_ext ) 1625 # This is the source file. 2041 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 1626 2042 ;; 1627 2043 [ab].out ) … … 1630 2046 break;; 1631 2047 *.* ) 1632 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1633 # FIXME: I believe we export ac_cv_exeext for Libtool, 1634 # but it would be cool to find out if it's true. Does anybody 1635 # maintain Libtool? --akim. 1636 export ac_cv_exeext 2048 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2049 then :; else 2050 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2051 fi 2052 # We set ac_cv_exeext here because the later test for it is not 2053 # safe: cross compilers may not add the suffix if given an `-o' 2054 # argument, so we may need to know it at that point already. 2055 # Even if this section looks crufty: it has the advantage of 2056 # actually working. 1637 2057 break;; 1638 2058 * ) … … 1640 2060 esac 1641 2061 done 1642 else 2062 test "$ac_cv_exeext" = no && ac_cv_exeext= 2063 2064 else 2065 ac_file='' 2066 fi 2067 2068 { echo "$as_me:$LINENO: result: $ac_file" >&5 2069 echo "${ECHO_T}$ac_file" >&6; } 2070 if test -z "$ac_file"; then 1643 2071 echo "$as_me: failed program was:" >&5 1644 2072 sed 's/^/| /' conftest.$ac_ext >&5 … … 1652 2080 1653 2081 ac_exeext=$ac_cv_exeext 1654 echo "$as_me:$LINENO: result: $ac_file" >&5 1655 echo "${ECHO_T}$ac_file" >&6 1656 1657 # Check the compiler produces executables we can run. If not, either 2082 2083 # Check that the compiler produces executables we can run. If not, either 1658 2084 # the compiler is broken, or we cross compile. 1659 echo "$as_me:$LINENO: checking whether the C compiler works" >&51660 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2085 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2086 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } 1661 2087 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 1662 2088 # If not cross compiling, check that we can run a simple program. 1663 2089 if test "$cross_compiling" != yes; then 1664 2090 if { ac_try='./$ac_file' 1665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1666 (eval $ac_try) 2>&5 2091 { (case "(($ac_try" in 2092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2093 *) ac_try_echo=$ac_try;; 2094 esac 2095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2096 (eval "$ac_try") 2>&5 1667 2097 ac_status=$? 1668 2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 … … 1683 2113 fi 1684 2114 fi 1685 echo "$as_me:$LINENO: result: yes" >&51686 echo "${ECHO_T}yes" >&6 2115 { echo "$as_me:$LINENO: result: yes" >&5 2116 echo "${ECHO_T}yes" >&6; } 1687 2117 1688 2118 rm -f a.out a.exe conftest$ac_cv_exeext b.out 1689 2119 ac_clean_files=$ac_clean_files_save 1690 # Check th e compiler produces executables we can run. If not, either2120 # Check that the compiler produces executables we can run. If not, either 1691 2121 # the compiler is broken, or we cross compile. 1692 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 1693 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 1694 echo "$as_me:$LINENO: result: $cross_compiling" >&5 1695 echo "${ECHO_T}$cross_compiling" >&6 1696 1697 echo "$as_me:$LINENO: checking for suffix of executables" >&5 1698 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 1699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 1700 (eval $ac_link) 2>&5 2122 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2123 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } 2124 { echo "$as_me:$LINENO: result: $cross_compiling" >&5 2125 echo "${ECHO_T}$cross_compiling" >&6; } 2126 2127 { echo "$as_me:$LINENO: checking for suffix of executables" >&5 2128 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 2129 if { (ac_try="$ac_link" 2130 case "(($ac_try" in 2131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2132 *) ac_try_echo=$ac_try;; 2133 esac 2134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2135 (eval "$ac_link") 2>&5 1701 2136 ac_status=$? 1702 2137 echo "$as_me:$LINENO: \$? = $ac_status" >&5 … … 1709 2144 test -f "$ac_file" || continue 1710 2145 case $ac_file in 1711 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *. o | *.obj ) ;;2146 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 1712 2147 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 1713 export ac_cv_exeext1714 2148 break;; 1715 2149 * ) break;; … … 1725 2159 1726 2160 rm -f conftest$ac_cv_exeext 1727 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&51728 echo "${ECHO_T}$ac_cv_exeext" >&6 2161 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2162 echo "${ECHO_T}$ac_cv_exeext" >&6; } 1729 2163 1730 2164 rm -f conftest.$ac_ext 1731 2165 EXEEXT=$ac_cv_exeext 1732 2166 ac_exeext=$EXEEXT 1733 echo "$as_me:$LINENO: checking for suffix of object files" >&51734 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2167 { echo "$as_me:$LINENO: checking for suffix of object files" >&5 2168 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } 1735 2169 if test "${ac_cv_objext+set}" = set; then 1736 2170 echo $ECHO_N "(cached) $ECHO_C" >&6 … … 1752 2186 _ACEOF 1753 2187 rm -f conftest.o conftest.obj 1754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1755 (eval $ac_compile) 2>&5 2188 if { (ac_try="$ac_compile" 2189 case "(($ac_try" in 2190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2191 *) ac_try_echo=$ac_try;; 2192 esac 2193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2194 (eval "$ac_compile") 2>&5 1756 2195 ac_status=$? 1757 2196 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1758 2197 (exit $ac_status); }; then 1759 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2198 for ac_file in conftest.o conftest.obj conftest.*; do 2199 test -f "$ac_file" || continue; 1760 2200 case $ac_file in 1761 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;2201 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 1762 2202 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 1763 2203 break;; … … 1777 2217 rm -f conftest.$ac_cv_objext conftest.$ac_ext 1778 2218 fi 1779 echo "$as_me:$LINENO: result: $ac_cv_objext" >&51780 echo "${ECHO_T}$ac_cv_objext" >&6 2219 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2220 echo "${ECHO_T}$ac_cv_objext" >&6; } 1781 2221 OBJEXT=$ac_cv_objext 1782 2222 ac_objext=$OBJEXT 1783 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&51784 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2223 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2224 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 1785 2225 if test "${ac_cv_c_compiler_gnu+set}" = set; then 1786 2226 echo $ECHO_N "(cached) $ECHO_C" >&6 … … 1805 2245 _ACEOF 1806 2246 rm -f conftest.$ac_objext 1807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1808 (eval $ac_compile) 2>conftest.er1 2247 if { (ac_try="$ac_compile" 2248 case "(($ac_try" in 2249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2250 *) ac_try_echo=$ac_try;; 2251 esac 2252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2253 (eval "$ac_compile") 2>conftest.er1 1809 2254 ac_status=$? 1810 2255 grep -v '^ *+' conftest.er1 >conftest.err … … 1812 2257 cat conftest.err >&5 1813 2258 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1814 (exit $ac_status); } && 1815 { ac_try='test -z "$ac_c_werror_flag" 1816 || test ! -s conftest.err' 1817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1818 (eval $ac_try) 2>&5 1819 ac_status=$? 1820 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1821 (exit $ac_status); }; } && 1822 { ac_try='test -s conftest.$ac_objext' 1823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1824 (eval $ac_try) 2>&5 1825 ac_status=$? 1826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1827 (exit $ac_status); }; }; then 2259 (exit $ac_status); } && { 2260 test -z "$ac_c_werror_flag" || 2261 test ! -s conftest.err 2262 } && test -s conftest.$ac_objext; then 1828 2263 ac_compiler_gnu=yes 1829 2264 else … … 1831 2266 sed 's/^/| /' conftest.$ac_ext >&5 1832 2267 1833 ac_compiler_gnu=no 1834 fi 1835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2268 ac_compiler_gnu=no 2269 fi 2270 2271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1836 2272 ac_cv_c_compiler_gnu=$ac_compiler_gnu 1837 2273 1838 2274 fi 1839 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&51840 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2275 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2276 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 1841 2277 GCC=`test $ac_compiler_gnu = yes && echo yes` 1842 2278 ac_test_CFLAGS=${CFLAGS+set} 1843 2279 ac_save_CFLAGS=$CFLAGS 1844 CFLAGS="-g" 1845 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 1846 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2280 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2281 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 1847 2282 if test "${ac_cv_prog_cc_g+set}" = set; then 1848 2283 echo $ECHO_N "(cached) $ECHO_C" >&6 1849 2284 else 1850 cat >conftest.$ac_ext <<_ACEOF 2285 ac_save_c_werror_flag=$ac_c_werror_flag 2286 ac_c_werror_flag=yes 2287 ac_cv_prog_cc_g=no 2288 CFLAGS="-g" 2289 cat >conftest.$ac_ext <<_ACEOF 1851 2290 /* confdefs.h. */ 1852 2291 _ACEOF … … 1864 2303 _ACEOF 1865 2304 rm -f conftest.$ac_objext 1866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1867 (eval $ac_compile) 2>conftest.er1 2305 if { (ac_try="$ac_compile" 2306 case "(($ac_try" in 2307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2308 *) ac_try_echo=$ac_try;; 2309 esac 2310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2311 (eval "$ac_compile") 2>conftest.er1 1868 2312 ac_status=$? 1869 2313 grep -v '^ *+' conftest.er1 >conftest.err … … 1871 2315 cat conftest.err >&5 1872 2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1873 (exit $ac_status); } && 1874 { ac_try='test -z "$ac_c_werror_flag" 1875 || test ! -s conftest.err' 1876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1877 (eval $ac_try) 2>&5 1878 ac_status=$? 1879 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1880 (exit $ac_status); }; } && 1881 { ac_try='test -s conftest.$ac_objext' 1882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1883 (eval $ac_try) 2>&5 1884 ac_status=$? 1885 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1886 (exit $ac_status); }; }; then 2317 (exit $ac_status); } && { 2318 test -z "$ac_c_werror_flag" || 2319 test ! -s conftest.err 2320 } && test -s conftest.$ac_objext; then 1887 2321 ac_cv_prog_cc_g=yes 1888 2322 else … … 1890 2324 sed 's/^/| /' conftest.$ac_ext >&5 1891 2325 1892 ac_cv_prog_cc_g=no 1893 fi 1894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 1895 fi 1896 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 1897 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2326 CFLAGS="" 2327 cat >conftest.$ac_ext <<_ACEOF 2328 /* confdefs.h. */ 2329 _ACEOF 2330 cat confdefs.h >>conftest.$ac_ext 2331 cat >>conftest.$ac_ext <<_ACEOF 2332 /* end confdefs.h. */ 2333 2334 int 2335 main () 2336 { 2337 2338 ; 2339 return 0; 2340 } 2341 _ACEOF 2342 rm -f conftest.$ac_objext 2343 if { (ac_try="$ac_compile" 2344 case "(($ac_try" in 2345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2346 *) ac_try_echo=$ac_try;; 2347 esac 2348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2349 (eval "$ac_compile") 2>conftest.er1 2350 ac_status=$? 2351 grep -v '^ *+' conftest.er1 >conftest.err 2352 rm -f conftest.er1 2353 cat conftest.err >&5 2354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2355 (exit $ac_status); } && { 2356 test -z "$ac_c_werror_flag" || 2357 test ! -s conftest.err 2358 } && test -s conftest.$ac_objext; then 2359 : 2360 else 2361 echo "$as_me: failed program was:" >&5 2362 sed 's/^/| /' conftest.$ac_ext >&5 2363 2364 ac_c_werror_flag=$ac_save_c_werror_flag 2365 CFLAGS="-g" 2366 cat >conftest.$ac_ext <<_ACEOF 2367 /* confdefs.h. */ 2368 _ACEOF 2369 cat confdefs.h >>conftest.$ac_ext 2370 cat >>conftest.$ac_ext <<_ACEOF 2371 /* end confdefs.h. */ 2372 2373 int 2374 main () 2375 { 2376 2377 ; 2378 return 0; 2379 } 2380 _ACEOF 2381 rm -f conftest.$ac_objext 2382 if { (ac_try="$ac_compile" 2383 case "(($ac_try" in 2384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2385 *) ac_try_echo=$ac_try;; 2386 esac 2387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2388 (eval "$ac_compile") 2>conftest.er1 2389 ac_status=$? 2390 grep -v '^ *+' conftest.er1 >conftest.err 2391 rm -f conftest.er1 2392 cat conftest.err >&5 2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2394 (exit $ac_status); } && { 2395 test -z "$ac_c_werror_flag" || 2396 test ! -s conftest.err 2397 } && test -s conftest.$ac_objext; then 2398 ac_cv_prog_cc_g=yes 2399 else 2400 echo "$as_me: failed program was:" >&5 2401 sed 's/^/| /' conftest.$ac_ext >&5 2402 2403 2404 fi 2405 2406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2407 fi 2408 2409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2410 fi 2411 2412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2413 ac_c_werror_flag=$ac_save_c_werror_flag 2414 fi 2415 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2416 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 1898 2417 if test "$ac_test_CFLAGS" = set; then 1899 2418 CFLAGS=$ac_save_CFLAGS … … 1911 2430 fi 1912 2431 fi 1913 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&51914 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&61915 if test "${ac_cv_prog_cc_ stdc+set}" = set; then2432 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 2433 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 2434 if test "${ac_cv_prog_cc_c89+set}" = set; then 1916 2435 echo $ECHO_N "(cached) $ECHO_C" >&6 1917 2436 else 1918 ac_cv_prog_cc_ stdc=no2437 ac_cv_prog_cc_c89=no 1919 2438 ac_save_CC=$CC 1920 2439 cat >conftest.$ac_ext <<_ACEOF … … 1950 2469 function prototypes and stuff, but not '\xHH' hex character constants. 1951 2470 These don't provoke an error unfortunately, instead are silently treated 1952 as 'x'. The following induces an error, until -std 1is added to get2471 as 'x'. The following induces an error, until -std is added to get 1953 2472 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 1954 2473 array size at least. It's necessary to write '\x00'==0 to get something 1955 that's true only with -std 1. */2474 that's true only with -std. */ 1956 2475 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2476 2477 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2478 inside strings and character constants. */ 2479 #define FOO(x) 'x' 2480 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 1957 2481 1958 2482 int test (int i, double x); … … 1970 2494 } 1971 2495 _ACEOF 1972 # Don't try gcc -ansi; that turns off useful extensions and 1973 # breaks some systems' header files. 1974 # AIX -qlanglvl=ansi 1975 # Ultrix and OSF/1 -std1 1976 # HP-UX 10.20 and later -Ae 1977 # HP-UX older versions -Aa -D_HPUX_SOURCE 1978 # SVR4 -Xc -D__EXTENSIONS__ 1979 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2496 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 2497 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 1980 2498 do 1981 2499 CC="$ac_save_CC $ac_arg" 1982 2500 rm -f conftest.$ac_objext 1983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 1984 (eval $ac_compile) 2>conftest.er1 2501 if { (ac_try="$ac_compile" 2502 case "(($ac_try" in 2503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2504 *) ac_try_echo=$ac_try;; 2505 esac 2506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 2507 (eval "$ac_compile") 2>conftest.er1 1985 2508 ac_status=$? 1986 2509 grep -v '^ *+' conftest.er1 >conftest.err … … 1988 2511 cat conftest.err >&5 1989 2512 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1990 (exit $ac_status); } && 1991 { ac_try='test -z "$ac_c_werror_flag" 1992 || test ! -s conftest.err' 1993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 1994 (eval $ac_try) 2>&5 1995 ac_status=$? 1996 echo "$as_me:$LINENO: \$? = $ac_status" >&5 1997 (exit $ac_status); }; } && 1998 { ac_try='test -s conftest.$ac_objext' 1999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2000 (eval $ac_try) 2>&5 2001 ac_status=$? 2002 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2003 (exit $ac_status); }; }; then 2004 ac_cv_prog_cc_stdc=$ac_arg 2005 break 2513 (exit $ac_status); } && { 2514 test -z "$ac_c_werror_flag" || 2515 test ! -s conftest.err 2516 } && test -s conftest.$ac_objext; then 2517 ac_cv_prog_cc_c89=$ac_arg 2006 2518 else 2007 2519 echo "$as_me: failed program was:" >&5 2008 2520 sed 's/^/| /' conftest.$ac_ext >&5 2009 2521 2010 fi 2011 rm -f conftest.err conftest.$ac_objext 2012 done 2013 rm -f conftest.$ac_ext conftest.$ac_objext 2522 2523 fi 2524 2525 rm -f core conftest.err conftest.$ac_objext 2526 test "x$ac_cv_prog_cc_c89" != "xno" && break 2527 done 2528 rm -f conftest.$ac_ext 2014 2529 CC=$ac_save_CC 2015 2530 2016 2531 fi 2017 2018 case "x$ac_cv_prog_cc_stdc" in 2019 x|xno) 2020 echo "$as_me:$LINENO: result: none needed" >&5 2021 echo "${ECHO_T}none needed" >&6 ;; 2532 # AC_CACHE_VAL 2533 case "x$ac_cv_prog_cc_c89" in 2534 x) 2535 { echo "$as_me:$LINENO: result: none needed" >&5 2536 echo "${ECHO_T}none needed" >&6; } ;; 2537 xno) 2538 { echo "$as_me:$LINENO: result: unsupported" >&5 2539 echo "${ECHO_T}unsupported" >&6; } ;; 2022 2540 *) 2023 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&52024 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2025 CC="$CC $ac_cv_prog_cc_stdc";;2541 CC="$CC $ac_cv_prog_cc_c89" 2542 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 2543 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 2026 2544 esac 2027 2545 2028 # Some people use a C++ compiler to compile C. Since we use `exit', 2029 # in C++ we need to declare it. In case someone uses the same compiler 2030 # for both compiling C and C++ we need to have the C++ compiler decide 2031 # the declaration of exit, since it's the most demanding environment. 2032 cat >conftest.$ac_ext <<_ACEOF 2033 #ifndef __cplusplus 2034 choke me 2035 #endif 2036 _ACEOF 2037 rm -f conftest.$ac_objext 2038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2039 (eval $ac_compile) 2>conftest.er1 2040 ac_status=$? 2041 grep -v '^ *+' conftest.er1 >conftest.err 2042 rm -f conftest.er1 2043 cat conftest.err >&5 2044 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2045 (exit $ac_status); } && 2046 { ac_try='test -z "$ac_c_werror_flag" 2047 || test ! -s conftest.err' 2048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2049 (eval $ac_try) 2>&5 2050 ac_status=$? 2051 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2052 (exit $ac_status); }; } && 2053 { ac_try='test -s conftest.$ac_objext' 2054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2055 (eval $ac_try) 2>&5 2056 ac_status=$? 2057 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2058 (exit $ac_status); }; }; then 2059 for ac_declaration in \ 2060 '' \ 2061 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2062 'extern "C" void std::exit (int); using std::exit;' \ 2063 'extern "C" void exit (int) throw ();' \ 2064 'extern "C" void exit (int);' \ 2065 'void exit (int);' 2066 do 2067 cat >conftest.$ac_ext <<_ACEOF 2068 /* confdefs.h. */ 2069 _ACEOF 2070 cat confdefs.h >>conftest.$ac_ext 2071 cat >>conftest.$ac_ext <<_ACEOF 2072 /* end confdefs.h. */ 2073 $ac_declaration 2074 #include <stdlib.h> 2075 int 2076 main () 2077 { 2078 exit (42); 2079 ; 2080 return 0; 2081 } 2082 _ACEOF 2083 rm -f conftest.$ac_objext 2084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2085 (eval $ac_compile) 2>conftest.er1 2086 ac_status=$? 2087 grep -v '^ *+' conftest.er1 >conftest.err 2088 rm -f conftest.er1 2089 cat conftest.err >&5 2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2091 (exit $ac_status); } && 2092 { ac_try='test -z "$ac_c_werror_flag" 2093 || test ! -s conftest.err' 2094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2095 (eval $ac_try) 2>&5 2096 ac_status=$? 2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2098 (exit $ac_status); }; } && 2099 { ac_try='test -s conftest.$ac_objext' 2100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2101 (eval $ac_try) 2>&5 2102 ac_status=$? 2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2104 (exit $ac_status); }; }; then 2105 : 2106 else 2107 echo "$as_me: failed program was:" >&5 2108 sed 's/^/| /' conftest.$ac_ext >&5 2109 2110 continue 2111 fi 2112 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2113 cat >conftest.$ac_ext <<_ACEOF 2114 /* confdefs.h. */ 2115 _ACEOF 2116 cat confdefs.h >>conftest.$ac_ext 2117 cat >>conftest.$ac_ext <<_ACEOF 2118 /* end confdefs.h. */ 2119 $ac_declaration 2120 int 2121 main () 2122 { 2123 exit (42); 2124 ; 2125 return 0; 2126 } 2127 _ACEOF 2128 rm -f conftest.$ac_objext 2129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2130 (eval $ac_compile) 2>conftest.er1 2131 ac_status=$? 2132 grep -v '^ *+' conftest.er1 >conftest.err 2133 rm -f conftest.er1 2134 cat conftest.err >&5 2135 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2136 (exit $ac_status); } && 2137 { ac_try='test -z "$ac_c_werror_flag" 2138 || test ! -s conftest.err' 2139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2140 (eval $ac_try) 2>&5 2141 ac_status=$? 2142 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2143 (exit $ac_status); }; } && 2144 { ac_try='test -s conftest.$ac_objext' 2145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2146 (eval $ac_try) 2>&5 2147 ac_status=$? 2148 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2149 (exit $ac_status); }; }; then 2150 break 2151 else 2152 echo "$as_me: failed program was:" >&5 2153 sed 's/^/| /' conftest.$ac_ext >&5 2154 2155 fi 2156 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2157 done 2158 rm -f conftest* 2159 if test -n "$ac_declaration"; then 2160 echo '#ifdef __cplusplus' >>confdefs.h 2161 echo $ac_declaration >>confdefs.h 2162 echo '#endif' >>confdefs.h 2163 fi 2164 2165 else 2166 echo "$as_me: failed program was:" >&5 2167 sed 's/^/| /' conftest.$ac_ext >&5 2168 2169 fi 2170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2546 2171 2547 ac_ext=c 2172 2548 ac_cpp='$CPP $CPPFLAGS' … … 2181 2557 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 2182 2558 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 2183 echo "$as_me:$LINENO: checking for $ac_word" >&52184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2559 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2185 2561 if test "${ac_cv_prog_RANLIB+set}" = set; then 2186 2562 echo $ECHO_N "(cached) $ECHO_C" >&6 … … 2195 2571 test -z "$as_dir" && as_dir=. 2196 2572 for ac_exec_ext in '' $ac_executable_extensions; do 2197 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then2573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2198 2574 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 2199 2575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 2202 2578 done 2203 2579 done 2580 IFS=$as_save_IFS 2204 2581 2205 2582 fi … … 2207 2584 RANLIB=$ac_cv_prog_RANLIB 2208 2585 if test -n "$RANLIB"; then 2209 echo "$as_me:$LINENO: result: $RANLIB" >&5 2210 echo "${ECHO_T}$RANLIB" >&6 2211 else 2212 echo "$as_me:$LINENO: result: no" >&5 2213 echo "${ECHO_T}no" >&6 2214 fi 2586 { echo "$as_me:$LINENO: result: $RANLIB" >&5 2587 echo "${ECHO_T}$RANLIB" >&6; } 2588 else 2589 { echo "$as_me:$LINENO: result: no" >&5 2590 echo "${ECHO_T}no" >&6; } 2591 fi 2592 2215 2593 2216 2594 fi … … 2219 2597 # Extract the first word of "ranlib", so it can be a program name with args. 2220 2598 set dummy ranlib; ac_word=$2 2221 echo "$as_me:$LINENO: checking for $ac_word" >&52222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2599 { echo "$as_me:$LINENO: checking for $ac_word" >&5 2600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2223 2601 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 2224 2602 echo $ECHO_N "(cached) $ECHO_C" >&6 … … 2233 2611 test -z "$as_dir" && as_dir=. 2234 2612 for ac_exec_ext in '' $ac_executable_extensions; do 2235 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then2613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2236 2614 ac_cv_prog_ac_ct_RANLIB="ranlib" 2237 2615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 … … 2240 2618 done 2241 2619 done 2242 2243 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 2620 IFS=$as_save_IFS 2621 2244 2622 fi 2245 2623 fi 2246 2624 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 2247 2625 if test -n "$ac_ct_RANLIB"; then 2248 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 2249 echo "${ECHO_T}$ac_ct_RANLIB" >&6 2250 else 2251 echo "$as_me:$LINENO: result: no" >&5 2252 echo "${ECHO_T}no" >&6 2253 fi 2254 2255 RANLIB=$ac_ct_RANLIB 2626 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 2627 echo "${ECHO_T}$ac_ct_RANLIB" >&6; } 2628 else 2629 { echo "$as_me:$LINENO: result: no" >&5 2630 echo "${ECHO_T}no" >&6; } 2631 fi 2632 2633 if test "x$ac_ct_RANLIB" = x; then 2634 RANLIB=":" 2635 else 2636 case $cross_compiling:$ac_tool_warned in 2637 yes:) 2638 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2639 whose name does not start with the host triplet. If you think this 2640 configuration is useful to you, please write to autoconf@gnu.org." >&5 2641 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools 2642 whose name does not start with the host triplet. If you think this 2643 configuration is useful to you, please write to autoconf@gnu.org." >&2;} 2644 ac_tool_warned=yes ;; 2645 esac 2646 RANLIB=$ac_ct_RANLIB 2647 fi 2256 2648 else 2257 2649 RANLIB="$ac_cv_prog_RANLIB" … … 2260 2652 2261 2653 2262 ac_config_files="$ac_config_files Makefile" 2654 ac_config_files="$ac_config_files Makefile" 2655 2263 2656 cat >confcache <<\_ACEOF 2264 2657 # This file is a shell script that caches the results of configure … … 2279 2672 # The following way of writing the cache mishandles newlines in values, 2280 2673 # but we know of no workaround that is simple, portable, and efficient. 2281 # So, don't put newlines in cache variables' values.2674 # So, we kill variables containing newlines. 2282 2675 # Ultrix sh set writes to stderr and can't be redirected directly, 2283 2676 # and sets the high bit in the cache file unless we assign to the vars. 2284 { 2677 ( 2678 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 2679 eval ac_val=\$$ac_var 2680 case $ac_val in #( 2681 *${as_nl}*) 2682 case $ac_var in #( 2683 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 2684 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 2685 esac 2686 case $ac_var in #( 2687 _ | IFS | as_nl) ;; #( 2688 *) $as_unset $ac_var ;; 2689 esac ;; 2690 esac 2691 done 2692 2285 2693 (set) 2>&1 | 2286 case `(ac_space=' '; set | grep ac_space) 2>&1` in2287 * ac_space=\ *)2694 case $as_nl`(ac_space=' '; set) 2>&1` in #( 2695 *${as_nl}ac_space=\ *) 2288 2696 # `set' does not quote correctly, so add quotes (double-quote 2289 2697 # substitution turns \\\\ into \\, and sed turns \\ into \). … … 2291 2699 "s/'/'\\\\''/g; 2292 2700 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 2293 ;; 2701 ;; #( 2294 2702 *) 2295 2703 # `set' quotes correctly as required by POSIX, so do not add quotes. 2296 sed -n \ 2297 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 2704 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2298 2705 ;; 2299 esac; 2300 } | 2706 esac | 2707 sort 2708 ) | 2301 2709 sed ' 2710 /^ac_cv_env_/b end 2302 2711 t clear 2303 : clear2712 :clear 2304 2713 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 2305 2714 t end 2306 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 2307 : end' >>confcache 2308 if diff $cache_file confcache >/dev/null 2>&1; then :; else 2309 if test -w $cache_file; then 2310 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 2715 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 2716 :end' >>confcache 2717 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 2718 if test -w "$cache_file"; then 2719 test "x$cache_file" != "x/dev/null" && 2720 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 2721 echo "$as_me: updating cache $cache_file" >&6;} 2311 2722 cat confcache >$cache_file 2312 2723 else 2313 echo "not updating unwritable cache $cache_file" 2724 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 2725 echo "$as_me: not updating unwritable cache $cache_file" >&6;} 2314 2726 fi 2315 2727 fi … … 2319 2731 # Let make expand exec_prefix. 2320 2732 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 2321 2322 # VPATH may cause trouble with some makes, so we remove $(srcdir),2323 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and2324 # trailing colons and then remove the whole line if VPATH becomes empty2325 # (actually we leave an empty line to preserve line numbers).2326 if test "x$srcdir" = x.; then2327 ac_vpsub='/^[ ]*VPATH[ ]*=/{2328 s/:*\$(srcdir):*/:/;2329 s/:*\${srcdir}:*/:/;2330 s/:*@srcdir@:*/:/;2331 s/^\([^=]*=[ ]*\):*/\1/;2332 s/:*$//;2333 s/^[^=]*=[ ]*$//;2334 }'2335 fi2336 2733 2337 2734 # Transform confdefs.h into DEFS. … … 2340 2737 # 2341 2738 # If the first sed substitution is executed (which looks for macros that 2342 # take arguments), then webranch to the quote section. Otherwise,2739 # take arguments), then branch to the quote section. Otherwise, 2343 2740 # look for a macro that doesn't take arguments. 2344 cat >confdef2opt.sed <<\_ACEOF 2741 ac_script=' 2345 2742 t clear 2346 : clear2347 s ,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g2743 :clear 2744 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 2348 2745 t quote 2349 s ,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g2746 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 2350 2747 t quote 2351 d 2352 : quote 2353 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g 2354 s,\[,\\&,g 2355 s,\],\\&,g 2356 s,\$,$$,g 2357 p 2358 _ACEOF 2359 # We use echo to avoid assuming a particular line-breaking character. 2360 # The extra dot is to prevent the shell from consuming trailing 2361 # line-breaks from the sub-command output. A line-break within 2362 # single-quotes doesn't work because, if this script is created in a 2363 # platform that uses two characters for line-breaks (e.g., DOS), tr 2364 # would break. 2365 ac_LF_and_DOT=`echo; echo .` 2366 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` 2367 rm -f confdef2opt.sed 2748 b any 2749 :quote 2750 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 2751 s/\[/\\&/g 2752 s/\]/\\&/g 2753 s/\$/$$/g 2754 H 2755 :any 2756 ${ 2757 g 2758 s/^\n// 2759 s/\n/ /g 2760 p 2761 } 2762 ' 2763 DEFS=`sed -n "$ac_script" confdefs.h` 2368 2764 2369 2765 … … 2372 2768 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 2373 2769 # 1. Remove the extension, and $U if already installed. 2374 ac_i=`echo "$ac_i" | 2375 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 2376 # 2. Add them. 2377 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 2378 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 2770 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 2771 ac_i=`echo "$ac_i" | sed "$ac_script"` 2772 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 2773 # will be set to the directory where LIBOBJS objects are built. 2774 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 2775 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 2379 2776 done 2380 2777 LIBOBJS=$ac_libobjs … … 2407 2804 ## --------------------- ## 2408 2805 2409 # Be Bourne compatible 2806 # Be more Bourne compatible 2807 DUALCASE=1; export DUALCASE # for MKS sh 2410 2808 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 2411 2809 emulate sh … … 2414 2812 # is contrary to our usage. Disable this feature. 2415 2813 alias -g '${1+"$@"}'='"$@"' 2416 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 2417 set -o posix 2418 fi 2419 DUALCASE=1; export DUALCASE # for MKS sh 2420 2421 # Support unset when possible. 2422 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 2423 as_unset=unset 2424 else 2425 as_unset=false 2426 fi 2427 2428 2429 # Work around bugs in pre-3.0 UWIN ksh. 2430 $as_unset ENV MAIL MAILPATH 2431 PS1='$ ' 2432 PS2='> ' 2433 PS4='+ ' 2434 2435 # NLS nuisances. 2436 for as_var in \ 2437 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 2438 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 2439 LC_TELEPHONE LC_TIME 2440 do 2441 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 2442 eval $as_var=C; export $as_var 2443 else 2444 $as_unset $as_var 2445 fi 2446 done 2447 2448 # Required to use basename. 2449 if expr a : '\(a\)' >/dev/null 2>&1; then 2450 as_expr=expr 2451 else 2452 as_expr=false 2453 fi 2454 2455 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 2456 as_basename=basename 2457 else 2458 as_basename=false 2459 fi 2460 2461 2462 # Name of the executable. 2463 as_me=`$as_basename "$0" || 2464 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 2465 X"$0" : 'X\(//\)$' \| \ 2466 X"$0" : 'X\(/\)$' \| \ 2467 . : '\(.\)' 2>/dev/null || 2468 echo X/"$0" | 2469 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 2470 /^X\/\(\/\/\)$/{ s//\1/; q; } 2471 /^X\/\(\/\).*/{ s//\1/; q; } 2472 s/.*/./; q'` 2473 2474 2475 # PATH needs CR, and LINENO needs CR and PATH. 2814 setopt NO_GLOB_SUBST 2815 else 2816 case `(set -o) 2>/dev/null` in 2817 *posix*) set -o posix ;; 2818 esac 2819 2820 fi 2821 2822 2823 2824 2825 # PATH needs CR 2476 2826 # Avoid depending upon Character Ranges. 2477 2827 as_cr_letters='abcdefghijklmnopqrstuvwxyz' … … 2494 2844 fi 2495 2845 2496 2497 as_lineno_1=$LINENO 2498 as_lineno_2=$LINENO 2499 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 2500 test "x$as_lineno_1" != "x$as_lineno_2" && 2501 test "x$as_lineno_3" = "x$as_lineno_2" || { 2502 # Find who we are. Look in the path if we contain no path at all 2503 # relative or not. 2504 case $0 in 2505 *[\\/]* ) as_myself=$0 ;; 2506 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2846 # Support unset when possible. 2847 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 2848 as_unset=unset 2849 else 2850 as_unset=false 2851 fi 2852 2853 2854 # IFS 2855 # We need space, tab and new line, in precisely that order. Quoting is 2856 # there to prevent editors from complaining about space-tab. 2857 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 2858 # splitting by setting IFS to empty value.) 2859 as_nl=' 2860 ' 2861 IFS=" "" $as_nl" 2862 2863 # Find who we are. Look in the path if we contain no directory separator. 2864 case $0 in 2865 *[\\/]* ) as_myself=$0 ;; 2866 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2507 2867 for as_dir in $PATH 2508 2868 do … … 2511 2871 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 2512 2872 done 2513 2514 ;; 2515 esac 2516 # We did not find ourselves, most probably we were run as `sh COMMAND' 2517 # in which case we are not to be found in the path. 2518 if test "x$as_myself" = x; then 2519 as_myself=$0 2873 IFS=$as_save_IFS 2874 2875 ;; 2876 esac 2877 # We did not find ourselves, most probably we were run as `sh COMMAND' 2878 # in which case we are not to be found in the path. 2879 if test "x$as_myself" = x; then 2880 as_myself=$0 2881 fi 2882 if test ! -f "$as_myself"; then 2883 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 2884 { (exit 1); exit 1; } 2885 fi 2886 2887 # Work around bugs in pre-3.0 UWIN ksh. 2888 for as_var in ENV MAIL MAILPATH 2889 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 2890 done 2891 PS1='$ ' 2892 PS2='> ' 2893 PS4='+ ' 2894 2895 # NLS nuisances. 2896 for as_var in \ 2897 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 2898 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 2899 LC_TELEPHONE LC_TIME 2900 do 2901 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 2902 eval $as_var=C; export $as_var 2903 else 2904 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 2520 2905 fi 2521 if test ! -f "$as_myself"; then 2522 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 2523 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 2524 { (exit 1); exit 1; }; } 2525 fi 2526 case $CONFIG_SHELL in 2527 '') 2528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2529 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 2530 do 2531 IFS=$as_save_IFS 2532 test -z "$as_dir" && as_dir=. 2533 for as_base in sh bash ksh sh5; do 2534 case $as_dir in 2535 /*) 2536 if ("$as_dir/$as_base" -c ' 2906 done 2907 2908 # Required to use basename. 2909 if expr a : '\(a\)' >/dev/null 2>&1 && 2910 test "X`expr 00001 : '.*\(...\)'`" = X001; then 2911 as_expr=expr 2912 else 2913 as_expr=false 2914 fi 2915 2916 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 2917 as_basename=basename 2918 else 2919 as_basename=false 2920 fi 2921 2922 2923 # Name of the executable. 2924 as_me=`$as_basename -- "$0" || 2925 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 2926 X"$0" : 'X\(//\)$' \| \ 2927 X"$0" : 'X\(/\)' \| . 2>/dev/null || 2928 echo X/"$0" | 2929 sed '/^.*\/\([^/][^/]*\)\/*$/{ 2930 s//\1/ 2931 q 2932 } 2933 /^X\/\(\/\/\)$/{ 2934 s//\1/ 2935 q 2936 } 2937 /^X\/\(\/\).*/{ 2938 s//\1/ 2939 q 2940 } 2941 s/.*/./; q'` 2942 2943 # CDPATH. 2944 $as_unset CDPATH 2945 2946 2947 2537 2948 as_lineno_1=$LINENO 2538 2949 as_lineno_2=$LINENO 2539 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`2540 2950 test "x$as_lineno_1" != "x$as_lineno_2" && 2541 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 2542 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 2543 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 2544 CONFIG_SHELL=$as_dir/$as_base 2545 export CONFIG_SHELL 2546 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 2547 fi;; 2548 esac 2549 done 2550 done 2551 ;; 2552 esac 2951 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 2553 2952 2554 2953 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 2555 2954 # uniformly replaced by the line number. The first 'sed' inserts a 2556 # line-number line before each line; the second 'sed' does the real 2557 # work. The second script uses 'N' to pair each line-number line 2558 # with the numbered line, and appends trailing '-' during 2559 # substitution so that $LINENO is not a special case at line end. 2955 # line-number line after each line using $LINENO; the second 'sed' 2956 # does the real work. The second script uses 'N' to pair each 2957 # line-number line with the line containing $LINENO, and appends 2958 # trailing '-' during substitution so that $LINENO is not a special 2959 # case at line end. 2560 2960 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 2561 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 2562 sed '=' <$as_myself | 2961 # scripts with optimization help from Paolo Bonzini. Blame Lee 2962 # E. McMahon (1931-1989) for sed's syntax. :-) 2963 sed -n ' 2964 p 2965 /[$]LINENO/= 2966 ' <$as_myself | 2563 2967 sed ' 2968 s/[$]LINENO.*/&-/ 2969 t lineno 2970 b 2971 :lineno 2564 2972 N 2565 s,$,-, 2566 : loop 2567 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 2973 :loop 2974 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 2568 2975 t loop 2569 s,-$,, 2570 s,^['$as_cr_digits']*\n,, 2976 s/-\n.*// 2571 2977 ' >$as_me.lineno && 2572 chmod +x $as_me.lineno || 2573 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 2574 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 2978 chmod +x "$as_me.lineno" || 2979 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 2575 2980 { (exit 1); exit 1; }; } 2576 2981 2577 2982 # Don't try to exec as it changes $[0], causing all sort of problems 2578 2983 # (the dirname of $[0] is not the place where we might find the 2579 # original and so on. Autoconf is especially sensi ble to this).2580 . ./$as_me.lineno2984 # original and so on. Autoconf is especially sensitive to this). 2985 . "./$as_me.lineno" 2581 2986 # Exit status is that of the last command. 2582 2987 exit … … 2584 2989 2585 2990 2586 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 2587 *c*,-n*) ECHO_N= ECHO_C=' 2588 ' ECHO_T=' ' ;; 2589 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 2590 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 2991 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 2992 as_dirname=dirname 2993 else 2994 as_dirname=false 2995 fi 2996 2997 ECHO_C= ECHO_N= ECHO_T= 2998 case `echo -n x` in 2999 -n*) 3000 case `echo 'x\c'` in 3001 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 3002 *) ECHO_C='\c';; 3003 esac;; 3004 *) 3005 ECHO_N='-n';; 2591 3006 esac 2592 3007 2593 if expr a : '\(a\)' >/dev/null 2>&1; then 3008 if expr a : '\(a\)' >/dev/null 2>&1 && 3009 test "X`expr 00001 : '.*\(...\)'`" = X001; then 2594 3010 as_expr=expr 2595 3011 else … … 2598 3014 2599 3015 rm -f conf$$ conf$$.exe conf$$.file 3016 if test -d conf$$.dir; then 3017 rm -f conf$$.dir/conf$$.file 3018 else 3019 rm -f conf$$.dir 3020 mkdir conf$$.dir 3021 fi 2600 3022 echo >conf$$.file 2601 3023 if ln -s conf$$.file conf$$ 2>/dev/null; then 2602 # We could just check for DJGPP; but this test a) works b) is more generic 2603 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 2604 if test -f conf$$.exe; then 2605 # Don't use ln at all; we don't have any links 3024 as_ln_s='ln -s' 3025 # ... but there are two gotchas: 3026 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 3027 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 3028 # In both cases, we have to default to `cp -p'. 3029 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 2606 3030 as_ln_s='cp -p' 2607 else2608 as_ln_s='ln -s'2609 fi2610 3031 elif ln conf$$.file conf$$ 2>/dev/null; then 2611 3032 as_ln_s=ln … … 2613 3034 as_ln_s='cp -p' 2614 3035 fi 2615 rm -f conf$$ conf$$.exe conf$$.file 3036 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 3037 rmdir conf$$.dir 2>/dev/null 2616 3038 2617 3039 if mkdir -p . 2>/dev/null; then … … 2622 3044 fi 2623 3045 2624 as_executable_p="test -f" 3046 if test -x / >/dev/null 2>&1; then 3047 as_test_x='test -x' 3048 else 3049 if ls -dL / >/dev/null 2>&1; then 3050 as_ls_L_option=L 3051 else 3052 as_ls_L_option= 3053 fi 3054 as_test_x=' 3055 eval sh -c '\'' 3056 if test -d "$1"; then 3057 test -d "$1/."; 3058 else 3059 case $1 in 3060 -*)set "./$1";; 3061 esac; 3062 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 3063 ???[sx]*):;;*)false;;esac;fi 3064 '\'' sh 3065 ' 3066 fi 3067 as_executable_p=$as_test_x 2625 3068 2626 3069 # Sed expression to map a string onto a valid CPP name. … … 2631 3074 2632 3075 2633 # IFS2634 # We need space, tab and new line, in precisely that order.2635 as_nl='2636 '2637 IFS=" $as_nl"2638 2639 # CDPATH.2640 $as_unset CDPATH2641 2642 3076 exec 6>&1 2643 3077 2644 # Open the log real soon, to keep \$[0] and so on meaningful, and to3078 # Save the log message, to keep $[0] and so on meaningful, and to 2645 3079 # report actual input values of CONFIG_FILES etc. instead of their 2646 # values after options handling. Logging --version etc. is OK. 2647 exec 5>>config.log 2648 { 2649 echo 2650 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 2651 ## Running $as_me. ## 2652 _ASBOX 2653 } >&5 2654 cat >&5 <<_CSEOF 2655 3080 # values after options handling. 3081 ac_log=" 2656 3082 This file was extended by $as_me, which was 2657 generated by GNU Autoconf 2. 59. Invocation command line was3083 generated by GNU Autoconf 2.61. Invocation command line was 2658 3084 2659 3085 CONFIG_FILES = $CONFIG_FILES … … 2663 3089 $ $0 $@ 2664 3090 2665 _CSEOF 2666 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 2667 echo >&5 2668 _ACEOF 2669 3091 on `(hostname || uname -n) 2>/dev/null | sed 1q` 3092 " 3093 3094 _ACEOF 3095 3096 cat >>$CONFIG_STATUS <<_ACEOF 2670 3097 # Files that config.status was made for. 2671 if test -n "$ac_config_files"; then 2672 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 2673 fi 2674 2675 if test -n "$ac_config_headers"; then 2676 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 2677 fi 2678 2679 if test -n "$ac_config_links"; then 2680 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 2681 fi 2682 2683 if test -n "$ac_config_commands"; then 2684 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 2685 fi 3098 config_files="$ac_config_files" 3099 3100 _ACEOF 2686 3101 2687 3102 cat >>$CONFIG_STATUS <<\_ACEOF 2688 2689 3103 ac_cs_usage="\ 2690 3104 \`$as_me' instantiates files from templates according to the … … 2694 3108 2695 3109 -h, --help print this help, then exit 2696 -V, --version print version number , then exit3110 -V, --version print version number and configuration settings, then exit 2697 3111 -q, --quiet do not print progress messages 2698 3112 -d, --debug don't remove temporary files … … 2705 3119 2706 3120 Report bugs to <bug-autoconf@gnu.org>." 2707 _ACEOF 2708 3121 3122 _ACEOF 2709 3123 cat >>$CONFIG_STATUS <<_ACEOF 2710 3124 ac_cs_version="\\ 2711 3125 config.status 2712 configured by $0, generated by GNU Autoconf 2. 59,2713 with options \\"`echo "$ac_configure_args" | sed 's/ [\\""\`\$]/\\\\&/g'`\\"2714 2715 Copyright (C) 200 3Free Software Foundation, Inc.3126 configured by $0, generated by GNU Autoconf 2.61, 3127 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 3128 3129 Copyright (C) 2006 Free Software Foundation, Inc. 2716 3130 This config.status script is free software; the Free Software Foundation 2717 3131 gives unlimited permission to copy, distribute and modify it." 2718 srcdir=$srcdir 3132 3133 ac_pwd='$ac_pwd' 3134 srcdir='$srcdir' 2719 3135 _ACEOF 2720 3136 … … 2727 3143 case $1 in 2728 3144 --*=*) 2729 ac_option=`expr " x$1" : 'x\([^=]*\)='`2730 ac_optarg=`expr " x$1" : 'x[^=]*=\(.*\)'`3145 ac_option=`expr "X$1" : 'X\([^=]*\)='` 3146 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 2731 3147 ac_shift=: 2732 3148 ;; 2733 -*)3149 *) 2734 3150 ac_option=$1 2735 3151 ac_optarg=$2 2736 3152 ac_shift=shift 2737 3153 ;; 2738 *) # This is not an option, so the user has probably given explicit2739 # arguments.2740 ac_option=$12741 ac_need_defaults=false;;2742 3154 esac 2743 3155 2744 3156 case $ac_option in 2745 3157 # Handling of the options. 2746 _ACEOF2747 cat >>$CONFIG_STATUS <<\_ACEOF2748 3158 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 2749 3159 ac_cs_recheck=: ;; 2750 --version | --vers* | -V ) 2751 echo "$ac_cs_version"; exit 0 ;; 2752 --he | --h) 2753 # Conflict between --help and --header 2754 { { echo "$as_me:$LINENO: error: ambiguous option: $1 2755 Try \`$0 --help' for more information." >&5 2756 echo "$as_me: error: ambiguous option: $1 2757 Try \`$0 --help' for more information." >&2;} 2758 { (exit 1); exit 1; }; };; 2759 --help | --hel | -h ) 2760 echo "$ac_cs_usage"; exit 0 ;; 2761 --debug | --d* | -d ) 3160 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 3161 echo "$ac_cs_version"; exit ;; 3162 --debug | --debu | --deb | --de | --d | -d ) 2762 3163 debug=: ;; 2763 3164 --file | --fil | --fi | --f ) … … 2765 3166 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 2766 3167 ac_need_defaults=false;; 2767 --header | --heade | --head | --hea ) 2768 $ac_shift 2769 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 2770 ac_need_defaults=false;; 3168 --he | --h | --help | --hel | -h ) 3169 echo "$ac_cs_usage"; exit ;; 2771 3170 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2772 3171 | -silent | --silent | --silen | --sile | --sil | --si | --s) … … 2774 3173 2775 3174 # This is an error. 2776 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 2777 Try \`$0 --help' for more information." >&5 2778 echo "$as_me: error: unrecognized option: $1 2779 Try \`$0 --help' for more information." >&2;} 3175 -*) { echo "$as_me: error: unrecognized option: $1 3176 Try \`$0 --help' for more information." >&2 2780 3177 { (exit 1); exit 1; }; } ;; 2781 3178 2782 *) ac_config_targets="$ac_config_targets $1" ;; 3179 *) ac_config_targets="$ac_config_targets $1" 3180 ac_need_defaults=false ;; 2783 3181 2784 3182 esac … … 2796 3194 cat >>$CONFIG_STATUS <<_ACEOF 2797 3195 if \$ac_cs_recheck; then 2798 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 2799 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 2800 fi 2801 2802 _ACEOF 2803 2804 2805 2806 2807 3196 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 3197 CONFIG_SHELL=$SHELL 3198 export CONFIG_SHELL 3199 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 3200 fi 3201 3202 _ACEOF 2808 3203 cat >>$CONFIG_STATUS <<\_ACEOF 3204 exec 5>>config.log 3205 { 3206 echo 3207 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 3208 ## Running $as_me. ## 3209 _ASBOX 3210 echo "$ac_log" 3211 } >&5 3212 3213 _ACEOF 3214 cat >>$CONFIG_STATUS <<_ACEOF 3215 _ACEOF 3216 3217 cat >>$CONFIG_STATUS <<\_ACEOF 3218 3219 # Handling of arguments. 2809 3220 for ac_config_target in $ac_config_targets 2810 3221 do 2811 case "$ac_config_target"in2812 # Handling of arguments.2813 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 3222 case $ac_config_target in 3223 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 3224 2814 3225 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 2815 3226 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} … … 2817 3228 esac 2818 3229 done 3230 2819 3231 2820 3232 # If the user did not use the arguments to specify the items to instantiate, … … 2827 3239 2828 3240 # Have a temporary directory for convenience. Make it in the build tree 2829 # simply because there is no reason to putit here, and in addition,3241 # simply because there is no reason against having it here, and in addition, 2830 3242 # creating and moving files from /tmp can sometimes cause problems. 2831 # Create a temporary directory, and hook for its removal unless debugging. 3243 # Hook for its removal unless debugging. 3244 # Note that there is a small window in which the directory will not be cleaned: 3245 # after its creation but before its name has been assigned to `$tmp'. 2832 3246 $debug || 2833 3247 { 2834 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 3248 tmp= 3249 trap 'exit_status=$? 3250 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 3251 ' 0 2835 3252 trap '{ (exit 1); exit 1; }' 1 2 13 15 2836 3253 } 2837 2838 3254 # Create a (secure) tmp directory for tmp files. 2839 3255 2840 3256 { 2841 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&3257 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 2842 3258 test -n "$tmp" && test -d "$tmp" 2843 3259 } || 2844 3260 { 2845 tmp=./conf stat$$-$RANDOM2846 (umask 077 && mkdir $tmp)3261 tmp=./conf$$-$RANDOM 3262 (umask 077 && mkdir "$tmp") 2847 3263 } || 2848 3264 { … … 2851 3267 } 2852 3268 2853 _ACEOF2854 2855 cat >>$CONFIG_STATUS <<_ACEOF2856 2857 3269 # 2858 # CONFIG_FILES section.3270 # Set up the sed scripts for CONFIG_FILES section. 2859 3271 # 2860 3272 2861 3273 # No need to generate the scripts if there are no CONFIG_FILES. 2862 3274 # This happens for instance when ./config.status config.h 2863 if test -n "\$CONFIG_FILES"; then 2864 # Protect against being on the right side of a sed subst in config.status. 2865 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 2866 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 2867 s,@SHELL@,$SHELL,;t t 2868 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 2869 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 2870 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 2871 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 2872 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 2873 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 2874 s,@exec_prefix@,$exec_prefix,;t t 2875 s,@prefix@,$prefix,;t t 2876 s,@program_transform_name@,$program_transform_name,;t t 2877 s,@bindir@,$bindir,;t t 2878 s,@sbindir@,$sbindir,;t t 2879 s,@libexecdir@,$libexecdir,;t t 2880 s,@datadir@,$datadir,;t t 2881 s,@sysconfdir@,$sysconfdir,;t t 2882 s,@sharedstatedir@,$sharedstatedir,;t t 2883 s,@localstatedir@,$localstatedir,;t t 2884 s,@libdir@,$libdir,;t t 2885 s,@includedir@,$includedir,;t t 2886 s,@oldincludedir@,$oldincludedir,;t t 2887 s,@infodir@,$infodir,;t t 2888 s,@mandir@,$mandir,;t t 2889 s,@build_alias@,$build_alias,;t t 2890 s,@host_alias@,$host_alias,;t t 2891 s,@target_alias@,$target_alias,;t t 2892 s,@DEFS@,$DEFS,;t t 2893 s,@ECHO_C@,$ECHO_C,;t t 2894 s,@ECHO_N@,$ECHO_N,;t t 2895 s,@ECHO_T@,$ECHO_T,;t t 2896 s,@LIBS@,$LIBS,;t t 2897 s,@CC@,$CC,;t t 2898 s,@CFLAGS@,$CFLAGS,;t t 2899 s,@LDFLAGS@,$LDFLAGS,;t t 2900 s,@CPPFLAGS@,$CPPFLAGS,;t t 2901 s,@ac_ct_CC@,$ac_ct_CC,;t t 2902 s,@EXEEXT@,$EXEEXT,;t t 2903 s,@OBJEXT@,$OBJEXT,;t t 2904 s,@RANLIB@,$RANLIB,;t t 2905 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 2906 s,@LIBOBJS@,$LIBOBJS,;t t 2907 s,@LTLIBOBJS@,$LTLIBOBJS,;t t 2908 CEOF 2909 2910 _ACEOF 2911 2912 cat >>$CONFIG_STATUS <<\_ACEOF 2913 # Split the substitutions into bite-sized pieces for seds with 2914 # small command number limits, like on Digital OSF/1 and HP-UX. 2915 ac_max_sed_lines=48 2916 ac_sed_frag=1 # Number of current file. 2917 ac_beg=1 # First line for current file. 2918 ac_end=$ac_max_sed_lines # Line after last line for current file. 2919 ac_more_lines=: 2920 ac_sed_cmds= 2921 while $ac_more_lines; do 2922 if test $ac_beg -gt 1; then 2923 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 2924 else 2925 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 3275 if test -n "$CONFIG_FILES"; then 3276 3277 _ACEOF 3278 3279 3280 3281 ac_delim='%!_!# ' 3282 for ac_last_try in false false false false false :; do 3283 cat >conf$$subs.sed <<_ACEOF 3284 SHELL!$SHELL$ac_delim 3285 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim 3286 PACKAGE_NAME!$PACKAGE_NAME$ac_delim 3287 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim 3288 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim 3289 PACKAGE_STRING!$PACKAGE_STRING$ac_delim 3290 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim 3291 exec_prefix!$exec_prefix$ac_delim 3292 prefix!$prefix$ac_delim 3293 program_transform_name!$program_transform_name$ac_delim 3294 bindir!$bindir$ac_delim 3295 sbindir!$sbindir$ac_delim 3296 libexecdir!$libexecdir$ac_delim 3297 datarootdir!$datarootdir$ac_delim 3298 datadir!$datadir$ac_delim 3299 sysconfdir!$sysconfdir$ac_delim 3300 sharedstatedir!$sharedstatedir$ac_delim 3301 localstatedir!$localstatedir$ac_delim 3302 includedir!$includedir$ac_delim 3303 oldincludedir!$oldincludedir$ac_delim 3304 docdir!$docdir$ac_delim 3305 infodir!$infodir$ac_delim 3306 htmldir!$htmldir$ac_delim 3307 dvidir!$dvidir$ac_delim 3308 pdfdir!$pdfdir$ac_delim 3309 psdir!$psdir$ac_delim 3310 libdir!$libdir$ac_delim 3311 localedir!$localedir$ac_delim 3312 mandir!$mandir$ac_delim 3313 DEFS!$DEFS$ac_delim 3314 ECHO_C!$ECHO_C$ac_delim 3315 ECHO_N!$ECHO_N$ac_delim 3316 ECHO_T!$ECHO_T$ac_delim 3317 LIBS!$LIBS$ac_delim 3318 build_alias!$build_alias$ac_delim 3319 host_alias!$host_alias$ac_delim 3320 target_alias!$target_alias$ac_delim 3321 CC!$CC$ac_delim 3322 CFLAGS!$CFLAGS$ac_delim 3323 LDFLAGS!$LDFLAGS$ac_delim 3324 CPPFLAGS!$CPPFLAGS$ac_delim 3325 ac_ct_CC!$ac_ct_CC$ac_delim 3326 EXEEXT!$EXEEXT$ac_delim 3327 OBJEXT!$OBJEXT$ac_delim 3328 RANLIB!$RANLIB$ac_delim 3329 LIBOBJS!$LIBOBJS$ac_delim 3330 LTLIBOBJS!$LTLIBOBJS$ac_delim 3331 _ACEOF 3332 3333 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 47; then 3334 break 3335 elif $ac_last_try; then 3336 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 3337 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 3338 { (exit 1); exit 1; }; } 3339 else 3340 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 3341 fi 3342 done 3343 3344 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` 3345 if test -n "$ac_eof"; then 3346 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` 3347 ac_eof=`expr $ac_eof + 1` 3348 fi 3349 3350 cat >>$CONFIG_STATUS <<_ACEOF 3351 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof 3352 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end 3353 _ACEOF 3354 sed ' 3355 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g 3356 s/^/s,@/; s/!/@,|#_!!_#|/ 3357 :n 3358 t n 3359 s/'"$ac_delim"'$/,g/; t 3360 s/$/\\/; p 3361 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n 3362 ' >>$CONFIG_STATUS <conf$$subs.sed 3363 rm -f conf$$subs.sed 3364 cat >>$CONFIG_STATUS <<_ACEOF 3365 :end 3366 s/|#_!!_#|//g 3367 CEOF$ac_eof 3368 _ACEOF 3369 3370 3371 # VPATH may cause trouble with some makes, so we remove $(srcdir), 3372 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 3373 # trailing colons and then remove the whole line if VPATH becomes empty 3374 # (actually we leave an empty line to preserve line numbers). 3375 if test "x$srcdir" = x.; then 3376 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 3377 s/:*\$(srcdir):*/:/ 3378 s/:*\${srcdir}:*/:/ 3379 s/:*@srcdir@:*/:/ 3380 s/^\([^=]*=[ ]*\):*/\1/ 3381 s/:*$// 3382 s/^[^=]*=[ ]*$// 3383 }' 3384 fi 3385 3386 cat >>$CONFIG_STATUS <<\_ACEOF 3387 fi # test -n "$CONFIG_FILES" 3388 3389 3390 for ac_tag in :F $CONFIG_FILES 3391 do 3392 case $ac_tag in 3393 :[FHLC]) ac_mode=$ac_tag; continue;; 3394 esac 3395 case $ac_mode$ac_tag in 3396 :[FHL]*:*);; 3397 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 3398 echo "$as_me: error: Invalid tag $ac_tag." >&2;} 3399 { (exit 1); exit 1; }; };; 3400 :[FH]-) ac_tag=-:-;; 3401 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 3402 esac 3403 ac_save_IFS=$IFS 3404 IFS=: 3405 set x $ac_tag 3406 IFS=$ac_save_IFS 3407 shift 3408 ac_file=$1 3409 shift 3410 3411 case $ac_mode in 3412 :L) ac_source=$1;; 3413 :[FH]) 3414 ac_file_inputs= 3415 for ac_f 3416 do 3417 case $ac_f in 3418 -) ac_f="$tmp/stdin";; 3419 *) # Look for the file first in the build tree, then in the source tree 3420 # (if the path is not absolute). The absolute path cannot be DOS-style, 3421 # because $ac_f cannot contain `:'. 3422 test -f "$ac_f" || 3423 case $ac_f in 3424 [\\/$]*) false;; 3425 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 3426 esac || 3427 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 3428 echo "$as_me: error: cannot find input file: $ac_f" >&2;} 3429 { (exit 1); exit 1; }; };; 3430 esac 3431 ac_file_inputs="$ac_file_inputs $ac_f" 3432 done 3433 3434 # Let's still pretend it is `configure' which instantiates (i.e., don't 3435 # use $as_me), people would be surprised to read: 3436 # /* config.h. Generated by config.status. */ 3437 configure_input="Generated from "`IFS=: 3438 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." 3439 if test x"$ac_file" != x-; then 3440 configure_input="$ac_file. $configure_input" 3441 { echo "$as_me:$LINENO: creating $ac_file" >&5 3442 echo "$as_me: creating $ac_file" >&6;} 2926 3443 fi 2927 if test ! -s $tmp/subs.frag; then 2928 ac_more_lines=false 2929 else 2930 # The purpose of the label and of the branching condition is to 2931 # speed up the sed processing (if there are no `@' at all, there 2932 # is no need to browse any of the substitutions). 2933 # These are the two extra sed commands mentioned above. 2934 (echo ':t 2935 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 2936 if test -z "$ac_sed_cmds"; then 2937 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 2938 else 2939 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 2940 fi 2941 ac_sed_frag=`expr $ac_sed_frag + 1` 2942 ac_beg=$ac_end 2943 ac_end=`expr $ac_end + $ac_max_sed_lines` 2944 fi 2945 done 2946 if test -z "$ac_sed_cmds"; then 2947 ac_sed_cmds=cat 2948 fi 2949 fi # test -n "$CONFIG_FILES" 2950 2951 _ACEOF 2952 cat >>$CONFIG_STATUS <<\_ACEOF 2953 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 2954 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 2955 case $ac_file in 2956 - | *:- | *:-:* ) # input from stdin 2957 cat >$tmp/stdin 2958 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 2959 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 2960 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 2961 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 2962 * ) ac_file_in=$ac_file.in ;; 3444 3445 case $ac_tag in 3446 *:-:* | *:-) cat >"$tmp/stdin";; 3447 esac 3448 ;; 2963 3449 esac 2964 3450 2965 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 2966 ac_dir=`(dirname "$ac_file") 2>/dev/null || 3451 ac_dir=`$as_dirname -- "$ac_file" || 2967 3452 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 2968 3453 X"$ac_file" : 'X\(//\)[^/]' \| \ 2969 3454 X"$ac_file" : 'X\(//\)$' \| \ 2970 X"$ac_file" : 'X\(/\)' \| \ 2971 . : '\(.\)' 2>/dev/null || 3455 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 2972 3456 echo X"$ac_file" | 2973 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 2974 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 2975 /^X\(\/\/\)$/{ s//\1/; q; } 2976 /^X\(\/\).*/{ s//\1/; q; } 2977 s/.*/./; q'` 2978 { if $as_mkdir_p; then 2979 mkdir -p "$ac_dir" 2980 else 2981 as_dir="$ac_dir" 3457 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 3458 s//\1/ 3459 q 3460 } 3461 /^X\(\/\/\)[^/].*/{ 3462 s//\1/ 3463 q 3464 } 3465 /^X\(\/\/\)$/{ 3466 s//\1/ 3467 q 3468 } 3469 /^X\(\/\).*/{ 3470 s//\1/ 3471 q 3472 } 3473 s/.*/./; q'` 3474 { as_dir="$ac_dir" 3475 case $as_dir in #( 3476 -*) as_dir=./$as_dir;; 3477 esac 3478 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 2982 3479 as_dirs= 2983 while test ! -d "$as_dir"; do 2984 as_dirs="$as_dir $as_dirs" 2985 as_dir=`(dirname "$as_dir") 2>/dev/null || 3480 while :; do 3481 case $as_dir in #( 3482 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 3483 *) as_qdir=$as_dir;; 3484 esac 3485 as_dirs="'$as_qdir' $as_dirs" 3486 as_dir=`$as_dirname -- "$as_dir" || 2986 3487 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 2987 3488 X"$as_dir" : 'X\(//\)[^/]' \| \ 2988 3489 X"$as_dir" : 'X\(//\)$' \| \ 2989 X"$as_dir" : 'X\(/\)' \| \ 2990 . : '\(.\)' 2>/dev/null || 3490 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 2991 3491 echo X"$as_dir" | 2992 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 2993 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 2994 /^X\(\/\/\)$/{ s//\1/; q; } 2995 /^X\(\/\).*/{ s//\1/; q; } 2996 s/.*/./; q'` 3492 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 3493 s//\1/ 3494 q 3495 } 3496 /^X\(\/\/\)[^/].*/{ 3497 s//\1/ 3498 q 3499 } 3500 /^X\(\/\/\)$/{ 3501 s//\1/ 3502 q 3503 } 3504 /^X\(\/\).*/{ 3505 s//\1/ 3506 q 3507 } 3508 s/.*/./; q'` 3509 test -d "$as_dir" && break 2997 3510 done 2998 test ! -n "$as_dirs" || mkdir $as_dirs2999 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&53000 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}3511 test -z "$as_dirs" || eval "mkdir $as_dirs" 3512 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 3513 echo "$as_me: error: cannot create directory $as_dir" >&2;} 3001 3514 { (exit 1); exit 1; }; }; } 3002 3003 3515 ac_builddir=. 3004 3516 3005 if test "$ac_dir" != .; then 3517 case "$ac_dir" in 3518 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 3519 *) 3006 3520 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 3007 # A "../" for each directory in $ac_dir_suffix. 3008 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 3009 else 3010 ac_dir_suffix= ac_top_builddir= 3011 fi 3521 # A ".." for each directory in $ac_dir_suffix. 3522 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 3523 case $ac_top_builddir_sub in 3524 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 3525 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 3526 esac ;; 3527 esac 3528 ac_abs_top_builddir=$ac_pwd 3529 ac_abs_builddir=$ac_pwd$ac_dir_suffix 3530 # for backward compatibility: 3531 ac_top_builddir=$ac_top_build_prefix 3012 3532 3013 3533 case $srcdir in 3014 .) # No --srcdir option.We are building in place.3534 .) # We are building in place. 3015 3535 ac_srcdir=. 3016 if test -z "$ac_top_builddir"; then 3017 ac_top_srcdir=. 3018 else 3019 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 3020 fi ;; 3021 [\\/]* | ?:[\\/]* ) # Absolute path. 3536 ac_top_srcdir=$ac_top_builddir_sub 3537 ac_abs_top_srcdir=$ac_pwd ;; 3538 [\\/]* | ?:[\\/]* ) # Absolute name. 3022 3539 ac_srcdir=$srcdir$ac_dir_suffix; 3023 ac_top_srcdir=$srcdir ;; 3024 *) # Relative path. 3025 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 3026 ac_top_srcdir=$ac_top_builddir$srcdir ;; 3540 ac_top_srcdir=$srcdir 3541 ac_abs_top_srcdir=$srcdir ;; 3542 *) # Relative name. 3543 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 3544 ac_top_srcdir=$ac_top_build_prefix$srcdir 3545 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 3027 3546 esac 3028 3029 # Do not use `cd foo && pwd` to compute absolute paths, because 3030 # the directories may not exist. 3031 case `pwd` in 3032 .) ac_abs_builddir="$ac_dir";; 3033 *) 3034 case "$ac_dir" in 3035 .) ac_abs_builddir=`pwd`;; 3036 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 3037 *) ac_abs_builddir=`pwd`/"$ac_dir";; 3038 esac;; 3547 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 3548 3549 3550 case $ac_mode in 3551 :F) 3552 # 3553 # CONFIG_FILE 3554 # 3555 3556 _ACEOF 3557 3558 cat >>$CONFIG_STATUS <<\_ACEOF 3559 # If the template does not know about datarootdir, expand it. 3560 # FIXME: This hack should be removed a few years after 2.60. 3561 ac_datarootdir_hack=; ac_datarootdir_seen= 3562 3563 case `sed -n '/datarootdir/ { 3564 p 3565 q 3566 } 3567 /@datadir@/p 3568 /@docdir@/p 3569 /@infodir@/p 3570 /@localedir@/p 3571 /@mandir@/p 3572 ' $ac_file_inputs` in 3573 *datarootdir*) ac_datarootdir_seen=yes;; 3574 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 3575 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 3576 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 3577 _ACEOF 3578 cat >>$CONFIG_STATUS <<_ACEOF 3579 ac_datarootdir_hack=' 3580 s&@datadir@&$datadir&g 3581 s&@docdir@&$docdir&g 3582 s&@infodir@&$infodir&g 3583 s&@localedir@&$localedir&g 3584 s&@mandir@&$mandir&g 3585 s&\\\${datarootdir}&$datarootdir&g' ;; 3039 3586 esac 3040 case $ac_abs_builddir in 3041 .) ac_abs_top_builddir=${ac_top_builddir}.;; 3042 *) 3043 case ${ac_top_builddir}. in 3044 .) ac_abs_top_builddir=$ac_abs_builddir;; 3045 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 3046 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 3047 esac;; 3048 esac 3049 case $ac_abs_builddir in 3050 .) ac_abs_srcdir=$ac_srcdir;; 3051 *) 3052 case $ac_srcdir in 3053 .) ac_abs_srcdir=$ac_abs_builddir;; 3054 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 3055 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 3056 esac;; 3057 esac 3058 case $ac_abs_builddir in 3059 .) ac_abs_top_srcdir=$ac_top_srcdir;; 3060 *) 3061 case $ac_top_srcdir in 3062 .) ac_abs_top_srcdir=$ac_abs_builddir;; 3063 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 3064 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 3065 esac;; 3066 esac 3067 3068 3069 3070 if test x"$ac_file" != x-; then 3071 { echo "$as_me:$LINENO: creating $ac_file" >&5 3072 echo "$as_me: creating $ac_file" >&6;} 3073 rm -f "$ac_file" 3074 fi 3075 # Let's still pretend it is `configure' which instantiates (i.e., don't 3076 # use $as_me), people would be surprised to read: 3077 # /* config.h. Generated by config.status. */ 3078 if test x"$ac_file" = x-; then 3079 configure_input= 3080 else 3081 configure_input="$ac_file. " 3082 fi 3083 configure_input=$configure_input"Generated from `echo $ac_file_in | 3084 sed 's,.*/,,'` by configure." 3085 3086 # First look for the input files in the build tree, otherwise in the 3087 # src tree. 3088 ac_file_inputs=`IFS=: 3089 for f in $ac_file_in; do 3090 case $f in 3091 -) echo $tmp/stdin ;; 3092 [\\/$]*) 3093 # Absolute (can't be DOS-style, as IFS=:) 3094 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 3095 echo "$as_me: error: cannot find input file: $f" >&2;} 3096 { (exit 1); exit 1; }; } 3097 echo "$f";; 3098 *) # Relative 3099 if test -f "$f"; then 3100 # Build tree 3101 echo "$f" 3102 elif test -f "$srcdir/$f"; then 3103 # Source tree 3104 echo "$srcdir/$f" 3105 else 3106 # /dev/null tree 3107 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 3108 echo "$as_me: error: cannot find input file: $f" >&2;} 3109 { (exit 1); exit 1; }; } 3110 fi;; 3111 esac 3112 done` || { (exit 1); exit 1; } 3113 _ACEOF 3587 _ACEOF 3588 3589 # Neutralize VPATH when `$srcdir' = `.'. 3590 # Shell code in configure.ac might set extrasub. 3591 # FIXME: do we really want to maintain this feature? 3114 3592 cat >>$CONFIG_STATUS <<_ACEOF 3115 3593 sed "$ac_vpsub … … 3119 3597 :t 3120 3598 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 3121 s,@configure_input@,$configure_input,;t t 3122 s,@srcdir@,$ac_srcdir,;t t 3123 s,@abs_srcdir@,$ac_abs_srcdir,;t t 3124 s,@top_srcdir@,$ac_top_srcdir,;t t 3125 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 3126 s,@builddir@,$ac_builddir,;t t 3127 s,@abs_builddir@,$ac_abs_builddir,;t t 3128 s,@top_builddir@,$ac_top_builddir,;t t 3129 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 3130 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 3131 rm -f $tmp/stdin 3132 if test x"$ac_file" != x-; then 3133 mv $tmp/out $ac_file 3134 else 3135 cat $tmp/out 3136 rm -f $tmp/out 3137 fi 3138 3139 done 3140 _ACEOF 3141 3142 cat >>$CONFIG_STATUS <<\_ACEOF 3599 s&@configure_input@&$configure_input&;t t 3600 s&@top_builddir@&$ac_top_builddir_sub&;t t 3601 s&@srcdir@&$ac_srcdir&;t t 3602 s&@abs_srcdir@&$ac_abs_srcdir&;t t 3603 s&@top_srcdir@&$ac_top_srcdir&;t t 3604 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 3605 s&@builddir@&$ac_builddir&;t t 3606 s&@abs_builddir@&$ac_abs_builddir&;t t 3607 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 3608 $ac_datarootdir_hack 3609 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out 3610 3611 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 3612 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 3613 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 3614 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 3615 which seems to be undefined. Please make sure it is defined." >&5 3616 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 3617 which seems to be undefined. Please make sure it is defined." >&2;} 3618 3619 rm -f "$tmp/stdin" 3620 case $ac_file in 3621 -) cat "$tmp/out"; rm -f "$tmp/out";; 3622 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 3623 esac 3624 ;; 3625 3626 3627 3628 esac 3629 3630 done # for ac_tag 3631 3143 3632 3144 3633 { (exit 0); exit 0; } -
libfaim/rxhandlers.c
rcf02dd6 rdab82f29 67 67 68 68 mod->next = (aim_module_t *)sess->modlistv; 69 (aim_module_t *)sess->modlistv = mod; 69 /* (aim_module_t *)sess->modlistv = mod; */ 70 sess->modlistv = mod; 71 70 72 71 73 faimdprintf(sess, 1, "registered module %s (family 0x%04x, version = 0x%04x, tool 0x%04x, tool version 0x%04x)\n", mod->name, mod->family, mod->version, mod->toolid, mod->toolversion); -
list.c
r53f421b rdab82f29 1 /* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar 2 * 3 * This file is part of Owl. 4 * 5 * Owl is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * Owl is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with Owl. If not, see <http://www.gnu.org/licenses/>. 17 * 18 * --------------------------------------------------------------- 19 * 20 * As of Owl version 2.1.12 there are patches contributed by 21 * developers of the the branched BarnOwl project, Copyright (c) 22 * 2006-2008 The BarnOwl Developers. All rights reserved. 23 */ 24 1 25 #include "owl.h" 2 26 #include <stdlib.h> -
logging.c
r3c7d086a rdab82f29 1 /* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar 2 * 3 * This file is part of Owl. 4 * 5 * Owl is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * Owl is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with Owl. If not, see <http://www.gnu.org/licenses/>. 17 * 18 * --------------------------------------------------------------- 19 * 20 * As of Owl version 2.1.12 there are patches contributed by 21 * developers of the the branched BarnOwl project, Copyright (c) 22 * 2006-2008 The BarnOwl Developers. All rights reserved. 23 */ 24 1 25 #include "owl.h" 2 26 #include <stdlib.h> … … 13 37 void owl_log_message(owl_message *m) { 14 38 owl_function_debugmsg("owl_log_message: entering"); 15 16 if (m == NULL) {17 owl_function_debugmsg("owl_log_message: passed null message");18 return;19 }20 39 21 40 /* should we be logging this message? */ … … 281 300 FILE *file, *allfile; 282 301 char filename[MAXPATHLEN], allfilename[MAXPATHLEN], *logpath; 283 char *frombuff=NULL, *from=NULL, * buff=NULL, *ptr;302 char *frombuff=NULL, *from=NULL, *zsig=NULL; 284 303 int len, ch, i, personal; 285 304 … … 377 396 fprintf(file, "\n"); 378 397 fprintf(file, "Time: %s Host: %s\n", owl_message_get_timestr(m), owl_message_get_hostname(m)); 379 ptr=owl_zephyr_get_zsig(owl_message_get_notice(m), &i); 380 buff=owl_malloc(i+10); 381 memcpy(buff, ptr, i); 382 buff[i]='\0'; 383 fprintf(file, "From: %s <%s>\n\n", buff, tmp); 398 zsig=owl_message_get_zsig(m); 399 fprintf(file, "From: %s <%s>\n\n", zsig, tmp); 384 400 fprintf(file, "%s\n\n", owl_message_get_body(m)); 385 401 owl_free(tmp); … … 411 427 fprintf(allfile, "\n"); 412 428 fprintf(allfile, "Time: %s Host: %s\n", owl_message_get_timestr(m), owl_message_get_hostname(m)); 413 fprintf(allfile, "From: %s <%s>\n\n", buff, tmp);429 fprintf(allfile, "From: %s <%s>\n\n", zsig, tmp); 414 430 fprintf(allfile, "%s\n\n", owl_message_get_body(m)); 415 431 owl_free(tmp); … … 431 447 } 432 448 433 if (owl_message_is_type_zephyr(m)) {434 owl_free(buff);435 }436 449 owl_free(frombuff); 437 450 } -
mainwin.c
r37eab7f rdab82f29 1 /* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar 2 * 3 * This file is part of Owl. 4 * 5 * Owl is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * Owl is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with Owl. If not, see <http://www.gnu.org/licenses/>. 17 * 18 * --------------------------------------------------------------- 19 * 20 * As of Owl version 2.1.12 there are patches contributed by 21 * developers of the the branched BarnOwl project, Copyright (c) 22 * 2006-2008 The BarnOwl Developers. All rights reserved. 23 */ 24 1 25 #include "owl.h" 2 26 -
message.c
r8298425 rdab82f29 1 /* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar 2 * 3 * This file is part of Owl. 4 * 5 * Owl is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * Owl is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with Owl. If not, see <http://www.gnu.org/licenses/>. 17 * 18 * --------------------------------------------------------------- 19 * 20 * As of Owl version 2.1.12 there are patches contributed by 21 * developers of the the branched BarnOwl project, Copyright (c) 22 * 2006-2008 The BarnOwl Developers. All rights reserved. 23 */ 24 1 25 #include <stdlib.h> 2 26 #include <unistd.h> … … 20 44 m->delete=0; 21 45 m->hostname=owl_strdup(""); 22 m->zwriteline= strdup("");46 m->zwriteline=NULL; 23 47 m->invalid_format=1; 24 48 … … 437 461 char *owl_message_get_zwriteline(owl_message *m) 438 462 { 463 if(!m->zwriteline) 464 return ""; 439 465 return(m->zwriteline); 440 466 } … … 442 468 void owl_message_set_zwriteline(owl_message *m, char *line) 443 469 { 470 if(m->zwriteline) owl_free(m->zwriteline); 444 471 m->zwriteline=strdup(line); 445 472 } … … 724 751 struct hostent *hent; 725 752 char *ptr, *tmp, *tmp2; 753 int len; 726 754 727 755 owl_message_init(m); … … 752 780 owl_message_set_opcode(m, ""); 753 781 } 754 owl_message_set_zsig(m, n->z_message);782 owl_message_set_zsig(m, owl_zephyr_get_zsig(n, &len)); 755 783 756 784 if ((ptr=strchr(n->z_recipient, '@'))!=NULL) { -
messagelist.c
rbd3f232 rdab82f29 1 /* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar 2 * 3 * This file is part of Owl. 4 * 5 * Owl is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * Owl is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with Owl. If not, see <http://www.gnu.org/licenses/>. 17 * 18 * --------------------------------------------------------------- 19 * 20 * As of Owl version 2.1.12 there are patches contributed by 21 * developers of the the branched BarnOwl project, Copyright (c) 22 * 2006-2008 The BarnOwl Developers. All rights reserved. 23 */ 24 1 25 #include "owl.h" 2 26 #include <stdlib.h> … … 21 45 } 22 46 23 owl_message *owl_messagelist_get_by_id(owl_messagelist *ml, int id)47 owl_message *owl_messagelist_get_by_id(owl_messagelist *ml, int target_id) 24 48 { 25 49 /* return the message with id == 'id'. If it doesn't exist return NULL. */ 26 /* we could make this much more efficient at some point */ 27 int i, j; 50 int first, last, mid, msg_id; 28 51 owl_message *m; 29 52 30 j=owl_list_get_size(&(ml->list)); 31 for (i=0; i<j; i++) { 32 m=owl_list_get_element(&(ml->list), i); 33 if (owl_message_get_id(m)==id) return(m); 34 35 /* the message id's have to be sequential. If we've passed the 36 one we're looking for just bail */ 37 if (owl_message_get_id(m) > id) return(NULL); 53 first = 0; 54 last = owl_list_get_size(&(ml->list)) - 1; 55 while (first <= last) { 56 mid = (first + last) / 2; 57 m = owl_list_get_element(&(ml->list), mid); 58 msg_id = owl_message_get_id(m); 59 if (msg_id == target_id) { 60 return(m); 61 } else if (msg_id < target_id) { 62 first = mid + 1; 63 } else { 64 last = mid - 1; 65 } 38 66 } 39 67 return(NULL); -
owl.c
r176d3443 rdab82f29 1 /* Copyright (c) 2004 James Kretchmar. All rights reserved.1 /* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar 2 2 * 3 * Redistribution and use in source and binary forms, with or without 4 * modification, are permitted provided that the following conditions are 5 * met: 6 * 7 * * Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. 9 * 10 * * Redistributions in binary form must reproduce the above copyright 11 * notice, this list of conditions and the following disclaimer in 12 * the documentation and/or other materials provided with the 13 * distribution. 14 * 15 * * Redistributions in any form must be accompanied by information on 16 * how to obtain complete source code for the Owl software and any 17 * accompanying software that uses the Owl software. The source code 18 * must either be included in the distribution or be available for no 19 * more than the cost of distribution plus a nominal fee, and must be 20 * freely redistributable under reasonable conditions. For an 21 * executable file, complete source code means the source code for 22 * all modules it contains. It does not include source code for 23 * modules or files that typically accompany the major components of 24 * the operating system on which the executable file runs. 25 * 3 * This file is part of Owl. 4 * 5 * Owl is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * Owl is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with Owl. If not, see <http://www.gnu.org/licenses/>. 17 * 18 * --------------------------------------------------------------- 26 19 * 27 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 28 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 29 * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR 30 * NON-INFRINGEMENT, ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE 31 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 32 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 33 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 34 * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 35 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 36 * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN 37 * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 20 * As of Owl version 2.1.12 there are patches contributed by 21 * developers of the the branched BarnOwl project, Copyright (c) 22 * 2006-2008 The BarnOwl Developers. All rights reserved. 38 23 */ 39 24 … … 60 45 #endif 61 46 47 #define STDIN 0 48 62 49 static const char fileIdent[] = "$Id$"; 63 50 … … 69 56 owl_editwin *tw; 70 57 owl_popwin *pw; 71 int j,ret, initialsubs, debug, argcsave, followlast;72 int newmsgs, zpendcount,nexttimediff;58 int ret, initialsubs, debug, argcsave, followlast; 59 int newmsgs, nexttimediff; 73 60 struct sigaction sigact; 74 61 char *configfile, *tty, *perlout, *perlerr, **argvsave, buff[LINE], startupmsg[LINE]; … … 79 66 char *dir; 80 67 struct termios tio; 81 #ifdef HAVE_LIBZEPHYR82 ZNotice_t notice;83 #endif84 68 #if OWL_STDERR_REDIR 85 69 int newstderr; … … 200 184 owl_function_debugmsg("startup: first available debugging message"); 201 185 owl_global_set_startupargs(&g, argcsave, argvsave); 186 owl_global_set_haveaim(&g); 187 188 /* prepare stdin dispatch */ 189 { 190 owl_dispatch *d = owl_malloc(sizeof(owl_dispatch)); 191 owl_function_debugmsg("startup: creating input selector"); 192 d->fd = STDIN; 193 d->cfunc = &owl_process_input; 194 d->destroy = NULL; 195 owl_select_add_dispatch(d); 196 } 197 202 198 #ifdef HAVE_LIBZEPHYR 203 199 owl_global_set_havezephyr(&g); 200 if (!ret) { 201 owl_dispatch *d = owl_malloc(sizeof(owl_dispatch)); 202 owl_function_debugmsg("startup: creating zephyr selector"); 203 d->fd = ZGetFD(); 204 d->cfunc = &owl_zephyr_process_events; 205 d->destroy = NULL; 206 owl_select_add_dispatch(d); 207 owl_global_set_havezephyr(&g); 208 } 204 209 #endif 205 owl_global_set_haveaim(&g);206 210 207 211 #if OWL_STDERR_REDIR 208 212 /* Do this only after we've started curses up... */ 209 owl_function_debugmsg("startup: doing stderr redirection"); 210 newstderr = stderr_replace(); 211 owl_muxevents_add(owl_global_get_muxevents(&g), newstderr, OWL_MUX_READ, 212 stderr_redirect_handler, NULL); 213 { 214 owl_dispatch *d = owl_malloc(sizeof(owl_dispatch)); 215 owl_function_debugmsg("startup: doing stderr redirection"); 216 d->fd = stderr_replace(); 217 d->cfunc = stderr_redirect_handler; 218 d->destroy = NULL; 219 owl_function_debugmsg("testing: 1"); 220 owl_select_add_dispatch(d); 221 owl_function_debugmsg("testing: 2"); 222 } 223 213 224 #endif 214 225 … … 463 474 /* Grab incoming messages. */ 464 475 newmsgs=0; 465 zpendcount=0; 466 while(owl_zephyr_zpending() || owl_global_messagequeue_pending(&g)) { 467 #ifdef HAVE_LIBZEPHYR 468 struct sockaddr_in from; 469 #endif 476 while(owl_global_messagequeue_pending(&g)) { 470 477 owl_message *m=NULL; 471 478 owl_filter *f; 472 479 473 /* grab the new message, stick it in 'm' */ 474 if (owl_zephyr_zpending()) { 475 #ifdef HAVE_LIBZEPHYR 476 /* grab a zephyr notice, but if we've done 20 without stopping, 477 take a break to process keystrokes etc. */ 478 if (zpendcount>20) break; 479 ZReceiveNotice(¬ice, &from); 480 zpendcount++; 481 482 /* is this an ack from a zephyr we sent? */ 483 if (owl_zephyr_notice_is_ack(¬ice)) { 484 owl_zephyr_handle_ack(¬ice); 485 continue; 486 } 487 488 /* if it's a ping and we're not viewing pings then skip it */ 489 if (!owl_global_is_rxping(&g) && !strcasecmp(notice.z_opcode, "ping")) { 490 continue; 491 } 492 493 /* create the new message */ 494 m=owl_malloc(sizeof(owl_message)); 495 owl_message_create_from_znotice(m, ¬ice); 496 #endif 497 } else if (owl_global_messagequeue_pending(&g)) { 498 /* pick up the non-zephyr message in the message queue */ 499 m=owl_global_messageuque_popmsg(&g); 500 } else { 501 /* Not supposed to happen, but we seem to get here on resizes */ 502 owl_function_debugmsg("Bottomed out looking for zephyr"); 503 } 504 505 /* If we didn't pick up a message for some reason, don't go on */ 506 if (m==NULL) { 507 owl_function_debugmsg("m is null in main loop"); 508 continue; 509 } 480 m=owl_global_messageuque_popmsg(&g); 510 481 511 482 /* if this message it on the puntlist, nuke it and continue */ … … 599 570 } 600 571 601 /* dispatch any muxevents */602 owl_muxevents_dispatch(owl_global_get_muxevents(&g), 0);603 604 572 /* follow the last message if we're supposed to */ 605 573 if (newmsgs && followlast) { … … 651 619 } 652 620 653 /* Handle all keypresses. If no key has been pressed, sleep for a 654 * little bit, but otherwise do not. This lets input be grabbed 655 * as quickly as possbile */ 656 j=wgetch(typwin); 657 if (j==ERR) { 658 usleep(10); 659 } else { 660 /* find and activate the current keymap. 661 * TODO: this should really get fixed by activating 662 * keymaps as we switch between windows... 663 */ 664 if (pw && owl_popwin_is_active(pw) && owl_global_get_viewwin(&g)) { 665 owl_context_set_popless(owl_global_get_context(&g), 666 owl_global_get_viewwin(&g)); 667 owl_function_activate_keymap("popless"); 668 } else if (owl_global_is_typwin_active(&g) 669 && owl_editwin_get_style(tw)==OWL_EDITWIN_STYLE_ONELINE) { 670 /* 671 owl_context_set_editline(owl_global_get_context(&g), tw); 672 owl_function_activate_keymap("editline"); 673 */ 674 } else if (owl_global_is_typwin_active(&g) 675 && owl_editwin_get_style(tw)==OWL_EDITWIN_STYLE_MULTILINE) { 676 owl_context_set_editmulti(owl_global_get_context(&g), tw); 677 owl_function_activate_keymap("editmulti"); 678 } else { 679 owl_context_set_recv(owl_global_get_context(&g)); 680 owl_function_activate_keymap("recv"); 681 } 682 /* now actually handle the keypress */ 683 ret = owl_keyhandler_process(owl_global_get_keyhandler(&g), j); 684 if (ret!=0 && ret!=1) { 685 owl_function_makemsg("Unable to handle keypress"); 686 } 687 } 621 /* select on FDs we know about. */ 622 owl_select(); 688 623 689 624 /* Log any error signals */ … … 698 633 } 699 634 635 } 636 } 637 638 void owl_process_input(owl_dispatch *d) 639 { 640 int ret, j; 641 owl_popwin *pw; 642 owl_editwin *tw; 643 WINDOW *typwin; 644 645 typwin = owl_global_get_curs_typwin(&g); 646 while (1) { 647 j=wgetch(typwin); 648 if (j==ERR) return; 649 650 pw=owl_global_get_popwin(&g); 651 tw=owl_global_get_typwin(&g); 652 653 /* find and activate the current keymap. 654 * TODO: this should really get fixed by activating 655 * keymaps as we switch between windows... 656 */ 657 if (pw && owl_popwin_is_active(pw) && owl_global_get_viewwin(&g)) { 658 owl_context_set_popless(owl_global_get_context(&g), 659 owl_global_get_viewwin(&g)); 660 owl_function_activate_keymap("popless"); 661 } else if (owl_global_is_typwin_active(&g) 662 && owl_editwin_get_style(tw)==OWL_EDITWIN_STYLE_ONELINE) { 663 /* 664 owl_context_set_editline(owl_global_get_context(&g), tw); 665 owl_function_activate_keymap("editline"); 666 */ 667 } else if (owl_global_is_typwin_active(&g) 668 && owl_editwin_get_style(tw)==OWL_EDITWIN_STYLE_MULTILINE) { 669 owl_context_set_editmulti(owl_global_get_context(&g), tw); 670 owl_function_activate_keymap("editmulti"); 671 } else { 672 owl_context_set_recv(owl_global_get_context(&g)); 673 owl_function_activate_keymap("recv"); 674 } 675 /* now actually handle the keypress */ 676 ret = owl_keyhandler_process(owl_global_get_keyhandler(&g), j); 677 if (ret!=0 && ret!=1) { 678 owl_function_makemsg("Unable to handle keypress"); 679 } 700 680 } 701 681 } … … 743 723 return -1; 744 724 } 745 owl_function_debugmsg("stderr_replace: pipe: %d,%d \n", pipefds[0], pipefds[1]);725 owl_function_debugmsg("stderr_replace: pipe: %d,%d", pipefds[0], pipefds[1]); 746 726 if (-1 == dup2(pipefds[1], 2 /*stderr*/)) { 747 owl_function_debugmsg("stderr_replace: dup2 FAILED (%s) \n", strerror(errno));727 owl_function_debugmsg("stderr_replace: dup2 FAILED (%s)", strerror(errno)); 748 728 perror("dup2"); 749 729 return -1; -
owl.h
re74e573 rdab82f29 1 /* Copyright (c) 2004 James Kretchmar. All rights reserved.1 /* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar 2 2 * 3 * Redistribution and use in source and binary forms, with or without 4 * modification, are permitted provided that the following conditions are 5 * met: 6 * 7 * * Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. 9 * 10 * * Redistributions in binary form must reproduce the above copyright 11 * notice, this list of conditions and the following disclaimer in 12 * the documentation and/or other materials provided with the 13 * distribution. 14 * 15 * * Redistributions in any form must be accompanied by information on 16 * how to obtain complete source code for the Owl software and any 17 * accompanying software that uses the Owl software. The source code 18 * must either be included in the distribution or be available for no 19 * more than the cost of distribution plus a nominal fee, and must be 20 * freely redistributable under reasonable conditions. For an 21 * executable file, complete source code means the source code for 22 * all modules it contains. It does not include source code for 23 * modules or files that typically accompany the major components of 24 * the operating system on which the executable file runs. 25 * 3 * This file is part of Owl. 4 * 5 * Owl is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * Owl is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with Owl. If not, see <http://www.gnu.org/licenses/>. 17 * 18 * --------------------------------------------------------------- 26 19 * 27 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 28 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 29 * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR 30 * NON-INFRINGEMENT, ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE 31 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 32 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 33 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 34 * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 35 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 36 * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN 37 * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 20 * As of Owl version 2.1.12 there are patches contributed by 21 * developers of the the branched BarnOwl project, Copyright (c) 22 * 2006-2008 The BarnOwl Developers. All rights reserved. 38 23 */ 39 24 … … 60 45 static const char owl_h_fileIdent[] = "$Id$"; 61 46 62 #define OWL_VERSION 2.1.1 163 #define OWL_VERSION_STRING "2.1.1 1"47 #define OWL_VERSION 2.1.12 48 #define OWL_VERSION_STRING "2.1.12-pre-6" 64 49 65 50 /* Feature that is being tested to redirect stderr through a pipe. … … 192 177 #define OWL_WEBZEPHYR_OPCODE "webzephyr" 193 178 194 #define OWL_REGEX_QUOTECHARS "+*.?[]^\\ "179 #define OWL_REGEX_QUOTECHARS "+*.?[]^\\${}()" 195 180 #define OWL_REGEX_QUOTEWITH "\\" 196 181 … … 371 356 } owl_popwin; 372 357 358 typedef struct _owl_dispatch { 359 int fd; /* FD to watch for dispatch. */ 360 int needs_gc; 361 void (*cfunc)(struct _owl_dispatch*); /* C function to dispatch to. */ 362 void (*destroy)(struct _owl_dispatch*); /* Destructor */ 363 void *data; 364 } owl_dispatch; 365 373 366 typedef struct _owl_popexec { 374 367 int refcount; … … 376 369 int winactive; 377 370 int pid; /* or 0 if it has terminated */ 378 int rfd;371 owl_dispatch dispatch; 379 372 } owl_popexec; 380 373 … … 434 427 } owl_editwin; 435 428 436 typedef struct _owl_mux {437 int handle; /* for referencing this */438 int active; /* has this been deleted? */439 int fd;440 int eventmask; /* bitmask of OWL_MUX_* */441 void (*handler_fn)(int handle, int fd, int eventmask, void *data);442 void *data; /* data reference to pass to callback */443 } owl_mux;444 typedef owl_list owl_muxevents;445 446 429 typedef struct _owl_keybinding { 447 430 int *j; /* keypress stack (0-terminated) */ … … 503 486 owl_list filterlist; 504 487 owl_list puntlist; 505 owl_muxevents muxevents; /* fds to dispatch on */506 488 owl_vardict vars; 507 489 owl_cmddict cmds; … … 563 545 owl_timer zephyr_buddycheck_timer; 564 546 struct termios startup_tio; 547 owl_list dispatchlist; 565 548 } owl_global; 566 549 -
pair.c
r160ea47 rdab82f29 1 /* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar 2 * 3 * This file is part of Owl. 4 * 5 * Owl is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * Owl is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with Owl. If not, see <http://www.gnu.org/licenses/>. 17 * 18 * --------------------------------------------------------------- 19 * 20 * As of Owl version 2.1.12 there are patches contributed by 21 * developers of the the branched BarnOwl project, Copyright (c) 22 * 2006-2008 The BarnOwl Developers. All rights reserved. 23 */ 24 1 25 #include "owl.h" 2 26 -
perlconfig.c
r4e0f545 rdab82f29 1 /* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar 2 * 3 * This file is part of Owl. 4 * 5 * Owl is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * Owl is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with Owl. If not, see <http://www.gnu.org/licenses/>. 17 * 18 * --------------------------------------------------------------- 19 * 20 * As of Owl version 2.1.12 there are patches contributed by 21 * developers of the the branched BarnOwl project, Copyright (c) 22 * 2006-2008 The BarnOwl Developers. All rights reserved. 23 */ 24 1 25 #include <stdio.h> 2 26 #include <stdlib.h> … … 74 98 hv_store(h, "id", strlen("id"), newSViv(owl_message_get_id(m)),0); 75 99 hv_store(h, "deleted", strlen("deleted"), newSViv(owl_message_is_delete(m)),0); 100 hv_store(h, "private", strlen("private"), newSViv(owl_message_is_private(m)),0); 76 101 77 102 if (owl_message_is_type_zephyr(m)) blessas = "owl::Message::Zephyr"; … … 325 350 char *ptr = NULL; 326 351 if (owl_perlconfig_is_function("owl::receive_msg")) { 327 owl_perlconfig_call_with_message(subname?subname352 ptr = owl_perlconfig_call_with_message(subname?subname 328 353 :"owl::_receive_msg_legacy_wrap", m); 329 354 } -
perlglue.xs
r8a54409 rdab82f29 16 16 extern void g; 17 17 extern int owl_global_get_cols(void*); 18 18 extern char *owl_zephyr_get_realm(); 19 extern char *owl_zephyr_get_sender(); 20 19 21 MODULE = owl PACKAGE = owl 20 22 -
perlwrap.pm
r87c6ef1 rdab82f29 45 45 sub recipient { return shift->{"recipient"}; } 46 46 sub login { return shift->{"login"}; } 47 sub is_private { return shift->{"private"}; } 47 48 48 49 sub is_login { return shift->login eq "login"; } … … 63 64 sub is_mail { return 0; } 64 65 sub is_personal { return undef; } 65 sub is_private { return undef; }66 66 sub class { return undef; } 67 67 sub instance { return undef; } … … 191 191 sub is_ping { return (lc(shift->opcode) eq "ping"); } 192 192 193 sub is_private {194 my ($m) = @_;195 return (lc($m->recipient) eq lc(owl::zephyr_getsender()));196 }197 198 193 sub is_personal { 199 194 my ($m) = @_; -
popexec.c
r1971b59 rdab82f29 1 /* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar 2 * 3 * This file is part of Owl. 4 * 5 * Owl is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * Owl is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with Owl. If not, see <http://www.gnu.org/licenses/>. 17 * 18 * --------------------------------------------------------------- 19 * 20 * As of Owl version 2.1.12 there are patches contributed by 21 * developers of the the branched BarnOwl project, Copyright (c) 22 * 2006-2008 The BarnOwl Developers. All rights reserved. 23 */ 24 1 25 #include "owl.h" 2 26 #ifdef HAVE_SYS_IOCTL_H … … 51 75 return NULL; 52 76 } else if (pid != 0) { 77 close(child_write_fd); 53 78 /* still in owl */ 54 int muxhandle;55 79 pe->pid=pid; 56 80 pe->winactive=1; 57 pe-> rfd = parent_read_fd;58 close(child_write_fd);59 muxhandle = owl_muxevents_add(owl_global_get_muxevents(&g),60 parent_read_fd, OWL_MUX_READ|OWL_MUX_EXCEPT,61 owl_popexec_inputhandler, (void*)pe);81 pe->dispatch.fd = parent_read_fd; 82 pe->dispatch.cfunc = owl_popexec_inputhandler; 83 pe->dispatch.destroy = owl_popexec_free_dispatch; 84 pe->dispatch.data = pe; 85 owl_select_add_dispatch(&pe->dispatch); 62 86 pe->refcount++; 63 87 } else { … … 73 97 dup2(child_write_fd, 2 /*stderr*/); 74 98 close(child_write_fd); 75 76 while(0) {77 write(child_write_fd, "meep\n", 5);78 sleep(1);79 }80 99 81 100 argv[0] = "sh"; … … 90 109 } 91 110 92 void owl_popexec_inputhandler( int handle, int fd, int eventmask, void *data)93 { 94 owl_popexec *pe = (owl_popexec*)data;111 void owl_popexec_inputhandler(owl_dispatch *d) 112 { 113 owl_popexec *pe = d->data; 95 114 int navail, bread, rv_navail; 96 115 char *buf; … … 101 120 /* If pe->winactive is 0 then the vwin has closed. 102 121 * If pe->pid is 0 then the child has already been reaped. 103 * if pe->rfd is -1 then the fd has been closed out.122 * if d->fd is -1 then the fd has been closed out. 104 123 * Under these cases we want to get to a state where: 105 124 * - data read until end if child running … … 110 129 111 130 /* the viewwin has closed */ 112 if (pe->rfd<0 && !pe->pid && !pe->winactive) { 113 owl_muxevents_remove(owl_global_get_muxevents(&g), handle); 114 owl_function_debugmsg("unref of %p from input handler at A", pe); 115 owl_popexec_unref(pe); 131 if (!pe->pid && !pe->winactive) { 132 owl_select_remove_dispatch(d->fd); 116 133 return; 117 134 } 118 135 119 if (0 != (rv_navail = ioctl( fd, FIONREAD, (void*)&navail))) {136 if (0 != (rv_navail = ioctl(d->fd, FIONREAD, (void*)&navail))) { 120 137 owl_function_debugmsg("ioctl error"); 121 138 } … … 130 147 owl_viewwin_redisplay(pe->vwin, 1); 131 148 } 132 if (pe->rfd>0) { 133 close(pe->rfd); 134 pe->rfd = -1; 135 } 136 owl_muxevents_remove(owl_global_get_muxevents(&g), handle); 137 owl_function_debugmsg("unref of %p from input handler at B", pe); 138 owl_popexec_unref(pe); 149 owl_select_remove_dispatch(d->fd); 139 150 return; 140 151 } 141 152 142 if ( pe->rfd<0 || !pe->pid || !pe->winactive || rv_navail) {153 if (d->fd<0 || !pe->pid || !pe->winactive || rv_navail) { 143 154 owl_function_error("popexec should not have reached this point"); 144 155 return; … … 148 159 if (navail>1024) { navail = 1024; } 149 160 buf = owl_malloc(navail+1); 150 owl_function_debugmsg("about to read %d \n", navail);151 bread = read( fd, buf, navail);161 owl_function_debugmsg("about to read %d", navail); 162 bread = read(d->fd, buf, navail); 152 163 if (bread<0) { 153 164 perror("read"); … … 157 168 buf[navail] = '\0'; 158 169 } 159 owl_function_debugmsg("got data: <%s> \n", buf);170 owl_function_debugmsg("got data: <%s>", buf); 160 171 if (pe->winactive) { 161 172 owl_viewwin_append_text(pe->vwin, buf); … … 166 177 } 167 178 179 void owl_popexec_free_dispatch(owl_dispatch *d) 180 { 181 owl_popexec *pe = d->data; 182 close(d->fd); 183 owl_popexec_unref(pe); 184 } 185 168 186 void owl_popexec_viewwin_onclose(owl_viewwin *vwin, void *data) 169 187 { … … 172 190 173 191 pe->winactive = 0; 174 if (pe->rfd>0) { 175 close(pe->rfd); 176 pe->rfd = -1; 192 if (pe->dispatch.fd>0) { 193 owl_select_remove_dispatch(pe->dispatch.fd); 177 194 } 178 195 if (pe->pid) { -
popwin.c
r818a073 rdab82f29 1 /* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar 2 * 3 * This file is part of Owl. 4 * 5 * Owl is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * Owl is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with Owl. If not, see <http://www.gnu.org/licenses/>. 17 * 18 * --------------------------------------------------------------- 19 * 20 * As of Owl version 2.1.12 there are patches contributed by 21 * developers of the the branched BarnOwl project, Copyright (c) 22 * 2006-2008 The BarnOwl Developers. All rights reserved. 23 */ 24 1 25 #include "owl.h" 2 26 -
regex.c
rbc08664 rdab82f29 1 /* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar 2 * 3 * This file is part of Owl. 4 * 5 * Owl is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * Owl is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with Owl. If not, see <http://www.gnu.org/licenses/>. 17 * 18 * --------------------------------------------------------------- 19 * 20 * As of Owl version 2.1.12 there are patches contributed by 21 * developers of the the branched BarnOwl project, Copyright (c) 22 * 2006-2008 The BarnOwl Developers. All rights reserved. 23 */ 24 1 25 #include <string.h> 2 26 #include "owl.h" -
style.c
r5a9f6fe rdab82f29 1 /* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar 2 * 3 * This file is part of Owl. 4 * 5 * Owl is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * Owl is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with Owl. If not, see <http://www.gnu.org/licenses/>. 17 * 18 * --------------------------------------------------------------- 19 * 20 * As of Owl version 2.1.12 there are patches contributed by 21 * developers of the the branched BarnOwl project, Copyright (c) 22 * 2006-2008 The BarnOwl Developers. All rights reserved. 23 */ 24 1 25 #include "owl.h" 2 26 -
stylefunc.c
r789462a rdab82f29 1 /* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar 2 * 3 * This file is part of Owl. 4 * 5 * Owl is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * Owl is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with Owl. If not, see <http://www.gnu.org/licenses/>. 17 * 18 * --------------------------------------------------------------- 19 * 20 * As of Owl version 2.1.12 there are patches contributed by 21 * developers of the the branched BarnOwl project, Copyright (c) 22 * 2006-2008 The BarnOwl Developers. All rights reserved. 23 */ 24 1 25 #include "owl.h" 2 26 -
tester.c
r094009a rdab82f29 1 /* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar 2 * 3 * This file is part of Owl. 4 * 5 * Owl is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * Owl is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with Owl. If not, see <http://www.gnu.org/licenses/>. 17 * 18 * --------------------------------------------------------------- 19 * 20 * As of Owl version 2.1.12 there are patches contributed by 21 * developers of the the branched BarnOwl project, Copyright (c) 22 * 2006-2008 The BarnOwl Developers. All rights reserved. 23 */ 24 1 25 #include "owl.h" 2 26 #include <unistd.h> -
text.c
r1bb1e67 rdab82f29 1 /* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar 2 * 3 * This file is part of Owl. 4 * 5 * Owl is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * Owl is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with Owl. If not, see <http://www.gnu.org/licenses/>. 17 * 18 * --------------------------------------------------------------- 19 * 20 * As of Owl version 2.1.12 there are patches contributed by 21 * developers of the the branched BarnOwl project, Copyright (c) 22 * 2006-2008 The BarnOwl Developers. All rights reserved. 23 */ 24 1 25 #include <stdio.h> 2 26 #include <string.h> -
timer.c
r6a415e9 rdab82f29 1 /* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar 2 * 3 * This file is part of Owl. 4 * 5 * Owl is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * Owl is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with Owl. If not, see <http://www.gnu.org/licenses/>. 17 * 18 * --------------------------------------------------------------- 19 * 20 * As of Owl version 2.1.12 there are patches contributed by 21 * developers of the the branched BarnOwl project, Copyright (c) 22 * 2006-2008 The BarnOwl Developers. All rights reserved. 23 */ 24 1 25 #include "owl.h" 2 26 -
util.c
rfe67f1f rdab82f29 1 /* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar 2 * 3 * This file is part of Owl. 4 * 5 * Owl is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * Owl is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with Owl. If not, see <http://www.gnu.org/licenses/>. 17 * 18 * --------------------------------------------------------------- 19 * 20 * As of Owl version 2.1.12 there are patches contributed by 21 * developers of the the branched BarnOwl project, Copyright (c) 22 * 2006-2008 The BarnOwl Developers. All rights reserved. 23 */ 24 1 25 #include "owl.h" 2 26 #include <stdlib.h> … … 346 370 } 347 371 372 owl_free(curarg); 373 348 374 /* check for unbalanced quotes */ 349 375 if (quote!='\0') { … … 648 674 owl_function_error("Error opening file %s for writing", backupfilename); 649 675 owl_free(backupfilename); 676 fclose(file); 650 677 return; 651 678 } 652 owl_free(backupfilename);653 679 } 654 680 … … 689 715 owl_function_error("WARNING: Error opening %s for writing. Use %s to restore.", filename, backupfilename); 690 716 owl_function_beep(); 691 owl_free(line); 692 return; 693 } 694 695 fputs(text, file); 696 fclose(file); 717 } else { 718 fputs(text, file); 719 fclose(file); 720 } 721 722 if (backup) 723 owl_free(backupfilename); 724 owl_free(text); 697 725 } 698 726 -
variable.c
r15b34fd rdab82f29 1 /* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar 2 * 3 * This file is part of Owl. 4 * 5 * Owl is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * Owl is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with Owl. If not, see <http://www.gnu.org/licenses/>. 17 * 18 * --------------------------------------------------------------- 19 * 20 * As of Owl version 2.1.12 there are patches contributed by 21 * developers of the the branched BarnOwl project, Copyright (c) 22 * 2006-2008 The BarnOwl Developers. All rights reserved. 23 */ 24 1 25 #include <stdio.h> 2 26 #include <stdlib.h> … … 341 365 " the cursor will be near the center.\n", 342 366 "normal,top,neartop,center,paged,pagedcenter" ), 343 344 OWLVAR_ENUM( "webbrowser" /* %OwlVarStub */, OWL_WEBBROWSER_NETSCAPE,345 "web browser to use to launch URLs",346 "When the 'w' key is pressed, this browser is used\n"347 "to display the requested URL.\n",348 "none,netscape,galeon,opera" ),349 367 350 368 … … 953 971 FAIL_UNLESS("get int 7", 9==owl_variable_get_int(&vd,"typewinsize")); 954 972 955 FAIL_UNLESS("get enum", OWL_WEBBROWSER_NETSCAPE==owl_variable_get_int(&vd,"webbrowser"));956 FAIL_UNLESS("get enum as string 1", 0==owl_variable_get_tostring(&vd,"webbrowser", buf, 1024));957 FAIL_UNLESS("get enum as string 2", 0==strcmp(buf,"netscape"));958 FAIL_UNLESS("set enum 1", 0==owl_variable_set_int(&vd,"webbrowser",OWL_WEBBROWSER_GALEON));959 FAIL_UNLESS("get enum 2", OWL_WEBBROWSER_GALEON==owl_variable_get_int(&vd,"webbrowser"));960 FAIL_UNLESS("set enum 1b", -1==owl_variable_set_int(&vd,"webbrowser",-3));961 FAIL_UNLESS("set enum 1b", -1==owl_variable_set_int(&vd,"webbrowser",209));962 FAIL_UNLESS("get enum 2b", OWL_WEBBROWSER_GALEON==owl_variable_get_int(&vd,"webbrowser"));963 FAIL_UNLESS("set enum 3", 0==owl_variable_set_fromstring(&vd,"webbrowser","none",0,0));964 FAIL_UNLESS("get enum 4", OWL_WEBBROWSER_NONE==owl_variable_get_int(&vd,"webbrowser"));965 FAIL_UNLESS("set enum 5", 0==owl_variable_set_fromstring(&vd,"webbrowser","netscape",0,0));966 FAIL_UNLESS("get enum 6", OWL_WEBBROWSER_NETSCAPE==owl_variable_get_int(&vd,"webbrowser"));967 FAIL_UNLESS("set enum 7", -1==owl_variable_set_fromstring(&vd,"webbrowser","xxx",0,0));968 FAIL_UNLESS("set enum 8", -1==owl_variable_set_fromstring(&vd,"webbrowser","",0,0));969 FAIL_UNLESS("set enum 9", -1==owl_variable_set_fromstring(&vd,"webbrowser","netscapey",0,0));970 FAIL_UNLESS("get enum 10", OWL_WEBBROWSER_NETSCAPE==owl_variable_get_int(&vd,"webbrowser"));971 972 973 973 974 -
view.c
rf1e629d rdab82f29 1 /* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar 2 * 3 * This file is part of Owl. 4 * 5 * Owl is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * Owl is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with Owl. If not, see <http://www.gnu.org/licenses/>. 17 * 18 * --------------------------------------------------------------- 19 * 20 * As of Owl version 2.1.12 there are patches contributed by 21 * developers of the the branched BarnOwl project, Copyright (c) 22 * 2006-2008 The BarnOwl Developers. All rights reserved. 23 */ 24 1 25 #include <stdlib.h> 2 26 #include "owl.h" … … 97 121 int owl_view_get_nearest_to_msgid(owl_view *v, int targetid) 98 122 { 99 int i, bestdist=-1, bestpos=0, curid, curdist;123 int first, last, mid = 0, max, bestdist, curid = 0; 100 124 101 for (i=0; i<owl_view_get_size(v); i++) { 102 curid = owl_message_get_id(owl_view_get_element(v, i)); 103 curdist = abs(targetid-curid); 104 if (bestdist<0 || curdist<bestdist) { 105 bestdist = curdist; 106 bestpos = i; 125 first = 0; 126 last = max = owl_view_get_size(v) - 1; 127 while (first <= last) { 128 mid = (first + last) / 2; 129 curid = owl_message_get_id(owl_view_get_element(v, mid)); 130 if (curid == targetid) { 131 return(mid); 132 } else if (curid < targetid) { 133 first = mid + 1; 134 } else { 135 last = mid - 1; 107 136 } 108 137 } 109 return (bestpos); 138 bestdist = abs(targetid-curid); 139 if (curid < targetid && mid+1 < max) { 140 curid = owl_message_get_id(owl_view_get_element(v, mid+1)); 141 mid = (bestdist < abs(targetid-curid)) ? mid : mid+1; 142 } 143 else if (curid > targetid && mid-1 >= 0) { 144 curid = owl_message_get_id(owl_view_get_element(v, mid-1)); 145 mid = (bestdist < abs(targetid-curid)) ? mid : mid-1; 146 } 147 return mid; 110 148 } 111 149 -
viewwin.c
r8721756 rdab82f29 1 /* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar 2 * 3 * This file is part of Owl. 4 * 5 * Owl is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * Owl is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with Owl. If not, see <http://www.gnu.org/licenses/>. 17 * 18 * --------------------------------------------------------------- 19 * 20 * As of Owl version 2.1.12 there are patches contributed by 21 * developers of the the branched BarnOwl project, Copyright (c) 22 * 2006-2008 The BarnOwl Developers. All rights reserved. 23 */ 24 1 25 #include <string.h> 2 26 #include "owl.h" -
zbuddylist.c
rdad943e rdab82f29 1 /* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar 2 * 3 * This file is part of Owl. 4 * 5 * Owl is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * Owl is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with Owl. If not, see <http://www.gnu.org/licenses/>. 17 * 18 * --------------------------------------------------------------- 19 * 20 * As of Owl version 2.1.12 there are patches contributed by 21 * developers of the the branched BarnOwl project, Copyright (c) 22 * 2006-2008 The BarnOwl Developers. All rights reserved. 23 */ 24 1 25 #include "owl.h" 2 26 -
zcrypt.c
r9ceee9d rdab82f29 1 /* This file is stolen and slightly modified code */ 1 /* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar 2 * 3 * This file is part of Owl. 4 * 5 * Owl is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * Owl is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with Owl. If not, see <http://www.gnu.org/licenses/>. 17 * 18 * --------------------------------------------------------------- 19 * 20 * As of Owl version 2.1.12 there are patches contributed by 21 * developers of the the branched BarnOwl project, Copyright (c) 22 * 2006-2008 The BarnOwl Developers. All rights reserved. 23 */ 24 25 /* The functions here with "owl" in their name were written for the 26 * Owl project. Other code is from Philip Lisiecki's 27 * (lisiecki@mit.edu) zcrypt program. 28 */ 2 29 3 30 /* zcrypt.c -- Read in a data stream from stdin & dump a decrypted/encrypted * … … 423 450 char *GetZephyrVarKeyFile(char *whoami, char *class, char *instance) { 424 451 char *keyfile = NULL; 425 char varname[MAX_SEARCH][128];452 char *varname[MAX_SEARCH]; 426 453 int length[MAX_SEARCH], i; 427 454 char buffer[MAX_BUFF]; 428 char filename[MAX_BUFF];455 char *filename; 429 456 char result[MAX_SEARCH][MAX_BUFF]; 430 457 int numsearch = 0; 431 458 FILE *fsearch; 432 459 460 memset(varname, 0, sizeof(varname)); 461 433 462 /* Determine names to look for in .crypt-table */ 434 463 if (instance) { 435 sprintf(varname[numsearch++],"crypt-%s-%s:", (class?class:"message"), instance);464 varname[numsearch++] = owl_sprintf("crypt-%s-%s:", (class?class:"message"), instance); 436 465 } 437 466 if (class) { 438 sprintf(varname[numsearch++],"crypt-%s:", class);439 } 440 sprintf(varname[numsearch++],"crypt-default:");467 varname[numsearch++] = owl_sprintf("crypt-%s:", class); 468 } 469 varname[numsearch++] = owl_strdup("crypt-default:"); 441 470 442 471 /* Setup the result array, and determine string lengths */ … … 447 476 448 477 /* Open~/.crypt-table */ 449 sprintf(filename,"%s/.crypt-table", getenv("HOME"));478 filename = owl_sprintf("%s/.crypt-table", getenv("HOME")); 450 479 fsearch = fopen(filename, "r"); 451 480 if (fsearch) { … … 495 524 } 496 525 526 for(i = 0; i < MAX_SEARCH; i++) { 527 owl_free(varname[i]); 528 } 529 530 owl_free(filename); 531 497 532 return(keyfile); 498 533 } -
zephyr.c
r180cd15 rdab82f29 66 66 #endif 67 67 } 68 69 #ifdef HAVE_LIBZEPHYR 70 int owl_zephyr_loadsubs_helper(ZSubscription_t subs[], int count) 71 { 72 int i, ret = 0; 73 /* sub without defaults */ 74 if (ZSubscribeToSansDefaults(subs,count,0) != ZERR_NONE) { 75 owl_function_error("Error subscribing to zephyr notifications."); 76 ret=-2; 77 } 78 79 /* free stuff */ 80 for (i=0; i<count; i++) { 81 owl_free(subs[i].zsub_class); 82 owl_free(subs[i].zsub_classinst); 83 owl_free(subs[i].zsub_recipient); 84 } 85 return ret; 86 } 87 #endif 68 88 69 89 /* Load zephyr subscriptions form 'filename'. If 'filename' is NULL, … … 82 102 char buffer[1024], subsfile[1024]; 83 103 ZSubscription_t subs[3001]; 84 int count, ret , i;104 int count, ret; 85 105 struct stat statbuff; 86 106 … … 98 118 99 119 ZResetAuthentication(); 100 /* need to redo this to do chunks, not just bail after 3000 */101 120 count=0; 102 121 file=fopen(subsfile, "r"); … … 111 130 } 112 131 113 if (count >= 3000) break; /* also tell the user */ 132 if (count >= 3000) { 133 ret = owl_zephyr_loadsubs_helper(subs, count); 134 if (ret != 0) { 135 fclose(file); 136 return(ret); 137 } 138 count=0; 139 } 114 140 115 141 /* add it to the list of subs */ … … 130 156 fclose(file); 131 157 132 /* sub without defaults */ 133 ret=0; 134 if (ZSubscribeToSansDefaults(subs,count,0) != ZERR_NONE) { 135 owl_function_error("Error subscribing to zephyr notifications."); 136 ret=-2; 137 } 138 139 /* free stuff */ 140 for (i=0; i<count; i++) { 141 owl_free(subs[i].zsub_class); 142 owl_free(subs[i].zsub_classinst); 143 owl_free(subs[i].zsub_recipient); 144 } 158 ret=owl_zephyr_loadsubs_helper(subs, count); 145 159 146 160 return(ret); … … 291 305 int i, count, save; 292 306 char *out; 307 308 /* If there's no message here, just run along now */ 309 if (n->z_message_len == 0) 310 return(owl_strdup("")); 293 311 294 312 count=save=0; … … 327 345 int i, fields; 328 346 347 if(n->z_message_len == 0) 348 return 0; 349 329 350 fields=1; 330 351 for (i=0; i<n->z_message_len; i++) { … … 355 376 if (!strcasecmp(n->z_sender, "olc.matisse@ATHENA.MIT.EDU")) { 356 377 return(owl_zephyr_get_field(n, 1)); 378 } 379 /* deal with MIT NOC messages */ 380 else if (!strcasecmp(n->z_sender, "rcmd.achilles@ATHENA.MIT.EDU")) { 381 /* $opcode service on $instance $3.\n$4 */ 382 char *msg, *opcode, *instance, *field3, *field4; 383 384 opcode = n->z_opcode; 385 instance = n->z_class_inst; 386 field3 = owl_zephyr_get_field(n, 3); 387 field4 = owl_zephyr_get_field(n, 4); 388 389 msg = owl_sprintf("%s service on %s %s\n%s", opcode, instance, field3, field4); 390 if (msg) { 391 return msg; 392 } 357 393 } 358 394 … … 629 665 owl_function_error("Subscription already present in %s", subsfile); 630 666 owl_free(line); 667 fclose(file); 631 668 return; 632 669 } 633 670 } 671 fclose(file); 634 672 } 635 673 636 674 /* if we get here then we didn't find it */ 637 fclose(file);638 675 file=fopen(subsfile, "a"); 639 676 if (!file) { … … 969 1006 #endif 970 1007 } 1008 1009 1010 #ifdef HAVE_LIBZEPHYR 1011 void owl_zephyr_process_events(owl_dispatch *d) { 1012 int zpendcount=0; 1013 ZNotice_t notice; 1014 struct sockaddr_in from; 1015 owl_message *m=NULL; 1016 1017 while(owl_zephyr_zpending() && zpendcount < 20) { 1018 if (owl_zephyr_zpending()) { 1019 ZReceiveNotice(¬ice, &from); 1020 zpendcount++; 1021 1022 /* is this an ack from a zephyr we sent? */ 1023 if (owl_zephyr_notice_is_ack(¬ice)) { 1024 owl_zephyr_handle_ack(¬ice); 1025 continue; 1026 } 1027 1028 /* if it's a ping and we're not viewing pings then skip it */ 1029 if (!owl_global_is_rxping(&g) && !strcasecmp(notice.z_opcode, "ping")) { 1030 continue; 1031 } 1032 1033 /* create the new message */ 1034 m=owl_malloc(sizeof(owl_message)); 1035 owl_message_create_from_znotice(m, ¬ice); 1036 1037 owl_global_messagequeue_addmsg(&g, m); 1038 } 1039 } 1040 } 1041 1042 #else 1043 void owl_zephyr_process_events(owl_dispatch *d) { 1044 1045 } 1046 #endif -
zwrite.c
rdb2dd3d rdab82f29 1 /* Copyright (c) 2002,2003,2004,2009 James M. Kretchmar 2 * 3 * This file is part of Owl. 4 * 5 * Owl is free software: you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation, either version 3 of the License, or 8 * (at your option) any later version. 9 * 10 * Owl is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with Owl. If not, see <http://www.gnu.org/licenses/>. 17 * 18 * --------------------------------------------------------------- 19 * 20 * As of Owl version 2.1.12 there are patches contributed by 21 * developers of the the branched BarnOwl project, Copyright (c) 22 * 2006-2008 The BarnOwl Developers. All rights reserved. 23 */ 24 1 25 #include <string.h> 2 26 #include <pwd.h> … … 191 215 { 192 216 int i, j; 193 char to[LINE];217 char *to; 194 218 195 219 if (z->noping) return; … … 205 229 for (i=0; i<j; i++) { 206 230 if (strcmp(z->realm, "")) { 207 sprintf(to,"%s@%s", (char *) owl_list_get_element(&(z->recips), i), z->realm);231 to = owl_sprintf("%s@%s", (char *) owl_list_get_element(&(z->recips), i), z->realm); 208 232 } else { 209 strcpy(to,owl_list_get_element(&(z->recips), i));233 to = owl_strdup(owl_list_get_element(&(z->recips), i)); 210 234 } 211 235 send_ping(to); 236 owl_free(to); 212 237 } 213 238 … … 217 242 { 218 243 int i, j; 219 char toline[LINE]; 220 244 char *toline = NULL; 245 char *tmp = NULL; 246 221 247 if (z->message) owl_free(z->message); 222 248 223 249 j=owl_list_get_size(&(z->recips)); 224 250 if (j>0 && z->cc) { 225 strcpy(toline,"CC: ");251 toline = owl_strdup( "CC: "); 226 252 for (i=0; i<j; i++) { 253 tmp = toline; 227 254 if (strcmp(z->realm, "")) { 228 sprintf(toline,"%s%s@%s ", toline, (char *) owl_list_get_element(&(z->recips), i), z->realm);255 toline = owl_sprintf( "%s%s@%s ", toline, (char *) owl_list_get_element(&(z->recips), i), z->realm); 229 256 } else { 230 sprintf(toline, "%s%s ", toline, (char *) owl_list_get_element(&(z->recips), i)); 231 } 257 toline = owl_sprintf( "%s%s ", toline, (char *) owl_list_get_element(&(z->recips), i)); 258 } 259 owl_free(tmp); 260 tmp=NULL; 232 261 } 233 262 z->message=owl_sprintf("%s\n%s", toline, msg); 263 owl_free(toline); 234 264 } else { 235 265 z->message=owl_strdup(msg); … … 252 282 { 253 283 int i, j; 254 char to[LINE];284 char *to = NULL; 255 285 256 286 if (z->message==NULL) return(-1); … … 260 290 for (i=0; i<j; i++) { 261 291 if (strcmp(z->realm, "")) { 262 sprintf(to,"%s@%s", (char *) owl_list_get_element(&(z->recips), i), z->realm);292 to = owl_sprintf("%s@%s", (char *) owl_list_get_element(&(z->recips), i), z->realm); 263 293 } else { 264 strcpy(to,owl_list_get_element(&(z->recips), i));294 to = owl_strdup( owl_list_get_element(&(z->recips), i)); 265 295 } 266 296 send_zephyr(z->opcode, z->zsig, z->class, z->inst, to, z->message); 297 owl_free(to); 298 to = NULL; 267 299 } 268 300 } else { 269 sprintf(to,"@%s", z->realm);301 to = owl_sprintf( "@%s", z->realm); 270 302 send_zephyr(z->opcode, z->zsig, z->class, z->inst, to, z->message); 271 303 } 304 owl_free(to); 272 305 return(0); 273 306 }
Note: See TracChangeset
for help on using the changeset viewer.
