summaryrefslogtreecommitdiff
path: root/source3/smbd/build_options.c
blob: 5486fae33538a0f205635585c3bd72a1d3a59e31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
/* 
   Unix SMB/Netbios implementation.
   Version 2.2
   Build Options for Samba Suite
   Copyright (C) Vance Lankhaar <vlankhaar@hotmail.com> 2001
   Copyright (C) Andrew Bartlett <abartlet@samba.org> 2001
   
   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2 of the License, or
   (at your option) any later version.
   
   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.
   
   You should have received a copy of the GNU General Public License
   along with this program; if not, write to the Free Software
   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/

#include "includes.h"
#include "build_env.h"

/****************************************************************************
helper function for build_options
****************************************************************************/
static void output(BOOL screen, char *buffer)
{
       if (screen) {
              d_printf(buffer);
       } else {
	       DEBUG(4, (buffer));
       }
}
/****************************************************************************
options set at build time for the samba suite
****************************************************************************/
void build_options(BOOL screen)
{
       pstring outstring;

       if ((DEBUGLEVEL < 4) && (!screen)) {
	       return;
       }

#ifdef _BUILD_ENV_H
       /* Output information about the build environment */
       snprintf(outstring,sizeof(outstring),"Build environment:\n");
       output(screen,outstring);       
       snprintf(outstring,sizeof(outstring),"   Built by:    %s@%s\n",BUILD_ENV_USER,BUILD_ENV_HOST);
       output(screen,outstring);
       snprintf(outstring,sizeof(outstring),"   Built on:    %s\n",BUILD_ENV_DATE);
       output(screen,outstring);
       snprintf(outstring,sizeof(outstring),"   Built using: %s\n",BUILD_ENV_COMPILER);
       output(screen,outstring);
       snprintf(outstring,sizeof(outstring),"   Build host:  %s\n",BUILD_ENV_UNAME);
       output(screen,outstring);
    
       snprintf(outstring,sizeof(outstring),"   SRCDIR:      %s\n",BUILD_ENV_SRCDIR);
       output(screen,outstring);
       snprintf(outstring,sizeof(outstring),"   BUILDDIR:    %s\n",BUILD_ENV_BUILDDIR);
       output(screen,outstring);
       
#endif

       /* Output various options (most correspond to --with options) */ 
       snprintf(outstring,sizeof(outstring),"\nBuild options:\n");
       output(screen,outstring);
#ifdef WITH_SMBWRAPPER 
       snprintf(outstring,sizeof(outstring),"   WITH_SMBWRAPPER\n");
       output(screen,outstring);
#endif
#ifdef WITH_AFS
       snprintf(outstring,sizeof(outstring),"   WITH_AFS\n");
       output(screen,outstring);
#endif
#ifdef WITH_DFS
       snprintf(outstring,sizeof(outstring),"   WITH_DFS\n");
       output(screen,outstring);
#endif
#if defined(KRB4_AUTH) && defined(KRB4_DIR) 
       snprintf(outstring,sizeof(outstring),"   KRB4_AUTH");
       output(screen,outstring);
       snprintf(outstring,sizeof(outstring),"   KRB4_DIR: %s\n",KRB4_DIR);
       output(screen,outstring);
#endif
#if defined(KRB5_AUTH) && defined(KRB5_DIR)
       snprintf(outstring,sizeof(outstring),"   KRB5_AUTH");
       output(screen,outstring);
       snprintf(outstring,sizeof(outstring),"   KRB5_DIR: %s\n",KRB5_DIR);
       output(screen,outstring);
#endif
#ifdef WITH_AUTOMOUNT
       snprintf(outstring,sizeof(outstring),"   WITH_AUTOMOUNT\n");
       output(screen,outstring);
#endif
#ifdef WITH_SMBMOUNT
       snprintf(outstring,sizeof(outstring),"   WITH_SMBMOUNT\n");
       output(screen,outstring);
#endif
#ifdef WITH_PAM
       snprintf(outstring,sizeof(outstring),"   WITH_PAM\n");
       output(screen,outstring);
#endif
#ifdef WITH_TDBSAM
       snprintf(outstring,sizeof(outstring),"   WITH_TDBSAM\n");
       output(screen,outstring);
#endif
#ifdef WITH_LDAP
       snprintf(outstring,sizeof(outstring),"   WITH_LDAP\n");
       output(screen,outstring);
#endif
#ifdef WITH_NISPLUS
       snprintf(outstring,sizeof(outstring),"   WITH_NISPLUS\n");
       output(screen,outstring);
#endif
#ifdef WITH_NISPLUS_HOME
       snprintf(outstring,sizeof(outstring),"   WITH_NISPLUS_HOME\n");
       output(screen,outstring);
#endif
#ifdef WITH_SSL
       snprintf(outstring,sizeof(outstring),"   WITH_SSL\n");
       output(screen,outstring);
#endif
#ifdef SSL_DIR
       snprintf(outstring,sizeof(outstring),"   SSL_DIR: %s\n",SSL_DIR);
       output(screen,outstring);
#endif
#ifdef WITH_SYSLOG
       snprintf(outstring,sizeof(outstring),"   WITH_SYSLOG\n");
       output(screen,outstring);
#endif
#ifdef WITH_PROFILE
       snprintf(outstring,sizeof(outstring),"   WITH_PROFILE\n");
       output(screen,outstring);
#endif
#ifdef WITH_QUOTAS
       snprintf(outstring,sizeof(outstring),"   WITH_QUOTAS\n");
       output(screen,outstring);
#endif
#ifdef WITH_MSDFS
       snprintf(outstring,sizeof(outstring),"   WITH_MSDFS\n");
       output(screen,outstring);
#endif
#ifdef WITH_VFS
       snprintf(outstring,sizeof(outstring),"   WITH_VFS\n");
       output(screen,outstring);
#endif
#ifdef USE_SPINLOCKS
       snprintf(outstring,sizeof(outstring),"   USE_SPINLOCKS\n");
       output(screen,outstring);
#endif
#ifdef SPARC_SPINLOCKS
       snprintf(outstring,sizeof(outstring),"   SPARC_SPINLOCKS\n");
       output(screen,outstring);
#endif
#ifdef INTEL_SPINLOCKS
       snprintf(outstring,sizeof(outstring),"   INTEL_SPINLOCKS\n");
       output(screen,outstring);
#endif
#ifdef MIPS_SPINLOCKS
       snprintf(outstring,sizeof(outstring),"   MIPS_SPINLOCKS\n");
       output(screen,outstring);
#endif
#ifdef POWERPC_SPINLOCKS
       snprintf(outstring,sizeof(outstring),"   POWERPC_SPINLOCKS\n");
       output(screen,outstring);
#endif
#ifdef HAVE_UNIXWARE_ACLS
       snprintf(outstring,sizeof(outstring),"   HAVE_UNIXWARE_ACLS\n");
       output(screen,outstring);
#endif
#ifdef HAVE_SOLARIS_ACLS
       snprintf(outstring,sizeof(outstring),"   HAVE_SOLARIS_ACLS\n");
       output(screen,outstring);
#endif 
#ifdef HAVE_IRIX_ACLS
       snprintf(outstring,sizeof(outstring),"   HAVE_IRIX_ACLS\n");
       output(screen,outstring);
#endif
#ifdef HAVE_AIX_ACLS
       snprintf(outstring,sizeof(outstring),"   HAVE_AIX_ACLS\n");
       output(screen,outstring);
#endif
#ifdef HAVE_POSIX_ACLS
       snprintf(outstring,sizeof(outstring),"   HAVE_POSIX_ACLS\n");
       output(screen,outstring);
#endif
#ifdef HAVE_TRU64_ACLS
       snprintf(outstring,sizeof(outstring),"   HAVE_TRU64_ACLS\n");
       output(screen,outstring);
#endif

#ifdef HAVE_ACL_GET_PERM_NP
       snprintf(outstring,sizeof(outstring),"   HAVE_ACL_GET_PERM_NP\n");
       output(screen,outstring);
#endif
#ifdef HAVE_NO_ACLS
       snprintf(outstring,sizeof(outstring),"   HAVE_NO_ACLS\n");
       output(screen,outstring);
#endif
#ifdef HAVE_LIBREADLINE
       snprintf(outstring,sizeof(outstring),"   HAVE_LIBREADLINE\n"); 
       output(screen,outstring);
#endif
#ifdef WITH_LIBICONV
       snprintf(outstring,sizeof(outstring),"   WITH_LIBICONV: %s\n",WITH_LIBICONV);
       output(screen,outstring);
#endif


       /* Output various paths to files and directories */
       snprintf(outstring,sizeof(outstring),"\nPaths:\n");
       output(screen,outstring);
#ifdef CONFIGFILE
       snprintf(outstring,sizeof(outstring),"   CONFIGFILE: %s\n",CONFIGFILE);
       output(screen,outstring);
#endif
#ifdef PRIVATE_DIR
       snprintf(outstring,sizeof(outstring),"   PRIVATE_DIR: %s\n",PRIVATE_DIR);
       output(screen,outstring);
#endif
#ifdef LMHOSTSFILE
       snprintf(outstring,sizeof(outstring),"   LMHOSTSFILE: %s\n",LMHOSTSFILE);
       output(screen,outstring);
#endif
#ifdef SBINDIR
       snprintf(outstring,sizeof(outstring),"   SBINDIR: %s\n",SBINDIR);
       output(screen,outstring);
#endif
#ifdef BINDIR
       snprintf(outstring,sizeof(outstring),"   BINDIR: %s\n",BINDIR);
       output(screen,outstring);
#endif
#ifdef LOCKDIR
       snprintf(outstring,sizeof(outstring),"   LOCKDIR: %s\n",LOCKDIR);
       output(screen,outstring);
#endif
#ifdef DRIVERFILE
       snprintf(outstring,sizeof(outstring),"   DRIVERFILE: %s\n",DRIVERFILE);
       output(screen,outstring);
#endif
#ifdef LOGFILEBASE
       snprintf(outstring,sizeof(outstring),"   LOGFILEBASE: %s\n",LOGFILEBASE);
       output(screen,outstring);
#endif
#ifdef FORMSFILE
       snprintf(outstring,sizeof(outstring),"   FORMSFILE: %s\n",FORMSFILE);
       output(screen,outstring);
#endif
#ifdef NTDRIVERSDIR
       snprintf(outstring,sizeof(outstring),"   NTDRIVERSDIR: %s\n",NTDRIVERSDIR);
       output(screen,outstring);
#endif 

       /*Output various other options (most map to defines in the configure script*/
       snprintf(outstring,sizeof(outstring),"\nOther Build Options:\n");
       output(screen,outstring);
#ifdef HAVE_VOLATILE
       snprintf(outstring,sizeof(outstring),"   HAVE_VOLATILE\n");
       output(screen,outstring);
#endif
#ifdef HAVE_SHADOW_H
       snprintf(outstring,sizeof(outstring),"   HAVE_SHADOW_H\n");
       output(screen,outstring);
#endif
#ifdef HAVE_CRYPT
       snprintf(outstring,sizeof(outstring),"   HAVE_CRYPT\n");
       output(screen,outstring);
#endif
#ifdef USE_BOTH_CRYPT_CALLS
       snprintf(outstring,sizeof(outstring),"   USE_BOTH_CRYPT_CALLS\n");
       output(screen,outstring);
#endif
#ifdef HAVE_TRUNCATED_SALT
       snprintf(outstring,sizeof(outstring),"   HAVE_TRUNCATED_SALT\n");
       output(screen,outstring);
#endif
#ifdef HAVE_CUPS
       snprintf(outstring,sizeof(outstring),"   HAVE_CUPS\n");
       output(screen,outstring);
#endif
#ifdef HAVE_CUPS_CUPS_H
       snprintf(outstring,sizeof(outstring),"   HAVE_CUPS_CUPS_H\n");
       output(screen,outstring);
#endif
#ifdef HAVE_CUPS_LANGUAGE_H
       snprintf(outstring,sizeof(outstring),"   HAVE_CUPS_LANGUAGE_H\n");
       output(screen,outstring);
#endif
#ifdef HAVE_LIBDL
       snprintf(outstring,sizeof(outstring),"   HAVE_LIBDL\n");
       output(screen,outstring);
#endif
#ifdef HAVE_UNIXSOCKET
       snprintf(outstring,sizeof(outstring),"   HAVE_UNIXSOCKET\n");
       output(screen,outstring);
#endif
#ifdef HAVE_SOCKLEN_T_TYPE
       snprintf(outstring,sizeof(outstring),"   HAVE_SOCKLEN_T_TYPE\n");
       output(screen,outstring);
#endif
#ifdef HAVE_SIG_ATOMIC_T_TYPE
       snprintf(outstring,sizeof(outstring),"   HAVE_SIG_ATOMIC_T_TYPE\n");
       output(screen,outstring);
#endif
#ifdef HAVE_SETRESUID
       snprintf(outstring,sizeof(outstring),"   HAVE_SETRESUID\n");
       output(screen,outstring);
#endif
#ifdef HAVE_SETRESGID
       snprintf(outstring,sizeof(outstring),"   HAVE_SETRESGID\n");
       output(screen,outstring);
#endif
#ifdef HAVE_CONNECT
       snprintf(outstring,sizeof(outstring),"   HAVE_CONNECT\n");
       output(screen,outstring);
#endif
#ifdef HAVE_YP_GET_DEFAULT_DOMAIN
       snprintf(outstring,sizeof(outstring),"   HAVE_YP_GET_DEFAULT_DOMAIN\n");
       output(screen,outstring);
#endif
#ifdef HAVE_STAT64
       snprintf(outstring,sizeof(outstring),"   HAVE_STAT64\n");
       output(screen,outstring);
#endif
#ifdef HAVE_LSTAT64
       snprintf(outstring,sizeof(outstring),"   HAVE_LSTAT64\n");
       output(screen,outstring);
#endif
#ifdef HAVE_FSTAT64
       snprintf(outstring,sizeof(outstring),"   HAVE_FSTAT64\n");
       output(screen,outstring);
#endif
#ifdef HAVE_STRCASECMP
       snprintf(outstring,sizeof(outstring),"   HAVE_STRCASECMP\n");
       output(screen,outstring);
#endif
#ifdef HAVE_MEMSET
       snprintf(outstring,sizeof(outstring),"   HAVE_MEMSET\n");
       output(screen,outstring);
#endif
#ifdef HAVE_LONGLONG
       snprintf(outstring,sizeof(outstring),"   HAVE_LONGLONG\n");
       output(screen,outstring);
#endif
#ifdef COMPILER_SUPPORTS_LL
       snprintf(outstring,sizeof(outstring),"   COMPILER_SUPPORTS_LL\n");
       output(screen,outstring);
#endif
#ifdef SIZEOF_OFF_T
       snprintf(outstring,sizeof(outstring),"   SIZEOF_OFF_T: %d\n",SIZEOF_OFF_T);
       output(screen,outstring);
#endif
#ifdef HAVE_OFF64_T
       snprintf(outstring,sizeof(outstring),"   HAVE_OFF64_T\n");
       output(screen,outstring);
#endif
#ifdef SIZEOF_INO_T
       snprintf(outstring,sizeof(outstring),"   SIZEOF_INO_T: %d\n",SIZEOF_INO_T);
       output(screen,outstring);
#endif
#ifdef HAVE_INO64_T
       snprintf(outstring,sizeof(outstring),"   HAVE_INO64_T\n");
       output(screen,outstring);
#endif
#ifdef HAVE_STRUCT_DIRENT64
       snprintf(outstring,sizeof(outstring),"   HAVE_STRUCT_DIRENT64\n");
       output(screen,outstring);
#endif
#ifdef HAVE_UNSIGNED_CHAR
       snprintf(outstring,sizeof(outstring),"   HAVE_UNSIGNED_CHAR\n");
       output(screen,outstring);
#endif
#ifdef HAVE_SOCK_SIN_LEN
       snprintf(outstring,sizeof(outstring),"   HAVE_SOCK_SIN_LEN\n");
       output(screen,outstring);
#endif
#ifdef SEEKDIR_RETURNS_VOID
       snprintf(outstring,sizeof(outstring),"   SEEKDIR_RETURNS_VOID\n");
       output(screen,outstring);
#endif
#ifdef HAVE_FILE_MACRO
       snprintf(outstring,sizeof(outstring),"   HAVE_FILE_MACRO\n");
       output(screen,outstring);
#endif
#ifdef HAVE_FUNCTION_MACRO
       snprintf(outstring,sizeof(outstring),"   HAVE_FUNCTION_MACRO\n");
       output(screen,outstring);
#endif
#ifdef HAVE_GETTIMEOFDAY
       snprintf(outstring,sizeof(outstring),"   HAVE_GETTIMEOFDAY\n");
       output(screen,outstring);
#endif
#ifdef HAVE_C99_VSNPRINTF
       snprintf(outstring,sizeof(outstring),"   HAVE_C99_VSNPRINTF\n");
       output(screen,outstring);
#endif
#ifdef HAVE_BROKEN_READDIR
       snprintf(outstring,sizeof(outstring),"   HAVE_BROKEN_READDIR\n");
       output(screen,outstring);
#endif
#ifdef HAVE_NATIVE_ICONV
       snprintf(outstring,sizeof(outstring),"   HAVE_NATIVE_ICONV\n");
       output(screen,outstring);
#endif
#ifdef HAVE_KERNEL_OPLOCKS_LINUX
       snprintf(outstring,sizeof(outstring),"   HAVE_KERNEL_OPLOCKS_LINUX\n");
       output(screen,outstring);
#endif
#ifdef HAVE_KERNEL_CHANGE_NOTIFY
       snprintf(outstring,sizeof(outstring),"   HAVE_KERNEL_CHANGE_NOTIFY\n");
       output(screen,outstring);
#endif
#ifdef HAVE_KERNEL_SHARE_MODES
       snprintf(outstring,sizeof(outstring),"   HAVE_KERNEL_SHARE_MODES\n");
       output(screen,outstring);
#endif
#ifdef HAVE_KERNEL_OPLOCKS_IRIX
       snprintf(outstring,sizeof(outstring),"   HAVE_KERNEL_OPLOCKS_IRIX\n");
       output(screen,outstring);
#endif
#ifdef HAVE_IRIX_SPECIFIC_CAPABILITIES
       snprintf(outstring,sizeof(outstring),"   HAVE_IRIX_SPECIFIC_CAPABILITIES\n");
       output(screen,outstring);
#endif
#ifdef HAVE_INT16_FROM_RPC_RPC_H
       snprintf(outstring,sizeof(outstring),"   HAVE_INT16_FROM_RPC_RPC_H\n");
       output(screen,outstring);
#endif
#ifdef HAVE_UINT16_FROM_RPC_RPC_H
       snprintf(outstring,sizeof(outstring),"   HAVE_UINT16_FROM_RPC_RPC_H\n");
       output(screen,outstring);
#endif
#ifdef HAVE_INT32_FROM_RPC_RPC_H
       snprintf(outstring,sizeof(outstring),"   HAVE_INT16_FROM_RPC_RPC_H\n");
       output(screen,outstring);
#endif
#ifdef HAVE_UINT32_FROM_RPC_RPC_H
       snprintf(outstring,sizeof(outstring),"   HAVE_UINT32_FROM_RPC_RPC_H\n");
       output(screen,outstring);
#endif
#ifdef HAVE_RPC_AUTH_ERROR_CONFLICT
       snprintf(outstring,sizeof(outstring),"   HAVE_RPC_AUTH_ERROR_CONFLICT\n");
       output(screen,outstring);
#endif
#ifdef HAVE_FTRUNCATE_EXTEND
       snprintf(outstring,sizeof(outstring),"   HAVE_FTRUNCATE_EXTEND\n");
       output(screen,outstring);
#endif
#ifdef HAVE_WORKING_AF_LOCAL
       snprintf(outstring,sizeof(outstring),"   HAVE_WORKING_AF_LOCAL\n");
       output(screen,outstring);
#endif
#ifdef HAVE_BROKEN_GETGROUPS
       snprintf(outstring,sizeof(outstring),"   HAVE_BROKEN_GETGROUPS\n");
       output(screen,outstring);
#endif
#ifdef REPLACE_GETPASS
       snprintf(outstring,sizeof(outstring),"   REPLACE_GETPASS\n");
       output(screen,outstring);
#endif
#ifdef REPLACE_INET_NTOA
       snprintf(outstring,sizeof(outstring),"   REPLACE_INET_NTOA\n");
       output(screen,outstring);
#endif
#ifdef HAVE_SECURE_MKSTEMP
       snprintf(outstring,sizeof(outstring),"   HAVE_SECURE_MKSTEMP\n");
       output(screen,outstring);
#endif
#ifdef SYSCONF_SC_NGROUPS_MAX
       snprintf(outstring,sizeof(outstring),"   SYSCONF_SC_NGROUPS_MAX\n");
       output(screen,outstring);
#endif
#ifdef HAVE_IFACE_AIX
       snprintf(outstring,sizeof(outstring),"   HAVE_IFACE_AIX\n");
       output(screen,outstring);
#endif
#ifdef HAVE_IFACE_IFCONF
       snprintf(outstring,sizeof(outstring),"   HAVE_IFACE_IFCONF\n");
       output(screen,outstring);
#endif
#ifdef HAVE_IFACE_IFREQ
       snprintf(outstring,sizeof(outstring),"   HAVE_IFACE_IFREQ\n");
       output(screen,outstring);
#endif
#ifdef USE_SETRESUID
       snprintf(outstring,sizeof(outstring),"   USE_SETRESUID\n");
       output(screen,outstring);
#endif
#ifdef USE_SETRESGID
       snprintf(outstring,sizeof(outstring),"   USE_SETREUID\n");
       output(screen,outstring);
#endif
#ifdef USE_SETEUID
       snprintf(outstring,sizeof(outstring),"   USE_SETEUID\n");
       output(screen,outstring);
#endif
#ifdef USE_SETUIDX
       snprintf(outstring,sizeof(outstring),"   USE_SETUIDX\n");
       output(screen,outstring);
#endif
#ifdef HAVE_MMAP
       snprintf(outstring,sizeof(outstring),"   HAVE_MMAP\n");
       output(screen,outstring);
#endif
#ifdef MMAP_BLACKLIST
       snprintf(outstring,sizeof(outstring),"   MMAP_BLACKLIST\n");
       output(screen,outstring);
#endif
#ifdef FTRUNCATE_NEEDS_ROOT
       snprintf(outstring,sizeof(outstring),"   FTRUNCATE_NEEDS_ROOT\n");
       output(screen,outstring);
#endif
#ifdef HAVE_FCNTL_LOCK
       snprintf(outstring,sizeof(outstring),"   HAVE_FCNTL_LOCK\n");
       output(screen,outstring);
#endif
#ifdef HAVE_BROKEN_FCNTL64_LOCKS
       snprintf(outstring,sizeof(outstring),"   HAVE_BROKEN_FCNTL64_LOCKS\n");
       output(screen,outstring);
#endif
#ifdef HAVE_STRUCT_FLOCK64
       snprintf(outstring,sizeof(outstring),"   HAVE_STRUCT_FLOCK64\n");
       output(screen,outstring);
#endif
#ifdef BROKEN_NISPLUS_INCLUDE_FILES
       snprintf(outstring,sizeof(outstring),"   BROKEN_NISPLUS_INCLUDE_FILES\n");
       output(screen,outstring);
#endif
#ifdef HAVE_LIBPAM
       snprintf(outstring,sizeof(outstring),"   HAVE_LIBPAM\n");
       output(screen,outstring);
#endif
#ifdef STAT_STATVFS64
       snprintf(outstring,sizeof(outstring),"   STAT_STATVFS64\n");
       output(screen,outstring);
#endif
#ifdef STAT_STATVFS
       snprintf(outstring,sizeof(outstring),"   STAT_STATVFS\n");
       output(screen,outstring);
#endif
#ifdef STAT_STATFS3_OSF1
       snprintf(outstring,sizeof(outstring),"   STAT_STATFS3_OSF1\n");
       output(screen,outstring);
#endif
#ifdef STAT_STATFS2_BSIZE
       snprintf(outstring,sizeof(outstring),"   STAT_STATFS2_BSIZE\n");
       output(screen,outstring);
#endif
#ifdef STAT_STATFS4
       snprintf(outstring,sizeof(outstring),"   STAT_STATFS4\n");
       output(screen,outstring);
#endif
#ifdef STAT_STATFS2_FSIZE
       snprintf(outstring,sizeof(outstring),"   STAT_STATFS2_FSIZE\n");
       output(screen,outstring);
#endif
#ifdef STAT_STATFS2_FS_DATA
       snprintf(outstring,sizeof(outstring),"   STAT_STATFS2_FS_DATA\n");
       output(screen,outstring);
#endif
#ifdef HAVE_EXPLICIT_LARGEFILE_SUPPORT
       snprintf(outstring,sizeof(outstring),"   HAVE_EXPLICIT_LARGEFILE_SUPPORT\n");
       output(screen,outstring);
#endif

#ifdef WITH_UTMP
       /* Output UTMP Stuff */
       snprintf(outstring,sizeof(outstring),"\nUTMP Related:\n");
       output(screen,outstring);
       snprintf(outstring,sizeof(outstring),"   WITH_UTMP\n");
       output(screen,outstring);

#ifdef HAVE_UTIMBUF
       snprintf(outstring,sizeof(outstring),"   HAVE_UTIMBUF\n");
       output(screen,outstring);
#endif
#ifdef HAVE_UT_UT_NAME
       snprintf(outstring,sizeof(outstring),"   HAVE_UT_UT_NAME\n");
       output(screen,outstring);
#endif
#ifdef HAVE_UT_UT_USER
       snprintf(outstring,sizeof(outstring),"   HAVE_UT_UT_USER\n");
       output(screen,outstring);
#endif
#ifdef HAVE_UT_UT_ID
       snprintf(outstring,sizeof(outstring),"   HAVE_UT_UT_ID\n");
       output(screen,outstring);
#endif
#ifdef HAVE_UT_UT_HOST
       snprintf(outstring,sizeof(outstring),"   HAVE_UT_UT_HOST\n");
       output(screen,outstring);
#endif
#ifdef HAVE_UT_UT_TIME
       snprintf(outstring,sizeof(outstring),"   HAVE_UT_UT_TIME\n");
       output(screen,outstring);
#endif
#ifdef HAVE_UT_UT_TV
       snprintf(outstring,sizeof(outstring),"   HAVE_UT_UT_TV\n");
       output(screen,outstring);
#endif
#ifdef HAVE_UT_UT_TYPE
       snprintf(outstring,sizeof(outstring),"   HAVE_UT_UT_TYPE\n");
       output(screen,outstring);
#endif
#ifdef HAVE_UT_UT_PID
       snprintf(outstring,sizeof(outstring),"   HAVE_UT_UT_PID\n");
       output(screen,outstring);
#endif
#ifdef HAVE_UT_UT_EXIT
       snprintf(outstring,sizeof(outstring),"   HAVE_UT_UT_EXIT\n");
       output(screen,outstring);
#endif
#ifdef HAVE_UT_UT_ADDR
       snprintf(outstring,sizeof(outstring),"   HAVE_UT_UT_ADDR\n");
       output(screen,outstring);
#endif
#ifdef PUTUTLINE_RETURNS_UTMP
       snprintf(outstring,sizeof(outstring),"   PUTUTLINE_RETURNS_UTMP\n");
       output(screen,outstring);
#endif
#ifdef HAVE_UX_UT_SYSLEN
       snprintf(outstring,sizeof(outstring),"   HAVE_UX_UT_SYSLEN\n");
       output(screen,outstring);
#endif
#endif

       /* Output Build OS */
       snprintf(outstring,sizeof(outstring),"\nBuilt for host os:\n");
       output(screen,outstring);
#ifdef LINUX
       snprintf(outstring,sizeof(outstring),"   LINUX\n");
       output(screen,outstring);
#endif
#ifdef SUNOS5
       snprintf(outstring,sizeof(outstring),"   SUNOS5\n");
       output(screen,outstring);
#endif
#ifdef SUNOS4
       snprintf(outstring,sizeof(outstring),"   SUNOS4\n");
       output(screen,outstring);
#endif
       /* BSD Isn't Defined in the configure script, but there is something about it in include/config.h.in (and I guess acconfig.h) */
#ifdef BSD
       snprintf(outstring,sizeof(outstring),"   BSD\n");
       output(screen,outstring);
#endif
#ifdef IRIX
       snprintf(outstring,sizeof(outstring),"   IRIX\n");
       output(screen,outstring);
#endif
#ifdef IRIX6
       snprintf(outstring,sizeof(outstring),"   IRIX6\n");
       output(screen,outstring);
#endif
#ifdef AIX
       snprintf(outstring,sizeof(outstring),"   AIX\n");
       output(screen,outstring);
#endif
#ifdef HPUX
       snprintf(outstring,sizeof(outstring),"   HPUX\n");
       output(screen,outstring);
#endif
#ifdef QNX
       snprintf(outstring,sizeof(outstring),"   QNX\n");
       output(screen,outstring);
#endif
#ifdef OSF1
       snprintf(outstring,sizeof(outstring),"   OSF1\n");
       output(screen,outstring);
#endif
#ifdef SCO
       snprintf(outstring,sizeof(outstring),"   SCO\n");
       output(screen,outstring);
#endif
#ifdef UNIXWARE
       snprintf(outstring,sizeof(outstring),"   UNIXWARE\n");
       output(screen,outstring);
#endif
#ifdef NEXT2
       snprintf(outstring,sizeof(outstring),"   NEXT2\n");
       output(screen,outstring);
#endif
#ifdef RELIANTUNIX
       snprintf(outstring,sizeof(outstring),"   RELIANTUNIX\n");
       output(screen,outstring);
#endif

       /* Output the sizes of the various types */
       snprintf(outstring,sizeof(outstring),"\nType sizes:\n");
       output(screen,outstring);
       snprintf(outstring,sizeof(outstring),"   sizeof(char):    %d\n",sizeof(char));
       output(screen,outstring);
       snprintf(outstring,sizeof(outstring),"   sizeof(int):     %d\n",sizeof(int));
       output(screen,outstring);
       snprintf(outstring,sizeof(outstring),"   sizeof(long):    %d\n",sizeof(long));
       output(screen,outstring);
       snprintf(outstring,sizeof(outstring),"   sizeof(uint8):   %d\n",sizeof(uint8));
       output(screen,outstring);
       snprintf(outstring,sizeof(outstring),"   sizeof(uint16):  %d\n",sizeof(uint16));
       output(screen,outstring);
       snprintf(outstring,sizeof(outstring),"   sizeof(uint32):  %d\n",sizeof(uint32));
       output(screen,outstring);
       snprintf(outstring,sizeof(outstring),"   sizeof(short):   %d\n",sizeof(short));
       output(screen,outstring);
       snprintf(outstring,sizeof(outstring),"   sizeof(void*):   %d\n",sizeof(void*));
       output(screen,outstring);
}