Codebase list sidguesser / 7048039
Imported Upstream version 1.0.5 Devon Kearns 11 years ago
17 changed file(s) with 6958 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0
1
2
3 CC=gcc
4 CFLAGS=-O2
5 GUESS_SID_OBJS=log.o SIDGuesser.o
6 LDFLAGS=-pthread
7
8 all: sidguess
9
10
11 sidguess: $(GUESS_SID_OBJS)
12 $(CC) -o sidguess $(GUESS_SID_OBJS) $(LDFLAGS)
13
14 clean:
15 rm -f *~ *.o sidguess sidguess.exe
16
17 distclean: clean
18 rm -f Makefile config.h
0
1
2
3 CC=@CC@
4 CFLAGS=-O2
5 GUESS_SID_OBJS=log.o SIDGuesser.o
6 LDFLAGS=-pthread
7
8 all: sidguess
9
10
11 sidguess: $(GUESS_SID_OBJS)
12 $(CC) -o sidguess $(GUESS_SID_OBJS) $(LDFLAGS)
13
14 clean:
15 rm -f *~ *.o sidguess sidguess.exe
16
17 distclean: clean
18 rm -f Makefile config.h
0 #include <stdio.h>
1 #include <stdlib.h>
2 #include <string.h>
3
4 #include <time.h>
5
6 #ifdef WIN32
7 #include <winsock2.h>
8 #include <windows.h>
9 #else
10 #include <sys/socket.h>
11 #include <netinet/in.h>
12 #include <pthread.h>
13 #endif
14
15 #include "tns.h"
16 #include "log.h"
17 #include "getopt.h"
18 #include "SIDGuesser.h"
19
20 #ifdef WIN32
21 #pragma comment(lib, "ws2_32.lib")
22 #endif
23 /*
24 SIDGuesser
25 Copyright (c) 2006- Patrik Karlsson
26
27 http://www.cqure.net
28
29 This program is free software; you can redistribute it and/or modify
30 it under the terms of the GNU General Public License as published by
31 the Free Software Foundation; either version 2 of the License, or
32 (at your option) any later version.
33
34 This program is distributed in the hope that it will be useful,
35 but WITHOUT ANY WARRANTY; without even the implied warranty of
36 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37 GNU General Public License for more details.
38
39 You should have received a copy of the GNU General Public License
40 along with this program; if not, write to the Free Software
41 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
42 */
43
44 #ifndef WIN32
45
46 #include <termio.h>
47 #include <termios.h>
48
49 struct termios stored_settings;
50 /*
51 * void set_keypress(void)
52 *
53 * Terminal magic. Removes the need for <enter> when getchar is called
54 * like getch() in Windows
55 */
56 void set_keypress(void) {
57
58 struct termios new_settings;
59 tcgetattr(0,&stored_settings);
60 new_settings = stored_settings;
61 new_settings.c_lflag &= (~ICANON);
62 new_settings.c_lflag &= (~ECHO);
63 new_settings.c_cc[VTIME] = 0;
64 tcgetattr(0,&stored_settings);
65 new_settings.c_cc[VMIN] = 1;
66 tcsetattr(0,TCSANOW,&new_settings);
67
68 }
69
70 /*
71 * void reset_keypress(void)
72 *
73 * Resets the terminal back to stored_settings
74 */
75 void reset_keypress(void) {
76 tcsetattr(0,TCSANOW,&stored_settings);
77 }
78 #endif
79
80 int CreateTNSHeader( byte *pHdr, int *nSize, int nLen ) {
81
82 struct tTNS_Header tnsh;
83
84 if ( *nSize < sizeof( tnsh ) )
85 return -1;
86
87 *nSize = sizeof( tnsh );
88
89 tnsh.nPacketLen = htons( (short)(nLen + sizeof( tnsh )) );
90 tnsh.nPacketCSum = 0;
91 tnsh.nPacketType = 1; /* CONNECT */
92 tnsh.nReserved = 0;
93 tnsh.nHeaderCSum = 0;
94 tnsh.nVersion = htons(0x0134);
95 tnsh.nVCompat = htons(0x012c);
96 tnsh.nSOptions= htons(0x0000);
97 tnsh.nUnitSize= htons(0x0800);
98 tnsh.nMaxUSize= htons(0x7fff);
99 tnsh.nProtoC = htons(0x4f98);
100 tnsh.nLineTV = htons(0x0000);
101 tnsh.nValOf1 = htons(0x0001);
102 tnsh.nLenOfCD= htons(nLen);/* Length of connect data */
103 tnsh.nOffCD = htons( sizeof( tnsh ) );/* offset of connect data */
104 tnsh.nMaxRecvData = 0;
105 tnsh.bFlags0 = 0x01;
106 tnsh.bFlags1 = 0x01;
107
108 memcpy( pHdr, (byte *)&tnsh, sizeof( tnsh ) );
109
110 return *nSize;
111 }
112
113 #ifdef WIN32
114 SOCKET ConnectSocket( char *pIP, int nPort ) {
115 SOCKET s;
116 #else
117 int ConnectSocket( char *pIP, int nPort ) {
118 int s;
119 #endif
120
121 struct sockaddr_in sin;
122
123 s = socket( AF_INET, SOCK_STREAM, IPPROTO_TCP );
124 sin.sin_family = AF_INET;
125 sin.sin_addr.s_addr = inet_addr( pIP );
126 sin.sin_port = htons( nPort );
127
128 if ( SOCKET_ERROR == connect( s, ( const struct sockaddr * )&sin, sizeof( sin )) )
129 return -1;
130
131 return s;
132 }
133
134 void chomp( char *pStr ) {
135
136 int n = (int)strlen( pStr ) - 1;
137
138 while ( n>0 ) {
139 if ( pStr[n] == '\n' || pStr[n] == '\r' )
140 pStr[n] = 0;
141
142 n--;
143 }
144 }
145
146 #ifdef WIN32
147 DWORD WINAPI ShowStats( LPVOID lpParam ) {
148 #else
149 void *ShowStats( void *pArg ) {
150 #endif
151
152 char ch;
153 double nDeltaTM, nTPS;
154
155 int nMinutes, nHours, nSeconds = 0;
156
157 #ifdef WIN32
158 m_nStartTM = clock();
159 #else
160 m_nStartTM = time(NULL);
161 #endif
162
163 while( 1 && !m_bQuit ) {
164
165 ch = getkey();
166
167 if ( ' ' == ch ) {
168 #ifdef WIN32
169 nDeltaTM = ( clock() - m_nStartTM ) / CLOCKS_PER_SEC;
170 #else
171 nDeltaTM = ( time(NULL) - m_nStartTM );
172 #endif
173 nTPS = m_nTries/nDeltaTM;
174
175 nHours = (int) ( nDeltaTM / 3600 );
176 nMinutes = (int) ((nDeltaTM - ( nHours * 3600 )) / 60);
177 nSeconds = (int) nDeltaTM - ( nHours * 3600 ) - nMinutes * 60;
178
179 fprintf(stderr, "TME: %.2d:%.2d:%.2d ",
180 nHours, nMinutes, nSeconds);
181 fprintf( stdout, "TPS: %.0f DONE: %.0f%% CUR: %s \n", nTPS,
182 m_nTries/m_nDicItems * 100, m_sCurrSID );
183 }
184 else if ( 'q' == ch ) {
185 fprintf( stdout, "\nAbort? (Y/N)");
186 ch = getkey();
187
188 if ( 'y' == ch )
189 m_bQuit = 1;
190 else
191 fprintf( stdout, "\ncontinuing ...\n");
192 }
193 }
194
195
196 return 0;
197 }
198
199 int GuessSID(FILE *pDIC, char *pIP, int nPort ) {
200
201 char hdr[34], pConnStr[1024], buf[1024];
202 int nHdrSize, nRecv, nCStrLen;
203 #ifdef WIN32
204 SOCKET s;
205 #else
206 int s;
207 #endif
208 char *pFmtStr = "(DESCRIPTION=(CONNECT_DATA=(SID=%s)"
209 "(CID=(PROGRAM=)(HOST=__jdbc__)(USER=)))"
210 "(ADDRESS=(PROTOCOL=tcp)(HOST=%s)"
211 "(PORT=%d)))";
212
213 fprintf( stdout, "\nStarting Dictionary Attack (<space> for stats, Q for quit) ...\n\n" );
214
215 while ( fgets( m_sCurrSID, sizeof( m_sCurrSID ) - 1, pDIC ) && !m_bQuit ) {
216
217 chomp( m_sCurrSID );
218
219 if ( m_bVerbose )
220 fprintf(stderr, "Trying: %s\n", m_sCurrSID );
221
222 if ( SOCKET_ERROR == ( s = ConnectSocket( pIP, nPort ) ) ) {
223 fprintf( stderr, "ERR: FAILED TO CONNECT SOCKET IP: %s, PORT: %d\n", pIP, nPort );
224 continue;
225 }
226
227 nCStrLen = snprintf( pConnStr, sizeof( pConnStr ) - 1, pFmtStr, m_sCurrSID, pIP, nPort );
228
229 if ( nCStrLen >= sizeof( pConnStr ) ) {
230 logprintf("ERR: CONNECTION STRING BUFFER TO SMALL\n");
231 continue;
232 }
233
234 nHdrSize = sizeof( hdr );
235 CreateTNSHeader( (byte *)hdr, &nHdrSize, nCStrLen );
236
237 if ( ( nHdrSize + nCStrLen ) > sizeof( buf ) ) {
238 logprintf("ERR: BUFFER TO SMALL SID: %s\n", m_sCurrSID );
239 continue;
240 }
241
242 memcpy(buf, hdr, nHdrSize );
243 memcpy(buf + nHdrSize, pConnStr, nCStrLen );
244
245 send( s, buf, (nCStrLen + nHdrSize), 0 );
246 memset( buf, 0, (int)sizeof( buf ) );
247 nRecv = recv( s, buf, (int)sizeof( buf ), 0 );
248
249 if ( TNS_REDIRECT == buf[PACKET_TYPE_OFFSET] || 0 == buf[PACKET_TYPE_OFFSET] ||
250 TNS_RESEND == buf[PACKET_TYPE_OFFSET] ) {
251 logprintf( "FOUND SID: %s\n", m_sCurrSID );
252
253 if ( MODE_FIND_ALL == m_nMode )
254 continue;
255 else
256 return(0);
257 }
258
259 #ifdef WIN32
260 closesocket( s );
261 #else
262 close( s );
263 #endif
264
265 m_nTries ++;
266 }
267
268 return 0;
269 }
270
271 void banner() {
272
273 int i, nLen = 1;
274
275 printf("\n");
276 nLen = logprintf( "SIDGuesser %s by %s\n", VERSION, AUTHOR );
277 for ( i = 0; i<nLen-1; i++ )
278 logprintf("-");
279 logprintf("\n");
280 }
281
282 void usage( char *pPrg ) {
283
284 banner();
285 printf( "%s -i <ip> -d <dictionary> [options]\n", pPrg );
286 printf( "\noptions:\n");
287 printf( " -p <portnr> Use specific port (default 1521)\n");
288 printf( " -r <report> Report to file\n");
289 printf( " -m <mode> findfirst OR findall(default)\n");
290 }
291
292 FILE *OpenDictionary( char *pFile ) {
293
294 FILE *pF;
295 char row[1024];
296
297 if ( pF = fopen( pFile, "r" ) ) {
298
299 while ( fgets( row, sizeof( row ), pF ) )
300 m_nDicItems ++;
301
302 rewind( pF );
303 }
304 else
305 return NULL;
306
307 return pF;
308
309 }
310
311 int main( int argc, char **argv ) {
312
313 FILE *pF = NULL;
314 char ip[16];
315 int nPort = 1521, c=-1;
316
317 #ifdef WIN32
318 WSADATA wsa;
319 DWORD dwTID;
320
321 WSAStartup( MAKEWORD(2,0), &wsa );
322 #else
323 pthread_t th;
324 pthread_attr_t attr;
325 #endif
326
327 memset( ip, 0, sizeof( ip ) );
328 m_nMode = MODE_FIND_ALL;
329
330 while( TRUE ) {
331
332 c = getopt( argc, argv, "d:i:p:vr:m:" );
333
334 if ( -1 == c ) {
335 break;
336 }
337
338 switch(c) {
339
340 case 'd':
341 if ( NULL == ( pF = OpenDictionary( optarg ) ) ) {
342 fprintf( stderr, "ERR: Failed to open dictionary file\n");
343 return -1;
344 }
345 break;
346 case 'i':
347 strncpy( ip, optarg, sizeof( ip ) );
348 break;
349 case 'p':
350 nPort = atoi( optarg );
351 break;
352 case 'v':
353 m_bVerbose++;
354 break;
355 case 'r':
356 openlogfile( optarg );
357 break;
358 case 'm':
359 if ( 0 == stricmp( "findfirst", optarg ) )
360 m_nMode = MODE_FIND_FIRST;
361 break;
362 default:
363 usage(argv[0]);
364 exit(1);
365 }
366
367 }
368
369
370 if ( NULL == pF || 0 == strlen( ip ) || -1 == nPort ) {
371 usage( argv[0] );
372 exit( 1 );
373 }
374
375 #ifdef WIN32
376 CreateThread( NULL, 0, ShowStats, NULL, 0, &dwTID );
377 #else
378 pthread_attr_init(&attr);
379 pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
380 set_keypress();
381 pthread_create( &th, &attr, ShowStats, NULL );
382 #endif
383
384 banner();
385 GuessSID( pF, ip, nPort );
386 fclose( pF );
387 closelogfile();
388
389 #ifdef WIN32
390 WSACleanup();
391 #else
392 reset_keypress();
393 #endif
394
395 }
0 #ifndef TRUE
1 #define TRUE (1)
2 #endif
3
4 #ifndef FALSE
5 #define FALSE (!TRUE)
6 #endif
7
8 #ifndef SOCKET_ERROR
9 #define SOCKET_ERROR (-1)
10 #endif
11
12 #ifdef WIN32
13 #define getkey() getch();
14 #else
15 #define getkey() getchar();
16 #endif
17
18 #ifdef WIN32
19 #define snprintf _snprintf
20 #else
21 #define stricmp strcasecmp
22 #endif
23
24 const int PACKET_TYPE_OFFSET = 0x04;
25
26 const int TNS_CONNECT = 0x01;
27 const int TNS_REFUSE = 0x04;
28 const int TNS_REDIRECT= 0x05;
29 const int TNS_RESEND = 0x0b;
30
31 const char* VERSION = "v1.0.5";
32 const char* AUTHOR = "[email protected]";
33
34 const int MODE_FIND_FIRST = 0x01;
35 const int MODE_FIND_ALL = 0x02;
36
37 double m_nTries=0, m_nDicItems, m_nStartTM;
38 int m_bVerbose = 0, m_bQuit = FALSE, m_nMode;
39 char m_sCurrSID[512];
0 Microsoft Visual Studio Solution File, Format Version 9.00
1 # Visual Studio 2005
2 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "SIDGuesser", "SIDGuesser.vcproj", "{D7E717DF-BDD5-4D80-ADB0-0611C45F9E90}"
3 EndProject
4 Global
5 GlobalSection(SolutionConfigurationPlatforms) = preSolution
6 Debug|Win32 = Debug|Win32
7 Release|Win32 = Release|Win32
8 EndGlobalSection
9 GlobalSection(ProjectConfigurationPlatforms) = postSolution
10 {D7E717DF-BDD5-4D80-ADB0-0611C45F9E90}.Debug|Win32.ActiveCfg = Debug|Win32
11 {D7E717DF-BDD5-4D80-ADB0-0611C45F9E90}.Debug|Win32.Build.0 = Debug|Win32
12 {D7E717DF-BDD5-4D80-ADB0-0611C45F9E90}.Release|Win32.ActiveCfg = Release|Win32
13 {D7E717DF-BDD5-4D80-ADB0-0611C45F9E90}.Release|Win32.Build.0 = Release|Win32
14 EndGlobalSection
15 GlobalSection(SolutionProperties) = preSolution
16 HideSolutionNode = FALSE
17 EndGlobalSection
18 EndGlobal
0 <?xml version="1.0" encoding="Windows-1252"?>
1 <VisualStudioProject
2 ProjectType="Visual C++"
3 Version="8,00"
4 Name="SIDGuesser"
5 ProjectGUID="{D7E717DF-BDD5-4D80-ADB0-0611C45F9E90}"
6 Keyword="Win32Proj"
7 >
8 <Platforms>
9 <Platform
10 Name="Win32"
11 />
12 </Platforms>
13 <ToolFiles>
14 </ToolFiles>
15 <Configurations>
16 <Configuration
17 Name="Debug|Win32"
18 OutputDirectory="Debug"
19 IntermediateDirectory="Debug"
20 ConfigurationType="1"
21 InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
22 CharacterSet="2"
23 >
24 <Tool
25 Name="VCPreBuildEventTool"
26 />
27 <Tool
28 Name="VCCustomBuildTool"
29 />
30 <Tool
31 Name="VCXMLDataGeneratorTool"
32 />
33 <Tool
34 Name="VCWebServiceProxyGeneratorTool"
35 />
36 <Tool
37 Name="VCMIDLTool"
38 />
39 <Tool
40 Name="VCCLCompilerTool"
41 Optimization="0"
42 AdditionalIncludeDirectories="getopt/include/"
43 PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
44 MinimalRebuild="true"
45 BasicRuntimeChecks="3"
46 RuntimeLibrary="1"
47 UsePrecompiledHeader="0"
48 WarningLevel="3"
49 Detect64BitPortabilityProblems="true"
50 DebugInformationFormat="4"
51 />
52 <Tool
53 Name="VCManagedResourceCompilerTool"
54 />
55 <Tool
56 Name="VCResourceCompilerTool"
57 />
58 <Tool
59 Name="VCPreLinkEventTool"
60 />
61 <Tool
62 Name="VCLinkerTool"
63 OutputFile="$(OutDir)/SIDGuesser.exe"
64 LinkIncremental="2"
65 GenerateDebugInformation="true"
66 ProgramDatabaseFile="$(OutDir)/SIDGuesser.pdb"
67 SubSystem="1"
68 TargetMachine="1"
69 />
70 <Tool
71 Name="VCALinkTool"
72 />
73 <Tool
74 Name="VCManifestTool"
75 />
76 <Tool
77 Name="VCXDCMakeTool"
78 />
79 <Tool
80 Name="VCBscMakeTool"
81 />
82 <Tool
83 Name="VCFxCopTool"
84 />
85 <Tool
86 Name="VCAppVerifierTool"
87 />
88 <Tool
89 Name="VCWebDeploymentTool"
90 />
91 <Tool
92 Name="VCPostBuildEventTool"
93 />
94 </Configuration>
95 <Configuration
96 Name="Release|Win32"
97 OutputDirectory="Release"
98 IntermediateDirectory="Release"
99 ConfigurationType="1"
100 InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
101 CharacterSet="2"
102 >
103 <Tool
104 Name="VCPreBuildEventTool"
105 />
106 <Tool
107 Name="VCCustomBuildTool"
108 />
109 <Tool
110 Name="VCXMLDataGeneratorTool"
111 />
112 <Tool
113 Name="VCWebServiceProxyGeneratorTool"
114 />
115 <Tool
116 Name="VCMIDLTool"
117 />
118 <Tool
119 Name="VCCLCompilerTool"
120 AdditionalIncludeDirectories="getopt/include/"
121 PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
122 RuntimeLibrary="0"
123 UsePrecompiledHeader="0"
124 WarningLevel="3"
125 Detect64BitPortabilityProblems="true"
126 DebugInformationFormat="3"
127 />
128 <Tool
129 Name="VCManagedResourceCompilerTool"
130 />
131 <Tool
132 Name="VCResourceCompilerTool"
133 />
134 <Tool
135 Name="VCPreLinkEventTool"
136 />
137 <Tool
138 Name="VCLinkerTool"
139 OutputFile="$(OutDir)/SIDGuesser.exe"
140 LinkIncremental="1"
141 GenerateDebugInformation="true"
142 SubSystem="1"
143 OptimizeReferences="2"
144 EnableCOMDATFolding="2"
145 TargetMachine="1"
146 />
147 <Tool
148 Name="VCALinkTool"
149 />
150 <Tool
151 Name="VCManifestTool"
152 />
153 <Tool
154 Name="VCXDCMakeTool"
155 />
156 <Tool
157 Name="VCBscMakeTool"
158 />
159 <Tool
160 Name="VCFxCopTool"
161 />
162 <Tool
163 Name="VCAppVerifierTool"
164 />
165 <Tool
166 Name="VCWebDeploymentTool"
167 />
168 <Tool
169 Name="VCPostBuildEventTool"
170 />
171 </Configuration>
172 </Configurations>
173 <References>
174 </References>
175 <Files>
176 <Filter
177 Name="Source Files"
178 Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx"
179 UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
180 >
181 <File
182 RelativePath=".\getopt\Getopt.c"
183 >
184 </File>
185 <File
186 RelativePath=".\log.c"
187 >
188 </File>
189 <File
190 RelativePath=".\SIDGuesser.c"
191 >
192 </File>
193 </Filter>
194 <Filter
195 Name="Header Files"
196 Filter="h;hpp;hxx;hm;inl;inc;xsd"
197 UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
198 >
199 <File
200 RelativePath=".\log.h"
201 >
202 </File>
203 <File
204 RelativePath=".\SIDGuesser.h"
205 >
206 </File>
207 <File
208 RelativePath=".\tns.h"
209 >
210 </File>
211 </Filter>
212 <Filter
213 Name="Resource Files"
214 Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx"
215 UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
216 >
217 </Filter>
218 </Files>
219 <Globals>
220 </Globals>
221 </VisualStudioProject>
0 /* config.h. Generated by configure. */
1 /* config.h.in. Generated from configure.in by autoheader. */
2
3 /* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */
4 /* #undef HAVE_DOPRNT */
5
6 /* Define to 1 if you have the <inttypes.h> header file. */
7 #define HAVE_INTTYPES_H 1
8
9 /* Define to 1 if you have the <memory.h> header file. */
10 #define HAVE_MEMORY_H 1
11
12 /* Define to 1 if you have the `memset' function. */
13 #define HAVE_MEMSET 1
14
15 /* Define to 1 if you have the `socket' function. */
16 #define HAVE_SOCKET 1
17
18 /* Define to 1 if you have the <stdint.h> header file. */
19 #define HAVE_STDINT_H 1
20
21 /* Define to 1 if you have the <stdlib.h> header file. */
22 #define HAVE_STDLIB_H 1
23
24 /* Define to 1 if you have the `strchr' function. */
25 #define HAVE_STRCHR 1
26
27 /* Define to 1 if you have the <strings.h> header file. */
28 #define HAVE_STRINGS_H 1
29
30 /* Define to 1 if you have the <string.h> header file. */
31 #define HAVE_STRING_H 1
32
33 /* Define to 1 if you have the <sys/stat.h> header file. */
34 #define HAVE_SYS_STAT_H 1
35
36 /* Define to 1 if you have the <sys/types.h> header file. */
37 #define HAVE_SYS_TYPES_H 1
38
39 /* Define to 1 if you have the <unistd.h> header file. */
40 #define HAVE_UNISTD_H 1
41
42 /* Define to 1 if you have the `vprintf' function. */
43 #define HAVE_VPRINTF 1
44
45 /* Define to the address where bug reports for this package should be sent. */
46 #define PACKAGE_BUGREPORT "BUG-REPORT-ADDRESS"
47
48 /* Define to the full name of this package. */
49 #define PACKAGE_NAME "FULL-PACKAGE-NAME"
50
51 /* Define to the full name and version of this package. */
52 #define PACKAGE_STRING "FULL-PACKAGE-NAME VERSION"
53
54 /* Define to the one symbol short name of this package. */
55 #define PACKAGE_TARNAME "full-package-name"
56
57 /* Define to the version of this package. */
58 #define PACKAGE_VERSION "VERSION"
59
60 /* Define to 1 if you have the ANSI C header files. */
61 #define STDC_HEADERS 1
62
63 /* Define to empty if `const' does not conform to ANSI C. */
64 /* #undef const */
0 /* config.h.in. Generated from configure.in by autoheader. */
1
2 /* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */
3 #undef HAVE_DOPRNT
4
5 /* Define to 1 if you have the <inttypes.h> header file. */
6 #undef HAVE_INTTYPES_H
7
8 /* Define to 1 if you have the <memory.h> header file. */
9 #undef HAVE_MEMORY_H
10
11 /* Define to 1 if you have the `memset' function. */
12 #undef HAVE_MEMSET
13
14 /* Define to 1 if you have the `socket' function. */
15 #undef HAVE_SOCKET
16
17 /* Define to 1 if you have the <stdint.h> header file. */
18 #undef HAVE_STDINT_H
19
20 /* Define to 1 if you have the <stdlib.h> header file. */
21 #undef HAVE_STDLIB_H
22
23 /* Define to 1 if you have the `strchr' function. */
24 #undef HAVE_STRCHR
25
26 /* Define to 1 if you have the <strings.h> header file. */
27 #undef HAVE_STRINGS_H
28
29 /* Define to 1 if you have the <string.h> header file. */
30 #undef HAVE_STRING_H
31
32 /* Define to 1 if you have the <sys/stat.h> header file. */
33 #undef HAVE_SYS_STAT_H
34
35 /* Define to 1 if you have the <sys/types.h> header file. */
36 #undef HAVE_SYS_TYPES_H
37
38 /* Define to 1 if you have the <unistd.h> header file. */
39 #undef HAVE_UNISTD_H
40
41 /* Define to 1 if you have the `vprintf' function. */
42 #undef HAVE_VPRINTF
43
44 /* Define to the address where bug reports for this package should be sent. */
45 #undef PACKAGE_BUGREPORT
46
47 /* Define to the full name of this package. */
48 #undef PACKAGE_NAME
49
50 /* Define to the full name and version of this package. */
51 #undef PACKAGE_STRING
52
53 /* Define to the one symbol short name of this package. */
54 #undef PACKAGE_TARNAME
55
56 /* Define to the version of this package. */
57 #undef PACKAGE_VERSION
58
59 /* Define to 1 if you have the ANSI C header files. */
60 #undef STDC_HEADERS
61
62 /* Define to empty if `const' does not conform to ANSI C. */
63 #undef const
0 This file contains any messages produced by compilers while
1 running configure, to aid debugging if configure makes a mistake.
2
3 It was created by FULL-PACKAGE-NAME configure VERSION, which was
4 generated by GNU Autoconf 2.59. Invocation command line was
5
6 $ ./configure
7
8 ## --------- ##
9 ## Platform. ##
10 ## --------- ##
11
12 hostname = kali
13 uname -m = x86_64
14 uname -r = 3.2.6-kali
15 uname -s = Linux
16 uname -v = #1 SMP Thu Aug 16 10:26:22 UTC 2012
17
18 /usr/bin/uname -p = unknown
19 /bin/uname -X = unknown
20
21 /bin/arch = unknown
22 /usr/bin/arch -k = unknown
23 /usr/convex/getsysinfo = unknown
24 hostinfo = unknown
25 /bin/machine = unknown
26 /usr/bin/oslevel = unknown
27 /bin/universe = unknown
28
29 PATH: /usr/local/bin
30 PATH: /usr/bin
31 PATH: /bin
32 PATH: /usr/local/games
33 PATH: /usr/games
34 PATH: /usr/local/sbin
35 PATH: /usr/sbin
36 PATH: /sbin
37
38
39 ## ----------- ##
40 ## Core tests. ##
41 ## ----------- ##
42
43 configure:1353: checking for gcc
44 configure:1369: found /usr/bin/gcc
45 configure:1379: result: gcc
46 configure:1623: checking for C compiler version
47 configure:1626: gcc --version </dev/null >&5
48 gcc (Debian 4.7.2-4) 4.7.2
49 Copyright (C) 2012 Free Software Foundation, Inc.
50 This is free software; see the source for copying conditions. There is NO
51 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
52
53 configure:1629: $? = 0
54 configure:1631: gcc -v </dev/null >&5
55 Using built-in specs.
56 COLLECT_GCC=gcc
57 COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.7/lto-wrapper
58 Target: x86_64-linux-gnu
59 Configured with: ../src/configure -v --with-pkgversion='Debian 4.7.2-4' --with-bugurl=file:///usr/share/doc/gcc-4.7/README.Bugs --enable-languages=c,c++,go,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.7 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.7 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --with-arch-32=i586 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
60 Thread model: posix
61 gcc version 4.7.2 (Debian 4.7.2-4)
62 configure:1634: $? = 0
63 configure:1636: gcc -V </dev/null >&5
64 gcc: error: unrecognized command line option '-V'
65 gcc: fatal error: no input files
66 compilation terminated.
67 configure:1639: $? = 4
68 configure:1662: checking for C compiler default output file name
69 configure:1665: gcc conftest.c >&5
70 configure:1668: $? = 0
71 configure:1714: result: a.out
72 configure:1719: checking whether the C compiler works
73 configure:1725: ./a.out
74 configure:1728: $? = 0
75 configure:1745: result: yes
76 configure:1752: checking whether we are cross compiling
77 configure:1754: result: no
78 configure:1757: checking for suffix of executables
79 configure:1759: gcc -o conftest conftest.c >&5
80 configure:1762: $? = 0
81 configure:1787: result:
82 configure:1793: checking for suffix of object files
83 configure:1814: gcc -c conftest.c >&5
84 configure:1817: $? = 0
85 configure:1839: result: o
86 configure:1843: checking whether we are using the GNU C compiler
87 configure:1867: gcc -c conftest.c >&5
88 configure:1873: $? = 0
89 configure:1877: test -z
90 || test ! -s conftest.err
91 configure:1880: $? = 0
92 configure:1883: test -s conftest.o
93 configure:1886: $? = 0
94 configure:1899: result: yes
95 configure:1905: checking whether gcc accepts -g
96 configure:1926: gcc -c -g conftest.c >&5
97 configure:1932: $? = 0
98 configure:1936: test -z
99 || test ! -s conftest.err
100 configure:1939: $? = 0
101 configure:1942: test -s conftest.o
102 configure:1945: $? = 0
103 configure:1956: result: yes
104 configure:1973: checking for gcc option to accept ANSI C
105 configure:2043: gcc -c -g -O2 conftest.c >&5
106 configure:2049: $? = 0
107 configure:2053: test -z
108 || test ! -s conftest.err
109 configure:2056: $? = 0
110 configure:2059: test -s conftest.o
111 configure:2062: $? = 0
112 configure:2080: result: none needed
113 configure:2098: gcc -c -g -O2 conftest.c >&5
114 conftest.c:2:3: error: unknown type name 'choke'
115 conftest.c:2:3: error: expected '=', ',', ';', 'asm' or '__attribute__' at end of input
116 configure:2104: $? = 1
117 configure: failed program was:
118 | #ifndef __cplusplus
119 | choke me
120 | #endif
121 configure:2247: checking how to run the C preprocessor
122 configure:2282: gcc -E conftest.c
123 configure:2288: $? = 0
124 configure:2320: gcc -E conftest.c
125 conftest.c:9:28: fatal error: ac_nonexistent.h: No such file or directory
126 compilation terminated.
127 configure:2326: $? = 1
128 configure: failed program was:
129 | /* confdefs.h. */
130 |
131 | #define PACKAGE_NAME "FULL-PACKAGE-NAME"
132 | #define PACKAGE_TARNAME "full-package-name"
133 | #define PACKAGE_VERSION "VERSION"
134 | #define PACKAGE_STRING "FULL-PACKAGE-NAME VERSION"
135 | #define PACKAGE_BUGREPORT "BUG-REPORT-ADDRESS"
136 | /* end confdefs.h. */
137 | #include <ac_nonexistent.h>
138 configure:2365: result: gcc -E
139 configure:2389: gcc -E conftest.c
140 configure:2395: $? = 0
141 configure:2427: gcc -E conftest.c
142 conftest.c:9:28: fatal error: ac_nonexistent.h: No such file or directory
143 compilation terminated.
144 configure:2433: $? = 1
145 configure: failed program was:
146 | /* confdefs.h. */
147 |
148 | #define PACKAGE_NAME "FULL-PACKAGE-NAME"
149 | #define PACKAGE_TARNAME "full-package-name"
150 | #define PACKAGE_VERSION "VERSION"
151 | #define PACKAGE_STRING "FULL-PACKAGE-NAME VERSION"
152 | #define PACKAGE_BUGREPORT "BUG-REPORT-ADDRESS"
153 | /* end confdefs.h. */
154 | #include <ac_nonexistent.h>
155 configure:2477: checking for egrep
156 configure:2487: result: grep -E
157 configure:2492: checking for ANSI C header files
158 configure:2517: gcc -c -g -O2 conftest.c >&5
159 configure:2523: $? = 0
160 configure:2527: test -z
161 || test ! -s conftest.err
162 configure:2530: $? = 0
163 configure:2533: test -s conftest.o
164 configure:2536: $? = 0
165 configure:2625: gcc -o conftest -g -O2 conftest.c >&5
166 conftest.c: In function 'main':
167 conftest.c:26:7: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
168 configure:2628: $? = 0
169 configure:2630: ./conftest
170 configure:2633: $? = 0
171 configure:2648: result: yes
172 configure:2672: checking for sys/types.h
173 configure:2688: gcc -c -g -O2 conftest.c >&5
174 configure:2694: $? = 0
175 configure:2698: test -z
176 || test ! -s conftest.err
177 configure:2701: $? = 0
178 configure:2704: test -s conftest.o
179 configure:2707: $? = 0
180 configure:2718: result: yes
181 configure:2672: checking for sys/stat.h
182 configure:2688: gcc -c -g -O2 conftest.c >&5
183 configure:2694: $? = 0
184 configure:2698: test -z
185 || test ! -s conftest.err
186 configure:2701: $? = 0
187 configure:2704: test -s conftest.o
188 configure:2707: $? = 0
189 configure:2718: result: yes
190 configure:2672: checking for stdlib.h
191 configure:2688: gcc -c -g -O2 conftest.c >&5
192 configure:2694: $? = 0
193 configure:2698: test -z
194 || test ! -s conftest.err
195 configure:2701: $? = 0
196 configure:2704: test -s conftest.o
197 configure:2707: $? = 0
198 configure:2718: result: yes
199 configure:2672: checking for string.h
200 configure:2688: gcc -c -g -O2 conftest.c >&5
201 configure:2694: $? = 0
202 configure:2698: test -z
203 || test ! -s conftest.err
204 configure:2701: $? = 0
205 configure:2704: test -s conftest.o
206 configure:2707: $? = 0
207 configure:2718: result: yes
208 configure:2672: checking for memory.h
209 configure:2688: gcc -c -g -O2 conftest.c >&5
210 configure:2694: $? = 0
211 configure:2698: test -z
212 || test ! -s conftest.err
213 configure:2701: $? = 0
214 configure:2704: test -s conftest.o
215 configure:2707: $? = 0
216 configure:2718: result: yes
217 configure:2672: checking for strings.h
218 configure:2688: gcc -c -g -O2 conftest.c >&5
219 configure:2694: $? = 0
220 configure:2698: test -z
221 || test ! -s conftest.err
222 configure:2701: $? = 0
223 configure:2704: test -s conftest.o
224 configure:2707: $? = 0
225 configure:2718: result: yes
226 configure:2672: checking for inttypes.h
227 configure:2688: gcc -c -g -O2 conftest.c >&5
228 configure:2694: $? = 0
229 configure:2698: test -z
230 || test ! -s conftest.err
231 configure:2701: $? = 0
232 configure:2704: test -s conftest.o
233 configure:2707: $? = 0
234 configure:2718: result: yes
235 configure:2672: checking for stdint.h
236 configure:2688: gcc -c -g -O2 conftest.c >&5
237 configure:2694: $? = 0
238 configure:2698: test -z
239 || test ! -s conftest.err
240 configure:2701: $? = 0
241 configure:2704: test -s conftest.o
242 configure:2707: $? = 0
243 configure:2718: result: yes
244 configure:2672: checking for unistd.h
245 configure:2688: gcc -c -g -O2 conftest.c >&5
246 configure:2694: $? = 0
247 configure:2698: test -z
248 || test ! -s conftest.err
249 configure:2701: $? = 0
250 configure:2704: test -s conftest.o
251 configure:2707: $? = 0
252 configure:2718: result: yes
253 configure:2736: checking for stdlib.h
254 configure:2741: result: yes
255 configure:2736: checking for string.h
256 configure:2741: result: yes
257 configure:2883: checking for an ANSI C-conforming const
258 configure:2950: gcc -c -g -O2 conftest.c >&5
259 configure:2956: $? = 0
260 configure:2960: test -z
261 || test ! -s conftest.err
262 configure:2963: $? = 0
263 configure:2966: test -s conftest.o
264 configure:2969: $? = 0
265 configure:2980: result: yes
266 configure:2992: checking for error_at_line
267 configure:3013: gcc -o conftest -g -O2 conftest.c >&5
268 configure:3019: $? = 0
269 configure:3023: test -z
270 || test ! -s conftest.err
271 configure:3026: $? = 0
272 configure:3029: test -s conftest
273 configure:3032: $? = 0
274 configure:3044: result: yes
275 configure:3061: checking for vprintf
276 configure:3118: gcc -o conftest -g -O2 conftest.c >&5
277 conftest.c:45:6: warning: conflicting types for built-in function 'vprintf' [enabled by default]
278 configure:3124: $? = 0
279 configure:3128: test -z
280 || test ! -s conftest.err
281 configure:3131: $? = 0
282 configure:3134: test -s conftest
283 configure:3137: $? = 0
284 configure:3149: result: yes
285 configure:3156: checking for _doprnt
286 configure:3213: gcc -o conftest -g -O2 conftest.c >&5
287 /tmp/ccLCSeLs.o:(.data+0x0): undefined reference to `_doprnt'
288 /tmp/ccLCSeLs.o: In function `main':
289 /home/dookie/sidguesser-1.0.5/conftest.c:62: undefined reference to `_doprnt'
290 collect2: error: ld returned 1 exit status
291 configure:3219: $? = 1
292 configure: failed program was:
293 | /* confdefs.h. */
294 |
295 | #define PACKAGE_NAME "FULL-PACKAGE-NAME"
296 | #define PACKAGE_TARNAME "full-package-name"
297 | #define PACKAGE_VERSION "VERSION"
298 | #define PACKAGE_STRING "FULL-PACKAGE-NAME VERSION"
299 | #define PACKAGE_BUGREPORT "BUG-REPORT-ADDRESS"
300 | #define STDC_HEADERS 1
301 | #define HAVE_SYS_TYPES_H 1
302 | #define HAVE_SYS_STAT_H 1
303 | #define HAVE_STDLIB_H 1
304 | #define HAVE_STRING_H 1
305 | #define HAVE_MEMORY_H 1
306 | #define HAVE_STRINGS_H 1
307 | #define HAVE_INTTYPES_H 1
308 | #define HAVE_STDINT_H 1
309 | #define HAVE_UNISTD_H 1
310 | #define HAVE_STDLIB_H 1
311 | #define HAVE_STRING_H 1
312 | #define HAVE_VPRINTF 1
313 | /* end confdefs.h. */
314 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
315 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
316 | #define _doprnt innocuous__doprnt
317 |
318 | /* System header to define __stub macros and hopefully few prototypes,
319 | which can conflict with char _doprnt (); below.
320 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
321 | <limits.h> exists even on freestanding compilers. */
322 |
323 | #ifdef __STDC__
324 | # include <limits.h>
325 | #else
326 | # include <assert.h>
327 | #endif
328 |
329 | #undef _doprnt
330 |
331 | /* Override any gcc2 internal prototype to avoid an error. */
332 | #ifdef __cplusplus
333 | extern "C"
334 | {
335 | #endif
336 | /* We use char because int might match the return type of a gcc2
337 | builtin and then its argument prototype would still apply. */
338 | char _doprnt ();
339 | /* The GNU C library defines this for functions which it implements
340 | to always fail with ENOSYS. Some functions are actually named
341 | something starting with __ and the normal name is an alias. */
342 | #if defined (__stub__doprnt) || defined (__stub____doprnt)
343 | choke me
344 | #else
345 | char (*f) () = _doprnt;
346 | #endif
347 | #ifdef __cplusplus
348 | }
349 | #endif
350 |
351 | int
352 | main ()
353 | {
354 | return f != _doprnt;
355 | ;
356 | return 0;
357 | }
358 configure:3244: result: no
359 configure:3264: checking for memset
360 configure:3321: gcc -o conftest -g -O2 conftest.c >&5
361 conftest.c:46:6: warning: conflicting types for built-in function 'memset' [enabled by default]
362 configure:3327: $? = 0
363 configure:3331: test -z
364 || test ! -s conftest.err
365 configure:3334: $? = 0
366 configure:3337: test -s conftest
367 configure:3340: $? = 0
368 configure:3352: result: yes
369 configure:3264: checking for socket
370 configure:3321: gcc -o conftest -g -O2 conftest.c >&5
371 configure:3327: $? = 0
372 configure:3331: test -z
373 || test ! -s conftest.err
374 configure:3334: $? = 0
375 configure:3337: test -s conftest
376 configure:3340: $? = 0
377 configure:3352: result: yes
378 configure:3264: checking for strchr
379 configure:3321: gcc -o conftest -g -O2 conftest.c >&5
380 conftest.c:48:6: warning: conflicting types for built-in function 'strchr' [enabled by default]
381 configure:3327: $? = 0
382 configure:3331: test -z
383 || test ! -s conftest.err
384 configure:3334: $? = 0
385 configure:3337: test -s conftest
386 configure:3340: $? = 0
387 configure:3352: result: yes
388 configure:3458: creating ./config.status
389
390 ## ---------------------- ##
391 ## Running config.status. ##
392 ## ---------------------- ##
393
394 This file was extended by FULL-PACKAGE-NAME config.status VERSION, which was
395 generated by GNU Autoconf 2.59. Invocation command line was
396
397 CONFIG_FILES =
398 CONFIG_HEADERS =
399 CONFIG_LINKS =
400 CONFIG_COMMANDS =
401 $ ./config.status
402
403 on kali
404
405 config.status:641: creating Makefile
406 config.status:744: creating config.h
407
408 ## ---------------- ##
409 ## Cache variables. ##
410 ## ---------------- ##
411
412 ac_cv_c_compiler_gnu=yes
413 ac_cv_c_const=yes
414 ac_cv_env_CC_set=
415 ac_cv_env_CC_value=
416 ac_cv_env_CFLAGS_set=
417 ac_cv_env_CFLAGS_value=
418 ac_cv_env_CPPFLAGS_set=
419 ac_cv_env_CPPFLAGS_value=
420 ac_cv_env_CPP_set=
421 ac_cv_env_CPP_value=
422 ac_cv_env_LDFLAGS_set=
423 ac_cv_env_LDFLAGS_value=
424 ac_cv_env_build_alias_set=
425 ac_cv_env_build_alias_value=
426 ac_cv_env_host_alias_set=
427 ac_cv_env_host_alias_value=
428 ac_cv_env_target_alias_set=
429 ac_cv_env_target_alias_value=
430 ac_cv_exeext=
431 ac_cv_func__doprnt=no
432 ac_cv_func_memset=yes
433 ac_cv_func_socket=yes
434 ac_cv_func_strchr=yes
435 ac_cv_func_vprintf=yes
436 ac_cv_header_inttypes_h=yes
437 ac_cv_header_memory_h=yes
438 ac_cv_header_stdc=yes
439 ac_cv_header_stdint_h=yes
440 ac_cv_header_stdlib_h=yes
441 ac_cv_header_string_h=yes
442 ac_cv_header_strings_h=yes
443 ac_cv_header_sys_stat_h=yes
444 ac_cv_header_sys_types_h=yes
445 ac_cv_header_unistd_h=yes
446 ac_cv_lib_error_at_line=yes
447 ac_cv_objext=o
448 ac_cv_prog_CPP='gcc -E'
449 ac_cv_prog_ac_ct_CC=gcc
450 ac_cv_prog_cc_g=yes
451 ac_cv_prog_cc_stdc=
452 ac_cv_prog_egrep='grep -E'
453
454 ## ----------------- ##
455 ## Output variables. ##
456 ## ----------------- ##
457
458 CC='gcc'
459 CFLAGS='-g -O2'
460 CPP='gcc -E'
461 CPPFLAGS=''
462 DEFS='-DHAVE_CONFIG_H'
463 ECHO_C=''
464 ECHO_N='-n'
465 ECHO_T=''
466 EGREP='grep -E'
467 EXEEXT=''
468 LDFLAGS=''
469 LIBOBJS=''
470 LIBS=''
471 LTLIBOBJS=''
472 OBJEXT='o'
473 PACKAGE_BUGREPORT='BUG-REPORT-ADDRESS'
474 PACKAGE_NAME='FULL-PACKAGE-NAME'
475 PACKAGE_STRING='FULL-PACKAGE-NAME VERSION'
476 PACKAGE_TARNAME='full-package-name'
477 PACKAGE_VERSION='VERSION'
478 PATH_SEPARATOR=':'
479 SHELL='/bin/bash'
480 ac_ct_CC='gcc'
481 bindir='${exec_prefix}/bin'
482 build_alias=''
483 datadir='${prefix}/share'
484 exec_prefix='${prefix}'
485 host_alias=''
486 includedir='${prefix}/include'
487 infodir='${prefix}/info'
488 libdir='${exec_prefix}/lib'
489 libexecdir='${exec_prefix}/libexec'
490 localstatedir='${prefix}/var'
491 mandir='${prefix}/man'
492 oldincludedir='/usr/include'
493 prefix='/usr/local'
494 program_transform_name='s,x,x,'
495 sbindir='${exec_prefix}/sbin'
496 sharedstatedir='${prefix}/com'
497 sysconfdir='${prefix}/etc'
498 target_alias=''
499
500 ## ----------- ##
501 ## confdefs.h. ##
502 ## ----------- ##
503
504 #define HAVE_INTTYPES_H 1
505 #define HAVE_MEMORY_H 1
506 #define HAVE_MEMSET 1
507 #define HAVE_SOCKET 1
508 #define HAVE_STDINT_H 1
509 #define HAVE_STDLIB_H 1
510 #define HAVE_STDLIB_H 1
511 #define HAVE_STRCHR 1
512 #define HAVE_STRINGS_H 1
513 #define HAVE_STRING_H 1
514 #define HAVE_STRING_H 1
515 #define HAVE_SYS_STAT_H 1
516 #define HAVE_SYS_TYPES_H 1
517 #define HAVE_UNISTD_H 1
518 #define HAVE_VPRINTF 1
519 #define PACKAGE_BUGREPORT "BUG-REPORT-ADDRESS"
520 #define PACKAGE_NAME "FULL-PACKAGE-NAME"
521 #define PACKAGE_STRING "FULL-PACKAGE-NAME VERSION"
522 #define PACKAGE_TARNAME "full-package-name"
523 #define PACKAGE_VERSION "VERSION"
524 #define STDC_HEADERS 1
525
526 configure: exit 0
0 #! /bin/bash
1 # Generated by configure.
2 # Run this file to recreate the current configuration.
3 # Compiler output produced by configure, useful for debugging
4 # configure, is in config.log if it exists.
5
6 debug=false
7 ac_cs_recheck=false
8 ac_cs_silent=false
9 SHELL=${CONFIG_SHELL-/bin/bash}
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29 else
30 as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
45 do
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
50 fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
97 fi
98 rm -f conf$$.sh
99 fi
100
101
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119 ;;
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
125 fi
126 if test ! -f "$as_myself"; then
127 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
128 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
129 { (exit 1); exit 1; }; }
130 fi
131 case $CONFIG_SHELL in
132 '')
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 do
136 IFS=$as_save_IFS
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
139 case $as_dir in
140 /*)
141 if ("$as_dir/$as_base" -c '
142 as_lineno_1=$LINENO
143 as_lineno_2=$LINENO
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
150 export CONFIG_SHELL
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152 fi;;
153 esac
154 done
155 done
156 ;;
157 esac
158
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
168 sed '
169 N
170 s,$,-,
171 : loop
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 t loop
174 s,-$,,
175 s,^['$as_cr_digits']*\n,,
176 ' >$as_me.lineno &&
177 chmod +x $as_me.lineno ||
178 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
179 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
180 { (exit 1); exit 1; }; }
181
182 # Don't try to exec as it changes $[0], causing all sort of problems
183 # (the dirname of $[0] is not the place where we might find the
184 # original and so on. Autoconf is especially sensible to this).
185 . ./$as_me.lineno
186 # Exit status is that of the last command.
187 exit
188 }
189
190
191 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192 *c*,-n*) ECHO_N= ECHO_C='
193 ' ECHO_T=' ' ;;
194 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 esac
197
198 if expr a : '\(a\)' >/dev/null 2>&1; then
199 as_expr=expr
200 else
201 as_expr=false
202 fi
203
204 rm -f conf$$ conf$$.exe conf$$.file
205 echo >conf$$.file
206 if ln -s conf$$.file conf$$ 2>/dev/null; then
207 # We could just check for DJGPP; but this test a) works b) is more generic
208 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209 if test -f conf$$.exe; then
210 # Don't use ln at all; we don't have any links
211 as_ln_s='cp -p'
212 else
213 as_ln_s='ln -s'
214 fi
215 elif ln conf$$.file conf$$ 2>/dev/null; then
216 as_ln_s=ln
217 else
218 as_ln_s='cp -p'
219 fi
220 rm -f conf$$ conf$$.exe conf$$.file
221
222 if mkdir -p . 2>/dev/null; then
223 as_mkdir_p=:
224 else
225 test -d ./-p && rmdir ./-p
226 as_mkdir_p=false
227 fi
228
229 as_executable_p="test -f"
230
231 # Sed expression to map a string onto a valid CPP name.
232 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233
234 # Sed expression to map a string onto a valid variable name.
235 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236
237
238 # IFS
239 # We need space, tab and new line, in precisely that order.
240 as_nl='
241 '
242 IFS=" $as_nl"
243
244 # CDPATH.
245 $as_unset CDPATH
246
247 exec 6>&1
248
249 # Open the log real soon, to keep \$[0] and so on meaningful, and to
250 # report actual input values of CONFIG_FILES etc. instead of their
251 # values after options handling. Logging --version etc. is OK.
252 exec 5>>config.log
253 {
254 echo
255 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
256 ## Running $as_me. ##
257 _ASBOX
258 } >&5
259 cat >&5 <<_CSEOF
260
261 This file was extended by FULL-PACKAGE-NAME $as_me VERSION, which was
262 generated by GNU Autoconf 2.59. Invocation command line was
263
264 CONFIG_FILES = $CONFIG_FILES
265 CONFIG_HEADERS = $CONFIG_HEADERS
266 CONFIG_LINKS = $CONFIG_LINKS
267 CONFIG_COMMANDS = $CONFIG_COMMANDS
268 $ $0 $@
269
270 _CSEOF
271 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
272 echo >&5
273 config_files=" Makefile"
274 config_headers=" config.h"
275
276 ac_cs_usage="\
277 \`$as_me' instantiates files from templates according to the
278 current configuration.
279
280 Usage: $0 [OPTIONS] [FILE]...
281
282 -h, --help print this help, then exit
283 -V, --version print version number, then exit
284 -q, --quiet do not print progress messages
285 -d, --debug don't remove temporary files
286 --recheck update $as_me by reconfiguring in the same conditions
287 --file=FILE[:TEMPLATE]
288 instantiate the configuration file FILE
289 --header=FILE[:TEMPLATE]
290 instantiate the configuration header FILE
291
292 Configuration files:
293 $config_files
294
295 Configuration headers:
296 $config_headers
297
298 Report bugs to <[email protected]>."
299 ac_cs_version="\
300 FULL-PACKAGE-NAME config.status VERSION
301 configured by ./configure, generated by GNU Autoconf 2.59,
302 with options \"\"
303
304 Copyright (C) 2003 Free Software Foundation, Inc.
305 This config.status script is free software; the Free Software Foundation
306 gives unlimited permission to copy, distribute and modify it."
307 srcdir=.
308 # If no file are specified by the user, then we need to provide default
309 # value. By we need to know if files were specified by the user.
310 ac_need_defaults=:
311 while test $# != 0
312 do
313 case $1 in
314 --*=*)
315 ac_option=`expr "x$1" : 'x\([^=]*\)='`
316 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
317 ac_shift=:
318 ;;
319 -*)
320 ac_option=$1
321 ac_optarg=$2
322 ac_shift=shift
323 ;;
324 *) # This is not an option, so the user has probably given explicit
325 # arguments.
326 ac_option=$1
327 ac_need_defaults=false;;
328 esac
329
330 case $ac_option in
331 # Handling of the options.
332 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
333 ac_cs_recheck=: ;;
334 --version | --vers* | -V )
335 echo "$ac_cs_version"; exit 0 ;;
336 --he | --h)
337 # Conflict between --help and --header
338 { { echo "$as_me:$LINENO: error: ambiguous option: $1
339 Try \`$0 --help' for more information." >&5
340 echo "$as_me: error: ambiguous option: $1
341 Try \`$0 --help' for more information." >&2;}
342 { (exit 1); exit 1; }; };;
343 --help | --hel | -h )
344 echo "$ac_cs_usage"; exit 0 ;;
345 --debug | --d* | -d )
346 debug=: ;;
347 --file | --fil | --fi | --f )
348 $ac_shift
349 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
350 ac_need_defaults=false;;
351 --header | --heade | --head | --hea )
352 $ac_shift
353 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
354 ac_need_defaults=false;;
355 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
356 | -silent | --silent | --silen | --sile | --sil | --si | --s)
357 ac_cs_silent=: ;;
358
359 # This is an error.
360 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
361 Try \`$0 --help' for more information." >&5
362 echo "$as_me: error: unrecognized option: $1
363 Try \`$0 --help' for more information." >&2;}
364 { (exit 1); exit 1; }; } ;;
365
366 *) ac_config_targets="$ac_config_targets $1" ;;
367
368 esac
369 shift
370 done
371
372 ac_configure_extra_args=
373
374 if $ac_cs_silent; then
375 exec 6>/dev/null
376 ac_configure_extra_args="$ac_configure_extra_args --silent"
377 fi
378
379 if $ac_cs_recheck; then
380 echo "running /bin/bash ./configure " $ac_configure_extra_args " --no-create --no-recursion" >&6
381 exec /bin/bash ./configure $ac_configure_extra_args --no-create --no-recursion
382 fi
383
384 for ac_config_target in $ac_config_targets
385 do
386 case "$ac_config_target" in
387 # Handling of arguments.
388 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
389 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
390 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
391 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
392 { (exit 1); exit 1; }; };;
393 esac
394 done
395
396 # If the user did not use the arguments to specify the items to instantiate,
397 # then the envvar interface is used. Set only those that are not.
398 # We use the long form for the default assignment because of an extremely
399 # bizarre bug on SunOS 4.1.3.
400 if $ac_need_defaults; then
401 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
402 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
403 fi
404
405 # Have a temporary directory for convenience. Make it in the build tree
406 # simply because there is no reason to put it here, and in addition,
407 # creating and moving files from /tmp can sometimes cause problems.
408 # Create a temporary directory, and hook for its removal unless debugging.
409 $debug ||
410 {
411 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
412 trap '{ (exit 1); exit 1; }' 1 2 13 15
413 }
414
415 # Create a (secure) tmp directory for tmp files.
416
417 {
418 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
419 test -n "$tmp" && test -d "$tmp"
420 } ||
421 {
422 tmp=./confstat$$-$RANDOM
423 (umask 077 && mkdir $tmp)
424 } ||
425 {
426 echo "$me: cannot create a temporary directory in ." >&2
427 { (exit 1); exit 1; }
428 }
429
430
431 #
432 # CONFIG_FILES section.
433 #
434
435 # No need to generate the scripts if there are no CONFIG_FILES.
436 # This happens for instance when ./config.status config.h
437 if test -n "$CONFIG_FILES"; then
438 # Protect against being on the right side of a sed subst in config.status.
439 sed 's/,@/@@/; s/@,/@@/; s/,;t t$/@;t t/; /@;t t$/s/[\\&,]/\\&/g;
440 s/@@/,@/; s/@@/@,/; s/@;t t$/,;t t/' >$tmp/subs.sed <<\CEOF
441 s,@SHELL@,/bin/bash,;t t
442 s,@PATH_SEPARATOR@,:,;t t
443 s,@PACKAGE_NAME@,FULL-PACKAGE-NAME,;t t
444 s,@PACKAGE_TARNAME@,full-package-name,;t t
445 s,@PACKAGE_VERSION@,VERSION,;t t
446 s,@PACKAGE_STRING@,FULL-PACKAGE-NAME VERSION,;t t
447 s,@PACKAGE_BUGREPORT@,BUG-REPORT-ADDRESS,;t t
448 s,@exec_prefix@,${prefix},;t t
449 s,@prefix@,/usr/local,;t t
450 s,@program_transform_name@,s,x,x,,;t t
451 s,@bindir@,${exec_prefix}/bin,;t t
452 s,@sbindir@,${exec_prefix}/sbin,;t t
453 s,@libexecdir@,${exec_prefix}/libexec,;t t
454 s,@datadir@,${prefix}/share,;t t
455 s,@sysconfdir@,${prefix}/etc,;t t
456 s,@sharedstatedir@,${prefix}/com,;t t
457 s,@localstatedir@,${prefix}/var,;t t
458 s,@libdir@,${exec_prefix}/lib,;t t
459 s,@includedir@,${prefix}/include,;t t
460 s,@oldincludedir@,/usr/include,;t t
461 s,@infodir@,${prefix}/info,;t t
462 s,@mandir@,${prefix}/man,;t t
463 s,@build_alias@,,;t t
464 s,@host_alias@,,;t t
465 s,@target_alias@,,;t t
466 s,@DEFS@,-DHAVE_CONFIG_H,;t t
467 s,@ECHO_C@,,;t t
468 s,@ECHO_N@,-n,;t t
469 s,@ECHO_T@,,;t t
470 s,@LIBS@,,;t t
471 s,@CC@,gcc,;t t
472 s,@CFLAGS@,-g -O2,;t t
473 s,@LDFLAGS@,,;t t
474 s,@CPPFLAGS@,,;t t
475 s,@ac_ct_CC@,gcc,;t t
476 s,@EXEEXT@,,;t t
477 s,@OBJEXT@,o,;t t
478 s,@CPP@,gcc -E,;t t
479 s,@EGREP@,grep -E,;t t
480 s,@LIBOBJS@,,;t t
481 s,@LTLIBOBJS@,,;t t
482 CEOF
483
484 # Split the substitutions into bite-sized pieces for seds with
485 # small command number limits, like on Digital OSF/1 and HP-UX.
486 ac_max_sed_lines=48
487 ac_sed_frag=1 # Number of current file.
488 ac_beg=1 # First line for current file.
489 ac_end=$ac_max_sed_lines # Line after last line for current file.
490 ac_more_lines=:
491 ac_sed_cmds=
492 while $ac_more_lines; do
493 if test $ac_beg -gt 1; then
494 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
495 else
496 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
497 fi
498 if test ! -s $tmp/subs.frag; then
499 ac_more_lines=false
500 else
501 # The purpose of the label and of the branching condition is to
502 # speed up the sed processing (if there are no `@' at all, there
503 # is no need to browse any of the substitutions).
504 # These are the two extra sed commands mentioned above.
505 (echo ':t
506 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
507 if test -z "$ac_sed_cmds"; then
508 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
509 else
510 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
511 fi
512 ac_sed_frag=`expr $ac_sed_frag + 1`
513 ac_beg=$ac_end
514 ac_end=`expr $ac_end + $ac_max_sed_lines`
515 fi
516 done
517 if test -z "$ac_sed_cmds"; then
518 ac_sed_cmds=cat
519 fi
520 fi # test -n "$CONFIG_FILES"
521
522 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
523 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
524 case $ac_file in
525 - | *:- | *:-:* ) # input from stdin
526 cat >$tmp/stdin
527 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
528 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
529 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
530 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
531 * ) ac_file_in=$ac_file.in ;;
532 esac
533
534 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
535 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
536 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
537 X"$ac_file" : 'X\(//\)[^/]' \| \
538 X"$ac_file" : 'X\(//\)$' \| \
539 X"$ac_file" : 'X\(/\)' \| \
540 . : '\(.\)' 2>/dev/null ||
541 echo X"$ac_file" |
542 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
543 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
544 /^X\(\/\/\)$/{ s//\1/; q; }
545 /^X\(\/\).*/{ s//\1/; q; }
546 s/.*/./; q'`
547 { if $as_mkdir_p; then
548 mkdir -p "$ac_dir"
549 else
550 as_dir="$ac_dir"
551 as_dirs=
552 while test ! -d "$as_dir"; do
553 as_dirs="$as_dir $as_dirs"
554 as_dir=`(dirname "$as_dir") 2>/dev/null ||
555 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
556 X"$as_dir" : 'X\(//\)[^/]' \| \
557 X"$as_dir" : 'X\(//\)$' \| \
558 X"$as_dir" : 'X\(/\)' \| \
559 . : '\(.\)' 2>/dev/null ||
560 echo X"$as_dir" |
561 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
562 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
563 /^X\(\/\/\)$/{ s//\1/; q; }
564 /^X\(\/\).*/{ s//\1/; q; }
565 s/.*/./; q'`
566 done
567 test ! -n "$as_dirs" || mkdir $as_dirs
568 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
569 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
570 { (exit 1); exit 1; }; }; }
571
572 ac_builddir=.
573
574 if test "$ac_dir" != .; then
575 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
576 # A "../" for each directory in $ac_dir_suffix.
577 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
578 else
579 ac_dir_suffix= ac_top_builddir=
580 fi
581
582 case $srcdir in
583 .) # No --srcdir option. We are building in place.
584 ac_srcdir=.
585 if test -z "$ac_top_builddir"; then
586 ac_top_srcdir=.
587 else
588 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
589 fi ;;
590 [\\/]* | ?:[\\/]* ) # Absolute path.
591 ac_srcdir=$srcdir$ac_dir_suffix;
592 ac_top_srcdir=$srcdir ;;
593 *) # Relative path.
594 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
595 ac_top_srcdir=$ac_top_builddir$srcdir ;;
596 esac
597
598 # Do not use `cd foo && pwd` to compute absolute paths, because
599 # the directories may not exist.
600 case `pwd` in
601 .) ac_abs_builddir="$ac_dir";;
602 *)
603 case "$ac_dir" in
604 .) ac_abs_builddir=`pwd`;;
605 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
606 *) ac_abs_builddir=`pwd`/"$ac_dir";;
607 esac;;
608 esac
609 case $ac_abs_builddir in
610 .) ac_abs_top_builddir=${ac_top_builddir}.;;
611 *)
612 case ${ac_top_builddir}. in
613 .) ac_abs_top_builddir=$ac_abs_builddir;;
614 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
615 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
616 esac;;
617 esac
618 case $ac_abs_builddir in
619 .) ac_abs_srcdir=$ac_srcdir;;
620 *)
621 case $ac_srcdir in
622 .) ac_abs_srcdir=$ac_abs_builddir;;
623 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
624 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
625 esac;;
626 esac
627 case $ac_abs_builddir in
628 .) ac_abs_top_srcdir=$ac_top_srcdir;;
629 *)
630 case $ac_top_srcdir in
631 .) ac_abs_top_srcdir=$ac_abs_builddir;;
632 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
633 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
634 esac;;
635 esac
636
637
638
639 if test x"$ac_file" != x-; then
640 { echo "$as_me:$LINENO: creating $ac_file" >&5
641 echo "$as_me: creating $ac_file" >&6;}
642 rm -f "$ac_file"
643 fi
644 # Let's still pretend it is `configure' which instantiates (i.e., don't
645 # use $as_me), people would be surprised to read:
646 # /* config.h. Generated by config.status. */
647 if test x"$ac_file" = x-; then
648 configure_input=
649 else
650 configure_input="$ac_file. "
651 fi
652 configure_input=$configure_input"Generated from `echo $ac_file_in |
653 sed 's,.*/,,'` by configure."
654
655 # First look for the input files in the build tree, otherwise in the
656 # src tree.
657 ac_file_inputs=`IFS=:
658 for f in $ac_file_in; do
659 case $f in
660 -) echo $tmp/stdin ;;
661 [\\/$]*)
662 # Absolute (can't be DOS-style, as IFS=:)
663 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
664 echo "$as_me: error: cannot find input file: $f" >&2;}
665 { (exit 1); exit 1; }; }
666 echo "$f";;
667 *) # Relative
668 if test -f "$f"; then
669 # Build tree
670 echo "$f"
671 elif test -f "$srcdir/$f"; then
672 # Source tree
673 echo "$srcdir/$f"
674 else
675 # /dev/null tree
676 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
677 echo "$as_me: error: cannot find input file: $f" >&2;}
678 { (exit 1); exit 1; }; }
679 fi;;
680 esac
681 done` || { (exit 1); exit 1; }
682 sed "/^[ ]*VPATH[ ]*=/{
683 s/:*\$(srcdir):*/:/;
684 s/:*\${srcdir}:*/:/;
685 s/:*@srcdir@:*/:/;
686 s/^\([^=]*=[ ]*\):*/\1/;
687 s/:*$//;
688 s/^[^=]*=[ ]*$//;
689 }
690
691 :t
692 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
693 s,@configure_input@,$configure_input,;t t
694 s,@srcdir@,$ac_srcdir,;t t
695 s,@abs_srcdir@,$ac_abs_srcdir,;t t
696 s,@top_srcdir@,$ac_top_srcdir,;t t
697 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
698 s,@builddir@,$ac_builddir,;t t
699 s,@abs_builddir@,$ac_abs_builddir,;t t
700 s,@top_builddir@,$ac_top_builddir,;t t
701 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
702 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
703 rm -f $tmp/stdin
704 if test x"$ac_file" != x-; then
705 mv $tmp/out $ac_file
706 else
707 cat $tmp/out
708 rm -f $tmp/out
709 fi
710
711 done
712
713 #
714 # CONFIG_HEADER section.
715 #
716
717 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
718 # NAME is the cpp macro being defined and VALUE is the value it is being given.
719 #
720 # ac_d sets the value in "#define NAME VALUE" lines.
721 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
722 ac_dB='[ ].*$,\1#\2'
723 ac_dC=' '
724 ac_dD=',;t'
725 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
726 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
727 ac_uB='$,\1#\2define\3'
728 ac_uC=' '
729 ac_uD=',;t'
730
731 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
732 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
733 case $ac_file in
734 - | *:- | *:-:* ) # input from stdin
735 cat >$tmp/stdin
736 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
737 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
738 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
739 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
740 * ) ac_file_in=$ac_file.in ;;
741 esac
742
743 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
744 echo "$as_me: creating $ac_file" >&6;}
745
746 # First look for the input files in the build tree, otherwise in the
747 # src tree.
748 ac_file_inputs=`IFS=:
749 for f in $ac_file_in; do
750 case $f in
751 -) echo $tmp/stdin ;;
752 [\\/$]*)
753 # Absolute (can't be DOS-style, as IFS=:)
754 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
755 echo "$as_me: error: cannot find input file: $f" >&2;}
756 { (exit 1); exit 1; }; }
757 # Do quote $f, to prevent DOS paths from being IFS'd.
758 echo "$f";;
759 *) # Relative
760 if test -f "$f"; then
761 # Build tree
762 echo "$f"
763 elif test -f "$srcdir/$f"; then
764 # Source tree
765 echo "$srcdir/$f"
766 else
767 # /dev/null tree
768 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
769 echo "$as_me: error: cannot find input file: $f" >&2;}
770 { (exit 1); exit 1; }; }
771 fi;;
772 esac
773 done` || { (exit 1); exit 1; }
774 # Remove the trailing spaces.
775 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
776
777 # Handle all the #define templates only if necessary.
778 if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then
779 # If there are no defines, we may have an empty if/fi
780 :
781 cat >$tmp/defines.sed <<CEOF
782 /^[ ]*#[ ]*define/!b
783 t clr
784 : clr
785 ${ac_dA}PACKAGE_NAME${ac_dB}PACKAGE_NAME${ac_dC}"FULL-PACKAGE-NAME"${ac_dD}
786 ${ac_dA}PACKAGE_TARNAME${ac_dB}PACKAGE_TARNAME${ac_dC}"full-package-name"${ac_dD}
787 ${ac_dA}PACKAGE_VERSION${ac_dB}PACKAGE_VERSION${ac_dC}"VERSION"${ac_dD}
788 ${ac_dA}PACKAGE_STRING${ac_dB}PACKAGE_STRING${ac_dC}"FULL-PACKAGE-NAME VERSION"${ac_dD}
789 ${ac_dA}PACKAGE_BUGREPORT${ac_dB}PACKAGE_BUGREPORT${ac_dC}"BUG-REPORT-ADDRESS"${ac_dD}
790 ${ac_dA}STDC_HEADERS${ac_dB}STDC_HEADERS${ac_dC}1${ac_dD}
791 ${ac_dA}HAVE_SYS_TYPES_H${ac_dB}HAVE_SYS_TYPES_H${ac_dC}1${ac_dD}
792 ${ac_dA}HAVE_SYS_STAT_H${ac_dB}HAVE_SYS_STAT_H${ac_dC}1${ac_dD}
793 ${ac_dA}HAVE_STDLIB_H${ac_dB}HAVE_STDLIB_H${ac_dC}1${ac_dD}
794 ${ac_dA}HAVE_STRING_H${ac_dB}HAVE_STRING_H${ac_dC}1${ac_dD}
795 ${ac_dA}HAVE_MEMORY_H${ac_dB}HAVE_MEMORY_H${ac_dC}1${ac_dD}
796 ${ac_dA}HAVE_STRINGS_H${ac_dB}HAVE_STRINGS_H${ac_dC}1${ac_dD}
797 ${ac_dA}HAVE_INTTYPES_H${ac_dB}HAVE_INTTYPES_H${ac_dC}1${ac_dD}
798 ${ac_dA}HAVE_STDINT_H${ac_dB}HAVE_STDINT_H${ac_dC}1${ac_dD}
799 ${ac_dA}HAVE_UNISTD_H${ac_dB}HAVE_UNISTD_H${ac_dC}1${ac_dD}
800 ${ac_dA}HAVE_STDLIB_H${ac_dB}HAVE_STDLIB_H${ac_dC}1${ac_dD}
801 ${ac_dA}HAVE_STRING_H${ac_dB}HAVE_STRING_H${ac_dC}1${ac_dD}
802 ${ac_dA}HAVE_VPRINTF${ac_dB}HAVE_VPRINTF${ac_dC}1${ac_dD}
803 ${ac_dA}HAVE_MEMSET${ac_dB}HAVE_MEMSET${ac_dC}1${ac_dD}
804 ${ac_dA}HAVE_SOCKET${ac_dB}HAVE_SOCKET${ac_dC}1${ac_dD}
805 ${ac_dA}HAVE_STRCHR${ac_dB}HAVE_STRCHR${ac_dC}1${ac_dD}
806 CEOF
807 sed -f $tmp/defines.sed $tmp/in >$tmp/out
808 rm -f $tmp/in
809 mv $tmp/out $tmp/in
810
811 fi # grep
812
813 # Handle all the #undef templates
814 cat >$tmp/undefs.sed <<CEOF
815 /^[ ]*#[ ]*undef/!b
816 t clr
817 : clr
818 ${ac_uA}PACKAGE_NAME${ac_uB}PACKAGE_NAME${ac_uC}"FULL-PACKAGE-NAME"${ac_uD}
819 ${ac_uA}PACKAGE_TARNAME${ac_uB}PACKAGE_TARNAME${ac_uC}"full-package-name"${ac_uD}
820 ${ac_uA}PACKAGE_VERSION${ac_uB}PACKAGE_VERSION${ac_uC}"VERSION"${ac_uD}
821 ${ac_uA}PACKAGE_STRING${ac_uB}PACKAGE_STRING${ac_uC}"FULL-PACKAGE-NAME VERSION"${ac_uD}
822 ${ac_uA}PACKAGE_BUGREPORT${ac_uB}PACKAGE_BUGREPORT${ac_uC}"BUG-REPORT-ADDRESS"${ac_uD}
823 ${ac_uA}STDC_HEADERS${ac_uB}STDC_HEADERS${ac_uC}1${ac_uD}
824 ${ac_uA}HAVE_SYS_TYPES_H${ac_uB}HAVE_SYS_TYPES_H${ac_uC}1${ac_uD}
825 ${ac_uA}HAVE_SYS_STAT_H${ac_uB}HAVE_SYS_STAT_H${ac_uC}1${ac_uD}
826 ${ac_uA}HAVE_STDLIB_H${ac_uB}HAVE_STDLIB_H${ac_uC}1${ac_uD}
827 ${ac_uA}HAVE_STRING_H${ac_uB}HAVE_STRING_H${ac_uC}1${ac_uD}
828 ${ac_uA}HAVE_MEMORY_H${ac_uB}HAVE_MEMORY_H${ac_uC}1${ac_uD}
829 ${ac_uA}HAVE_STRINGS_H${ac_uB}HAVE_STRINGS_H${ac_uC}1${ac_uD}
830 ${ac_uA}HAVE_INTTYPES_H${ac_uB}HAVE_INTTYPES_H${ac_uC}1${ac_uD}
831 ${ac_uA}HAVE_STDINT_H${ac_uB}HAVE_STDINT_H${ac_uC}1${ac_uD}
832 ${ac_uA}HAVE_UNISTD_H${ac_uB}HAVE_UNISTD_H${ac_uC}1${ac_uD}
833 ${ac_uA}HAVE_STDLIB_H${ac_uB}HAVE_STDLIB_H${ac_uC}1${ac_uD}
834 ${ac_uA}HAVE_STRING_H${ac_uB}HAVE_STRING_H${ac_uC}1${ac_uD}
835 ${ac_uA}HAVE_VPRINTF${ac_uB}HAVE_VPRINTF${ac_uC}1${ac_uD}
836 ${ac_uA}HAVE_MEMSET${ac_uB}HAVE_MEMSET${ac_uC}1${ac_uD}
837 ${ac_uA}HAVE_SOCKET${ac_uB}HAVE_SOCKET${ac_uC}1${ac_uD}
838 ${ac_uA}HAVE_STRCHR${ac_uB}HAVE_STRCHR${ac_uC}1${ac_uD}
839 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
840 CEOF
841 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
842 rm -f $tmp/in
843 mv $tmp/out $tmp/in
844
845 # Let's still pretend it is `configure' which instantiates (i.e., don't
846 # use $as_me), people would be surprised to read:
847 # /* config.h. Generated by config.status. */
848 if test x"$ac_file" = x-; then
849 echo "/* Generated by configure. */" >$tmp/config.h
850 else
851 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
852 fi
853 cat $tmp/in >>$tmp/config.h
854 rm -f $tmp/in
855 if test x"$ac_file" != x-; then
856 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
857 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
858 echo "$as_me: $ac_file is unchanged" >&6;}
859 else
860 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
861 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
862 X"$ac_file" : 'X\(//\)[^/]' \| \
863 X"$ac_file" : 'X\(//\)$' \| \
864 X"$ac_file" : 'X\(/\)' \| \
865 . : '\(.\)' 2>/dev/null ||
866 echo X"$ac_file" |
867 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
868 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
869 /^X\(\/\/\)$/{ s//\1/; q; }
870 /^X\(\/\).*/{ s//\1/; q; }
871 s/.*/./; q'`
872 { if $as_mkdir_p; then
873 mkdir -p "$ac_dir"
874 else
875 as_dir="$ac_dir"
876 as_dirs=
877 while test ! -d "$as_dir"; do
878 as_dirs="$as_dir $as_dirs"
879 as_dir=`(dirname "$as_dir") 2>/dev/null ||
880 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
881 X"$as_dir" : 'X\(//\)[^/]' \| \
882 X"$as_dir" : 'X\(//\)$' \| \
883 X"$as_dir" : 'X\(/\)' \| \
884 . : '\(.\)' 2>/dev/null ||
885 echo X"$as_dir" |
886 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
887 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
888 /^X\(\/\/\)$/{ s//\1/; q; }
889 /^X\(\/\).*/{ s//\1/; q; }
890 s/.*/./; q'`
891 done
892 test ! -n "$as_dirs" || mkdir $as_dirs
893 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
894 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
895 { (exit 1); exit 1; }; }; }
896
897 rm -f $ac_file
898 mv $tmp/config.h $ac_file
899 fi
900 else
901 cat $tmp/config.h
902 rm -f $tmp/config.h
903 fi
904 done
905
906 { (exit 0); exit 0; }
0 #! /bin/sh
1 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.59 for FULL-PACKAGE-NAME VERSION.
3 #
4 # Report bugs to <BUG-REPORT-ADDRESS>.
5 #
6 # Copyright (C) 2003 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
22 fi
23 DUALCASE=1; export DUALCASE # for MKS sh
24
25 # Support unset when possible.
26 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27 as_unset=unset
28 else
29 as_unset=false
30 fi
31
32
33 # Work around bugs in pre-3.0 UWIN ksh.
34 $as_unset ENV MAIL MAILPATH
35 PS1='$ '
36 PS2='> '
37 PS4='+ '
38
39 # NLS nuisances.
40 for as_var in \
41 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43 LC_TELEPHONE LC_TIME
44 do
45 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
46 eval $as_var=C; export $as_var
47 else
48 $as_unset $as_var
49 fi
50 done
51
52 # Required to use basename.
53 if expr a : '\(a\)' >/dev/null 2>&1; then
54 as_expr=expr
55 else
56 as_expr=false
57 fi
58
59 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
60 as_basename=basename
61 else
62 as_basename=false
63 fi
64
65
66 # Name of the executable.
67 as_me=`$as_basename "$0" ||
68 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69 X"$0" : 'X\(//\)$' \| \
70 X"$0" : 'X\(/\)$' \| \
71 . : '\(.\)' 2>/dev/null ||
72 echo X/"$0" |
73 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74 /^X\/\(\/\/\)$/{ s//\1/; q; }
75 /^X\/\(\/\).*/{ s//\1/; q; }
76 s/.*/./; q'`
77
78
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
86
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89 echo "#! /bin/sh" >conf$$.sh
90 echo "exit 0" >>conf$$.sh
91 chmod +x conf$$.sh
92 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
93 PATH_SEPARATOR=';'
94 else
95 PATH_SEPARATOR=:
96 fi
97 rm -f conf$$.sh
98 fi
99
100
101 as_lineno_1=$LINENO
102 as_lineno_2=$LINENO
103 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104 test "x$as_lineno_1" != "x$as_lineno_2" &&
105 test "x$as_lineno_3" = "x$as_lineno_2" || {
106 # Find who we are. Look in the path if we contain no path at all
107 # relative or not.
108 case $0 in
109 *[\\/]* ) as_myself=$0 ;;
110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
111 for as_dir in $PATH
112 do
113 IFS=$as_save_IFS
114 test -z "$as_dir" && as_dir=.
115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116 done
117
118 ;;
119 esac
120 # We did not find ourselves, most probably we were run as `sh COMMAND'
121 # in which case we are not to be found in the path.
122 if test "x$as_myself" = x; then
123 as_myself=$0
124 fi
125 if test ! -f "$as_myself"; then
126 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127 { (exit 1); exit 1; }; }
128 fi
129 case $CONFIG_SHELL in
130 '')
131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
133 do
134 IFS=$as_save_IFS
135 test -z "$as_dir" && as_dir=.
136 for as_base in sh bash ksh sh5; do
137 case $as_dir in
138 /*)
139 if ("$as_dir/$as_base" -c '
140 as_lineno_1=$LINENO
141 as_lineno_2=$LINENO
142 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143 test "x$as_lineno_1" != "x$as_lineno_2" &&
144 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
145 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
146 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
147 CONFIG_SHELL=$as_dir/$as_base
148 export CONFIG_SHELL
149 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
150 fi;;
151 esac
152 done
153 done
154 ;;
155 esac
156
157 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158 # uniformly replaced by the line number. The first 'sed' inserts a
159 # line-number line before each line; the second 'sed' does the real
160 # work. The second script uses 'N' to pair each line-number line
161 # with the numbered line, and appends trailing '-' during
162 # substitution so that $LINENO is not a special case at line end.
163 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
165 sed '=' <$as_myself |
166 sed '
167 N
168 s,$,-,
169 : loop
170 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
171 t loop
172 s,-$,,
173 s,^['$as_cr_digits']*\n,,
174 ' >$as_me.lineno &&
175 chmod +x $as_me.lineno ||
176 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177 { (exit 1); exit 1; }; }
178
179 # Don't try to exec as it changes $[0], causing all sort of problems
180 # (the dirname of $[0] is not the place where we might find the
181 # original and so on. Autoconf is especially sensible to this).
182 . ./$as_me.lineno
183 # Exit status is that of the last command.
184 exit
185 }
186
187
188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189 *c*,-n*) ECHO_N= ECHO_C='
190 ' ECHO_T=' ' ;;
191 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
193 esac
194
195 if expr a : '\(a\)' >/dev/null 2>&1; then
196 as_expr=expr
197 else
198 as_expr=false
199 fi
200
201 rm -f conf$$ conf$$.exe conf$$.file
202 echo >conf$$.file
203 if ln -s conf$$.file conf$$ 2>/dev/null; then
204 # We could just check for DJGPP; but this test a) works b) is more generic
205 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206 if test -f conf$$.exe; then
207 # Don't use ln at all; we don't have any links
208 as_ln_s='cp -p'
209 else
210 as_ln_s='ln -s'
211 fi
212 elif ln conf$$.file conf$$ 2>/dev/null; then
213 as_ln_s=ln
214 else
215 as_ln_s='cp -p'
216 fi
217 rm -f conf$$ conf$$.exe conf$$.file
218
219 if mkdir -p . 2>/dev/null; then
220 as_mkdir_p=:
221 else
222 test -d ./-p && rmdir ./-p
223 as_mkdir_p=false
224 fi
225
226 as_executable_p="test -f"
227
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
233
234
235 # IFS
236 # We need space, tab and new line, in precisely that order.
237 as_nl='
238 '
239 IFS=" $as_nl"
240
241 # CDPATH.
242 $as_unset CDPATH
243
244
245 # Name of the host.
246 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
247 # so uname gets run too.
248 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249
250 exec 6>&1
251
252 #
253 # Initializations.
254 #
255 ac_default_prefix=/usr/local
256 ac_config_libobj_dir=.
257 cross_compiling=no
258 subdirs=
259 MFLAGS=
260 MAKEFLAGS=
261 SHELL=${CONFIG_SHELL-/bin/sh}
262
263 # Maximum number of lines to put in a shell here document.
264 # This variable seems obsolete. It should probably be removed, and
265 # only ac_max_sed_lines should be used.
266 : ${ac_max_here_lines=38}
267
268 # Identity of this package.
269 PACKAGE_NAME='FULL-PACKAGE-NAME'
270 PACKAGE_TARNAME='full-package-name'
271 PACKAGE_VERSION='VERSION'
272 PACKAGE_STRING='FULL-PACKAGE-NAME VERSION'
273 PACKAGE_BUGREPORT='BUG-REPORT-ADDRESS'
274
275 ac_unique_file="log.c"
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 # include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 # include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 # include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
312
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 LIBOBJS LTLIBOBJS'
314 ac_subst_files=''
315
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
335
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
353
354 ac_prev=
355 for ac_option
356 do
357 # If the previous option needs an argument, assign it.
358 if test -n "$ac_prev"; then
359 eval "$ac_prev=\$ac_option"
360 ac_prev=
361 continue
362 fi
363
364 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366 # Accept the important Cygnus configure options, so we can diagnose typos.
367
368 case $ac_option in
369
370 -bindir | --bindir | --bindi | --bind | --bin | --bi)
371 ac_prev=bindir ;;
372 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373 bindir=$ac_optarg ;;
374
375 -build | --build | --buil | --bui | --bu)
376 ac_prev=build_alias ;;
377 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378 build_alias=$ac_optarg ;;
379
380 -cache-file | --cache-file | --cache-fil | --cache-fi \
381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382 ac_prev=cache_file ;;
383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385 cache_file=$ac_optarg ;;
386
387 --config-cache | -C)
388 cache_file=config.cache ;;
389
390 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391 ac_prev=datadir ;;
392 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393 | --da=*)
394 datadir=$ac_optarg ;;
395
396 -disable-* | --disable-*)
397 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398 # Reject names that are not valid shell variable names.
399 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401 { (exit 1); exit 1; }; }
402 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403 eval "enable_$ac_feature=no" ;;
404
405 -enable-* | --enable-*)
406 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407 # Reject names that are not valid shell variable names.
408 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410 { (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'" ;;
417
418 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420 | --exec | --exe | --ex)
421 ac_prev=exec_prefix ;;
422 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424 | --exec=* | --exe=* | --ex=*)
425 exec_prefix=$ac_optarg ;;
426
427 -gas | --gas | --ga | --g)
428 # Obsolete; use --with-gas.
429 with_gas=yes ;;
430
431 -help | --help | --hel | --he | -h)
432 ac_init_help=long ;;
433 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434 ac_init_help=recursive ;;
435 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436 ac_init_help=short ;;
437
438 -host | --host | --hos | --ho)
439 ac_prev=host_alias ;;
440 -host=* | --host=* | --hos=* | --ho=*)
441 host_alias=$ac_optarg ;;
442
443 -includedir | --includedir | --includedi | --included | --include \
444 | --includ | --inclu | --incl | --inc)
445 ac_prev=includedir ;;
446 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447 | --includ=* | --inclu=* | --incl=* | --inc=*)
448 includedir=$ac_optarg ;;
449
450 -infodir | --infodir | --infodi | --infod | --info | --inf)
451 ac_prev=infodir ;;
452 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453 infodir=$ac_optarg ;;
454
455 -libdir | --libdir | --libdi | --libd)
456 ac_prev=libdir ;;
457 -libdir=* | --libdir=* | --libdi=* | --libd=*)
458 libdir=$ac_optarg ;;
459
460 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461 | --libexe | --libex | --libe)
462 ac_prev=libexecdir ;;
463 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464 | --libexe=* | --libex=* | --libe=*)
465 libexecdir=$ac_optarg ;;
466
467 -localstatedir | --localstatedir | --localstatedi | --localstated \
468 | --localstate | --localstat | --localsta | --localst \
469 | --locals | --local | --loca | --loc | --lo)
470 ac_prev=localstatedir ;;
471 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474 localstatedir=$ac_optarg ;;
475
476 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477 ac_prev=mandir ;;
478 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479 mandir=$ac_optarg ;;
480
481 -nfp | --nfp | --nf)
482 # Obsolete; use --without-fp.
483 with_fp=no ;;
484
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c | -n)
487 no_create=yes ;;
488
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491 no_recursion=yes ;;
492
493 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495 | --oldin | --oldi | --old | --ol | --o)
496 ac_prev=oldincludedir ;;
497 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500 oldincludedir=$ac_optarg ;;
501
502 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503 ac_prev=prefix ;;
504 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505 prefix=$ac_optarg ;;
506
507 -program-prefix | --program-prefix | --program-prefi | --program-pref \
508 | --program-pre | --program-pr | --program-p)
509 ac_prev=program_prefix ;;
510 -program-prefix=* | --program-prefix=* | --program-prefi=* \
511 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512 program_prefix=$ac_optarg ;;
513
514 -program-suffix | --program-suffix | --program-suffi | --program-suff \
515 | --program-suf | --program-su | --program-s)
516 ac_prev=program_suffix ;;
517 -program-suffix=* | --program-suffix=* | --program-suffi=* \
518 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519 program_suffix=$ac_optarg ;;
520
521 -program-transform-name | --program-transform-name \
522 | --program-transform-nam | --program-transform-na \
523 | --program-transform-n | --program-transform- \
524 | --program-transform | --program-transfor \
525 | --program-transfo | --program-transf \
526 | --program-trans | --program-tran \
527 | --progr-tra | --program-tr | --program-t)
528 ac_prev=program_transform_name ;;
529 -program-transform-name=* | --program-transform-name=* \
530 | --program-transform-nam=* | --program-transform-na=* \
531 | --program-transform-n=* | --program-transform-=* \
532 | --program-transform=* | --program-transfor=* \
533 | --program-transfo=* | --program-transf=* \
534 | --program-trans=* | --program-tran=* \
535 | --progr-tra=* | --program-tr=* | --program-t=*)
536 program_transform_name=$ac_optarg ;;
537
538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539 | -silent | --silent | --silen | --sile | --sil)
540 silent=yes ;;
541
542 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543 ac_prev=sbindir ;;
544 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545 | --sbi=* | --sb=*)
546 sbindir=$ac_optarg ;;
547
548 -sharedstatedir | --sharedstatedir | --sharedstatedi \
549 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550 | --sharedst | --shareds | --shared | --share | --shar \
551 | --sha | --sh)
552 ac_prev=sharedstatedir ;;
553 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556 | --sha=* | --sh=*)
557 sharedstatedir=$ac_optarg ;;
558
559 -site | --site | --sit)
560 ac_prev=site ;;
561 -site=* | --site=* | --sit=*)
562 site=$ac_optarg ;;
563
564 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565 ac_prev=srcdir ;;
566 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567 srcdir=$ac_optarg ;;
568
569 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570 | --syscon | --sysco | --sysc | --sys | --sy)
571 ac_prev=sysconfdir ;;
572 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574 sysconfdir=$ac_optarg ;;
575
576 -target | --target | --targe | --targ | --tar | --ta | --t)
577 ac_prev=target_alias ;;
578 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579 target_alias=$ac_optarg ;;
580
581 -v | -verbose | --verbose | --verbos | --verbo | --verb)
582 verbose=yes ;;
583
584 -version | --version | --versio | --versi | --vers | -V)
585 ac_init_version=: ;;
586
587 -with-* | --with-*)
588 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589 # Reject names that are not valid shell variable names.
590 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591 { echo "$as_me: error: invalid package name: $ac_package" >&2
592 { (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'" ;;
599
600 -without-* | --without-*)
601 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602 # Reject names that are not valid shell variable names.
603 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604 { echo "$as_me: error: invalid package name: $ac_package" >&2
605 { (exit 1); exit 1; }; }
606 ac_package=`echo $ac_package | sed 's/-/_/g'`
607 eval "with_$ac_package=no" ;;
608
609 --x)
610 # Obsolete; use --with-x.
611 with_x=yes ;;
612
613 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614 | --x-incl | --x-inc | --x-in | --x-i)
615 ac_prev=x_includes ;;
616 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618 x_includes=$ac_optarg ;;
619
620 -x-libraries | --x-libraries | --x-librarie | --x-librari \
621 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622 ac_prev=x_libraries ;;
623 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625 x_libraries=$ac_optarg ;;
626
627 -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629 { (exit 1); exit 1; }; }
630 ;;
631
632 *=*)
633 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634 # Reject names that are not valid shell variable names.
635 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637 { (exit 1); exit 1; }; }
638 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639 eval "$ac_envvar='$ac_optarg'"
640 export $ac_envvar ;;
641
642 *)
643 # FIXME: should be removed in autoconf 3.0.
644 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648 ;;
649
650 esac
651 done
652
653 if test -n "$ac_prev"; then
654 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655 { echo "$as_me: error: missing argument to $ac_option" >&2
656 { (exit 1); exit 1; }; }
657 fi
658
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
661 do
662 eval ac_val=$`echo $ac_var`
663 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; }; };;
667 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
680 done
681
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
688
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691 if test "x$build_alias" = x; then
692 cross_compiling=maybe
693 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694 If a cross compiler is detected then cross compile mode will be used." >&2
695 elif test "x$build_alias" != "x$host_alias"; then
696 cross_compiling=yes
697 fi
698 fi
699
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703 test "$silent" = yes && exec 6>/dev/null
704
705
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708 ac_srcdir_defaulted=yes
709 # Try the directory containing this script, then its parent.
710 ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712 X"$0" : 'X\(//\)[^/]' \| \
713 X"$0" : 'X\(//\)$' \| \
714 X"$0" : 'X\(/\)' \| \
715 . : '\(.\)' 2>/dev/null ||
716 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'`
722 srcdir=$ac_confdir
723 if test ! -r $srcdir/$ac_unique_file; then
724 srcdir=..
725 fi
726 else
727 ac_srcdir_defaulted=no
728 fi
729 if test ! -r $srcdir/$ac_unique_file; then
730 if test "$ac_srcdir_defaulted" = yes; then
731 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732 { (exit 1); exit 1; }; }
733 else
734 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735 { (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
774
775 #
776 # Report the --help message.
777 #
778 if test "$ac_init_help" = "long"; then
779 # Omit some internal or obsolete options to make the list less imposing.
780 # This message is too long to be a string in the A/UX 3.1 sh.
781 cat <<_ACEOF
782 \`configure' configures FULL-PACKAGE-NAME VERSION to adapt to many kinds of systems.
783
784 Usage: $0 [OPTION]... [VAR=VALUE]...
785
786 To assign environment variables (e.g., CC, CFLAGS...), specify them as
787 VAR=VALUE. See below for descriptions of some of the useful variables.
788
789 Defaults for the options are specified in brackets.
790
791 Configuration:
792 -h, --help display this help and exit
793 --help=short display options specific to this package
794 --help=recursive display the short help of all the included packages
795 -V, --version display version information and exit
796 -q, --quiet, --silent do not print \`checking...' messages
797 --cache-file=FILE cache test results in FILE [disabled]
798 -C, --config-cache alias for \`--cache-file=config.cache'
799 -n, --no-create do not create output files
800 --srcdir=DIR find the sources in DIR [configure dir or \`..']
801
802 _ACEOF
803
804 cat <<_ACEOF
805 Installation directories:
806 --prefix=PREFIX install architecture-independent files in PREFIX
807 [$ac_default_prefix]
808 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809 [PREFIX]
810
811 By default, \`make install' will install all the files in
812 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
813 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
814 for instance \`--prefix=\$HOME'.
815
816 For better control, use the options below.
817
818 Fine tuning of the installation directories:
819 --bindir=DIR user executables [EPREFIX/bin]
820 --sbindir=DIR system admin executables [EPREFIX/sbin]
821 --libexecdir=DIR program executables [EPREFIX/libexec]
822 --datadir=DIR read-only architecture-independent data [PREFIX/share]
823 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
824 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
825 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
826 --libdir=DIR object code libraries [EPREFIX/lib]
827 --includedir=DIR C header files [PREFIX/include]
828 --oldincludedir=DIR C header files for non-gcc [/usr/include]
829 --infodir=DIR info documentation [PREFIX/info]
830 --mandir=DIR man documentation [PREFIX/man]
831 _ACEOF
832
833 cat <<\_ACEOF
834 _ACEOF
835 fi
836
837 if test -n "$ac_init_help"; then
838 case $ac_init_help in
839 short | recursive ) echo "Configuration of FULL-PACKAGE-NAME VERSION:";;
840 esac
841 cat <<\_ACEOF
842
843 Some influential environment variables:
844 CC C compiler command
845 CFLAGS C compiler flags
846 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
847 nonstandard directory <lib dir>
848 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
849 headers in a nonstandard directory <include dir>
850 CPP C preprocessor
851
852 Use these variables to override the choices made by `configure' or to help
853 it to find libraries and programs with nonstandard names/locations.
854
855 Report bugs to <BUG-REPORT-ADDRESS>.
856 _ACEOF
857 fi
858
859 if test "$ac_init_help" = "recursive"; then
860 # If there are subdirs, report their specific --help.
861 ac_popdir=`pwd`
862 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
863 test -d $ac_dir || continue
864 ac_builddir=.
865
866 if test "$ac_dir" != .; then
867 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
868 # A "../" for each directory in $ac_dir_suffix.
869 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
870 else
871 ac_dir_suffix= ac_top_builddir=
872 fi
873
874 case $srcdir in
875 .) # No --srcdir option. We are building in place.
876 ac_srcdir=.
877 if test -z "$ac_top_builddir"; then
878 ac_top_srcdir=.
879 else
880 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
881 fi ;;
882 [\\/]* | ?:[\\/]* ) # Absolute path.
883 ac_srcdir=$srcdir$ac_dir_suffix;
884 ac_top_srcdir=$srcdir ;;
885 *) # Relative path.
886 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
887 ac_top_srcdir=$ac_top_builddir$srcdir ;;
888 esac
889
890 # Do not use `cd foo && pwd` to compute absolute paths, because
891 # the directories may not exist.
892 case `pwd` in
893 .) ac_abs_builddir="$ac_dir";;
894 *)
895 case "$ac_dir" in
896 .) ac_abs_builddir=`pwd`;;
897 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
898 *) ac_abs_builddir=`pwd`/"$ac_dir";;
899 esac;;
900 esac
901 case $ac_abs_builddir in
902 .) ac_abs_top_builddir=${ac_top_builddir}.;;
903 *)
904 case ${ac_top_builddir}. in
905 .) ac_abs_top_builddir=$ac_abs_builddir;;
906 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
907 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
908 esac;;
909 esac
910 case $ac_abs_builddir in
911 .) ac_abs_srcdir=$ac_srcdir;;
912 *)
913 case $ac_srcdir in
914 .) ac_abs_srcdir=$ac_abs_builddir;;
915 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
916 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
917 esac;;
918 esac
919 case $ac_abs_builddir in
920 .) ac_abs_top_srcdir=$ac_top_srcdir;;
921 *)
922 case $ac_top_srcdir in
923 .) ac_abs_top_srcdir=$ac_abs_builddir;;
924 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
925 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
926 esac;;
927 esac
928
929 cd $ac_dir
930 # Check for guested configure; otherwise get Cygnus style configure.
931 if test -f $ac_srcdir/configure.gnu; then
932 echo
933 $SHELL $ac_srcdir/configure.gnu --help=recursive
934 elif test -f $ac_srcdir/configure; then
935 echo
936 $SHELL $ac_srcdir/configure --help=recursive
937 elif test -f $ac_srcdir/configure.ac ||
938 test -f $ac_srcdir/configure.in; then
939 echo
940 $ac_configure --help
941 else
942 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
943 fi
944 cd $ac_popdir
945 done
946 fi
947
948 test -n "$ac_init_help" && exit 0
949 if $ac_init_version; then
950 cat <<\_ACEOF
951 FULL-PACKAGE-NAME configure VERSION
952 generated by GNU Autoconf 2.59
953
954 Copyright (C) 2003 Free Software Foundation, Inc.
955 This configure script is free software; the Free Software Foundation
956 gives unlimited permission to copy, distribute and modify it.
957 _ACEOF
958 exit 0
959 fi
960 exec 5>config.log
961 cat >&5 <<_ACEOF
962 This file contains any messages produced by compilers while
963 running configure, to aid debugging if configure makes a mistake.
964
965 It was created by FULL-PACKAGE-NAME $as_me VERSION, which was
966 generated by GNU Autoconf 2.59. Invocation command line was
967
968 $ $0 $@
969
970 _ACEOF
971 {
972 cat <<_ASUNAME
973 ## --------- ##
974 ## Platform. ##
975 ## --------- ##
976
977 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
978 uname -m = `(uname -m) 2>/dev/null || echo unknown`
979 uname -r = `(uname -r) 2>/dev/null || echo unknown`
980 uname -s = `(uname -s) 2>/dev/null || echo unknown`
981 uname -v = `(uname -v) 2>/dev/null || echo unknown`
982
983 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
984 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
985
986 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
987 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
988 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
989 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
990 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
991 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
992 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
993
994 _ASUNAME
995
996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
997 for as_dir in $PATH
998 do
999 IFS=$as_save_IFS
1000 test -z "$as_dir" && as_dir=.
1001 echo "PATH: $as_dir"
1002 done
1003
1004 } >&5
1005
1006 cat >&5 <<_ACEOF
1007
1008
1009 ## ----------- ##
1010 ## Core tests. ##
1011 ## ----------- ##
1012
1013 _ACEOF
1014
1015
1016 # Keep a trace of the command line.
1017 # Strip out --no-create and --no-recursion so they do not pile up.
1018 # Strip out --silent because we don't want to record it for future runs.
1019 # Also quote any args containing shell meta-characters.
1020 # Make two passes to allow for proper duplicate-argument suppression.
1021 ac_configure_args=
1022 ac_configure_args0=
1023 ac_configure_args1=
1024 ac_sep=
1025 ac_must_keep_next=false
1026 for ac_pass in 1 2
1027 do
1028 for ac_arg
1029 do
1030 case $ac_arg in
1031 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1032 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1033 | -silent | --silent | --silen | --sile | --sil)
1034 continue ;;
1035 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1036 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1037 esac
1038 case $ac_pass in
1039 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1040 2)
1041 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1042 if test $ac_must_keep_next = true; then
1043 ac_must_keep_next=false # Got value, back to normal.
1044 else
1045 case $ac_arg in
1046 *=* | --config-cache | -C | -disable-* | --disable-* \
1047 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1048 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1049 | -with-* | --with-* | -without-* | --without-* | --x)
1050 case "$ac_configure_args0 " in
1051 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1052 esac
1053 ;;
1054 -* ) ac_must_keep_next=true ;;
1055 esac
1056 fi
1057 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1058 # Get rid of the leading space.
1059 ac_sep=" "
1060 ;;
1061 esac
1062 done
1063 done
1064 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1065 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1066
1067 # When interrupted or exit'd, cleanup temporary files, and complete
1068 # config.log. We remove comments because anyway the quotes in there
1069 # would cause problems or look ugly.
1070 # WARNING: Be sure not to use single quotes in there, as some shells,
1071 # such as our DU 5.0 friend, will then `close' the trap.
1072 trap 'exit_status=$?
1073 # Save into config.log some information that might help in debugging.
1074 {
1075 echo
1076
1077 cat <<\_ASBOX
1078 ## ---------------- ##
1079 ## Cache variables. ##
1080 ## ---------------- ##
1081 _ASBOX
1082 echo
1083 # The following way of writing the cache mishandles newlines in values,
1084 {
1085 (set) 2>&1 |
1086 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1087 *ac_space=\ *)
1088 sed -n \
1089 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1090 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1091 ;;
1092 *)
1093 sed -n \
1094 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1095 ;;
1096 esac;
1097 }
1098 echo
1099
1100 cat <<\_ASBOX
1101 ## ----------------- ##
1102 ## Output variables. ##
1103 ## ----------------- ##
1104 _ASBOX
1105 echo
1106 for ac_var in $ac_subst_vars
1107 do
1108 eval ac_val=$`echo $ac_var`
1109 echo "$ac_var='"'"'$ac_val'"'"'"
1110 done | sort
1111 echo
1112
1113 if test -n "$ac_subst_files"; then
1114 cat <<\_ASBOX
1115 ## ------------- ##
1116 ## Output files. ##
1117 ## ------------- ##
1118 _ASBOX
1119 echo
1120 for ac_var in $ac_subst_files
1121 do
1122 eval ac_val=$`echo $ac_var`
1123 echo "$ac_var='"'"'$ac_val'"'"'"
1124 done | sort
1125 echo
1126 fi
1127
1128 if test -s confdefs.h; then
1129 cat <<\_ASBOX
1130 ## ----------- ##
1131 ## confdefs.h. ##
1132 ## ----------- ##
1133 _ASBOX
1134 echo
1135 sed "/^$/d" confdefs.h | sort
1136 echo
1137 fi
1138 test "$ac_signal" != 0 &&
1139 echo "$as_me: caught signal $ac_signal"
1140 echo "$as_me: exit $exit_status"
1141 } >&5
1142 rm -f core *.core &&
1143 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1144 exit $exit_status
1145 ' 0
1146 for ac_signal in 1 2 13 15; do
1147 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1148 done
1149 ac_signal=0
1150
1151 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1152 rm -rf conftest* confdefs.h
1153 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1154 echo >confdefs.h
1155
1156 # Predefined preprocessor variables.
1157
1158 cat >>confdefs.h <<_ACEOF
1159 #define PACKAGE_NAME "$PACKAGE_NAME"
1160 _ACEOF
1161
1162
1163 cat >>confdefs.h <<_ACEOF
1164 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1165 _ACEOF
1166
1167
1168 cat >>confdefs.h <<_ACEOF
1169 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1170 _ACEOF
1171
1172
1173 cat >>confdefs.h <<_ACEOF
1174 #define PACKAGE_STRING "$PACKAGE_STRING"
1175 _ACEOF
1176
1177
1178 cat >>confdefs.h <<_ACEOF
1179 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1180 _ACEOF
1181
1182
1183 # Let the site file select an alternate cache file if it wants to.
1184 # Prefer explicitly selected file to automatically selected ones.
1185 if test -z "$CONFIG_SITE"; then
1186 if test "x$prefix" != xNONE; then
1187 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1188 else
1189 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1190 fi
1191 fi
1192 for ac_site_file in $CONFIG_SITE; do
1193 if test -r "$ac_site_file"; then
1194 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1195 echo "$as_me: loading site script $ac_site_file" >&6;}
1196 sed 's/^/| /' "$ac_site_file" >&5
1197 . "$ac_site_file"
1198 fi
1199 done
1200
1201 if test -r "$cache_file"; then
1202 # Some versions of bash will fail to source /dev/null (special
1203 # files actually), so we avoid doing that.
1204 if test -f "$cache_file"; then
1205 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1206 echo "$as_me: loading cache $cache_file" >&6;}
1207 case $cache_file in
1208 [\\/]* | ?:[\\/]* ) . $cache_file;;
1209 *) . ./$cache_file;;
1210 esac
1211 fi
1212 else
1213 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1214 echo "$as_me: creating cache $cache_file" >&6;}
1215 >$cache_file
1216 fi
1217
1218 # Check that the precious variables saved in the cache have kept the same
1219 # value.
1220 ac_cache_corrupted=false
1221 for ac_var in `(set) 2>&1 |
1222 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1223 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1224 eval ac_new_set=\$ac_env_${ac_var}_set
1225 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1226 eval ac_new_val="\$ac_env_${ac_var}_value"
1227 case $ac_old_set,$ac_new_set in
1228 set,)
1229 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1230 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1231 ac_cache_corrupted=: ;;
1232 ,set)
1233 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1234 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1235 ac_cache_corrupted=: ;;
1236 ,);;
1237 *)
1238 if test "x$ac_old_val" != "x$ac_new_val"; then
1239 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1240 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1241 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1242 echo "$as_me: former value: $ac_old_val" >&2;}
1243 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1244 echo "$as_me: current value: $ac_new_val" >&2;}
1245 ac_cache_corrupted=:
1246 fi;;
1247 esac
1248 # Pass precious variables to config.status.
1249 if test "$ac_new_set" = set; then
1250 case $ac_new_val in
1251 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1252 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1253 *) ac_arg=$ac_var=$ac_new_val ;;
1254 esac
1255 case " $ac_configure_args " in
1256 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1257 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1258 esac
1259 fi
1260 done
1261 if $ac_cache_corrupted; then
1262 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1263 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1264 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1265 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1266 { (exit 1); exit 1; }; }
1267 fi
1268
1269 ac_ext=c
1270 ac_cpp='$CPP $CPPFLAGS'
1271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302 ac_config_headers="$ac_config_headers config.h"
1303
1304
1305 # Checks for programs.
1306 ac_ext=c
1307 ac_cpp='$CPP $CPPFLAGS'
1308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1311 if test -n "$ac_tool_prefix"; then
1312 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1313 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1314 echo "$as_me:$LINENO: checking for $ac_word" >&5
1315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1316 if test "${ac_cv_prog_CC+set}" = set; then
1317 echo $ECHO_N "(cached) $ECHO_C" >&6
1318 else
1319 if test -n "$CC"; then
1320 ac_cv_prog_CC="$CC" # Let the user override the test.
1321 else
1322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1323 for as_dir in $PATH
1324 do
1325 IFS=$as_save_IFS
1326 test -z "$as_dir" && as_dir=.
1327 for ac_exec_ext in '' $ac_executable_extensions; do
1328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1329 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1331 break 2
1332 fi
1333 done
1334 done
1335
1336 fi
1337 fi
1338 CC=$ac_cv_prog_CC
1339 if test -n "$CC"; then
1340 echo "$as_me:$LINENO: result: $CC" >&5
1341 echo "${ECHO_T}$CC" >&6
1342 else
1343 echo "$as_me:$LINENO: result: no" >&5
1344 echo "${ECHO_T}no" >&6
1345 fi
1346
1347 fi
1348 if test -z "$ac_cv_prog_CC"; then
1349 ac_ct_CC=$CC
1350 # Extract the first word of "gcc", so it can be a program name with args.
1351 set dummy gcc; ac_word=$2
1352 echo "$as_me:$LINENO: checking for $ac_word" >&5
1353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1354 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1355 echo $ECHO_N "(cached) $ECHO_C" >&6
1356 else
1357 if test -n "$ac_ct_CC"; then
1358 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1359 else
1360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1361 for as_dir in $PATH
1362 do
1363 IFS=$as_save_IFS
1364 test -z "$as_dir" && as_dir=.
1365 for ac_exec_ext in '' $ac_executable_extensions; do
1366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1367 ac_cv_prog_ac_ct_CC="gcc"
1368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1369 break 2
1370 fi
1371 done
1372 done
1373
1374 fi
1375 fi
1376 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1377 if test -n "$ac_ct_CC"; then
1378 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1379 echo "${ECHO_T}$ac_ct_CC" >&6
1380 else
1381 echo "$as_me:$LINENO: result: no" >&5
1382 echo "${ECHO_T}no" >&6
1383 fi
1384
1385 CC=$ac_ct_CC
1386 else
1387 CC="$ac_cv_prog_CC"
1388 fi
1389
1390 if test -z "$CC"; then
1391 if test -n "$ac_tool_prefix"; then
1392 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1393 set dummy ${ac_tool_prefix}cc; ac_word=$2
1394 echo "$as_me:$LINENO: checking for $ac_word" >&5
1395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1396 if test "${ac_cv_prog_CC+set}" = set; then
1397 echo $ECHO_N "(cached) $ECHO_C" >&6
1398 else
1399 if test -n "$CC"; then
1400 ac_cv_prog_CC="$CC" # Let the user override the test.
1401 else
1402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1403 for as_dir in $PATH
1404 do
1405 IFS=$as_save_IFS
1406 test -z "$as_dir" && as_dir=.
1407 for ac_exec_ext in '' $ac_executable_extensions; do
1408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1409 ac_cv_prog_CC="${ac_tool_prefix}cc"
1410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1411 break 2
1412 fi
1413 done
1414 done
1415
1416 fi
1417 fi
1418 CC=$ac_cv_prog_CC
1419 if test -n "$CC"; then
1420 echo "$as_me:$LINENO: result: $CC" >&5
1421 echo "${ECHO_T}$CC" >&6
1422 else
1423 echo "$as_me:$LINENO: result: no" >&5
1424 echo "${ECHO_T}no" >&6
1425 fi
1426
1427 fi
1428 if test -z "$ac_cv_prog_CC"; then
1429 ac_ct_CC=$CC
1430 # Extract the first word of "cc", so it can be a program name with args.
1431 set dummy cc; ac_word=$2
1432 echo "$as_me:$LINENO: checking for $ac_word" >&5
1433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1434 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1435 echo $ECHO_N "(cached) $ECHO_C" >&6
1436 else
1437 if test -n "$ac_ct_CC"; then
1438 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1439 else
1440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1441 for as_dir in $PATH
1442 do
1443 IFS=$as_save_IFS
1444 test -z "$as_dir" && as_dir=.
1445 for ac_exec_ext in '' $ac_executable_extensions; do
1446 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1447 ac_cv_prog_ac_ct_CC="cc"
1448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1449 break 2
1450 fi
1451 done
1452 done
1453
1454 fi
1455 fi
1456 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1457 if test -n "$ac_ct_CC"; then
1458 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1459 echo "${ECHO_T}$ac_ct_CC" >&6
1460 else
1461 echo "$as_me:$LINENO: result: no" >&5
1462 echo "${ECHO_T}no" >&6
1463 fi
1464
1465 CC=$ac_ct_CC
1466 else
1467 CC="$ac_cv_prog_CC"
1468 fi
1469
1470 fi
1471 if test -z "$CC"; then
1472 # Extract the first word of "cc", so it can be a program name with args.
1473 set dummy cc; ac_word=$2
1474 echo "$as_me:$LINENO: checking for $ac_word" >&5
1475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1476 if test "${ac_cv_prog_CC+set}" = set; then
1477 echo $ECHO_N "(cached) $ECHO_C" >&6
1478 else
1479 if test -n "$CC"; then
1480 ac_cv_prog_CC="$CC" # Let the user override the test.
1481 else
1482 ac_prog_rejected=no
1483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1484 for as_dir in $PATH
1485 do
1486 IFS=$as_save_IFS
1487 test -z "$as_dir" && as_dir=.
1488 for ac_exec_ext in '' $ac_executable_extensions; do
1489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1490 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1491 ac_prog_rejected=yes
1492 continue
1493 fi
1494 ac_cv_prog_CC="cc"
1495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1496 break 2
1497 fi
1498 done
1499 done
1500
1501 if test $ac_prog_rejected = yes; then
1502 # We found a bogon in the path, so make sure we never use it.
1503 set dummy $ac_cv_prog_CC
1504 shift
1505 if test $# != 0; then
1506 # We chose a different compiler from the bogus one.
1507 # However, it has the same basename, so the bogon will be chosen
1508 # first if we set CC to just the basename; use the full file name.
1509 shift
1510 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1511 fi
1512 fi
1513 fi
1514 fi
1515 CC=$ac_cv_prog_CC
1516 if test -n "$CC"; then
1517 echo "$as_me:$LINENO: result: $CC" >&5
1518 echo "${ECHO_T}$CC" >&6
1519 else
1520 echo "$as_me:$LINENO: result: no" >&5
1521 echo "${ECHO_T}no" >&6
1522 fi
1523
1524 fi
1525 if test -z "$CC"; then
1526 if test -n "$ac_tool_prefix"; then
1527 for ac_prog in cl
1528 do
1529 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1530 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1531 echo "$as_me:$LINENO: checking for $ac_word" >&5
1532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1533 if test "${ac_cv_prog_CC+set}" = set; then
1534 echo $ECHO_N "(cached) $ECHO_C" >&6
1535 else
1536 if test -n "$CC"; then
1537 ac_cv_prog_CC="$CC" # Let the user override the test.
1538 else
1539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1540 for as_dir in $PATH
1541 do
1542 IFS=$as_save_IFS
1543 test -z "$as_dir" && as_dir=.
1544 for ac_exec_ext in '' $ac_executable_extensions; do
1545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1546 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1548 break 2
1549 fi
1550 done
1551 done
1552
1553 fi
1554 fi
1555 CC=$ac_cv_prog_CC
1556 if test -n "$CC"; then
1557 echo "$as_me:$LINENO: result: $CC" >&5
1558 echo "${ECHO_T}$CC" >&6
1559 else
1560 echo "$as_me:$LINENO: result: no" >&5
1561 echo "${ECHO_T}no" >&6
1562 fi
1563
1564 test -n "$CC" && break
1565 done
1566 fi
1567 if test -z "$CC"; then
1568 ac_ct_CC=$CC
1569 for ac_prog in cl
1570 do
1571 # Extract the first word of "$ac_prog", so it can be a program name with args.
1572 set dummy $ac_prog; ac_word=$2
1573 echo "$as_me:$LINENO: checking for $ac_word" >&5
1574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1575 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1576 echo $ECHO_N "(cached) $ECHO_C" >&6
1577 else
1578 if test -n "$ac_ct_CC"; then
1579 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1580 else
1581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1582 for as_dir in $PATH
1583 do
1584 IFS=$as_save_IFS
1585 test -z "$as_dir" && as_dir=.
1586 for ac_exec_ext in '' $ac_executable_extensions; do
1587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1588 ac_cv_prog_ac_ct_CC="$ac_prog"
1589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1590 break 2
1591 fi
1592 done
1593 done
1594
1595 fi
1596 fi
1597 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1598 if test -n "$ac_ct_CC"; then
1599 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1600 echo "${ECHO_T}$ac_ct_CC" >&6
1601 else
1602 echo "$as_me:$LINENO: result: no" >&5
1603 echo "${ECHO_T}no" >&6
1604 fi
1605
1606 test -n "$ac_ct_CC" && break
1607 done
1608
1609 CC=$ac_ct_CC
1610 fi
1611
1612 fi
1613
1614
1615 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1616 See \`config.log' for more details." >&5
1617 echo "$as_me: error: no acceptable C compiler found in \$PATH
1618 See \`config.log' for more details." >&2;}
1619 { (exit 1); exit 1; }; }
1620
1621 # Provide some information about the compiler.
1622 echo "$as_me:$LINENO:" \
1623 "checking for C compiler version" >&5
1624 ac_compiler=`set X $ac_compile; echo $2`
1625 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1626 (eval $ac_compiler --version </dev/null >&5) 2>&5
1627 ac_status=$?
1628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1629 (exit $ac_status); }
1630 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1631 (eval $ac_compiler -v </dev/null >&5) 2>&5
1632 ac_status=$?
1633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1634 (exit $ac_status); }
1635 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1636 (eval $ac_compiler -V </dev/null >&5) 2>&5
1637 ac_status=$?
1638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1639 (exit $ac_status); }
1640
1641 cat >conftest.$ac_ext <<_ACEOF
1642 /* confdefs.h. */
1643 _ACEOF
1644 cat confdefs.h >>conftest.$ac_ext
1645 cat >>conftest.$ac_ext <<_ACEOF
1646 /* end confdefs.h. */
1647
1648 int
1649 main ()
1650 {
1651
1652 ;
1653 return 0;
1654 }
1655 _ACEOF
1656 ac_clean_files_save=$ac_clean_files
1657 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1658 # Try to create an executable without -o first, disregard a.out.
1659 # It will help us diagnose broken compilers, and finding out an intuition
1660 # of exeext.
1661 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1662 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1663 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1664 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1665 (eval $ac_link_default) 2>&5
1666 ac_status=$?
1667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1668 (exit $ac_status); }; then
1669 # Find the output, starting from the most likely. This scheme is
1670 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1671 # resort.
1672
1673 # Be careful to initialize this variable, since it used to be cached.
1674 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1675 ac_cv_exeext=
1676 # b.out is created by i960 compilers.
1677 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1678 do
1679 test -f "$ac_file" || continue
1680 case $ac_file in
1681 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1682 ;;
1683 conftest.$ac_ext )
1684 # This is the source file.
1685 ;;
1686 [ab].out )
1687 # We found the default executable, but exeext='' is most
1688 # certainly right.
1689 break;;
1690 *.* )
1691 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1692 # FIXME: I believe we export ac_cv_exeext for Libtool,
1693 # but it would be cool to find out if it's true. Does anybody
1694 # maintain Libtool? --akim.
1695 export ac_cv_exeext
1696 break;;
1697 * )
1698 break;;
1699 esac
1700 done
1701 else
1702 echo "$as_me: failed program was:" >&5
1703 sed 's/^/| /' conftest.$ac_ext >&5
1704
1705 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1706 See \`config.log' for more details." >&5
1707 echo "$as_me: error: C compiler cannot create executables
1708 See \`config.log' for more details." >&2;}
1709 { (exit 77); exit 77; }; }
1710 fi
1711
1712 ac_exeext=$ac_cv_exeext
1713 echo "$as_me:$LINENO: result: $ac_file" >&5
1714 echo "${ECHO_T}$ac_file" >&6
1715
1716 # Check the compiler produces executables we can run. If not, either
1717 # the compiler is broken, or we cross compile.
1718 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1719 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1720 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1721 # If not cross compiling, check that we can run a simple program.
1722 if test "$cross_compiling" != yes; then
1723 if { ac_try='./$ac_file'
1724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1725 (eval $ac_try) 2>&5
1726 ac_status=$?
1727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1728 (exit $ac_status); }; }; then
1729 cross_compiling=no
1730 else
1731 if test "$cross_compiling" = maybe; then
1732 cross_compiling=yes
1733 else
1734 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1735 If you meant to cross compile, use \`--host'.
1736 See \`config.log' for more details." >&5
1737 echo "$as_me: error: cannot run C compiled programs.
1738 If you meant to cross compile, use \`--host'.
1739 See \`config.log' for more details." >&2;}
1740 { (exit 1); exit 1; }; }
1741 fi
1742 fi
1743 fi
1744 echo "$as_me:$LINENO: result: yes" >&5
1745 echo "${ECHO_T}yes" >&6
1746
1747 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1748 ac_clean_files=$ac_clean_files_save
1749 # Check the compiler produces executables we can run. If not, either
1750 # the compiler is broken, or we cross compile.
1751 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1752 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1753 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1754 echo "${ECHO_T}$cross_compiling" >&6
1755
1756 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1757 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1759 (eval $ac_link) 2>&5
1760 ac_status=$?
1761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1762 (exit $ac_status); }; then
1763 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1764 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1765 # work properly (i.e., refer to `conftest.exe'), while it won't with
1766 # `rm'.
1767 for ac_file in conftest.exe conftest conftest.*; do
1768 test -f "$ac_file" || continue
1769 case $ac_file in
1770 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1771 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1772 export ac_cv_exeext
1773 break;;
1774 * ) break;;
1775 esac
1776 done
1777 else
1778 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1779 See \`config.log' for more details." >&5
1780 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1781 See \`config.log' for more details." >&2;}
1782 { (exit 1); exit 1; }; }
1783 fi
1784
1785 rm -f conftest$ac_cv_exeext
1786 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1787 echo "${ECHO_T}$ac_cv_exeext" >&6
1788
1789 rm -f conftest.$ac_ext
1790 EXEEXT=$ac_cv_exeext
1791 ac_exeext=$EXEEXT
1792 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1793 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1794 if test "${ac_cv_objext+set}" = set; then
1795 echo $ECHO_N "(cached) $ECHO_C" >&6
1796 else
1797 cat >conftest.$ac_ext <<_ACEOF
1798 /* confdefs.h. */
1799 _ACEOF
1800 cat confdefs.h >>conftest.$ac_ext
1801 cat >>conftest.$ac_ext <<_ACEOF
1802 /* end confdefs.h. */
1803
1804 int
1805 main ()
1806 {
1807
1808 ;
1809 return 0;
1810 }
1811 _ACEOF
1812 rm -f conftest.o conftest.obj
1813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1814 (eval $ac_compile) 2>&5
1815 ac_status=$?
1816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1817 (exit $ac_status); }; then
1818 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1819 case $ac_file in
1820 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1821 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1822 break;;
1823 esac
1824 done
1825 else
1826 echo "$as_me: failed program was:" >&5
1827 sed 's/^/| /' conftest.$ac_ext >&5
1828
1829 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1830 See \`config.log' for more details." >&5
1831 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1832 See \`config.log' for more details." >&2;}
1833 { (exit 1); exit 1; }; }
1834 fi
1835
1836 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1837 fi
1838 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1839 echo "${ECHO_T}$ac_cv_objext" >&6
1840 OBJEXT=$ac_cv_objext
1841 ac_objext=$OBJEXT
1842 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1843 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1844 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1845 echo $ECHO_N "(cached) $ECHO_C" >&6
1846 else
1847 cat >conftest.$ac_ext <<_ACEOF
1848 /* confdefs.h. */
1849 _ACEOF
1850 cat confdefs.h >>conftest.$ac_ext
1851 cat >>conftest.$ac_ext <<_ACEOF
1852 /* end confdefs.h. */
1853
1854 int
1855 main ()
1856 {
1857 #ifndef __GNUC__
1858 choke me
1859 #endif
1860
1861 ;
1862 return 0;
1863 }
1864 _ACEOF
1865 rm -f conftest.$ac_objext
1866 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1867 (eval $ac_compile) 2>conftest.er1
1868 ac_status=$?
1869 grep -v '^ *+' conftest.er1 >conftest.err
1870 rm -f conftest.er1
1871 cat conftest.err >&5
1872 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
1887 ac_compiler_gnu=yes
1888 else
1889 echo "$as_me: failed program was:" >&5
1890 sed 's/^/| /' conftest.$ac_ext >&5
1891
1892 ac_compiler_gnu=no
1893 fi
1894 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1895 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1896
1897 fi
1898 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1899 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1900 GCC=`test $ac_compiler_gnu = yes && echo yes`
1901 ac_test_CFLAGS=${CFLAGS+set}
1902 ac_save_CFLAGS=$CFLAGS
1903 CFLAGS="-g"
1904 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1905 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1906 if test "${ac_cv_prog_cc_g+set}" = set; then
1907 echo $ECHO_N "(cached) $ECHO_C" >&6
1908 else
1909 cat >conftest.$ac_ext <<_ACEOF
1910 /* confdefs.h. */
1911 _ACEOF
1912 cat confdefs.h >>conftest.$ac_ext
1913 cat >>conftest.$ac_ext <<_ACEOF
1914 /* end confdefs.h. */
1915
1916 int
1917 main ()
1918 {
1919
1920 ;
1921 return 0;
1922 }
1923 _ACEOF
1924 rm -f conftest.$ac_objext
1925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1926 (eval $ac_compile) 2>conftest.er1
1927 ac_status=$?
1928 grep -v '^ *+' conftest.er1 >conftest.err
1929 rm -f conftest.er1
1930 cat conftest.err >&5
1931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1932 (exit $ac_status); } &&
1933 { ac_try='test -z "$ac_c_werror_flag"
1934 || test ! -s conftest.err'
1935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1936 (eval $ac_try) 2>&5
1937 ac_status=$?
1938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1939 (exit $ac_status); }; } &&
1940 { ac_try='test -s conftest.$ac_objext'
1941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1942 (eval $ac_try) 2>&5
1943 ac_status=$?
1944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1945 (exit $ac_status); }; }; then
1946 ac_cv_prog_cc_g=yes
1947 else
1948 echo "$as_me: failed program was:" >&5
1949 sed 's/^/| /' conftest.$ac_ext >&5
1950
1951 ac_cv_prog_cc_g=no
1952 fi
1953 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1954 fi
1955 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1956 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1957 if test "$ac_test_CFLAGS" = set; then
1958 CFLAGS=$ac_save_CFLAGS
1959 elif test $ac_cv_prog_cc_g = yes; then
1960 if test "$GCC" = yes; then
1961 CFLAGS="-g -O2"
1962 else
1963 CFLAGS="-g"
1964 fi
1965 else
1966 if test "$GCC" = yes; then
1967 CFLAGS="-O2"
1968 else
1969 CFLAGS=
1970 fi
1971 fi
1972 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1973 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1974 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1975 echo $ECHO_N "(cached) $ECHO_C" >&6
1976 else
1977 ac_cv_prog_cc_stdc=no
1978 ac_save_CC=$CC
1979 cat >conftest.$ac_ext <<_ACEOF
1980 /* confdefs.h. */
1981 _ACEOF
1982 cat confdefs.h >>conftest.$ac_ext
1983 cat >>conftest.$ac_ext <<_ACEOF
1984 /* end confdefs.h. */
1985 #include <stdarg.h>
1986 #include <stdio.h>
1987 #include <sys/types.h>
1988 #include <sys/stat.h>
1989 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1990 struct buf { int x; };
1991 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1992 static char *e (p, i)
1993 char **p;
1994 int i;
1995 {
1996 return p[i];
1997 }
1998 static char *f (char * (*g) (char **, int), char **p, ...)
1999 {
2000 char *s;
2001 va_list v;
2002 va_start (v,p);
2003 s = g (p, va_arg (v,int));
2004 va_end (v);
2005 return s;
2006 }
2007
2008 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2009 function prototypes and stuff, but not '\xHH' hex character constants.
2010 These don't provoke an error unfortunately, instead are silently treated
2011 as 'x'. The following induces an error, until -std1 is added to get
2012 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2013 array size at least. It's necessary to write '\x00'==0 to get something
2014 that's true only with -std1. */
2015 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2016
2017 int test (int i, double x);
2018 struct s1 {int (*f) (int a);};
2019 struct s2 {int (*f) (double a);};
2020 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2021 int argc;
2022 char **argv;
2023 int
2024 main ()
2025 {
2026 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2027 ;
2028 return 0;
2029 }
2030 _ACEOF
2031 # Don't try gcc -ansi; that turns off useful extensions and
2032 # breaks some systems' header files.
2033 # AIX -qlanglvl=ansi
2034 # Ultrix and OSF/1 -std1
2035 # HP-UX 10.20 and later -Ae
2036 # HP-UX older versions -Aa -D_HPUX_SOURCE
2037 # SVR4 -Xc -D__EXTENSIONS__
2038 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2039 do
2040 CC="$ac_save_CC $ac_arg"
2041 rm -f conftest.$ac_objext
2042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2043 (eval $ac_compile) 2>conftest.er1
2044 ac_status=$?
2045 grep -v '^ *+' conftest.er1 >conftest.err
2046 rm -f conftest.er1
2047 cat conftest.err >&5
2048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2049 (exit $ac_status); } &&
2050 { ac_try='test -z "$ac_c_werror_flag"
2051 || test ! -s conftest.err'
2052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2053 (eval $ac_try) 2>&5
2054 ac_status=$?
2055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2056 (exit $ac_status); }; } &&
2057 { ac_try='test -s conftest.$ac_objext'
2058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2059 (eval $ac_try) 2>&5
2060 ac_status=$?
2061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2062 (exit $ac_status); }; }; then
2063 ac_cv_prog_cc_stdc=$ac_arg
2064 break
2065 else
2066 echo "$as_me: failed program was:" >&5
2067 sed 's/^/| /' conftest.$ac_ext >&5
2068
2069 fi
2070 rm -f conftest.err conftest.$ac_objext
2071 done
2072 rm -f conftest.$ac_ext conftest.$ac_objext
2073 CC=$ac_save_CC
2074
2075 fi
2076
2077 case "x$ac_cv_prog_cc_stdc" in
2078 x|xno)
2079 echo "$as_me:$LINENO: result: none needed" >&5
2080 echo "${ECHO_T}none needed" >&6 ;;
2081 *)
2082 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2083 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2084 CC="$CC $ac_cv_prog_cc_stdc" ;;
2085 esac
2086
2087 # Some people use a C++ compiler to compile C. Since we use `exit',
2088 # in C++ we need to declare it. In case someone uses the same compiler
2089 # for both compiling C and C++ we need to have the C++ compiler decide
2090 # the declaration of exit, since it's the most demanding environment.
2091 cat >conftest.$ac_ext <<_ACEOF
2092 #ifndef __cplusplus
2093 choke me
2094 #endif
2095 _ACEOF
2096 rm -f conftest.$ac_objext
2097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2098 (eval $ac_compile) 2>conftest.er1
2099 ac_status=$?
2100 grep -v '^ *+' conftest.er1 >conftest.err
2101 rm -f conftest.er1
2102 cat conftest.err >&5
2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); } &&
2105 { ac_try='test -z "$ac_c_werror_flag"
2106 || test ! -s conftest.err'
2107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2108 (eval $ac_try) 2>&5
2109 ac_status=$?
2110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2111 (exit $ac_status); }; } &&
2112 { ac_try='test -s conftest.$ac_objext'
2113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2114 (eval $ac_try) 2>&5
2115 ac_status=$?
2116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2117 (exit $ac_status); }; }; then
2118 for ac_declaration in \
2119 '' \
2120 'extern "C" void std::exit (int) throw (); using std::exit;' \
2121 'extern "C" void std::exit (int); using std::exit;' \
2122 'extern "C" void exit (int) throw ();' \
2123 'extern "C" void exit (int);' \
2124 'void exit (int);'
2125 do
2126 cat >conftest.$ac_ext <<_ACEOF
2127 /* confdefs.h. */
2128 _ACEOF
2129 cat confdefs.h >>conftest.$ac_ext
2130 cat >>conftest.$ac_ext <<_ACEOF
2131 /* end confdefs.h. */
2132 $ac_declaration
2133 #include <stdlib.h>
2134 int
2135 main ()
2136 {
2137 exit (42);
2138 ;
2139 return 0;
2140 }
2141 _ACEOF
2142 rm -f conftest.$ac_objext
2143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2144 (eval $ac_compile) 2>conftest.er1
2145 ac_status=$?
2146 grep -v '^ *+' conftest.er1 >conftest.err
2147 rm -f conftest.er1
2148 cat conftest.err >&5
2149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150 (exit $ac_status); } &&
2151 { ac_try='test -z "$ac_c_werror_flag"
2152 || test ! -s conftest.err'
2153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2154 (eval $ac_try) 2>&5
2155 ac_status=$?
2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157 (exit $ac_status); }; } &&
2158 { ac_try='test -s conftest.$ac_objext'
2159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2160 (eval $ac_try) 2>&5
2161 ac_status=$?
2162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163 (exit $ac_status); }; }; then
2164 :
2165 else
2166 echo "$as_me: failed program was:" >&5
2167 sed 's/^/| /' conftest.$ac_ext >&5
2168
2169 continue
2170 fi
2171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2172 cat >conftest.$ac_ext <<_ACEOF
2173 /* confdefs.h. */
2174 _ACEOF
2175 cat confdefs.h >>conftest.$ac_ext
2176 cat >>conftest.$ac_ext <<_ACEOF
2177 /* end confdefs.h. */
2178 $ac_declaration
2179 int
2180 main ()
2181 {
2182 exit (42);
2183 ;
2184 return 0;
2185 }
2186 _ACEOF
2187 rm -f conftest.$ac_objext
2188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2189 (eval $ac_compile) 2>conftest.er1
2190 ac_status=$?
2191 grep -v '^ *+' conftest.er1 >conftest.err
2192 rm -f conftest.er1
2193 cat conftest.err >&5
2194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2195 (exit $ac_status); } &&
2196 { ac_try='test -z "$ac_c_werror_flag"
2197 || test ! -s conftest.err'
2198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2199 (eval $ac_try) 2>&5
2200 ac_status=$?
2201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202 (exit $ac_status); }; } &&
2203 { ac_try='test -s conftest.$ac_objext'
2204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2205 (eval $ac_try) 2>&5
2206 ac_status=$?
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); }; }; then
2209 break
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 done
2217 rm -f conftest*
2218 if test -n "$ac_declaration"; then
2219 echo '#ifdef __cplusplus' >>confdefs.h
2220 echo $ac_declaration >>confdefs.h
2221 echo '#endif' >>confdefs.h
2222 fi
2223
2224 else
2225 echo "$as_me: failed program was:" >&5
2226 sed 's/^/| /' conftest.$ac_ext >&5
2227
2228 fi
2229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2230 ac_ext=c
2231 ac_cpp='$CPP $CPPFLAGS'
2232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2235
2236
2237 # Checks for libraries.
2238
2239 # Checks for header files.
2240
2241 ac_ext=c
2242 ac_cpp='$CPP $CPPFLAGS'
2243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2246 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2247 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2248 # On Suns, sometimes $CPP names a directory.
2249 if test -n "$CPP" && test -d "$CPP"; then
2250 CPP=
2251 fi
2252 if test -z "$CPP"; then
2253 if test "${ac_cv_prog_CPP+set}" = set; then
2254 echo $ECHO_N "(cached) $ECHO_C" >&6
2255 else
2256 # Double quotes because CPP needs to be expanded
2257 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2258 do
2259 ac_preproc_ok=false
2260 for ac_c_preproc_warn_flag in '' yes
2261 do
2262 # Use a header file that comes with gcc, so configuring glibc
2263 # with a fresh cross-compiler works.
2264 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2265 # <limits.h> exists even on freestanding compilers.
2266 # On the NeXT, cc -E runs the code through the compiler's parser,
2267 # not just through cpp. "Syntax error" is here to catch this case.
2268 cat >conftest.$ac_ext <<_ACEOF
2269 /* confdefs.h. */
2270 _ACEOF
2271 cat confdefs.h >>conftest.$ac_ext
2272 cat >>conftest.$ac_ext <<_ACEOF
2273 /* end confdefs.h. */
2274 #ifdef __STDC__
2275 # include <limits.h>
2276 #else
2277 # include <assert.h>
2278 #endif
2279 Syntax error
2280 _ACEOF
2281 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2282 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2283 ac_status=$?
2284 grep -v '^ *+' conftest.er1 >conftest.err
2285 rm -f conftest.er1
2286 cat conftest.err >&5
2287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2288 (exit $ac_status); } >/dev/null; then
2289 if test -s conftest.err; then
2290 ac_cpp_err=$ac_c_preproc_warn_flag
2291 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2292 else
2293 ac_cpp_err=
2294 fi
2295 else
2296 ac_cpp_err=yes
2297 fi
2298 if test -z "$ac_cpp_err"; then
2299 :
2300 else
2301 echo "$as_me: failed program was:" >&5
2302 sed 's/^/| /' conftest.$ac_ext >&5
2303
2304 # Broken: fails on valid input.
2305 continue
2306 fi
2307 rm -f conftest.err conftest.$ac_ext
2308
2309 # OK, works on sane cases. Now check whether non-existent headers
2310 # can be detected and how.
2311 cat >conftest.$ac_ext <<_ACEOF
2312 /* confdefs.h. */
2313 _ACEOF
2314 cat confdefs.h >>conftest.$ac_ext
2315 cat >>conftest.$ac_ext <<_ACEOF
2316 /* end confdefs.h. */
2317 #include <ac_nonexistent.h>
2318 _ACEOF
2319 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2320 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2321 ac_status=$?
2322 grep -v '^ *+' conftest.er1 >conftest.err
2323 rm -f conftest.er1
2324 cat conftest.err >&5
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); } >/dev/null; then
2327 if test -s conftest.err; then
2328 ac_cpp_err=$ac_c_preproc_warn_flag
2329 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2330 else
2331 ac_cpp_err=
2332 fi
2333 else
2334 ac_cpp_err=yes
2335 fi
2336 if test -z "$ac_cpp_err"; then
2337 # Broken: success on invalid input.
2338 continue
2339 else
2340 echo "$as_me: failed program was:" >&5
2341 sed 's/^/| /' conftest.$ac_ext >&5
2342
2343 # Passes both tests.
2344 ac_preproc_ok=:
2345 break
2346 fi
2347 rm -f conftest.err conftest.$ac_ext
2348
2349 done
2350 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2351 rm -f conftest.err conftest.$ac_ext
2352 if $ac_preproc_ok; then
2353 break
2354 fi
2355
2356 done
2357 ac_cv_prog_CPP=$CPP
2358
2359 fi
2360 CPP=$ac_cv_prog_CPP
2361 else
2362 ac_cv_prog_CPP=$CPP
2363 fi
2364 echo "$as_me:$LINENO: result: $CPP" >&5
2365 echo "${ECHO_T}$CPP" >&6
2366 ac_preproc_ok=false
2367 for ac_c_preproc_warn_flag in '' yes
2368 do
2369 # Use a header file that comes with gcc, so configuring glibc
2370 # with a fresh cross-compiler works.
2371 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2372 # <limits.h> exists even on freestanding compilers.
2373 # On the NeXT, cc -E runs the code through the compiler's parser,
2374 # not just through cpp. "Syntax error" is here to catch this case.
2375 cat >conftest.$ac_ext <<_ACEOF
2376 /* confdefs.h. */
2377 _ACEOF
2378 cat confdefs.h >>conftest.$ac_ext
2379 cat >>conftest.$ac_ext <<_ACEOF
2380 /* end confdefs.h. */
2381 #ifdef __STDC__
2382 # include <limits.h>
2383 #else
2384 # include <assert.h>
2385 #endif
2386 Syntax error
2387 _ACEOF
2388 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2389 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2390 ac_status=$?
2391 grep -v '^ *+' conftest.er1 >conftest.err
2392 rm -f conftest.er1
2393 cat conftest.err >&5
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); } >/dev/null; then
2396 if test -s conftest.err; then
2397 ac_cpp_err=$ac_c_preproc_warn_flag
2398 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2399 else
2400 ac_cpp_err=
2401 fi
2402 else
2403 ac_cpp_err=yes
2404 fi
2405 if test -z "$ac_cpp_err"; then
2406 :
2407 else
2408 echo "$as_me: failed program was:" >&5
2409 sed 's/^/| /' conftest.$ac_ext >&5
2410
2411 # Broken: fails on valid input.
2412 continue
2413 fi
2414 rm -f conftest.err conftest.$ac_ext
2415
2416 # OK, works on sane cases. Now check whether non-existent headers
2417 # can be detected and how.
2418 cat >conftest.$ac_ext <<_ACEOF
2419 /* confdefs.h. */
2420 _ACEOF
2421 cat confdefs.h >>conftest.$ac_ext
2422 cat >>conftest.$ac_ext <<_ACEOF
2423 /* end confdefs.h. */
2424 #include <ac_nonexistent.h>
2425 _ACEOF
2426 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2427 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2428 ac_status=$?
2429 grep -v '^ *+' conftest.er1 >conftest.err
2430 rm -f conftest.er1
2431 cat conftest.err >&5
2432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433 (exit $ac_status); } >/dev/null; then
2434 if test -s conftest.err; then
2435 ac_cpp_err=$ac_c_preproc_warn_flag
2436 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2437 else
2438 ac_cpp_err=
2439 fi
2440 else
2441 ac_cpp_err=yes
2442 fi
2443 if test -z "$ac_cpp_err"; then
2444 # Broken: success on invalid input.
2445 continue
2446 else
2447 echo "$as_me: failed program was:" >&5
2448 sed 's/^/| /' conftest.$ac_ext >&5
2449
2450 # Passes both tests.
2451 ac_preproc_ok=:
2452 break
2453 fi
2454 rm -f conftest.err conftest.$ac_ext
2455
2456 done
2457 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2458 rm -f conftest.err conftest.$ac_ext
2459 if $ac_preproc_ok; then
2460 :
2461 else
2462 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2463 See \`config.log' for more details." >&5
2464 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2465 See \`config.log' for more details." >&2;}
2466 { (exit 1); exit 1; }; }
2467 fi
2468
2469 ac_ext=c
2470 ac_cpp='$CPP $CPPFLAGS'
2471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2474
2475
2476 echo "$as_me:$LINENO: checking for egrep" >&5
2477 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2478 if test "${ac_cv_prog_egrep+set}" = set; then
2479 echo $ECHO_N "(cached) $ECHO_C" >&6
2480 else
2481 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2482 then ac_cv_prog_egrep='grep -E'
2483 else ac_cv_prog_egrep='egrep'
2484 fi
2485 fi
2486 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2487 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2488 EGREP=$ac_cv_prog_egrep
2489
2490
2491 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2492 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2493 if test "${ac_cv_header_stdc+set}" = set; then
2494 echo $ECHO_N "(cached) $ECHO_C" >&6
2495 else
2496 cat >conftest.$ac_ext <<_ACEOF
2497 /* confdefs.h. */
2498 _ACEOF
2499 cat confdefs.h >>conftest.$ac_ext
2500 cat >>conftest.$ac_ext <<_ACEOF
2501 /* end confdefs.h. */
2502 #include <stdlib.h>
2503 #include <stdarg.h>
2504 #include <string.h>
2505 #include <float.h>
2506
2507 int
2508 main ()
2509 {
2510
2511 ;
2512 return 0;
2513 }
2514 _ACEOF
2515 rm -f conftest.$ac_objext
2516 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2517 (eval $ac_compile) 2>conftest.er1
2518 ac_status=$?
2519 grep -v '^ *+' conftest.er1 >conftest.err
2520 rm -f conftest.er1
2521 cat conftest.err >&5
2522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523 (exit $ac_status); } &&
2524 { ac_try='test -z "$ac_c_werror_flag"
2525 || test ! -s conftest.err'
2526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2527 (eval $ac_try) 2>&5
2528 ac_status=$?
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); }; } &&
2531 { ac_try='test -s conftest.$ac_objext'
2532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2533 (eval $ac_try) 2>&5
2534 ac_status=$?
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); }; }; then
2537 ac_cv_header_stdc=yes
2538 else
2539 echo "$as_me: failed program was:" >&5
2540 sed 's/^/| /' conftest.$ac_ext >&5
2541
2542 ac_cv_header_stdc=no
2543 fi
2544 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2545
2546 if test $ac_cv_header_stdc = yes; then
2547 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2548 cat >conftest.$ac_ext <<_ACEOF
2549 /* confdefs.h. */
2550 _ACEOF
2551 cat confdefs.h >>conftest.$ac_ext
2552 cat >>conftest.$ac_ext <<_ACEOF
2553 /* end confdefs.h. */
2554 #include <string.h>
2555
2556 _ACEOF
2557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2558 $EGREP "memchr" >/dev/null 2>&1; then
2559 :
2560 else
2561 ac_cv_header_stdc=no
2562 fi
2563 rm -f conftest*
2564
2565 fi
2566
2567 if test $ac_cv_header_stdc = yes; then
2568 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2569 cat >conftest.$ac_ext <<_ACEOF
2570 /* confdefs.h. */
2571 _ACEOF
2572 cat confdefs.h >>conftest.$ac_ext
2573 cat >>conftest.$ac_ext <<_ACEOF
2574 /* end confdefs.h. */
2575 #include <stdlib.h>
2576
2577 _ACEOF
2578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2579 $EGREP "free" >/dev/null 2>&1; then
2580 :
2581 else
2582 ac_cv_header_stdc=no
2583 fi
2584 rm -f conftest*
2585
2586 fi
2587
2588 if test $ac_cv_header_stdc = yes; then
2589 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2590 if test "$cross_compiling" = yes; then
2591 :
2592 else
2593 cat >conftest.$ac_ext <<_ACEOF
2594 /* confdefs.h. */
2595 _ACEOF
2596 cat confdefs.h >>conftest.$ac_ext
2597 cat >>conftest.$ac_ext <<_ACEOF
2598 /* end confdefs.h. */
2599 #include <ctype.h>
2600 #if ((' ' & 0x0FF) == 0x020)
2601 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2602 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2603 #else
2604 # define ISLOWER(c) \
2605 (('a' <= (c) && (c) <= 'i') \
2606 || ('j' <= (c) && (c) <= 'r') \
2607 || ('s' <= (c) && (c) <= 'z'))
2608 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2609 #endif
2610
2611 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2612 int
2613 main ()
2614 {
2615 int i;
2616 for (i = 0; i < 256; i++)
2617 if (XOR (islower (i), ISLOWER (i))
2618 || toupper (i) != TOUPPER (i))
2619 exit(2);
2620 exit (0);
2621 }
2622 _ACEOF
2623 rm -f conftest$ac_exeext
2624 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2625 (eval $ac_link) 2>&5
2626 ac_status=$?
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2630 (eval $ac_try) 2>&5
2631 ac_status=$?
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); }; }; then
2634 :
2635 else
2636 echo "$as_me: program exited with status $ac_status" >&5
2637 echo "$as_me: failed program was:" >&5
2638 sed 's/^/| /' conftest.$ac_ext >&5
2639
2640 ( exit $ac_status )
2641 ac_cv_header_stdc=no
2642 fi
2643 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2644 fi
2645 fi
2646 fi
2647 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2648 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2649 if test $ac_cv_header_stdc = yes; then
2650
2651 cat >>confdefs.h <<\_ACEOF
2652 #define STDC_HEADERS 1
2653 _ACEOF
2654
2655 fi
2656
2657 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2668 inttypes.h stdint.h unistd.h
2669 do
2670 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2671 echo "$as_me:$LINENO: checking for $ac_header" >&5
2672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2673 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2674 echo $ECHO_N "(cached) $ECHO_C" >&6
2675 else
2676 cat >conftest.$ac_ext <<_ACEOF
2677 /* confdefs.h. */
2678 _ACEOF
2679 cat confdefs.h >>conftest.$ac_ext
2680 cat >>conftest.$ac_ext <<_ACEOF
2681 /* end confdefs.h. */
2682 $ac_includes_default
2683
2684 #include <$ac_header>
2685 _ACEOF
2686 rm -f conftest.$ac_objext
2687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2688 (eval $ac_compile) 2>conftest.er1
2689 ac_status=$?
2690 grep -v '^ *+' conftest.er1 >conftest.err
2691 rm -f conftest.er1
2692 cat conftest.err >&5
2693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694 (exit $ac_status); } &&
2695 { ac_try='test -z "$ac_c_werror_flag"
2696 || test ! -s conftest.err'
2697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2698 (eval $ac_try) 2>&5
2699 ac_status=$?
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); }; } &&
2702 { ac_try='test -s conftest.$ac_objext'
2703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2704 (eval $ac_try) 2>&5
2705 ac_status=$?
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); }; }; then
2708 eval "$as_ac_Header=yes"
2709 else
2710 echo "$as_me: failed program was:" >&5
2711 sed 's/^/| /' conftest.$ac_ext >&5
2712
2713 eval "$as_ac_Header=no"
2714 fi
2715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2716 fi
2717 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2718 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2719 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2720 cat >>confdefs.h <<_ACEOF
2721 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2722 _ACEOF
2723
2724 fi
2725
2726 done
2727
2728
2729
2730
2731 for ac_header in stdlib.h string.h
2732 do
2733 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2734 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2735 echo "$as_me:$LINENO: checking for $ac_header" >&5
2736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2737 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2738 echo $ECHO_N "(cached) $ECHO_C" >&6
2739 fi
2740 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2741 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2742 else
2743 # Is the header compilable?
2744 echo "$as_me:$LINENO: checking $ac_header usability" >&5
2745 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
2746 cat >conftest.$ac_ext <<_ACEOF
2747 /* confdefs.h. */
2748 _ACEOF
2749 cat confdefs.h >>conftest.$ac_ext
2750 cat >>conftest.$ac_ext <<_ACEOF
2751 /* end confdefs.h. */
2752 $ac_includes_default
2753 #include <$ac_header>
2754 _ACEOF
2755 rm -f conftest.$ac_objext
2756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2757 (eval $ac_compile) 2>conftest.er1
2758 ac_status=$?
2759 grep -v '^ *+' conftest.er1 >conftest.err
2760 rm -f conftest.er1
2761 cat conftest.err >&5
2762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763 (exit $ac_status); } &&
2764 { ac_try='test -z "$ac_c_werror_flag"
2765 || test ! -s conftest.err'
2766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2767 (eval $ac_try) 2>&5
2768 ac_status=$?
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); }; } &&
2771 { ac_try='test -s conftest.$ac_objext'
2772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2773 (eval $ac_try) 2>&5
2774 ac_status=$?
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); }; }; then
2777 ac_header_compiler=yes
2778 else
2779 echo "$as_me: failed program was:" >&5
2780 sed 's/^/| /' conftest.$ac_ext >&5
2781
2782 ac_header_compiler=no
2783 fi
2784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2785 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2786 echo "${ECHO_T}$ac_header_compiler" >&6
2787
2788 # Is the header present?
2789 echo "$as_me:$LINENO: checking $ac_header presence" >&5
2790 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
2791 cat >conftest.$ac_ext <<_ACEOF
2792 /* confdefs.h. */
2793 _ACEOF
2794 cat confdefs.h >>conftest.$ac_ext
2795 cat >>conftest.$ac_ext <<_ACEOF
2796 /* end confdefs.h. */
2797 #include <$ac_header>
2798 _ACEOF
2799 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2800 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2801 ac_status=$?
2802 grep -v '^ *+' conftest.er1 >conftest.err
2803 rm -f conftest.er1
2804 cat conftest.err >&5
2805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806 (exit $ac_status); } >/dev/null; then
2807 if test -s conftest.err; then
2808 ac_cpp_err=$ac_c_preproc_warn_flag
2809 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2810 else
2811 ac_cpp_err=
2812 fi
2813 else
2814 ac_cpp_err=yes
2815 fi
2816 if test -z "$ac_cpp_err"; then
2817 ac_header_preproc=yes
2818 else
2819 echo "$as_me: failed program was:" >&5
2820 sed 's/^/| /' conftest.$ac_ext >&5
2821
2822 ac_header_preproc=no
2823 fi
2824 rm -f conftest.err conftest.$ac_ext
2825 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2826 echo "${ECHO_T}$ac_header_preproc" >&6
2827
2828 # So? What about this header?
2829 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
2830 yes:no: )
2831 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
2832 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2833 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
2834 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
2835 ac_header_preproc=yes
2836 ;;
2837 no:yes:* )
2838 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
2839 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2840 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
2841 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
2842 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
2843 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
2844 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
2845 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
2846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2847 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
2848 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
2849 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
2850 (
2851 cat <<\_ASBOX
2852 ## --------------------------------- ##
2853 ## Report this to BUG-REPORT-ADDRESS ##
2854 ## --------------------------------- ##
2855 _ASBOX
2856 ) |
2857 sed "s/^/$as_me: WARNING: /" >&2
2858 ;;
2859 esac
2860 echo "$as_me:$LINENO: checking for $ac_header" >&5
2861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2862 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2863 echo $ECHO_N "(cached) $ECHO_C" >&6
2864 else
2865 eval "$as_ac_Header=\$ac_header_preproc"
2866 fi
2867 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2868 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2869
2870 fi
2871 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2872 cat >>confdefs.h <<_ACEOF
2873 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2874 _ACEOF
2875
2876 fi
2877
2878 done
2879
2880
2881 # Checks for typedefs, structures, and compiler characteristics.
2882 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
2883 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
2884 if test "${ac_cv_c_const+set}" = set; then
2885 echo $ECHO_N "(cached) $ECHO_C" >&6
2886 else
2887 cat >conftest.$ac_ext <<_ACEOF
2888 /* confdefs.h. */
2889 _ACEOF
2890 cat confdefs.h >>conftest.$ac_ext
2891 cat >>conftest.$ac_ext <<_ACEOF
2892 /* end confdefs.h. */
2893
2894 int
2895 main ()
2896 {
2897 /* FIXME: Include the comments suggested by Paul. */
2898 #ifndef __cplusplus
2899 /* Ultrix mips cc rejects this. */
2900 typedef int charset[2];
2901 const charset x;
2902 /* SunOS 4.1.1 cc rejects this. */
2903 char const *const *ccp;
2904 char **p;
2905 /* NEC SVR4.0.2 mips cc rejects this. */
2906 struct point {int x, y;};
2907 static struct point const zero = {0,0};
2908 /* AIX XL C 1.02.0.0 rejects this.
2909 It does not let you subtract one const X* pointer from another in
2910 an arm of an if-expression whose if-part is not a constant
2911 expression */
2912 const char *g = "string";
2913 ccp = &g + (g ? g-g : 0);
2914 /* HPUX 7.0 cc rejects these. */
2915 ++ccp;
2916 p = (char**) ccp;
2917 ccp = (char const *const *) p;
2918 { /* SCO 3.2v4 cc rejects this. */
2919 char *t;
2920 char const *s = 0 ? (char *) 0 : (char const *) 0;
2921
2922 *t++ = 0;
2923 }
2924 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2925 int x[] = {25, 17};
2926 const int *foo = &x[0];
2927 ++foo;
2928 }
2929 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2930 typedef const int *iptr;
2931 iptr p = 0;
2932 ++p;
2933 }
2934 { /* AIX XL C 1.02.0.0 rejects this saying
2935 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2936 struct s { int j; const int *ap[3]; };
2937 struct s *b; b->j = 5;
2938 }
2939 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2940 const int foo = 10;
2941 }
2942 #endif
2943
2944 ;
2945 return 0;
2946 }
2947 _ACEOF
2948 rm -f conftest.$ac_objext
2949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2950 (eval $ac_compile) 2>conftest.er1
2951 ac_status=$?
2952 grep -v '^ *+' conftest.er1 >conftest.err
2953 rm -f conftest.er1
2954 cat conftest.err >&5
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); } &&
2957 { ac_try='test -z "$ac_c_werror_flag"
2958 || test ! -s conftest.err'
2959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2960 (eval $ac_try) 2>&5
2961 ac_status=$?
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); }; } &&
2964 { ac_try='test -s conftest.$ac_objext'
2965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2966 (eval $ac_try) 2>&5
2967 ac_status=$?
2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); }; }; then
2970 ac_cv_c_const=yes
2971 else
2972 echo "$as_me: failed program was:" >&5
2973 sed 's/^/| /' conftest.$ac_ext >&5
2974
2975 ac_cv_c_const=no
2976 fi
2977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2978 fi
2979 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
2980 echo "${ECHO_T}$ac_cv_c_const" >&6
2981 if test $ac_cv_c_const = no; then
2982
2983 cat >>confdefs.h <<\_ACEOF
2984 #define const
2985 _ACEOF
2986
2987 fi
2988
2989
2990 # Checks for library functions.
2991 echo "$as_me:$LINENO: checking for error_at_line" >&5
2992 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
2993 if test "${ac_cv_lib_error_at_line+set}" = set; then
2994 echo $ECHO_N "(cached) $ECHO_C" >&6
2995 else
2996 cat >conftest.$ac_ext <<_ACEOF
2997 /* confdefs.h. */
2998 _ACEOF
2999 cat confdefs.h >>conftest.$ac_ext
3000 cat >>conftest.$ac_ext <<_ACEOF
3001 /* end confdefs.h. */
3002 $ac_includes_default
3003 int
3004 main ()
3005 {
3006 error_at_line (0, 0, "", 0, "");
3007 ;
3008 return 0;
3009 }
3010 _ACEOF
3011 rm -f conftest.$ac_objext conftest$ac_exeext
3012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3013 (eval $ac_link) 2>conftest.er1
3014 ac_status=$?
3015 grep -v '^ *+' conftest.er1 >conftest.err
3016 rm -f conftest.er1
3017 cat conftest.err >&5
3018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019 (exit $ac_status); } &&
3020 { ac_try='test -z "$ac_c_werror_flag"
3021 || test ! -s conftest.err'
3022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3023 (eval $ac_try) 2>&5
3024 ac_status=$?
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); }; } &&
3027 { ac_try='test -s conftest$ac_exeext'
3028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3029 (eval $ac_try) 2>&5
3030 ac_status=$?
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); }; }; then
3033 ac_cv_lib_error_at_line=yes
3034 else
3035 echo "$as_me: failed program was:" >&5
3036 sed 's/^/| /' conftest.$ac_ext >&5
3037
3038 ac_cv_lib_error_at_line=no
3039 fi
3040 rm -f conftest.err conftest.$ac_objext \
3041 conftest$ac_exeext conftest.$ac_ext
3042 fi
3043 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
3044 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
3045 if test $ac_cv_lib_error_at_line = no; then
3046 case $LIBOBJS in
3047 "error.$ac_objext" | \
3048 *" error.$ac_objext" | \
3049 "error.$ac_objext "* | \
3050 *" error.$ac_objext "* ) ;;
3051 *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
3052 esac
3053
3054 fi
3055
3056
3057 for ac_func in vprintf
3058 do
3059 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3060 echo "$as_me:$LINENO: checking for $ac_func" >&5
3061 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3062 if eval "test \"\${$as_ac_var+set}\" = set"; then
3063 echo $ECHO_N "(cached) $ECHO_C" >&6
3064 else
3065 cat >conftest.$ac_ext <<_ACEOF
3066 /* confdefs.h. */
3067 _ACEOF
3068 cat confdefs.h >>conftest.$ac_ext
3069 cat >>conftest.$ac_ext <<_ACEOF
3070 /* end confdefs.h. */
3071 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3072 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3073 #define $ac_func innocuous_$ac_func
3074
3075 /* System header to define __stub macros and hopefully few prototypes,
3076 which can conflict with char $ac_func (); below.
3077 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3078 <limits.h> exists even on freestanding compilers. */
3079
3080 #ifdef __STDC__
3081 # include <limits.h>
3082 #else
3083 # include <assert.h>
3084 #endif
3085
3086 #undef $ac_func
3087
3088 /* Override any gcc2 internal prototype to avoid an error. */
3089 #ifdef __cplusplus
3090 extern "C"
3091 {
3092 #endif
3093 /* We use char because int might match the return type of a gcc2
3094 builtin and then its argument prototype would still apply. */
3095 char $ac_func ();
3096 /* The GNU C library defines this for functions which it implements
3097 to always fail with ENOSYS. Some functions are actually named
3098 something starting with __ and the normal name is an alias. */
3099 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3100 choke me
3101 #else
3102 char (*f) () = $ac_func;
3103 #endif
3104 #ifdef __cplusplus
3105 }
3106 #endif
3107
3108 int
3109 main ()
3110 {
3111 return f != $ac_func;
3112 ;
3113 return 0;
3114 }
3115 _ACEOF
3116 rm -f conftest.$ac_objext conftest$ac_exeext
3117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3118 (eval $ac_link) 2>conftest.er1
3119 ac_status=$?
3120 grep -v '^ *+' conftest.er1 >conftest.err
3121 rm -f conftest.er1
3122 cat conftest.err >&5
3123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3124 (exit $ac_status); } &&
3125 { ac_try='test -z "$ac_c_werror_flag"
3126 || test ! -s conftest.err'
3127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3128 (eval $ac_try) 2>&5
3129 ac_status=$?
3130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3131 (exit $ac_status); }; } &&
3132 { ac_try='test -s conftest$ac_exeext'
3133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3134 (eval $ac_try) 2>&5
3135 ac_status=$?
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); }; }; then
3138 eval "$as_ac_var=yes"
3139 else
3140 echo "$as_me: failed program was:" >&5
3141 sed 's/^/| /' conftest.$ac_ext >&5
3142
3143 eval "$as_ac_var=no"
3144 fi
3145 rm -f conftest.err conftest.$ac_objext \
3146 conftest$ac_exeext conftest.$ac_ext
3147 fi
3148 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3149 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3150 if test `eval echo '${'$as_ac_var'}'` = yes; then
3151 cat >>confdefs.h <<_ACEOF
3152 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3153 _ACEOF
3154
3155 echo "$as_me:$LINENO: checking for _doprnt" >&5
3156 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
3157 if test "${ac_cv_func__doprnt+set}" = set; then
3158 echo $ECHO_N "(cached) $ECHO_C" >&6
3159 else
3160 cat >conftest.$ac_ext <<_ACEOF
3161 /* confdefs.h. */
3162 _ACEOF
3163 cat confdefs.h >>conftest.$ac_ext
3164 cat >>conftest.$ac_ext <<_ACEOF
3165 /* end confdefs.h. */
3166 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
3167 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3168 #define _doprnt innocuous__doprnt
3169
3170 /* System header to define __stub macros and hopefully few prototypes,
3171 which can conflict with char _doprnt (); below.
3172 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3173 <limits.h> exists even on freestanding compilers. */
3174
3175 #ifdef __STDC__
3176 # include <limits.h>
3177 #else
3178 # include <assert.h>
3179 #endif
3180
3181 #undef _doprnt
3182
3183 /* Override any gcc2 internal prototype to avoid an error. */
3184 #ifdef __cplusplus
3185 extern "C"
3186 {
3187 #endif
3188 /* We use char because int might match the return type of a gcc2
3189 builtin and then its argument prototype would still apply. */
3190 char _doprnt ();
3191 /* The GNU C library defines this for functions which it implements
3192 to always fail with ENOSYS. Some functions are actually named
3193 something starting with __ and the normal name is an alias. */
3194 #if defined (__stub__doprnt) || defined (__stub____doprnt)
3195 choke me
3196 #else
3197 char (*f) () = _doprnt;
3198 #endif
3199 #ifdef __cplusplus
3200 }
3201 #endif
3202
3203 int
3204 main ()
3205 {
3206 return f != _doprnt;
3207 ;
3208 return 0;
3209 }
3210 _ACEOF
3211 rm -f conftest.$ac_objext conftest$ac_exeext
3212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3213 (eval $ac_link) 2>conftest.er1
3214 ac_status=$?
3215 grep -v '^ *+' conftest.er1 >conftest.err
3216 rm -f conftest.er1
3217 cat conftest.err >&5
3218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219 (exit $ac_status); } &&
3220 { ac_try='test -z "$ac_c_werror_flag"
3221 || test ! -s conftest.err'
3222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3223 (eval $ac_try) 2>&5
3224 ac_status=$?
3225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226 (exit $ac_status); }; } &&
3227 { ac_try='test -s conftest$ac_exeext'
3228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3229 (eval $ac_try) 2>&5
3230 ac_status=$?
3231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232 (exit $ac_status); }; }; then
3233 ac_cv_func__doprnt=yes
3234 else
3235 echo "$as_me: failed program was:" >&5
3236 sed 's/^/| /' conftest.$ac_ext >&5
3237
3238 ac_cv_func__doprnt=no
3239 fi
3240 rm -f conftest.err conftest.$ac_objext \
3241 conftest$ac_exeext conftest.$ac_ext
3242 fi
3243 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
3244 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
3245 if test $ac_cv_func__doprnt = yes; then
3246
3247 cat >>confdefs.h <<\_ACEOF
3248 #define HAVE_DOPRNT 1
3249 _ACEOF
3250
3251 fi
3252
3253 fi
3254 done
3255
3256
3257
3258
3259
3260 for ac_func in memset socket strchr
3261 do
3262 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3263 echo "$as_me:$LINENO: checking for $ac_func" >&5
3264 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3265 if eval "test \"\${$as_ac_var+set}\" = set"; then
3266 echo $ECHO_N "(cached) $ECHO_C" >&6
3267 else
3268 cat >conftest.$ac_ext <<_ACEOF
3269 /* confdefs.h. */
3270 _ACEOF
3271 cat confdefs.h >>conftest.$ac_ext
3272 cat >>conftest.$ac_ext <<_ACEOF
3273 /* end confdefs.h. */
3274 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3275 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3276 #define $ac_func innocuous_$ac_func
3277
3278 /* System header to define __stub macros and hopefully few prototypes,
3279 which can conflict with char $ac_func (); below.
3280 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3281 <limits.h> exists even on freestanding compilers. */
3282
3283 #ifdef __STDC__
3284 # include <limits.h>
3285 #else
3286 # include <assert.h>
3287 #endif
3288
3289 #undef $ac_func
3290
3291 /* Override any gcc2 internal prototype to avoid an error. */
3292 #ifdef __cplusplus
3293 extern "C"
3294 {
3295 #endif
3296 /* We use char because int might match the return type of a gcc2
3297 builtin and then its argument prototype would still apply. */
3298 char $ac_func ();
3299 /* The GNU C library defines this for functions which it implements
3300 to always fail with ENOSYS. Some functions are actually named
3301 something starting with __ and the normal name is an alias. */
3302 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3303 choke me
3304 #else
3305 char (*f) () = $ac_func;
3306 #endif
3307 #ifdef __cplusplus
3308 }
3309 #endif
3310
3311 int
3312 main ()
3313 {
3314 return f != $ac_func;
3315 ;
3316 return 0;
3317 }
3318 _ACEOF
3319 rm -f conftest.$ac_objext conftest$ac_exeext
3320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3321 (eval $ac_link) 2>conftest.er1
3322 ac_status=$?
3323 grep -v '^ *+' conftest.er1 >conftest.err
3324 rm -f conftest.er1
3325 cat conftest.err >&5
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); } &&
3328 { ac_try='test -z "$ac_c_werror_flag"
3329 || test ! -s conftest.err'
3330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3331 (eval $ac_try) 2>&5
3332 ac_status=$?
3333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334 (exit $ac_status); }; } &&
3335 { ac_try='test -s conftest$ac_exeext'
3336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3337 (eval $ac_try) 2>&5
3338 ac_status=$?
3339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3340 (exit $ac_status); }; }; then
3341 eval "$as_ac_var=yes"
3342 else
3343 echo "$as_me: failed program was:" >&5
3344 sed 's/^/| /' conftest.$ac_ext >&5
3345
3346 eval "$as_ac_var=no"
3347 fi
3348 rm -f conftest.err conftest.$ac_objext \
3349 conftest$ac_exeext conftest.$ac_ext
3350 fi
3351 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3352 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3353 if test `eval echo '${'$as_ac_var'}'` = yes; then
3354 cat >>confdefs.h <<_ACEOF
3355 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3356 _ACEOF
3357
3358 fi
3359 done
3360
3361 ac_config_files="$ac_config_files Makefile"
3362 cat >confcache <<\_ACEOF
3363 # This file is a shell script that caches the results of configure
3364 # tests run on this system so they can be shared between configure
3365 # scripts and configure runs, see configure's option --config-cache.
3366 # It is not useful on other systems. If it contains results you don't
3367 # want to keep, you may remove or edit it.
3368 #
3369 # config.status only pays attention to the cache file if you give it
3370 # the --recheck option to rerun configure.
3371 #
3372 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3373 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3374 # following values.
3375
3376 _ACEOF
3377
3378 # The following way of writing the cache mishandles newlines in values,
3379 # but we know of no workaround that is simple, portable, and efficient.
3380 # So, don't put newlines in cache variables' values.
3381 # Ultrix sh set writes to stderr and can't be redirected directly,
3382 # and sets the high bit in the cache file unless we assign to the vars.
3383 {
3384 (set) 2>&1 |
3385 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3386 *ac_space=\ *)
3387 # `set' does not quote correctly, so add quotes (double-quote
3388 # substitution turns \\\\ into \\, and sed turns \\ into \).
3389 sed -n \
3390 "s/'/'\\\\''/g;
3391 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3392 ;;
3393 *)
3394 # `set' quotes correctly as required by POSIX, so do not add quotes.
3395 sed -n \
3396 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3397 ;;
3398 esac;
3399 } |
3400 sed '
3401 t clear
3402 : clear
3403 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3404 t end
3405 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3406 : end' >>confcache
3407 if diff $cache_file confcache >/dev/null 2>&1; then :; else
3408 if test -w $cache_file; then
3409 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3410 cat confcache >$cache_file
3411 else
3412 echo "not updating unwritable cache $cache_file"
3413 fi
3414 fi
3415 rm -f confcache
3416
3417 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3418 # Let make expand exec_prefix.
3419 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3420
3421 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3422 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3423 # trailing colons and then remove the whole line if VPATH becomes empty
3424 # (actually we leave an empty line to preserve line numbers).
3425 if test "x$srcdir" = x.; then
3426 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3427 s/:*\$(srcdir):*/:/;
3428 s/:*\${srcdir}:*/:/;
3429 s/:*@srcdir@:*/:/;
3430 s/^\([^=]*=[ ]*\):*/\1/;
3431 s/:*$//;
3432 s/^[^=]*=[ ]*$//;
3433 }'
3434 fi
3435
3436 DEFS=-DHAVE_CONFIG_H
3437
3438 ac_libobjs=
3439 ac_ltlibobjs=
3440 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3441 # 1. Remove the extension, and $U if already installed.
3442 ac_i=`echo "$ac_i" |
3443 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3444 # 2. Add them.
3445 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3446 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3447 done
3448 LIBOBJS=$ac_libobjs
3449
3450 LTLIBOBJS=$ac_ltlibobjs
3451
3452
3453
3454 : ${CONFIG_STATUS=./config.status}
3455 ac_clean_files_save=$ac_clean_files
3456 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3457 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3458 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3459 cat >$CONFIG_STATUS <<_ACEOF
3460 #! $SHELL
3461 # Generated by $as_me.
3462 # Run this file to recreate the current configuration.
3463 # Compiler output produced by configure, useful for debugging
3464 # configure, is in config.log if it exists.
3465
3466 debug=false
3467 ac_cs_recheck=false
3468 ac_cs_silent=false
3469 SHELL=\${CONFIG_SHELL-$SHELL}
3470 _ACEOF
3471
3472 cat >>$CONFIG_STATUS <<\_ACEOF
3473 ## --------------------- ##
3474 ## M4sh Initialization. ##
3475 ## --------------------- ##
3476
3477 # Be Bourne compatible
3478 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3479 emulate sh
3480 NULLCMD=:
3481 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3482 # is contrary to our usage. Disable this feature.
3483 alias -g '${1+"$@"}'='"$@"'
3484 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3485 set -o posix
3486 fi
3487 DUALCASE=1; export DUALCASE # for MKS sh
3488
3489 # Support unset when possible.
3490 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3491 as_unset=unset
3492 else
3493 as_unset=false
3494 fi
3495
3496
3497 # Work around bugs in pre-3.0 UWIN ksh.
3498 $as_unset ENV MAIL MAILPATH
3499 PS1='$ '
3500 PS2='> '
3501 PS4='+ '
3502
3503 # NLS nuisances.
3504 for as_var in \
3505 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3506 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3507 LC_TELEPHONE LC_TIME
3508 do
3509 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3510 eval $as_var=C; export $as_var
3511 else
3512 $as_unset $as_var
3513 fi
3514 done
3515
3516 # Required to use basename.
3517 if expr a : '\(a\)' >/dev/null 2>&1; then
3518 as_expr=expr
3519 else
3520 as_expr=false
3521 fi
3522
3523 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3524 as_basename=basename
3525 else
3526 as_basename=false
3527 fi
3528
3529
3530 # Name of the executable.
3531 as_me=`$as_basename "$0" ||
3532 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3533 X"$0" : 'X\(//\)$' \| \
3534 X"$0" : 'X\(/\)$' \| \
3535 . : '\(.\)' 2>/dev/null ||
3536 echo X/"$0" |
3537 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3538 /^X\/\(\/\/\)$/{ s//\1/; q; }
3539 /^X\/\(\/\).*/{ s//\1/; q; }
3540 s/.*/./; q'`
3541
3542
3543 # PATH needs CR, and LINENO needs CR and PATH.
3544 # Avoid depending upon Character Ranges.
3545 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3546 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3547 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3548 as_cr_digits='0123456789'
3549 as_cr_alnum=$as_cr_Letters$as_cr_digits
3550
3551 # The user is always right.
3552 if test "${PATH_SEPARATOR+set}" != set; then
3553 echo "#! /bin/sh" >conf$$.sh
3554 echo "exit 0" >>conf$$.sh
3555 chmod +x conf$$.sh
3556 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3557 PATH_SEPARATOR=';'
3558 else
3559 PATH_SEPARATOR=:
3560 fi
3561 rm -f conf$$.sh
3562 fi
3563
3564
3565 as_lineno_1=$LINENO
3566 as_lineno_2=$LINENO
3567 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3568 test "x$as_lineno_1" != "x$as_lineno_2" &&
3569 test "x$as_lineno_3" = "x$as_lineno_2" || {
3570 # Find who we are. Look in the path if we contain no path at all
3571 # relative or not.
3572 case $0 in
3573 *[\\/]* ) as_myself=$0 ;;
3574 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3575 for as_dir in $PATH
3576 do
3577 IFS=$as_save_IFS
3578 test -z "$as_dir" && as_dir=.
3579 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3580 done
3581
3582 ;;
3583 esac
3584 # We did not find ourselves, most probably we were run as `sh COMMAND'
3585 # in which case we are not to be found in the path.
3586 if test "x$as_myself" = x; then
3587 as_myself=$0
3588 fi
3589 if test ! -f "$as_myself"; then
3590 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3591 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3592 { (exit 1); exit 1; }; }
3593 fi
3594 case $CONFIG_SHELL in
3595 '')
3596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3597 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3598 do
3599 IFS=$as_save_IFS
3600 test -z "$as_dir" && as_dir=.
3601 for as_base in sh bash ksh sh5; do
3602 case $as_dir in
3603 /*)
3604 if ("$as_dir/$as_base" -c '
3605 as_lineno_1=$LINENO
3606 as_lineno_2=$LINENO
3607 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3608 test "x$as_lineno_1" != "x$as_lineno_2" &&
3609 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
3610 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3611 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3612 CONFIG_SHELL=$as_dir/$as_base
3613 export CONFIG_SHELL
3614 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3615 fi;;
3616 esac
3617 done
3618 done
3619 ;;
3620 esac
3621
3622 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3623 # uniformly replaced by the line number. The first 'sed' inserts a
3624 # line-number line before each line; the second 'sed' does the real
3625 # work. The second script uses 'N' to pair each line-number line
3626 # with the numbered line, and appends trailing '-' during
3627 # substitution so that $LINENO is not a special case at line end.
3628 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3629 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
3630 sed '=' <$as_myself |
3631 sed '
3632 N
3633 s,$,-,
3634 : loop
3635 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3636 t loop
3637 s,-$,,
3638 s,^['$as_cr_digits']*\n,,
3639 ' >$as_me.lineno &&
3640 chmod +x $as_me.lineno ||
3641 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3642 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3643 { (exit 1); exit 1; }; }
3644
3645 # Don't try to exec as it changes $[0], causing all sort of problems
3646 # (the dirname of $[0] is not the place where we might find the
3647 # original and so on. Autoconf is especially sensible to this).
3648 . ./$as_me.lineno
3649 # Exit status is that of the last command.
3650 exit
3651 }
3652
3653
3654 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3655 *c*,-n*) ECHO_N= ECHO_C='
3656 ' ECHO_T=' ' ;;
3657 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3658 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
3659 esac
3660
3661 if expr a : '\(a\)' >/dev/null 2>&1; then
3662 as_expr=expr
3663 else
3664 as_expr=false
3665 fi
3666
3667 rm -f conf$$ conf$$.exe conf$$.file
3668 echo >conf$$.file
3669 if ln -s conf$$.file conf$$ 2>/dev/null; then
3670 # We could just check for DJGPP; but this test a) works b) is more generic
3671 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3672 if test -f conf$$.exe; then
3673 # Don't use ln at all; we don't have any links
3674 as_ln_s='cp -p'
3675 else
3676 as_ln_s='ln -s'
3677 fi
3678 elif ln conf$$.file conf$$ 2>/dev/null; then
3679 as_ln_s=ln
3680 else
3681 as_ln_s='cp -p'
3682 fi
3683 rm -f conf$$ conf$$.exe conf$$.file
3684
3685 if mkdir -p . 2>/dev/null; then
3686 as_mkdir_p=:
3687 else
3688 test -d ./-p && rmdir ./-p
3689 as_mkdir_p=false
3690 fi
3691
3692 as_executable_p="test -f"
3693
3694 # Sed expression to map a string onto a valid CPP name.
3695 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3696
3697 # Sed expression to map a string onto a valid variable name.
3698 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3699
3700
3701 # IFS
3702 # We need space, tab and new line, in precisely that order.
3703 as_nl='
3704 '
3705 IFS=" $as_nl"
3706
3707 # CDPATH.
3708 $as_unset CDPATH
3709
3710 exec 6>&1
3711
3712 # Open the log real soon, to keep \$[0] and so on meaningful, and to
3713 # report actual input values of CONFIG_FILES etc. instead of their
3714 # values after options handling. Logging --version etc. is OK.
3715 exec 5>>config.log
3716 {
3717 echo
3718 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3719 ## Running $as_me. ##
3720 _ASBOX
3721 } >&5
3722 cat >&5 <<_CSEOF
3723
3724 This file was extended by FULL-PACKAGE-NAME $as_me VERSION, which was
3725 generated by GNU Autoconf 2.59. Invocation command line was
3726
3727 CONFIG_FILES = $CONFIG_FILES
3728 CONFIG_HEADERS = $CONFIG_HEADERS
3729 CONFIG_LINKS = $CONFIG_LINKS
3730 CONFIG_COMMANDS = $CONFIG_COMMANDS
3731 $ $0 $@
3732
3733 _CSEOF
3734 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3735 echo >&5
3736 _ACEOF
3737
3738 # Files that config.status was made for.
3739 if test -n "$ac_config_files"; then
3740 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3741 fi
3742
3743 if test -n "$ac_config_headers"; then
3744 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3745 fi
3746
3747 if test -n "$ac_config_links"; then
3748 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3749 fi
3750
3751 if test -n "$ac_config_commands"; then
3752 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3753 fi
3754
3755 cat >>$CONFIG_STATUS <<\_ACEOF
3756
3757 ac_cs_usage="\
3758 \`$as_me' instantiates files from templates according to the
3759 current configuration.
3760
3761 Usage: $0 [OPTIONS] [FILE]...
3762
3763 -h, --help print this help, then exit
3764 -V, --version print version number, then exit
3765 -q, --quiet do not print progress messages
3766 -d, --debug don't remove temporary files
3767 --recheck update $as_me by reconfiguring in the same conditions
3768 --file=FILE[:TEMPLATE]
3769 instantiate the configuration file FILE
3770 --header=FILE[:TEMPLATE]
3771 instantiate the configuration header FILE
3772
3773 Configuration files:
3774 $config_files
3775
3776 Configuration headers:
3777 $config_headers
3778
3779 Report bugs to <[email protected]>."
3780 _ACEOF
3781
3782 cat >>$CONFIG_STATUS <<_ACEOF
3783 ac_cs_version="\\
3784 FULL-PACKAGE-NAME config.status VERSION
3785 configured by $0, generated by GNU Autoconf 2.59,
3786 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3787
3788 Copyright (C) 2003 Free Software Foundation, Inc.
3789 This config.status script is free software; the Free Software Foundation
3790 gives unlimited permission to copy, distribute and modify it."
3791 srcdir=$srcdir
3792 _ACEOF
3793
3794 cat >>$CONFIG_STATUS <<\_ACEOF
3795 # If no file are specified by the user, then we need to provide default
3796 # value. By we need to know if files were specified by the user.
3797 ac_need_defaults=:
3798 while test $# != 0
3799 do
3800 case $1 in
3801 --*=*)
3802 ac_option=`expr "x$1" : 'x\([^=]*\)='`
3803 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3804 ac_shift=:
3805 ;;
3806 -*)
3807 ac_option=$1
3808 ac_optarg=$2
3809 ac_shift=shift
3810 ;;
3811 *) # This is not an option, so the user has probably given explicit
3812 # arguments.
3813 ac_option=$1
3814 ac_need_defaults=false;;
3815 esac
3816
3817 case $ac_option in
3818 # Handling of the options.
3819 _ACEOF
3820 cat >>$CONFIG_STATUS <<\_ACEOF
3821 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3822 ac_cs_recheck=: ;;
3823 --version | --vers* | -V )
3824 echo "$ac_cs_version"; exit 0 ;;
3825 --he | --h)
3826 # Conflict between --help and --header
3827 { { echo "$as_me:$LINENO: error: ambiguous option: $1
3828 Try \`$0 --help' for more information." >&5
3829 echo "$as_me: error: ambiguous option: $1
3830 Try \`$0 --help' for more information." >&2;}
3831 { (exit 1); exit 1; }; };;
3832 --help | --hel | -h )
3833 echo "$ac_cs_usage"; exit 0 ;;
3834 --debug | --d* | -d )
3835 debug=: ;;
3836 --file | --fil | --fi | --f )
3837 $ac_shift
3838 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
3839 ac_need_defaults=false;;
3840 --header | --heade | --head | --hea )
3841 $ac_shift
3842 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
3843 ac_need_defaults=false;;
3844 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3845 | -silent | --silent | --silen | --sile | --sil | --si | --s)
3846 ac_cs_silent=: ;;
3847
3848 # This is an error.
3849 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
3850 Try \`$0 --help' for more information." >&5
3851 echo "$as_me: error: unrecognized option: $1
3852 Try \`$0 --help' for more information." >&2;}
3853 { (exit 1); exit 1; }; } ;;
3854
3855 *) ac_config_targets="$ac_config_targets $1" ;;
3856
3857 esac
3858 shift
3859 done
3860
3861 ac_configure_extra_args=
3862
3863 if $ac_cs_silent; then
3864 exec 6>/dev/null
3865 ac_configure_extra_args="$ac_configure_extra_args --silent"
3866 fi
3867
3868 _ACEOF
3869 cat >>$CONFIG_STATUS <<_ACEOF
3870 if \$ac_cs_recheck; then
3871 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
3872 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3873 fi
3874
3875 _ACEOF
3876
3877
3878
3879
3880
3881 cat >>$CONFIG_STATUS <<\_ACEOF
3882 for ac_config_target in $ac_config_targets
3883 do
3884 case "$ac_config_target" in
3885 # Handling of arguments.
3886 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3887 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
3888 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3889 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3890 { (exit 1); exit 1; }; };;
3891 esac
3892 done
3893
3894 # If the user did not use the arguments to specify the items to instantiate,
3895 # then the envvar interface is used. Set only those that are not.
3896 # We use the long form for the default assignment because of an extremely
3897 # bizarre bug on SunOS 4.1.3.
3898 if $ac_need_defaults; then
3899 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3900 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
3901 fi
3902
3903 # Have a temporary directory for convenience. Make it in the build tree
3904 # simply because there is no reason to put it here, and in addition,
3905 # creating and moving files from /tmp can sometimes cause problems.
3906 # Create a temporary directory, and hook for its removal unless debugging.
3907 $debug ||
3908 {
3909 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3910 trap '{ (exit 1); exit 1; }' 1 2 13 15
3911 }
3912
3913 # Create a (secure) tmp directory for tmp files.
3914
3915 {
3916 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
3917 test -n "$tmp" && test -d "$tmp"
3918 } ||
3919 {
3920 tmp=./confstat$$-$RANDOM
3921 (umask 077 && mkdir $tmp)
3922 } ||
3923 {
3924 echo "$me: cannot create a temporary directory in ." >&2
3925 { (exit 1); exit 1; }
3926 }
3927
3928 _ACEOF
3929
3930 cat >>$CONFIG_STATUS <<_ACEOF
3931
3932 #
3933 # CONFIG_FILES section.
3934 #
3935
3936 # No need to generate the scripts if there are no CONFIG_FILES.
3937 # This happens for instance when ./config.status config.h
3938 if test -n "\$CONFIG_FILES"; then
3939 # Protect against being on the right side of a sed subst in config.status.
3940 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3941 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3942 s,@SHELL@,$SHELL,;t t
3943 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3944 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3945 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3946 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3947 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3948 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3949 s,@exec_prefix@,$exec_prefix,;t t
3950 s,@prefix@,$prefix,;t t
3951 s,@program_transform_name@,$program_transform_name,;t t
3952 s,@bindir@,$bindir,;t t
3953 s,@sbindir@,$sbindir,;t t
3954 s,@libexecdir@,$libexecdir,;t t
3955 s,@datadir@,$datadir,;t t
3956 s,@sysconfdir@,$sysconfdir,;t t
3957 s,@sharedstatedir@,$sharedstatedir,;t t
3958 s,@localstatedir@,$localstatedir,;t t
3959 s,@libdir@,$libdir,;t t
3960 s,@includedir@,$includedir,;t t
3961 s,@oldincludedir@,$oldincludedir,;t t
3962 s,@infodir@,$infodir,;t t
3963 s,@mandir@,$mandir,;t t
3964 s,@build_alias@,$build_alias,;t t
3965 s,@host_alias@,$host_alias,;t t
3966 s,@target_alias@,$target_alias,;t t
3967 s,@DEFS@,$DEFS,;t t
3968 s,@ECHO_C@,$ECHO_C,;t t
3969 s,@ECHO_N@,$ECHO_N,;t t
3970 s,@ECHO_T@,$ECHO_T,;t t
3971 s,@LIBS@,$LIBS,;t t
3972 s,@CC@,$CC,;t t
3973 s,@CFLAGS@,$CFLAGS,;t t
3974 s,@LDFLAGS@,$LDFLAGS,;t t
3975 s,@CPPFLAGS@,$CPPFLAGS,;t t
3976 s,@ac_ct_CC@,$ac_ct_CC,;t t
3977 s,@EXEEXT@,$EXEEXT,;t t
3978 s,@OBJEXT@,$OBJEXT,;t t
3979 s,@CPP@,$CPP,;t t
3980 s,@EGREP@,$EGREP,;t t
3981 s,@LIBOBJS@,$LIBOBJS,;t t
3982 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
3983 CEOF
3984
3985 _ACEOF
3986
3987 cat >>$CONFIG_STATUS <<\_ACEOF
3988 # Split the substitutions into bite-sized pieces for seds with
3989 # small command number limits, like on Digital OSF/1 and HP-UX.
3990 ac_max_sed_lines=48
3991 ac_sed_frag=1 # Number of current file.
3992 ac_beg=1 # First line for current file.
3993 ac_end=$ac_max_sed_lines # Line after last line for current file.
3994 ac_more_lines=:
3995 ac_sed_cmds=
3996 while $ac_more_lines; do
3997 if test $ac_beg -gt 1; then
3998 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3999 else
4000 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4001 fi
4002 if test ! -s $tmp/subs.frag; then
4003 ac_more_lines=false
4004 else
4005 # The purpose of the label and of the branching condition is to
4006 # speed up the sed processing (if there are no `@' at all, there
4007 # is no need to browse any of the substitutions).
4008 # These are the two extra sed commands mentioned above.
4009 (echo ':t
4010 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4011 if test -z "$ac_sed_cmds"; then
4012 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4013 else
4014 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4015 fi
4016 ac_sed_frag=`expr $ac_sed_frag + 1`
4017 ac_beg=$ac_end
4018 ac_end=`expr $ac_end + $ac_max_sed_lines`
4019 fi
4020 done
4021 if test -z "$ac_sed_cmds"; then
4022 ac_sed_cmds=cat
4023 fi
4024 fi # test -n "$CONFIG_FILES"
4025
4026 _ACEOF
4027 cat >>$CONFIG_STATUS <<\_ACEOF
4028 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4029 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4030 case $ac_file in
4031 - | *:- | *:-:* ) # input from stdin
4032 cat >$tmp/stdin
4033 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4034 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4035 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4036 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4037 * ) ac_file_in=$ac_file.in ;;
4038 esac
4039
4040 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4041 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4042 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4043 X"$ac_file" : 'X\(//\)[^/]' \| \
4044 X"$ac_file" : 'X\(//\)$' \| \
4045 X"$ac_file" : 'X\(/\)' \| \
4046 . : '\(.\)' 2>/dev/null ||
4047 echo X"$ac_file" |
4048 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4049 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4050 /^X\(\/\/\)$/{ s//\1/; q; }
4051 /^X\(\/\).*/{ s//\1/; q; }
4052 s/.*/./; q'`
4053 { if $as_mkdir_p; then
4054 mkdir -p "$ac_dir"
4055 else
4056 as_dir="$ac_dir"
4057 as_dirs=
4058 while test ! -d "$as_dir"; do
4059 as_dirs="$as_dir $as_dirs"
4060 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4061 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4062 X"$as_dir" : 'X\(//\)[^/]' \| \
4063 X"$as_dir" : 'X\(//\)$' \| \
4064 X"$as_dir" : 'X\(/\)' \| \
4065 . : '\(.\)' 2>/dev/null ||
4066 echo X"$as_dir" |
4067 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4068 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4069 /^X\(\/\/\)$/{ s//\1/; q; }
4070 /^X\(\/\).*/{ s//\1/; q; }
4071 s/.*/./; q'`
4072 done
4073 test ! -n "$as_dirs" || mkdir $as_dirs
4074 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4075 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4076 { (exit 1); exit 1; }; }; }
4077
4078 ac_builddir=.
4079
4080 if test "$ac_dir" != .; then
4081 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4082 # A "../" for each directory in $ac_dir_suffix.
4083 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4084 else
4085 ac_dir_suffix= ac_top_builddir=
4086 fi
4087
4088 case $srcdir in
4089 .) # No --srcdir option. We are building in place.
4090 ac_srcdir=.
4091 if test -z "$ac_top_builddir"; then
4092 ac_top_srcdir=.
4093 else
4094 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4095 fi ;;
4096 [\\/]* | ?:[\\/]* ) # Absolute path.
4097 ac_srcdir=$srcdir$ac_dir_suffix;
4098 ac_top_srcdir=$srcdir ;;
4099 *) # Relative path.
4100 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4101 ac_top_srcdir=$ac_top_builddir$srcdir ;;
4102 esac
4103
4104 # Do not use `cd foo && pwd` to compute absolute paths, because
4105 # the directories may not exist.
4106 case `pwd` in
4107 .) ac_abs_builddir="$ac_dir";;
4108 *)
4109 case "$ac_dir" in
4110 .) ac_abs_builddir=`pwd`;;
4111 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4112 *) ac_abs_builddir=`pwd`/"$ac_dir";;
4113 esac;;
4114 esac
4115 case $ac_abs_builddir in
4116 .) ac_abs_top_builddir=${ac_top_builddir}.;;
4117 *)
4118 case ${ac_top_builddir}. in
4119 .) ac_abs_top_builddir=$ac_abs_builddir;;
4120 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4121 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4122 esac;;
4123 esac
4124 case $ac_abs_builddir in
4125 .) ac_abs_srcdir=$ac_srcdir;;
4126 *)
4127 case $ac_srcdir in
4128 .) ac_abs_srcdir=$ac_abs_builddir;;
4129 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4130 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4131 esac;;
4132 esac
4133 case $ac_abs_builddir in
4134 .) ac_abs_top_srcdir=$ac_top_srcdir;;
4135 *)
4136 case $ac_top_srcdir in
4137 .) ac_abs_top_srcdir=$ac_abs_builddir;;
4138 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4139 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4140 esac;;
4141 esac
4142
4143
4144
4145 if test x"$ac_file" != x-; then
4146 { echo "$as_me:$LINENO: creating $ac_file" >&5
4147 echo "$as_me: creating $ac_file" >&6;}
4148 rm -f "$ac_file"
4149 fi
4150 # Let's still pretend it is `configure' which instantiates (i.e., don't
4151 # use $as_me), people would be surprised to read:
4152 # /* config.h. Generated by config.status. */
4153 if test x"$ac_file" = x-; then
4154 configure_input=
4155 else
4156 configure_input="$ac_file. "
4157 fi
4158 configure_input=$configure_input"Generated from `echo $ac_file_in |
4159 sed 's,.*/,,'` by configure."
4160
4161 # First look for the input files in the build tree, otherwise in the
4162 # src tree.
4163 ac_file_inputs=`IFS=:
4164 for f in $ac_file_in; do
4165 case $f in
4166 -) echo $tmp/stdin ;;
4167 [\\/$]*)
4168 # Absolute (can't be DOS-style, as IFS=:)
4169 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4170 echo "$as_me: error: cannot find input file: $f" >&2;}
4171 { (exit 1); exit 1; }; }
4172 echo "$f";;
4173 *) # Relative
4174 if test -f "$f"; then
4175 # Build tree
4176 echo "$f"
4177 elif test -f "$srcdir/$f"; then
4178 # Source tree
4179 echo "$srcdir/$f"
4180 else
4181 # /dev/null tree
4182 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4183 echo "$as_me: error: cannot find input file: $f" >&2;}
4184 { (exit 1); exit 1; }; }
4185 fi;;
4186 esac
4187 done` || { (exit 1); exit 1; }
4188 _ACEOF
4189 cat >>$CONFIG_STATUS <<_ACEOF
4190 sed "$ac_vpsub
4191 $extrasub
4192 _ACEOF
4193 cat >>$CONFIG_STATUS <<\_ACEOF
4194 :t
4195 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4196 s,@configure_input@,$configure_input,;t t
4197 s,@srcdir@,$ac_srcdir,;t t
4198 s,@abs_srcdir@,$ac_abs_srcdir,;t t
4199 s,@top_srcdir@,$ac_top_srcdir,;t t
4200 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4201 s,@builddir@,$ac_builddir,;t t
4202 s,@abs_builddir@,$ac_abs_builddir,;t t
4203 s,@top_builddir@,$ac_top_builddir,;t t
4204 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4205 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4206 rm -f $tmp/stdin
4207 if test x"$ac_file" != x-; then
4208 mv $tmp/out $ac_file
4209 else
4210 cat $tmp/out
4211 rm -f $tmp/out
4212 fi
4213
4214 done
4215 _ACEOF
4216 cat >>$CONFIG_STATUS <<\_ACEOF
4217
4218 #
4219 # CONFIG_HEADER section.
4220 #
4221
4222 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4223 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4224 #
4225 # ac_d sets the value in "#define NAME VALUE" lines.
4226 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4227 ac_dB='[ ].*$,\1#\2'
4228 ac_dC=' '
4229 ac_dD=',;t'
4230 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4231 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4232 ac_uB='$,\1#\2define\3'
4233 ac_uC=' '
4234 ac_uD=',;t'
4235
4236 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
4237 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4238 case $ac_file in
4239 - | *:- | *:-:* ) # input from stdin
4240 cat >$tmp/stdin
4241 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4242 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4243 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4244 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4245 * ) ac_file_in=$ac_file.in ;;
4246 esac
4247
4248 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
4249 echo "$as_me: creating $ac_file" >&6;}
4250
4251 # First look for the input files in the build tree, otherwise in the
4252 # src tree.
4253 ac_file_inputs=`IFS=:
4254 for f in $ac_file_in; do
4255 case $f in
4256 -) echo $tmp/stdin ;;
4257 [\\/$]*)
4258 # Absolute (can't be DOS-style, as IFS=:)
4259 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4260 echo "$as_me: error: cannot find input file: $f" >&2;}
4261 { (exit 1); exit 1; }; }
4262 # Do quote $f, to prevent DOS paths from being IFS'd.
4263 echo "$f";;
4264 *) # Relative
4265 if test -f "$f"; then
4266 # Build tree
4267 echo "$f"
4268 elif test -f "$srcdir/$f"; then
4269 # Source tree
4270 echo "$srcdir/$f"
4271 else
4272 # /dev/null tree
4273 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4274 echo "$as_me: error: cannot find input file: $f" >&2;}
4275 { (exit 1); exit 1; }; }
4276 fi;;
4277 esac
4278 done` || { (exit 1); exit 1; }
4279 # Remove the trailing spaces.
4280 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
4281
4282 _ACEOF
4283
4284 # Transform confdefs.h into two sed scripts, `conftest.defines' and
4285 # `conftest.undefs', that substitutes the proper values into
4286 # config.h.in to produce config.h. The first handles `#define'
4287 # templates, and the second `#undef' templates.
4288 # And first: Protect against being on the right side of a sed subst in
4289 # config.status. Protect against being in an unquoted here document
4290 # in config.status.
4291 rm -f conftest.defines conftest.undefs
4292 # Using a here document instead of a string reduces the quoting nightmare.
4293 # Putting comments in sed scripts is not portable.
4294 #
4295 # `end' is used to avoid that the second main sed command (meant for
4296 # 0-ary CPP macros) applies to n-ary macro definitions.
4297 # See the Autoconf documentation for `clear'.
4298 cat >confdef2sed.sed <<\_ACEOF
4299 s/[\\&,]/\\&/g
4300 s,[\\$`],\\&,g
4301 t clear
4302 : clear
4303 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
4304 t end
4305 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
4306 : end
4307 _ACEOF
4308 # If some macros were called several times there might be several times
4309 # the same #defines, which is useless. Nevertheless, we may not want to
4310 # sort them, since we want the *last* AC-DEFINE to be honored.
4311 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
4312 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
4313 rm -f confdef2sed.sed
4314
4315 # This sed command replaces #undef with comments. This is necessary, for
4316 # example, in the case of _POSIX_SOURCE, which is predefined and required
4317 # on some systems where configure will not decide to define it.
4318 cat >>conftest.undefs <<\_ACEOF
4319 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
4320 _ACEOF
4321
4322 # Break up conftest.defines because some shells have a limit on the size
4323 # of here documents, and old seds have small limits too (100 cmds).
4324 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
4325 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
4326 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
4327 echo ' :' >>$CONFIG_STATUS
4328 rm -f conftest.tail
4329 while grep . conftest.defines >/dev/null
4330 do
4331 # Write a limited-size here document to $tmp/defines.sed.
4332 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
4333 # Speed up: don't consider the non `#define' lines.
4334 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
4335 # Work around the forget-to-reset-the-flag bug.
4336 echo 't clr' >>$CONFIG_STATUS
4337 echo ': clr' >>$CONFIG_STATUS
4338 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
4339 echo 'CEOF
4340 sed -f $tmp/defines.sed $tmp/in >$tmp/out
4341 rm -f $tmp/in
4342 mv $tmp/out $tmp/in
4343 ' >>$CONFIG_STATUS
4344 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
4345 rm -f conftest.defines
4346 mv conftest.tail conftest.defines
4347 done
4348 rm -f conftest.defines
4349 echo ' fi # grep' >>$CONFIG_STATUS
4350 echo >>$CONFIG_STATUS
4351
4352 # Break up conftest.undefs because some shells have a limit on the size
4353 # of here documents, and old seds have small limits too (100 cmds).
4354 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
4355 rm -f conftest.tail
4356 while grep . conftest.undefs >/dev/null
4357 do
4358 # Write a limited-size here document to $tmp/undefs.sed.
4359 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
4360 # Speed up: don't consider the non `#undef'
4361 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
4362 # Work around the forget-to-reset-the-flag bug.
4363 echo 't clr' >>$CONFIG_STATUS
4364 echo ': clr' >>$CONFIG_STATUS
4365 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
4366 echo 'CEOF
4367 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
4368 rm -f $tmp/in
4369 mv $tmp/out $tmp/in
4370 ' >>$CONFIG_STATUS
4371 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
4372 rm -f conftest.undefs
4373 mv conftest.tail conftest.undefs
4374 done
4375 rm -f conftest.undefs
4376
4377 cat >>$CONFIG_STATUS <<\_ACEOF
4378 # Let's still pretend it is `configure' which instantiates (i.e., don't
4379 # use $as_me), people would be surprised to read:
4380 # /* config.h. Generated by config.status. */
4381 if test x"$ac_file" = x-; then
4382 echo "/* Generated by configure. */" >$tmp/config.h
4383 else
4384 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
4385 fi
4386 cat $tmp/in >>$tmp/config.h
4387 rm -f $tmp/in
4388 if test x"$ac_file" != x-; then
4389 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
4390 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
4391 echo "$as_me: $ac_file is unchanged" >&6;}
4392 else
4393 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4394 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4395 X"$ac_file" : 'X\(//\)[^/]' \| \
4396 X"$ac_file" : 'X\(//\)$' \| \
4397 X"$ac_file" : 'X\(/\)' \| \
4398 . : '\(.\)' 2>/dev/null ||
4399 echo X"$ac_file" |
4400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4401 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4402 /^X\(\/\/\)$/{ s//\1/; q; }
4403 /^X\(\/\).*/{ s//\1/; q; }
4404 s/.*/./; q'`
4405 { if $as_mkdir_p; then
4406 mkdir -p "$ac_dir"
4407 else
4408 as_dir="$ac_dir"
4409 as_dirs=
4410 while test ! -d "$as_dir"; do
4411 as_dirs="$as_dir $as_dirs"
4412 as_dir=`(dirname "$as_dir") 2>/dev/null ||
4413 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4414 X"$as_dir" : 'X\(//\)[^/]' \| \
4415 X"$as_dir" : 'X\(//\)$' \| \
4416 X"$as_dir" : 'X\(/\)' \| \
4417 . : '\(.\)' 2>/dev/null ||
4418 echo X"$as_dir" |
4419 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4420 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4421 /^X\(\/\/\)$/{ s//\1/; q; }
4422 /^X\(\/\).*/{ s//\1/; q; }
4423 s/.*/./; q'`
4424 done
4425 test ! -n "$as_dirs" || mkdir $as_dirs
4426 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4427 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4428 { (exit 1); exit 1; }; }; }
4429
4430 rm -f $ac_file
4431 mv $tmp/config.h $ac_file
4432 fi
4433 else
4434 cat $tmp/config.h
4435 rm -f $tmp/config.h
4436 fi
4437 done
4438 _ACEOF
4439
4440 cat >>$CONFIG_STATUS <<\_ACEOF
4441
4442 { (exit 0); exit 0; }
4443 _ACEOF
4444 chmod +x $CONFIG_STATUS
4445 ac_clean_files=$ac_clean_files_save
4446
4447
4448 # configure is writing to config.log, and then calls config.status.
4449 # config.status does its own redirection, appending to config.log.
4450 # Unfortunately, on DOS this fails, as config.log is still kept open
4451 # by configure, so config.status won't be able to write to it; its
4452 # output is simply discarded. So we exec the FD to /dev/null,
4453 # effectively closing config.log, so it can be properly (re)opened and
4454 # appended to by config.status. When coming back to configure, we
4455 # need to make the FD available again.
4456 if test "$no_create" != yes; then
4457 ac_cs_success=:
4458 ac_config_status_args=
4459 test "$silent" = yes &&
4460 ac_config_status_args="$ac_config_status_args --quiet"
4461 exec 5>/dev/null
4462 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4463 exec 5>>config.log
4464 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4465 # would make configure fail if this is the last instruction.
4466 $ac_cs_success || { (exit 1); exit 1; }
4467 fi
4468
0 # -*- Autoconf -*-
1 # Process this file with autoconf to produce a configure script.
2
3 AC_PREREQ(2.59)
4 AC_INIT([FULL-PACKAGE-NAME],[VERSION],[BUG-REPORT-ADDRESS])
5 AC_CONFIG_SRCDIR([log.c])
6 AC_CONFIG_HEADER([config.h])
7
8 # Checks for programs.
9 AC_PROG_CC
10
11 # Checks for libraries.
12
13 # Checks for header files.
14 AC_HEADER_STDC
15 AC_CHECK_HEADERS([stdlib.h string.h])
16
17 # Checks for typedefs, structures, and compiler characteristics.
18 AC_C_CONST
19
20 # Checks for library functions.
21 AC_FUNC_ERROR_AT_LINE
22 AC_FUNC_VPRINTF
23 AC_CHECK_FUNCS([memset socket strchr])
24 AC_OUTPUT([Makefile])
0 /* got this off net.sources */
1 #include <stdio.h>
2 #include <string.h>
3 #include "getopt.h"
4
5 /*
6 * get option letter from argument vector
7 */
8 int
9 opterr = 1, // should error messages be printed?
10 optind = 1, // index into parent argv vector
11 optopt; // character checked for validity
12 char
13 *optarg; // argument associated with option
14
15 #define EMSG ""
16
17 char *progname; // may also be defined elsewhere
18
19 static void
20 error(char *pch)
21 {
22 if (!opterr) {
23 return; // without printing
24 }
25 fprintf(stderr, "%s: %s: %c\n",
26 (NULL != progname) ? progname : "getopt", pch, optopt);
27 }
28
29 int
30 getopt(int argc, char **argv, char *ostr)
31 {
32 static char *place = EMSG; /* option letter processing */
33 register char *oli; /* option letter list index */
34
35 if (!*place) {
36 // update scanning pointer
37 if (optind >= argc || *(place = argv[optind]) != '-' || !*++place) {
38 return EOF;
39 }
40 if (*place == '-') {
41 // found "--"
42 ++optind;
43 return EOF;
44 }
45 }
46
47 /* option letter okay? */
48 if ((optopt = (int)*place++) == (int)':'
49 || !(oli = strchr(ostr, optopt))) {
50 if (!*place) {
51 ++optind;
52 }
53 error("illegal option");
54 return BADCH;
55 }
56 if (*++oli != ':') {
57 /* don't need argument */
58 optarg = NULL;
59 if (!*place)
60 ++optind;
61 } else {
62 /* need an argument */
63 if (*place) {
64 optarg = place; /* no white space */
65 } else if (argc <= ++optind) {
66 /* no arg */
67 place = EMSG;
68 error("option requires an argument");
69 return BADCH;
70 } else {
71 optarg = argv[optind]; /* white space */
72 }
73 place = EMSG;
74 ++optind;
75 }
76 return optopt; // return option letter
77 }
0 #ifndef _GETOPT_
1 #define _GETOPT_
2
3 int getopt(int argc, char **argv, char *optstring);
4
5 extern char *optarg; // returned arg to go with this option
6 extern int optind; // index to next argv element to process
7 extern int opterr; // should error messages be printed?
8 extern int optopt; //
9
10 #define BADCH ('?')
11
12 #endif // _GETOPT
0 /*
1 SIDGuesser
2 Copyright (c) 2006- Patrik Karlsson
3
4 http://www.cqure.net
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 */
20
21 #include <stdio.h>
22 #include <stdlib.h>
23 #include <stdarg.h>
24
25 static FILE *pLog = NULL;
26
27 int logprintf( const char *format, ... ) {
28
29 va_list args;
30 int i;
31
32 va_start( args, format );
33
34 if ( pLog ) {
35 i = vfprintf( pLog, format, args );
36 vprintf( format, args );
37 }
38 else {
39 i = vprintf( format, args );
40 }
41
42 va_end( args );
43
44 return i;
45 }
46
47 int openlogfile( char *pFile ) {
48 if ( pLog = fopen( pFile, "w+" ) )
49 return 0;
50
51 return -1;
52 }
53
54 void closelogfile() {
55 if ( pLog )
56 fclose( pLog );
57 }
0 int openlogfile( char * );
1 int logprintf( const char *, ... );
2 void closelogfile();
0
1 #ifdef WIN32
2 #pragma pack( push, 1 )
3 #endif
4
5 #ifndef byte
6 typedef unsigned char byte;
7 #endif
8
9 struct tTNS_Header {
10
11 short nPacketLen;
12 short nPacketCSum;
13 byte nPacketType; /* CONNECT */
14 byte nReserved;
15 short nHeaderCSum;
16 short nVersion;
17 short nVCompat;
18 short nSOptions;
19 short nUnitSize;
20 short nMaxUSize;
21 short nProtoC;
22 short nLineTV;
23 short nValOf1;
24 short nLenOfCD;/* Length of connect data */
25 short nOffCD;/* offset of connect data */
26 int nMaxRecvData;
27 byte bFlags0;
28 byte bFlags1;
29 #ifdef WIN32
30 };
31 #else
32 } __attribute__ ((packed)) ;
33 #endif