Codebase list cciss-vol-status / 8eb52e3
Imported Upstream version 1.11 Christian Hofstaedtler 10 years ago
8 changed file(s) with 3648 addition(s) and 1604 deletion(s). Raw diff Collapse all Expand all
9595 * make it compile on freebsd
9696 * Fix a file descriptor leak
9797
98 Changes since 1.08:
99
100 2010/12/03 08:23:26
101 * Remove unused bogus variable declarations at the end of a function
102 that didn't compile on older gcc versions. (Thanks to Simon Matter)
103 * Print error information if sense bus parameters encounters a target
104 status.
105 * Remove bogus incorrect initialization of controller_lun_list (it's
106 done later down in the code correctly.)
107 * Make it compile with no warnings after "configure CFLAGS=-Wall"
108
109 Changes since 1.09:
110 * Clean up uninitialized variables detected by valgrind.
111 * Added some new smart array controllers to the list of known
112 controllers
113 * Replace the too specific is_hpsa() and is_hpahcisr() functions with
114 a more generic is_smart_array(). This was preventing -u option from
115 working with the hpsa driver.
116 * Remove inquiry_vendor_model_matches() function which is now no
117 longer used.
118 * Added -W and -Wall flags to gcc in linux_alternate_makefile.mk
119 and fixed up all the warnings that those found.
120 * Add -V (verbose) option which prints out extra information
121 about the controller (board ID, running firmware revision,
122 ROM firmware revision, and number of logical drives).
123 * Make the --verbose option print out more information about the
124 controllers and physical drives. For each controller, the board ID,
125 number of logical drives, currently running firmware revision and ROM
126 firmware revision are printed. For each physical drive, the location,
127 vendor, model, serial number, and firmware revision are printed.
128 * Added .gitignore and cvsignore files
129 * regenerated configure, aclocal.m4, and Makefile.in on RHEL6u2.
130 * Made -p shortcut for --persnickety actualy work.
131
132 Changes since 1.10
133
134 * Added support for new controllers
135 * Now can report status of nonvolatile cache
136 * Misc. code cleanup and refactoring
137 * Do not spin up sleeping spare drives. This is done by using
138 "extended" CISS_REPORT_LUNS to obtain the device type instead of
139 sending inquiries to every device returned by standard
140 CISS_REPORT_LUNS to get the device type.
141
0 # Makefile.in generated by automake 1.11 from Makefile.am.
0 # Makefile.in generated by automake 1.11.1 from Makefile.am.
11 # @configure_input@
22
33 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
136136 PACKAGE_NAME = @PACKAGE_NAME@
137137 PACKAGE_STRING = @PACKAGE_STRING@
138138 PACKAGE_TARNAME = @PACKAGE_TARNAME@
139 PACKAGE_URL = @PACKAGE_URL@
140139 PACKAGE_VERSION = @PACKAGE_VERSION@
141140 PATH_SEPARATOR = @PATH_SEPARATOR@
142141 SET_MAKE = @SET_MAKE@
438437 fi; \
439438 done
440439 -test -n "$(am__skip_mode_fix)" \
441 || find "$(distdir)" -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
440 || find "$(distdir)" -type d ! -perm -755 \
441 -exec chmod u+rwx,go+rx {} \; -o \
442442 ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
443443 ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
444444 ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
482482 distcheck: dist
483483 case '$(DIST_ARCHIVES)' in \
484484 *.tar.gz*) \
485 GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
485 GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
486486 *.tar.bz2*) \
487 bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
487 bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
488488 *.tar.lzma*) \
489 unlzma -c $(distdir).tar.lzma | $(am__untar) ;;\
489 lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
490490 *.tar.xz*) \
491491 xz -dc $(distdir).tar.xz | $(am__untar) ;;\
492492 *.tar.Z*) \
493493 uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
494494 *.shar.gz*) \
495 GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
495 GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
496496 *.zip*) \
497497 unzip $(distdir).zip ;;\
498498 esac
0 # generated automatically by aclocal 1.11 -*- Autoconf -*-
0 # generated automatically by aclocal 1.11.1 -*- Autoconf -*-
11
22 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
33 # 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
1212
1313 m4_ifndef([AC_AUTOCONF_VERSION],
1414 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
15 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.64],,
16 [m4_warning([this file was generated for autoconf 2.64.
15 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],,
16 [m4_warning([this file was generated for autoconf 2.63.
1717 You have another version of autoconf. It may work, but is not guaranteed to.
1818 If you have problems, you may need to regenerate the build system entirely.
1919 To do so, use the procedure documented by the package, typically `autoreconf'.])])
3333 [am__api_version='1.11'
3434 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
3535 dnl require some minimum version. Point them to the right macro.
36 m4_if([$1], [1.11], [],
36 m4_if([$1], [1.11.1], [],
3737 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
3838 ])
3939
4949 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
5050 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
5151 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
52 [AM_AUTOMAKE_VERSION([1.11])dnl
52 [AM_AUTOMAKE_VERSION([1.11.1])dnl
5353 m4_ifndef([AC_AUTOCONF_VERSION],
5454 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
5555 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
0 .\" Copyright (C) 2006,2007 Hewlett-Packard Development Company, L.P.
1 .\"
2 .\"
3 .\" Copyright 2006,2007 Hewlett-Packard Development Company, L.P.
0 .\" Copyright (C) 2006,2007,2012,2013 Hewlett-Packard Development Company, L.P.
1 .\"
2 .\"
3 .\" Copyright 2006,2007,2012,2013 Hewlett-Packard Development Company, L.P.
44 .\"
55 .\" Author: Stephen M. Cameron
66 .\"
2020 .\" along with cciss_vol_status; if not, write to the Free Software
2121 .\" Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
2222 .\"
23 .TH CCISS_VOL_STATUS "8" "Nov 2009" "cciss_vol_status (ccissutils) " ""
23 .TH CCISS_VOL_STATUS "8" "May 2013" "cciss_vol_status (ccissutils) " ""
2424 .SH NAME
2525 cciss_vol_status \- show status of logical drives attached to HP Smartarray controllers
2626 .SH SYNOPSIS
7070 .TP
7171 \fB\-v, --version\fR
7272 Print the version number and exit.
73 .TP
74 \fB\-V, --verbose\fR
75 Print out more information about the controllers and physical drives.
76 For each controller, the board ID, number of logical drives, currently
77 running firmware revision and ROM firmware revision are printed. For
78 each physical drive, the location, vendor, model, serial number,
79 and firmware revision are printed.
7380 .TP
7481 \fB\-x, --exhaustive\fR
7582 Deprecated. Previously, it "exhaustively" searched for logical
164171 connector 2E box 1 bay 8 HP DF300BB6C3 3LM08AP700009713RXUT HPD3 S.M.A.R.T. predictive failure.
165172 /dev/cciss/c0d0: (Smart Array P800) Enclosure MSA60 (S/N: USP6340B3F) on Bus 2, Physical Port 2E status: OK.
166173
174
175 [root@localhost cciss_vol_status]# ./cciss_vol_status --verbose /dev/sg0
176 Controller: Smart Array P420i
177 Board ID: 0x3354103c
178 Logical drives: 1
179 Running firmware: 3.42
180 ROM firmware: 3.42
181 /dev/sda: (Smart Array P420i) RAID 1 Volume 0 status: OK.
182 Physical drives: 2
183 connector 1I box 2 bay 1 HP EG1200FCVBQ KZG21NVD HPD1 OK
184 connector 2I box 2 bay 5 HP EG1200FCVBQ KZG20X7D HPD1 OK
185 /dev/sg0(Smart Array P420i:0): Non-Volatile Cache status:
186 Cache configured: Yes
187 Read cache memory: 81 MiB
188 Write cache memory: 735 MiB
189 Write cache enabled: Yes
190 Flash backed cache present
191
192
167193 .DE
168194 .fi
169195 .SH DIAGNOSTICS
277303 0 - All configured logical drives queried have status of "OK."
278304 .TP
279305 1 - One or more configured logical drives queried have status other than "OK."
280 .SH AUTHOR
281 Written by Stephen M. Cameron
282 .SH "REPORTING BUGS"
306 .SH BUGS
283307 .P
284308 MSA500 G1 logical drive numbers may not be reported correctly.
285309 .P
286310 I've seen enclosure serial numbers contain garbage.
287311 .P
288 Report bugs to <steve.cameron@hp.com>
312 Some Smart Arrays support more than 128 physical drives on a single RAID
313 controller. cciss_vol_status does not.
314 .SH AUTHOR
315 Written by Stephen M. Cameron
316 .SH "REPORTING BUGS"
317 .P
318 Report bugs to <scameron@beardog.cce.hp.com>
289319 .SH COPYRIGHT
290320 Copyright \(co 2007 Hewlett-Packard Development Company, L.P.
291321 .br
00 /*
1 Copyright (C) 2006,2007 Hewlett-Packard Development Company, L.P.
1 Copyright (C) 2006,2007,2012,2013 Hewlett-Packard Development Company, L.P.
22 Author: Stephen M. Cameron
33
44 This file is part of cciss_vol_status.
3737 #include <unistd.h>
3838 #endif /* HAVE_UNISTD_H */
3939
40 #ifdef HAVE_STDBOOL_H
41 # include <stdbool.h>
42 #else
43 # ifndef HAVE__BOOL
44 # define _Bool signed char
45 # endif
46 # define bool _Bool
47 # define false 0
48 # define true 1
49 #endif /* HAVE_STDBOOL_H */
50
4051 #include <sys/types.h>
4152 #include <sys/stat.h>
4253 #include <fcntl.h>
4657 #else
4758 extern int errno; /* some systems #define this! */
4859 #endif /* HAVE_ERRNO_H */
60 #include <ctype.h>
4961
5062 #include <libgen.h>
5163 #include <sys/ioctl.h>
8294 #define ID_CTLR 0x11 /* Identify controller */
8395 #define ID_LSTATUS 0x12 /* identify logical drive status */
8496
85 int everything_hunky_dory = 1;
97 bool everything_hunky_dory = true;
8698 int persnickety = 0;
8799 int be_quiet = 1;
88100 int try_unknown_devices = 0;
89101 int exhaustive_search = 0;
90102 int debug = 0;
91103 int check_smart_data = 0;
104 int verbose = 0;
92105
93106 #define MSA1000_ID 0xe0100e11
94107
134147 { 0xe0200e11, "HP MSA500 G2", 1, 0},
135148 { 0xe0300e11, "HP MSA20", 1, 0},
136149 { 0x3118103c, "HP B110i", 0, 1},
150 { 0x324A103C, "Smart Array P712m", 0, 1},
151 { 0x324B103C, "Smart Array P711m", 0, 1},
152 { 0x3350103C, "Smart Array P222", 0, 1},
153 { 0x3351103C, "Smart Array P420", 0, 1},
154 { 0x3352103C, "Smart Array P421", 0, 1},
155 { 0x3353103C, "Smart Array P822", 0, 1},
156 { 0x3354103C, "Smart Array P420i", 0, 1},
157 { 0x3355103C, "Smart Array P220i", 0, 1},
158 { 0x3356103C, "Smart Array P721m", 0, 1},
159 { 0x1920103C, "Smart Array", 0, 1},
160 { 0x1921103C, "Smart Array", 0, 1},
161 { 0x1922103C, "Smart Array", 0, 1},
162 { 0x1923103C, "Smart Array", 0, 1},
163 { 0x1924103C, "Smart Array", 0, 1},
164 { 0x1925103C, "Smart Array", 0, 1},
165 { 0x1926103C, "Smart Array", 0, 1},
166 { 0x1928103C, "Smart Array", 0, 1},
167 { 0x334D103C, "Smart Array P822se", 0, 1},
168 { 0x00451590, "Dynamic Smart Array B320i", 0, 1},
169 { 0x00471590, "Dynamic Smart Array B320i", 0, 1},
170 { 0x00481590, "Dynamic Smart Array B120i", 0, 1},
171 { 0x006C1590, "Dynamic Smart Array B120i", 0, 1},
172 { 0x00841590, "Dynamic Smart Array B120i", 0, 1},
173
174
137175 #ifdef HAVE_SCSI_SG_H
138 { MSA1000_ID, "MSA1000", 1,},
176 { MSA1000_ID, "MSA1000", 1, 0},
139177 #else
140178 #warning Since <scsi/sg.h> is not around, MSA1000 support will not be compiled.
141179 #endif
142 { 0xFFFFFFFF, "Unknown Smart Array", 0,},
180 { 0xFFFFFFFF, "Unknown Smart Array", 0, 1},
143181 };
144182
145183 #define ARRAYSIZE(a) (sizeof((a)) / sizeof((a)[0]))
146184 #define UNKNOWN_CONTROLLER ARRAYSIZE(smartarray_id)
147185
148 unsigned long long zero_lun = 0x00ULL;
149 #define ZEROLUN ((unsigned char *) &zero_lun)
186 static unsigned char *zero_lun = (unsigned char *) "\0\0\0\0\0\0\0\0";
150187
151188 /* cciss_to_bmic maps cciss logical lun to correspoding
152189 (controller_lun, BMIC drive number) tuple via cross
153190 referencing inquiry page 0x83 data with
154191 BMIC ID logical drive data */
155192
193 #define CISS_LUN_ADDR_SIZE 8
194 #define MAX_LUNS 1024 /* 1024 should do us for awhile */
195
156196 struct cciss_bmic_addr_t {
157 unsigned char logical_lun[8];
158 unsigned char controller_lun[8];
197 unsigned char logical_lun[CISS_LUN_ADDR_SIZE];
198 unsigned char controller_lun[CISS_LUN_ADDR_SIZE];
159199 unsigned short bmic_drive_number;
160200 unsigned char bmic_id_ctlr_data[100];
161201 unsigned char inq_pg_0x83_data[100];
164204 };
165205
166206 struct bmic_addr_t {
167 unsigned char controller_lun[8];
207 unsigned char controller_lun[CISS_LUN_ADDR_SIZE];
168208 unsigned short bmic_drive_number;
169209 int tolerance_type;
170210 };
171211
172212 struct cciss_to_bmic_t {
173213 int naddrs;
174 struct cciss_bmic_addr_t addr[1024]; /* 1024 should do us for awhile */
214 struct cciss_bmic_addr_t addr[MAX_LUNS];
175215 } cciss_to_bmic;
176216
177217 /* List of controllers -- not all controllers in the system, just the
178218 internal one (e.g. all zero luns, plus externally attached ones --
179219 like MSA500. */
180220 #define MAX_CONTROLLERS 256 /* this is a ridiculously large number */
181 unsigned char controller_lun_list[MAX_CONTROLLERS][8];
221 unsigned char controller_lun_list[MAX_CONTROLLERS][CISS_LUN_ADDR_SIZE];
182222 int busses_on_this_ctlr[MAX_CONTROLLERS];
183223 int num_controllers = 0;
184224
235275 struct identify_controller {
236276 unsigned char num_logical_drives;
237277 uint32_t signature;
238 uint32_t running_firm_rev;
278 unsigned char running_firm_rev[4];
239279 unsigned char rom_firm_rev[4];
240280 unsigned char hardware_rev;
241281 unsigned char reserved[4];
247287 unsigned char reserved3[5];
248288 unsigned char marketing_revision;
249289 unsigned char controller_flags;
250 // unsigned char reserved4[2];
251290 unsigned char host_flags;
252291 unsigned char expand_disable_code;
253292 unsigned char scsi_chip_count;
475514 #define BMIC_IDENTIFY_PHYSICAL_DEVICE 0x15
476515 #pragma pack()
477516
517 #define CISS_READ 0x26
518 #define CISS_MAX_CDB_LEN 16
519 #define DEVICE_TYPE_RAID 0x0c
520 #define CISS_REPORT_LOGICAL_LUNS 0xc2
521 #define CISS_REPORT_PHYSICAL_LUNS 0xc3
522 #define REPORT_LUNS_FLAG_PHYSICAL_NODE_IDS (1 << 0)
523 #define REPORT_LUNS_FLAG_OTHER_PHYS_DEV_INFO (1 << 1)
524 #define REPORT_LUNS_EXTENDED_MASK 0x03
525 #define REPORT_LUNS_HEADER_SIZE 8
526 #define REPORT_LUNS_ENTRY_SIZE(extended) (8 + (extended ? 1 : 0) * 16)
527 #define EXTENDED_REPORT_LUNS_ENTRY_SIZE REPORT_LUNS_ENTRY_SIZE(true)
528
529 #pragma pack(1)
530 #define BMIC_SENSE_CACHE_CONFIGURATION 0xc1
531 #define SENSE_CACHE_CONFIG_CDB_LEN 10
532 struct bmic_transfer_data {
533 uint8_t memory_address_hi_dir;
534 uint16_t memory_address_lo;
535 uint16_t transfer_count;
536 };
537
538 struct bmic_cache_configuration {
539 uint32_t posted_writes_drive_bit_map;
540 uint16_t mem_for_read_cache;
541 uint16_t mem_for_write_cache;
542 uint8_t disable_flag;
543 uint16_t offset_to_ecu_bitmap;
544 uint16_t offset_to_ecf_bitmap;
545 uint16_t offset_to_ercdu_bitmap;
546 uint8_t reserved1;
547 uint32_t total_length;
548 uint16_t max_log_drv_supported;
549 uint8_t reserved2[10];
550 uint32_t status;
551 #define BMIC_POSTED_WRITE_STATUS_ENABLED (1 << 0)
552 #define BMIC_POSTED_WRITE_TEMP_DISABLED (1 << 1)
553 #define BMIC_POSTED_WRITE_PERM_DISABLED (1 << 2)
554 #define BMIC_POSTED_WRITE_VALID_DATA_ON_RESET_FOUND (1 << 3)
555 #define BMIC_POSTED_WRITE_POSSIBLE_DATA_LOSS_ON_RESET (1 << 4)
556 /* bits 5,6 not implemented, 7 is weird */
557 #define BMIC_POSTED_WRITE_UNFLUSHED_DIRTY_DATA (1 << 8)
558 #define BMIC_POSTED_WRITE_DIRTY_DATA_LIMIT_REACHED (1 << 9)
559 #define BMIC_POSTED_WRITE_ECC_ERRORS_DETECTED (1 << 10)
560 #define BMIC_POSTED_WRITE_DATA_LOSS_OTHER (1 << 11)
561 #define BMIC_POSTED_WRITE_AUTO_RECONFIG (1 << 12)
562 #define BMIC_POSTED_WRITE_REDUNDCTLR_VALID_DATA_FOUND (1 << 13)
563 #define BMIC_POSTED_WRITE_BATTERY_ENABLE_HW_PROBLEM (1 << 14)
564 #define BMIC_POSTED_WRITE_CPLD_BBWC_INCOMPATIBILITY (1 << 15)
565 #define BMIC_POSTED_WRITE_CAPACITOR_ATTACHED (1 << 16)
566 #define BMIC_POSTED_WRITE_161718_CACHE_DISABLED (1 << 30)
567 uint16_t disable_code;
568 uint16_t total_memory_size;
569 uint16_t battery_count;
570 uint16_t good_battery_map;
571 uint16_t parity_read_errors;
572 uint16_t parity_write_errors;
573 #define BMIC_XFER_DATA_ERROR_LOG_LENGTH 32
574 struct bmic_transfer_data error_log[BMIC_XFER_DATA_ERROR_LOG_LENGTH];
575 uint16_t failed_battery_map;
576 uint8_t daughter_board_attached;
577 uint32_t cache_failure_map;
578 uint8_t max_error_log_entries;
579 uint8_t nvarm_load_status;
580 uint8_t memory_size_shift_factor;
581 uint16_t non_battery_backed_memory_size;
582 uint8_t memory_state;
583 uint8_t cache_autorev;
584 uint16_t total_attached_memory;
585 uint8_t percent_read_cache;
586 uint8_t percent_write_cache;
587 uint8_t default_percent_read_cache;
588 uint8_t default_percent_write_cache;
589 #define BMIC_CACHE_CONFIG_PAD_TO_512_BYTES 284
590 uint8_t reserved[BMIC_CACHE_CONFIG_PAD_TO_512_BYTES];
591 };
592 #pragma pack()
593
478594 char *progname = "cciss_vol_status";
479595
480596 void usage()
485601 fprintf(stderr, " (useful for brand new hardware.)\n");
486602 fprintf(stderr, " -s --smart Report S.M.A.R.T. predictive failures. \n");
487603 fprintf(stderr, " -v --version Print program version and exit.\n");
604 fprintf(stderr, " -V --verbose Print more info about controller and disks.\n");
488605 fprintf(stderr, " -C --copyright Print copyright notice first.\n");
489606 exit(-1);
607 }
608
609 static void set_cdb_buffer_length(unsigned char *cdb, uint16_t buflen)
610 {
611 #define CDBBUFLEN 7 /* buffer length commonly stored at byte 7 in CDB */
612 cdb[CDBBUFLEN] = (buflen >> 8) & 0xff;
613 cdb[CDBBUFLEN + 1] = buflen & 0xff;
490614 }
491615
492616 static void find_bus_target(struct identify_controller *id, int bmic_drive_number,
512636 *target = bmic_drive_number % drives_per_scsi_bus;
513637 }
514638
639 static void copy_drive_field(unsigned char *to, unsigned char *from, int limit)
640 {
641 int i;
642
643 for (i = 0; i < limit; i++) {
644 if (isprint(from[i]) || from[i] == '\0')
645 to[i] = from[i];
646 else
647 to[i] = '?';
648 }
649 to[limit] = '\0';
650 }
651
515652 static void format_phys_drive_location(char *location, int bus, int target,
516653 int ctlrtype, unsigned char *controller_lun, struct identify_physical_device *device_data)
517654 {
518655 char tail[300];
656 unsigned char model[sizeof(device_data->drive_model) + 1];
657 unsigned char serial_no[sizeof(device_data->drive_serial_no) + 1];
658 unsigned char fw_rev[sizeof(device_data->drive_fw_rev) + 1];
519659
520660 if (smartarray_id[ctlrtype].can_decode_drive_map && (device_data || !controller_lun))
521661 sprintf(location, " b%dt%d", bus, target);
522662 else
523663 sprintf(location, " ");
524664 if (device_data && controller_lun) {
665 copy_drive_field(model, device_data->drive_model, sizeof(device_data->drive_model));
666 copy_drive_field(serial_no, device_data->drive_serial_no, sizeof(device_data->drive_serial_no));
667 copy_drive_field(fw_rev, device_data->drive_fw_rev, sizeof(device_data->drive_fw_rev));
525668 sprintf(tail, " connector %c%c box %d bay %d %40s %40s %8s",
526669 device_data->phys_connector[0],
527670 device_data->phys_connector[1],
528671 device_data->phys_box_on_bus,
529672 device_data->phys_bay_in_box,
530 device_data->drive_model,
531 device_data->drive_serial_no,
532 device_data->drive_fw_rev);
673 model, serial_no, fw_rev);
533674 } else
534675 sprintf(tail, " connector ?? box ?? bay ?? %40s %40s %8s",
535676 "unknown-model",
545686 unsigned char or_val;
546687
547688 element = (bit / 8);
689
690 if (element >= bitstringlength) {
691 fprintf(stderr, "Bug detected at %s:%d\n", __FILE__, __LINE__);
692 abort();
693 }
694
548695 offset = bit % 8;
549696 or_val = (unsigned char) (1 << offset);
550697
601748 {
602749 memset(cmd, 0, sizeof(*cmd));
603750 if (lun != NULL)
604 memcpy(&cmd->LUN_info, lun, 8);
751 memcpy(&cmd->LUN_info, lun, CISS_LUN_ADDR_SIZE);
605752 cmd->Request.CDBLen = cdblen;
606753 cmd->Request.Type.Type = TYPE_CMD;
607754 cmd->Request.Type.Attribute = ATTR_SIMPLE;
612759 cmd->buf = buf;
613760 }
614761
615 static int do_report_luns(char *filename, int fd, int *count, unsigned char *lun, int physical)
762 static void print_report_lun_data(char *title, int count_in_bytes,
763 unsigned char *data, bool extended)
764 {
765 int i;
766 int lun_count;
767 int bytes_per_lun;
768 int lun;
769
770 bytes_per_lun = REPORT_LUNS_ENTRY_SIZE(extended);
771
772 lun_count = count_in_bytes / REPORT_LUNS_ENTRY_SIZE(extended);
773
774 printf("%s (%s)\n", title, extended ? "(extended)" : "");
775 printf("bytecount = %d, lun count = %d \n", count_in_bytes, lun_count);
776
777 lun = 0;
778 for (i = 0; i < count_in_bytes; i++) {
779 if ((i % bytes_per_lun) == 0)
780 printf("\n%d: ", lun);
781 printf("%02x", data[i - REPORT_LUNS_HEADER_SIZE]);
782 }
783 printf("\n\n");
784 }
785
786 static int do_report_luns(char *filename, int fd, int *count,
787 unsigned char *lun, int physical, int extended_flags)
616788 {
617789 IOCTL_Command_struct cmd;
618790 int rc;
619 unsigned char cdb[16];
791 unsigned char cdb[CISS_MAX_CDB_LEN];
620792 unsigned int bufsize;
621793 char *cmdname;
622794 int becount;
623
624 memset(lun, 0, *count * 8);
625 bufsize = htonl(*count *8);
795 bool extended = (extended_flags & REPORT_LUNS_EXTENDED_MASK);
796
797 memset(lun, 0, *count * REPORT_LUNS_ENTRY_SIZE(extended));
798 bufsize = htonl(*count * REPORT_LUNS_ENTRY_SIZE(extended));
626799 memset(cdb, 0, 16);
627 cdb[0] = physical ? 0xc3 : 0xc2; /* report physical/logical LUNs */
800 cdb[0] = physical ? CISS_REPORT_PHYSICAL_LUNS : CISS_REPORT_LOGICAL_LUNS;
801 cdb[1] = extended_flags;
628802 memcpy(&cdb[6], &bufsize, 4);
629803
630 setup_for_ioctl(&cmd, ZEROLUN, cdb, 12, 0, lun, *count * 8);
804 setup_for_ioctl(&cmd, zero_lun, cdb, 12, 0, lun, *count * 8);
631805 rc = ioctl(fd, CCISS_PASSTHRU, &cmd);
632 cmdname = physical ? "REPORT_PHYSICAL" : "REPORT_LOGICAL";
806
807 if (physical)
808 cmdname = extended ? "REPORT_PHYSICAL (extended)" : "REPORT_PHYSICAL";
809 else
810 cmdname = extended ? "REPORT_LOGICAL (extended)" : "REPORT_LOGICAL";
633811 CHECK_IOCTL(filename, cmdname, rc, &cmd, -1); /* macro which may return... */
634812
635813 /* memcpy to avoid possible unaligned access on ia64, */
636814 /* in case lun isn't aligned on a 4 byte boundary */
637815 /* (it is, but, why assume it?). */
638816 memcpy(&becount, lun, sizeof(becount));
639 *count = ntohl(becount) / 8;
640
641 if (debug) {
642 int i;
643 fprintf(stderr, "%s: %d %s luns:\n\n", filename, *count, physical ? "physical" : "logical");
644 for (i = 8; i < (*count+1) * 8; i++) {
645 if ((i % 8) == 0)
646 fprintf(stderr, "%d: ", (i-1) / 8);
647 fprintf(stderr, "%02x", lun[i]);
648 if (((i+1) % 8) == 0)
649 fprintf(stderr, "\n");
650 }
651 fprintf(stderr, "\n");
652 }
817 *count = ntohl(becount) / REPORT_LUNS_ENTRY_SIZE(extended);
818
819 if (debug)
820 print_report_lun_data(physical ? "Report physical luns" : "Report logical luns",
821 ntohl(becount), lun, extended);
653822 return 0;
654823 }
655824
658827 unsigned char *buffer)
659828 {
660829 IOCTL_Command_struct cmd;
661 unsigned char cdb[16];
662 unsigned short buffer_size = htons(512); /* Always 512 bytes for this cmd */
830 unsigned char cdb[CISS_MAX_CDB_LEN];
663831 int rc;
664832
665833 memset(cdb, 0, 16);
666 cdb[0] = 0x26; /* cciss read */
834 cdb[0] = CISS_READ;
667835 cdb[1] = 0xff & bmic_drive_number;
668836 cdb[6] = ID_LOGICAL_DRIVE;
669 memcpy(&cdb[7], &buffer_size, 2);
837 set_cdb_buffer_length(cdb, 512); /* Always 512 bytes for this cmd */
670838 cdb[9] = 0xff && (bmic_drive_number >> 8);
671839
672840 setup_for_ioctl(&cmd, controller_lun, cdb, 16, 0, buffer, 512);
675843 return 0;
676844 }
677845
846 static int do_sense_cache_configuration(char *filename, int fd,
847 unsigned char *controller_lun,
848 struct bmic_cache_configuration *cache_config)
849 {
850 IOCTL_Command_struct cmd;
851 unsigned char cdb[CISS_MAX_CDB_LEN];
852 int rc;
853
854 memset(cdb, 0, 16);
855 cdb[0] = CISS_READ;
856 cdb[6] = BMIC_SENSE_CACHE_CONFIGURATION;
857 set_cdb_buffer_length(cdb, sizeof(*cache_config));
858
859 setup_for_ioctl(&cmd, controller_lun, cdb, SENSE_CACHE_CONFIG_CDB_LEN, 0,
860 (unsigned char *) cache_config,
861 sizeof(*cache_config));
862 rc = ioctl(fd, CCISS_PASSTHRU, &cmd);
863 CHECK_IOCTL(filename, "BMIC_SENSE_CACHE_CONFIGURATION",
864 rc, &cmd, -1); /* macro which may return... */
865 return 0;
866 }
867
678868 static int do_bmic_identify_physical_device(char *filename, int fd,
679869 unsigned char *controller_lun, int bmic_drive_number,
680870 struct identify_physical_device *id_phys_device)
681871 {
682872 IOCTL_Command_struct cmd;
683873 int is_internal_controller;
684 uint8_t lunzero[8];
685 uint16_t buflen_be;
874 uint8_t lunzero[CISS_LUN_ADDR_SIZE];
686875 int rc;
687876
688877 memset(&cmd, 0, sizeof(cmd));
689878 memset(lunzero, 0, sizeof(lunzero));
690879
691 is_internal_controller = (memcmp(lunzero, controller_lun, 8) == 0);
692 buflen_be = htons(sizeof(*id_phys_device));
880 is_internal_controller = (memcmp(lunzero, controller_lun,
881 CISS_LUN_ADDR_SIZE) == 0);
693882 memcpy(&cmd.LUN_info, controller_lun, sizeof(cmd.LUN_info));
694883 cmd.Request.CDBLen = 10;
695 cmd.Request.CDB[0] = 0x26; /* CISS READ */
884 cmd.Request.CDB[0] = CISS_READ;
696885 if (is_internal_controller)
697886 cmd.Request.CDB[2] = bmic_drive_number & 0xff;
698887 else
699888 cmd.Request.CDB[5] = bmic_drive_number & 0xff;
700889 cmd.Request.CDB[6] = BMIC_IDENTIFY_PHYSICAL_DEVICE;
701890 cmd.Request.CDB[9] = (bmic_drive_number >> 8) & 0xff;
702 memcpy(&cmd.Request.CDB[7], &buflen_be, sizeof(buflen_be));
891 set_cdb_buffer_length(cmd.Request.CDB, sizeof(*id_phys_device));
703892 cmd.Request.Type.Type = TYPE_CMD;
704893 cmd.Request.Type.Attribute = ATTR_SIMPLE;
705894 cmd.Request.Type.Direction = XFER_READ;
718907 static int do_sgio_bmic_identify_physical_device(int fd, int bmic_drive_number,
719908 struct identify_physical_device *id_phys_device)
720909 {
721 unsigned char cdb[16];
722 uint8_t lunzero[8];
723 uint16_t buflen_be;
910 unsigned char cdb[CISS_MAX_CDB_LEN];
911 uint8_t lunzero[CISS_LUN_ADDR_SIZE];
724912
725913 memset(lunzero, 0, sizeof(lunzero));
726914
727 cdb[0] = 0x26; /* CISS READ */
915 cdb[0] = CISS_READ;
728916
729917 /* This is tricky. We're supposed to use either byte 2, or byte 5
730918 * for the bmic drive number depending on if the controller is internal
737925 cdb[5] = bmic_drive_number & 0xff;
738926 cdb[6] = BMIC_IDENTIFY_PHYSICAL_DEVICE;
739927 cdb[9] = (bmic_drive_number >> 8) & 0xff;
740 buflen_be = htons(sizeof(id_phys_device));
741 memcpy(&cdb[7], &buflen_be, sizeof(buflen_be));
928 set_cdb_buffer_length(cdb, sizeof(id_phys_device));
742929
743930 return do_sg_io(fd, cdb, 10, (unsigned char *) &id_phys_device,
744931 sizeof(id_phys_device), SG_DXFER_FROM_DEV);
749936 static int id_ctlr_fd(char * filename, int fd, unsigned char *lun, struct identify_controller *id)
750937 {
751938 int rc;
752 unsigned char cdb[16];
939 unsigned char cdb[CISS_MAX_CDB_LEN];
753940 IOCTL_Command_struct cmd;
754 unsigned short bebufsize;
755941 int ctlrtype;
756942
757943 memset(id, 0, sizeof(*id));
758944 memset(&cmd, 0, sizeof(cmd));
759945 memset(cdb, 0, 16);
760 bebufsize = htons(sizeof(*id));
761 cdb[0] = 0x26;
946 cdb[0] = CISS_READ;
762947 cdb[6] = ID_CTLR;
763 memcpy(&cdb[7], &bebufsize, 2);
948 set_cdb_buffer_length(cdb, sizeof(*id));
764949
765950 setup_for_ioctl(&cmd, lun, cdb, 10, 0, (unsigned char *) id, sizeof(*id));
766951 rc = ioctl(fd, CCISS_PASSTHRU, &cmd);
770955 if (ctlrtype == -1) {
771956 fprintf(stderr, "%s: Warning: unknown controller type 0x%08x\n",
772957 progname, id->board_id);
773 everything_hunky_dory = 0;
958 everything_hunky_dory = false;
774959 } else if (ctlrtype == -1 || smartarray_id[ctlrtype].supports_sas) {
775960 id->drives_per_scsi_bus = 16; /* bit of a kludge here */
776961 id->scsi_chip_count = 8;
8771062 struct identify_logical_drive_status *vs, struct identify_controller *id,
8781063 int tolerance_type, int certain)
8791064 {
880 int spare_bit;
881 int i, j, failed_drive_count;
1065 unsigned int spare_bit;
1066 unsigned int i, j, failed_drive_count;
8821067 char raid_level[100];
8831068
8841069 if (vs->status == 2) {/* This logical drive is not configured, so no status. */
8881073 }
8891074
8901075 if (vs->status != 0)
891 everything_hunky_dory = 0;
1076 everything_hunky_dory = false;
8921077
8931078 switch (tolerance_type) {
8941079 case 0: sprintf(raid_level, "RAID 0");
9501135 }
9511136 }
9521137 if (failed_drive_count != 0) {
953 everything_hunky_dory = 0;
1138 everything_hunky_dory = false;
9541139 printf(" Total of %d failed physical drives "
9551140 "detected on this logical drive.\n",
9561141 failed_drive_count);
9691154 return -1;
9701155 }
9711156
972 static void print_bus_status(char *file, int ctlrtype, int controller_number,
1157 static void print_bus_status(char *file, int ctlrtype,
9731158 int bus_number, sense_bus_param *bus_param)
9741159 {
9751160 int alarms;
10151200 alarms = bus_param->alarm_data.alarm_status & bus_param->alarm_data.valid_alarm_bits;
10161201
10171202 if (alarms) {
1018 everything_hunky_dory = 0;
1203 everything_hunky_dory = false;
10191204
10201205 status[0] = '\0';
10211206 if (alarms & 0x1) {
11521337 {
11531338 unsigned char sensebuffer[64];
11541339 int direction = SG_DXFER_FROM_DEV;
1155 unsigned char cdb[16];
1340 unsigned char cdb[CISS_MAX_CDB_LEN];
11561341 int cdblen;
1157 unsigned short bufsize;
11581342
11591343 memset(cdb, 0, sizeof(cdb));
11601344 memset(sensebuffer, 0, 64);
11611345 switch (cmd) {
11621346 case ID_LOGICAL_DRIVE:
11631347 case ID_LSTATUS: {
1164 bufsize = htons((unsigned short) size);
1165 cdb[0] = 0x26;
1348 cdb[0] = CISS_READ;
11661349 cdb[1] = log_unit;
11671350 cdb[6] = cmd;
1168 memcpy(&cdb[7], &bufsize, sizeof(bufsize));
1351 set_cdb_buffer_length(cdb, size);
11691352 direction = SG_DXFER_FROM_DEV;
11701353 cdblen = 10;
11711354 break;
11721355 }
11731356 case ID_CTLR: { /* 0x11 */
1174 bufsize = htons((unsigned short) size);
1175 cdb[0] = 0x26;
1357 cdb[0] = CISS_READ;
11761358 cdb[6] = cmd;
1177 memcpy(&cdb[7], &bufsize, sizeof(bufsize));
1359 set_cdb_buffer_length(cdb, size);
11781360 direction = SG_DXFER_FROM_DEV;
11791361 cdblen = 10;
11801362 break;
11841366 return -1;
11851367 }
11861368 return do_sg_io(fd, cdb, cdblen, buffer, size, direction);
1187 }
1188
1189 static int inquiry_vendor_model_matches(int fd, char *prod[])
1190 {
1191 int status;
1192 char std_inq[256];
1193 int i;
1194
1195 status = do_inquiry(fd, 0, (unsigned char *) std_inq, 255);
1196 if (status < 0)
1197 return 0;
1198 for (i = 0; prod[i] != NULL; i++) {
1199 if (strncmp(std_inq+8, prod[i], strlen(prod[i])) == 0)
1200 return 1;
1201 }
1202 return 0;
1203 }
1204
1205 static char *hpahcisr_prod[] = {
1206 "HP B110i",
1207 NULL,
1208 };
1209
1210 static char *hpsa_prod[] = {
1211 "HP P800",
1212 "HP P400",
1213 "HP P700M",
1214 "HP P212",
1215 "HP P410",
1216 "HP P410i",
1217 "HP P411",
1218 "HP P812",
1219 NULL,
1220 };
1221
1222 static inline int is_hpsa(int fd)
1223 {
1224 return inquiry_vendor_model_matches(fd, hpsa_prod);
1225 }
1226
1227 static inline int is_hpahcisr(int fd)
1228 {
1229 return inquiry_vendor_model_matches(fd, hpahcisr_prod);
12301369 }
12311370
12321371 static int is_msa1000(int fd)
12461385 return 0;
12471386 }
12481387
1388 static int is_smartarray_driver(int fd)
1389 {
1390 struct _cciss_pci_info_struct pciinfo;
1391
1392 /* If the CCISS_GETPCIINFO ioctl is known, we can presume
1393 * it's a Smart Array.
1394 *
1395 * This does rely on linux's ioctl numbers being unique
1396 * system wide. Should be the case on vmware and freebsd too.
1397 *
1398 * I memset the buffer to zero anyway just on the off chance that
1399 * this assumption turns out to be false in order to make the
1400 * program at least behave consistently by not passing
1401 * uninitialized stack data to an unknown ioctl.
1402 */
1403 memset(&pciinfo, 0, sizeof(pciinfo));
1404 return (ioctl(fd, CCISS_GETPCIINFO, &pciinfo) == 0);
1405 }
1406
12491407 #define MAX_CACHED_DEVICE_NODES 2048
12501408 static struct serial_number_map {
12511409 char *device_node;
12521410 char serial_no[16];
1253 } serial_no_map[MAX_CACHED_DEVICE_NODES] = { { 0 } };
1411 } serial_no_map[MAX_CACHED_DEVICE_NODES];
12541412 static int ncached_device_nodes = 0;
12551413
12561414 static char *lookup_cached_device_node(unsigned char *serial_no)
14331591
14341592 static int all_same(unsigned char *buf, unsigned int bufsize, unsigned char value)
14351593 {
1436 int rc, i;
1594 unsigned int i;
1595 int rc;
14371596
14381597 rc = 0;
14391598 for (i = 0; i < bufsize; i++) {
14501609 unsigned char buf_size)
14511610 {
14521611 IOCTL_Command_struct cmd;
1453 unsigned char cdb[16];
1612 unsigned char cdb[CISS_MAX_CDB_LEN];
14541613 int status;
14551614
14561615 memset(&cmd, 0, sizeof(cmd));
14711630 status = ioctl(fd, CCISS_PASSTHRU, &cmd);
14721631 CHECK_IOCTL(file, "INQUIRY", status, &cmd, -1); /* macro which may return... */
14731632 return 0;
1633 }
1634
1635 static void append_internal_controller_lunid_to_extended_report_luns(unsigned char *data,
1636 int *lun_count)
1637 {
1638 int offset = REPORT_LUNS_HEADER_SIZE +
1639 *lun_count * EXTENDED_REPORT_LUNS_ENTRY_SIZE;
1640 memset(&data[offset], 0, EXTENDED_REPORT_LUNS_ENTRY_SIZE);
1641 data[offset + EXTENDED_REPORT_LUNS_ENTRY_SIZE - 1] = DEVICE_TYPE_RAID;
1642 (*lun_count)++;
1643 }
1644
1645 static unsigned char get_device_type(unsigned char *extended_report_luns_entry)
1646 {
1647 return extended_report_luns_entry[EXTENDED_REPORT_LUNS_ENTRY_SIZE - 1];
14741648 }
14751649
14761650 /*****************************************************************
15451719 #pragma pack(1)
15461720 struct identify_logical_drive id_logical_drive_data;
15471721 #pragma pack()
1548 unsigned long long lunlist[1025];
1549 int luncount = 1024;
1550 unsigned long long physlunlist[1025];
1722 uint64_t lunlist[MAX_LUNS + 1];
1723 int lun_count = MAX_LUNS;
1724 unsigned char physlunlist[(MAX_LUNS + 1) * EXTENDED_REPORT_LUNS_ENTRY_SIZE +
1725 REPORT_LUNS_HEADER_SIZE];
15511726 unsigned char buf[256];
1552 struct bmic_addr_t missed_drive[1025];
1727 struct bmic_addr_t missed_drive[MAX_LUNS + 1];
15531728 int nmissed = 0;
15541729 int nguessed = 0;
15551730 int rc;
15621737 memset(missed_drive, 0, sizeof(missed_drive));
15631738
15641739 /* Do report LOGICAL LUNs to get a list of all logical drives */
1565 rc = do_report_luns(file, fd, &luncount, (unsigned char *) lunlist, 0);
1740 rc = do_report_luns(file, fd, &lun_count, (unsigned char *) lunlist, 0, 0);
15661741 if (rc != 0) {
15671742 fprintf(stderr, "do_report_luns(logical) failed.\n");
1568 everything_hunky_dory = 0;
1743 everything_hunky_dory = false;
15691744 return -1;
15701745 }
15711746
1572 cciss_to_bmic.naddrs = luncount;
1747 cciss_to_bmic.naddrs = lun_count;
15731748
15741749 /* For each logical drive... */
15751750 for (i = 0; i < cciss_to_bmic.naddrs; i++) {
1576 memcpy(cciss_to_bmic.addr[i].logical_lun, &lunlist[i+1], 8);
1751 memcpy(cciss_to_bmic.addr[i].logical_lun, &lunlist[i+1],
1752 CISS_LUN_ADDR_SIZE);
15771753 if (debug) {
15781754 unsigned char *x = (unsigned char *) &lunlist[i+1];
15791755 fprintf(stderr, "%d: ", i);
1580 for (j = 0; j < 8; j++)
1756 for (j = 0; j < CISS_LUN_ADDR_SIZE; j++)
15811757 fprintf(stderr, "%02x", x[j]);
15821758 fprintf(stderr, "\n");
15831759 }
15961772 }
15971773
15981774 /* Get a list of physical luns... we're looking for RAID controller devices */
1599 luncount = 1024;
1600 rc = do_report_luns(file, fd, &luncount, (unsigned char *) physlunlist, 1);
1775 lun_count = MAX_LUNS;
1776 rc = do_report_luns(file, fd, &lun_count, physlunlist, 1,
1777 REPORT_LUNS_FLAG_OTHER_PHYS_DEV_INFO);
16011778 if (rc != 0) {
16021779 fprintf(stderr, "%s: do_report_physical failed.\n", progname);
1603 everything_hunky_dory = 0;
1780 everything_hunky_dory = false;
16041781 return -1;
16051782 }
16061783
16071784 /* Add the PCI host controller itself to this list... */
1608 /* Careful, first 8 bytes of physlunlist are a count, not lun */
1609 memcpy(&physlunlist[luncount+1], ZEROLUN, 8);
1610 luncount++;
1785 append_internal_controller_lunid_to_extended_report_luns(physlunlist, &lun_count);
1786
16111787 memset(controller_lun_list[0], 0, 8);
16121788 num_controllers = 0;
16131789
1614 for (i = 0;i < luncount;i++) { /* For each physical LUN... */
1790 for (i = 0; i < lun_count; i++) { /* For each physical LUN... */
16151791
16161792 struct identify_controller id_ctlr_data;
16171793 int max_possible_drives = 0;
1618
1619 /* Get the standard inquiry page, so we can look at the device type */
1620 memset(buf, 0, 100);
1621 rc = do_cciss_inquiry(file, fd, (unsigned char *) &physlunlist[i+1], 0, buf, 100);
1622 if (rc != 0) {
1623 if (debug)
1624 fprintf(stderr, "Inquiry to phys device %d failed.\n", i);
1625 /* Some devices won't respond well to inquiry, this is expected, if hokey. */
1626 continue;
1627 }
1628
1629 /* If it's not a RAID controller, skip it. */
1630 if ((buf[0] & 0x0f) != 0x0C) { /* devicetype != RAID_CONTROLLER */
1794 int byteoffset = REPORT_LUNS_HEADER_SIZE +
1795 i * EXTENDED_REPORT_LUNS_ENTRY_SIZE;
1796 unsigned char *this_lun_data = &physlunlist[byteoffset];
1797
1798 /* If the device type is not RAID CONTROLLER, skip this device. */
1799 if (get_device_type(this_lun_data) != DEVICE_TYPE_RAID) {
16311800 if (debug)
16321801 fprintf(stderr, "Not a RAID controller, skipping.\n");
16331802 continue;
16341803 }
16351804
1636 if (debug) {
1637 int m;
1638 fprintf(stderr, "Querying RAID controller: ");
1639 for (m = 16; m < 36; m++)
1640 fprintf(stderr, "%c", buf[m]);
1641 fprintf(stderr,"\n");
1642 }
1643
16441805 /* Issue IDENTIFY_PHYSICAL_CONTROLLER to get number of logical drives */
16451806 /* possible and present on this particular controller */
16461807
16471808 memset(&id_ctlr_data, 0, sizeof(id_ctlr_data));
1648 rc = id_ctlr_fd(file, fd, (unsigned char *) &physlunlist[i+1], &id_ctlr_data);
1809 rc = id_ctlr_fd(file, fd, this_lun_data, &id_ctlr_data);
16491810 if (rc != 0) {
16501811 fprintf(stderr, "%s: do_id_ctlr on lun %d failed.\n", progname, i);
16511812 continue;
16651826 }
16661827
16671828 /* Record this controller for later checking of fan/power/temp status */
1668 memcpy(controller_lun_list[num_controllers], (unsigned char *) &physlunlist[i+1], 8);
1829 memcpy(controller_lun_list[num_controllers], this_lun_data,
1830 CISS_LUN_ADDR_SIZE);
16691831 busses_on_this_ctlr[num_controllers] = id_ctlr_data.scsi_chip_count;
16701832
16711833 /* For SAS controllers, there's a different way to figure "busses"
17091871
17101872 /* For each possible logical drive on this raid controller... */
17111873 for (j = 0; j < max_possible_drives; j++) {
1712 unsigned char *lundata = (unsigned char *) &physlunlist[i+1];
17131874
17141875 /* Issue BMIC IDENTIFY_LOGICAL_DRIVE cmd to get unique identifier */
17151876 memset(&id_logical_drive_data, 0, sizeof(id_logical_drive_data));
17161877 rc = do_bmic_id_logical_drive(file, fd,
1717 lundata, j, (unsigned char *) &id_logical_drive_data);
1878 this_lun_data, j, (unsigned char *) &id_logical_drive_data);
17181879 if (rc != 0) {
17191880 fprintf(stderr, "%s: do_bmic_id_logical_drive failed for drive %d\n",
17201881 progname, j);
17321893
17331894 if (debug) {
17341895 fprintf(stderr, "Logical drive 0x%02x%02x%02x%02x%02x%02x%02x%02x:%d has unique id: 0x",
1735 lundata[0], lundata[1], lundata[2], lundata[3],
1736 lundata[4], lundata[5], lundata[6], lundata[7], j);
1896 this_lun_data[0], this_lun_data[1],
1897 this_lun_data[2], this_lun_data[3],
1898 this_lun_data[4], this_lun_data[5],
1899 this_lun_data[6], this_lun_data[7], j);
17371900 for (m = 0; m < 16; m++)
17381901 fprintf(stderr, "%02x", id_logical_drive_data.unique_volume_id[m]);
17391902 fprintf(stderr, "\nSearching....\n");
17591922 if (debug)
17601923 fprintf(stderr, "Found!, k = %d\n", k);
17611924 cciss_to_bmic.addr[k].bmic_drive_number = j;
1762 memcpy(cciss_to_bmic.addr[k].controller_lun, &physlunlist[i+1], 8);
1925 memcpy(cciss_to_bmic.addr[k].controller_lun,
1926 this_lun_data, CISS_LUN_ADDR_SIZE);
17631927 memcpy(cciss_to_bmic.addr[k].bmic_id_ctlr_data,
17641928 id_logical_drive_data.unique_volume_id, 16);
17651929 cciss_to_bmic.addr[k].tolerance_type =
17711935 if (k == cciss_to_bmic.naddrs) {
17721936 if (debug)
17731937 fprintf(stderr, "Didn't find %d here. Adding to missed drive list as bmic drive %d\n", i, j);
1774 memcpy(missed_drive[nmissed].controller_lun, &physlunlist[i+1], 8);
1938 memcpy(missed_drive[nmissed].controller_lun,
1939 this_lun_data, CISS_LUN_ADDR_SIZE);
17751940 missed_drive[nmissed].bmic_drive_number = j;
17761941 missed_drive[nmissed].tolerance_type = id_logical_drive_data.tolerance_type;
17771942 nmissed++;
18482013 sense_bus_param *bus_param)
18492014 {
18502015 memset(c, 0, sizeof(*c));
1851 memcpy(&c->LUN_info, lunaddr, 8);
2016 memcpy(&c->LUN_info, lunaddr, CISS_LUN_ADDR_SIZE);
18522017 c->Request.CDBLen = 10;
18532018 c->Request.Type.Type = TYPE_CMD;
18542019 c->Request.Type.Attribute = ATTR_SIMPLE;
18552020 c->Request.Type.Direction = XFER_READ;
18562021 c->Request.Timeout = 0;
1857 c->Request.CDB[0] = 0x26; /* 0x26 means "CCISS READ" */
2022 c->Request.CDB[0] = CISS_READ;
18582023 c->Request.CDB[1] = 0; /* logical drive id? */
18592024 c->Request.CDB[5] = bus; /* bus id */
18602025 c->Request.CDB[6] = SENSE_BUS_PARAM;
18612026 c->buf_size = sizeof(*bus_param);
1862 c->Request.CDB[7] = (c->buf_size >> 8) & 0xff;
1863 c->Request.CDB[8] = c->buf_size & 0xff;
2027 set_cdb_buffer_length(c->Request.CDB, c->buf_size);
18642028 c->buf = (unsigned char *) bus_param;
18652029 }
18662030
19002064 fprintf(stderr, "%s: %s: ioctl: controller: %d bus: %d %s\n",
19012065 progname, file, ctlr, bus, strerror(errno));
19022066 /* This really should not ever happen. */
1903 everything_hunky_dory = 0;
2067 everything_hunky_dory = false;
19042068 return -1;
19052069 }
19062070
19152079 fprintf(stderr, "Error getting status for %s "
19162080 "controller: %d bus: %d: Commandstatus is %d\n",
19172081 file, ctlr, bus, c.error_info.CommandStatus);
1918 everything_hunky_dory = 0;
2082 everything_hunky_dory = false;
19192083 return -1;
19202084 }
19212085 if (debug)
19362100 if (do_sense_bus_parameters(file, fd, controller_lun_list[i],
19372101 i, j, &bus_param) != 0)
19382102 continue;
1939 print_bus_status(file, ctlrtype, i, j, &bus_param);
1940 }
2103 print_bus_status(file, ctlrtype, j, &bus_param);
2104 }
2105 }
2106 }
2107
2108 static char *cache_disable_info[] = {
2109 /* 0 */
2110 "Temporary disable condition. Data was found in posted\n"
2111 "write memory, but the configuration signature in the\n"
2112 "posted write memory does not match the one stored in\n"
2113 "the configuration data stored on the drives. Therefore\n"
2114 "the data cannot be written to the drives. This disable\n"
2115 "condition is also reported if the controller firmware is\n"
2116 "replaced with one that is incompatible with the format of\n"
2117 "data found in the posted write memory.\n\n",
2118
2119 /* 1 */
2120 "Temporary disable condition. Posted write operations have\n"
2121 "been disabled due to the fact that less than 75% of the\n"
2122 "battery packs are at the sufficient voltage level.\n",
2123
2124 /* 2 */
2125 "Temporary disable condition. Posted write operations were\n"
2126 "disabled by the user.\n",
2127
2128 /* 3 */
2129 "Temporary disable condition. The adapter does not currently\n"
2130 "have sufficient resources to perform posted write operations.\n"
2131 "(e.g. drive rebuild operations are occurring, etc.)\n",
2132
2133 /* 4 */
2134 "Temporary disable condition: The array accelerator board is\n"
2135 "not attached.\n",
2136
2137 /* 5 */
2138 "Temporary disable condition: The array accelerator memory is\n"
2139 "in use by an Expand operation that is queued up or in progress.\n",
2140
2141 /* 6 */
2142 "Temporary disable condition: The array accelerator memory is\n"
2143 "in use by a Snapshot operation that is queued up or in progress.\n",
2144 /* 7 */
2145 "Temporary disable condition: The batteries on the redundant\n"
2146 "controller are not at a sufficient charge level to support\n"
2147 "reliable posting of write data.\n",
2148 /* 8 */
2149 "Temporary disable condition: A cache size mismatch exists\n"
2150 "between the two controllers in a redundant environment.\n",
2151 /* 9 */
2152 "Temporary disable condition: A cache failure has been detected\n"
2153 "by the other controller in a redundant environment.\n",
2154 /* 10 */
2155 "Temporary disable condition: The cache has been disabled to\n"
2156 "penalize the user who has an RAID ADG volume configured but the\n"
2157 "ADG Enabler Dongle is broken or missing.\n",
2158 /* 11 */
2159 "Temporary disable condition: The cache has been disabled because\n"
2160 "SA 6400 EM Controller is configured as boot controller. This is\n"
2161 "not a recommended configuration. User is advised to migrate the\n"
2162 "boot volume to SA 6400 Controller and configure it as boot\n"
2163 "controller.\n",
2164 /* 12 */
2165 "Temporary disable condition: The posted write cache has been\n"
2166 "disabled in a flash-backed write cache module because the\n"
2167 "capacitor charge is low.\n",
2168 /* 13 */
2169 "Temporary disable condition: The posted write cache has been\n"
2170 "disabled in a flash-backed write cache module because its\n"
2171 "flash memory is being erased.\n",
2172 /* 14 */
2173 "", /* unused code */
2174 /* 15 */
2175 "", /* unused code */
2176 /* 16 */
2177 "Permanent disable condition. Data was found at reset\n"
2178 "initialization in the posted write memory, however, the\n"
2179 "mirror data compare test failed resulting in that data being\n"
2180 "marked as invalid. This is a possible data loss circumstance.\n"
2181 "This disable condition only occurs on controllers with\n"
2182 "mirrored cache RAM (very very old controllers). You won’t see\n"
2183 "this with any remotely recent controller.\n",
2184 /* 17 */
2185 "Permanent disable condition. Unrecoverable error reading data\n"
2186 "from the cache. For mirrored caches, (very very old controllers)\n"
2187 "this means that read parity errors were detected on both sides\n"
2188 "of the mirror. For ECC protected caches, (non-ancient hardware)\n"
2189 "this means an unrecoverable ECC read error occurred. This is a\n"
2190 "definite data loss circumstance.\n",
2191 /* 18 */
2192 "Permanent disable condition. Data could not be written to the\n"
2193 "cache memory. This typically means that a parity error was\n"
2194 "detected while writing data to the cache. This could be caused\n"
2195 "by such things as an incomplete connection between the cache card\n"
2196 "and the controller. This is not a data loss circumstance.\n",
2197 /* 19 */
2198 "Permanent disable condition: Configuration changes were made but\n"
2199 "cache configuration was not updated. (Note: This condition will\n"
2200 "not occur except on very very old controllers.)\n",
2201 };
2202
2203 static void decode_cache_disable_code(unsigned short disable_code)
2204 {
2205
2206 #define CACHE_DECODE_INDENT " "
2207
2208 if (disable_code >= ARRAYSIZE(cache_disable_info)) {
2209 printf(CACHE_DECODE_INDENT
2210 "Unknown cache disable code: %d\n", disable_code);
2211 return;
2212 }
2213
2214 if (strcmp(cache_disable_info[disable_code], "") == 0) { /* unused code */
2215 printf(CACHE_DECODE_INDENT
2216 "Unknown cache disable code: %d\n", disable_code);
2217 return;
2218 }
2219
2220 printf(CACHE_DECODE_INDENT "%s", cache_disable_info[disable_code]);
2221 }
2222
2223 static void print_cache_config_status(struct bmic_cache_configuration *cache_config,
2224 uint32_t cache_config_status_bit,
2225 char *message)
2226 {
2227 if (!(cache_config->status & cache_config_status_bit))
2228 return;
2229 printf(" %s\n", message);
2230
2231 /* special case for write cache disabled, have to decode why */
2232 if (cache_config_status_bit & (BMIC_POSTED_WRITE_TEMP_DISABLED |
2233 BMIC_POSTED_WRITE_PERM_DISABLED))
2234 decode_cache_disable_code(cache_config->disable_code);
2235 }
2236
2237 static void check_one_nonvolatile_cache_status(char *file, int ctlrtype,
2238 int instance, struct bmic_cache_configuration *cache_config)
2239 {
2240 uint32_t trouble =
2241 BMIC_POSTED_WRITE_TEMP_DISABLED |
2242 BMIC_POSTED_WRITE_PERM_DISABLED |
2243 BMIC_POSTED_WRITE_POSSIBLE_DATA_LOSS_ON_RESET |
2244 BMIC_POSTED_WRITE_UNFLUSHED_DIRTY_DATA |
2245 BMIC_POSTED_WRITE_DIRTY_DATA_LIMIT_REACHED |
2246 BMIC_POSTED_WRITE_ECC_ERRORS_DETECTED |
2247 BMIC_POSTED_WRITE_DATA_LOSS_OTHER |
2248 BMIC_POSTED_WRITE_BATTERY_ENABLE_HW_PROBLEM |
2249 BMIC_POSTED_WRITE_CPLD_BBWC_INCOMPATIBILITY;
2250
2251 /* I'm not going to worry about trying to report
2252 * whether cache is enabled or disabled for individual logical
2253 * drives, instead will concentrate on the health of the cache
2254 * module
2255 */
2256
2257 if (!(trouble & cache_config->status)) {
2258 if (!verbose)
2259 return; /* Cache is ok. */
2260 } else {
2261 everything_hunky_dory = false;
2262 }
2263
2264 printf("%s(%s:%d): Non-Volatile Cache status:\n",
2265 file, smartarray_id[ctlrtype].board_name, instance);
2266
2267 /* For *very* old controllers, these values are KiB, not MiB. */
2268 printf("%35s: %s\n", "Cache configured",
2269 cache_config->disable_flag == 0 ? "Yes" : "No");
2270 if (cache_config->disable_flag)
2271 return;
2272
2273 printf("%35s: %hu MiB\n", "Read cache memory", cache_config->mem_for_read_cache);
2274 printf("%35s: %hu MiB\n", "Write cache memory", cache_config->mem_for_write_cache);
2275 printf("%35s: %s\n", "Write cache enabled",
2276 (cache_config->status & BMIC_POSTED_WRITE_STATUS_ENABLED) ? "Yes" : "No");
2277 print_cache_config_status(cache_config,
2278 BMIC_POSTED_WRITE_TEMP_DISABLED,
2279 "Write cache temporarily disabled");
2280 print_cache_config_status(cache_config,
2281 BMIC_POSTED_WRITE_PERM_DISABLED,
2282 "Write Cache permanently disabled");
2283 print_cache_config_status(cache_config,
2284 BMIC_POSTED_WRITE_POSSIBLE_DATA_LOSS_ON_RESET,
2285 "Possible data loss on last reset");
2286 print_cache_config_status(cache_config,
2287 BMIC_POSTED_WRITE_UNFLUSHED_DIRTY_DATA,
2288 "Cache contains unflushed data:");
2289 print_cache_config_status(cache_config,
2290 BMIC_POSTED_WRITE_DIRTY_DATA_LIMIT_REACHED,
2291 "Cache dirty limit reached");
2292 print_cache_config_status(cache_config,
2293 BMIC_POSTED_WRITE_ECC_ERRORS_DETECTED,
2294 "Excessive ECC errors detected:");
2295 print_cache_config_status(cache_config,
2296 BMIC_POSTED_WRITE_DATA_LOSS_OTHER,
2297 "Non power related data loss");
2298 print_cache_config_status(cache_config,
2299 BMIC_POSTED_WRITE_AUTO_RECONFIG,
2300 "Auto-reconfigured on last reset");
2301 print_cache_config_status(cache_config,
2302 BMIC_POSTED_WRITE_REDUNDCTLR_VALID_DATA_FOUND,
2303 "Redundant controller data flushed on reset");
2304 print_cache_config_status(cache_config,
2305 BMIC_POSTED_WRITE_BATTERY_ENABLE_HW_PROBLEM,
2306 "HW problem with battery enable");
2307 print_cache_config_status(cache_config,
2308 BMIC_POSTED_WRITE_CPLD_BBWC_INCOMPATIBILITY,
2309 "CPLD battery backed write cache incompatibility");
2310 print_cache_config_status(cache_config,
2311 BMIC_POSTED_WRITE_CAPACITOR_ATTACHED,
2312 "Flash backed cache present");
2313 print_cache_config_status(cache_config,
2314 BMIC_POSTED_WRITE_161718_CACHE_DISABLED,
2315 "Permanent disable condition detected");
2316 }
2317
2318 static void check_nonvolatile_cache_status(char *file, int ctlrtype,
2319 int fd, int num_controllers)
2320 {
2321 int i;
2322
2323 for (i = 0; i < num_controllers; i++) {
2324 struct bmic_cache_configuration cache_config;
2325
2326 memset(&cache_config, 0, sizeof(cache_config));
2327 if (do_sense_cache_configuration(file, fd, controller_lun_list[i],
2328 &cache_config) != 0) {
2329 everything_hunky_dory = false;
2330 fprintf(stderr, "%s:%s(%d): cannot get non-volatile "
2331 "cache configuration\n", progname, file, i);
2332 continue;
2333 }
2334 check_one_nonvolatile_cache_status(file, ctlrtype, i, &cache_config);
19412335 }
19422336 }
19432337
19512345 fprintf(stderr, "%s: %s: Can't identify controller, id = 0x%08x.\n",
19522346 progname, file, id.board_id);
19532347 if (persnickety)
1954 everything_hunky_dory = 0;
2348 everything_hunky_dory = false;
19552349 return -1;
19562350 }
19572351 numluns = id.num_logical_drives;
19742368 fprintf(stderr, "%s: cannot stat %s: %s\n",
19752369 progname, file, strerror(errno));
19762370 if (persnickety)
1977 everything_hunky_dory = 0;
2371 everything_hunky_dory = false;
19782372 return -1;
19792373 }
19802374
19902384 fprintf(stderr, "%s: %s is not a %s device.\n",
19912385 progname, file, WANTED_DEVICE_TYPE_STRING);
19922386 if (persnickety)
1993 everything_hunky_dory = 0;
2387 everything_hunky_dory = false;
19942388 return -1;
19952389 }
19962390 return 0;
20072401 /* Construct command to get logical drive status */
20082402 memset(&c, 0, sizeof(c));
20092403 memset(&ldstatus, 0, sizeof(ldstatus));
2010 memcpy(&c.LUN_info, cciss_to_bmic.addr[volume_number].controller_lun, 8);
2404 memcpy(&c.LUN_info, cciss_to_bmic.addr[volume_number].controller_lun,
2405 CISS_LUN_ADDR_SIZE);
20112406 c.Request.CDBLen = 10;
20122407 c.Request.Type.Type = TYPE_CMD;
20132408 c.Request.Type.Attribute = ATTR_SIMPLE;
20142409 c.Request.Type.Direction = XFER_READ;
20152410 c.Request.Timeout = 0;
2016 c.Request.CDB[0] = 0x26; /* 0x26 means "CCISS READ" */
2411 c.Request.CDB[0] = CISS_READ;
20172412 c.Request.CDB[1] = cciss_to_bmic.addr[volume_number].bmic_drive_number & 0xff;
20182413 c.Request.CDB[6] = ID_LSTATUS;
20192414 c.buf_size = sizeof(ldstatus);
2020 c.Request.CDB[7] = (c.buf_size >> 8) & 0xff;
2021 c.Request.CDB[8] = c.buf_size & 0xff;
2415 set_cdb_buffer_length(c.Request.CDB, c.buf_size);
20222416 c.Request.CDB[9] = (cciss_to_bmic.addr[volume_number].bmic_drive_number >> 8) & 0x0ff;
20232417 c.buf = (unsigned char *) &ldstatus;
20242418
20302424 fprintf(stderr, "%s: %s: ioctl: logical drive: %d %s\n",
20312425 progname, file, volume_number, strerror(errno));
20322426 /* This really should not ever happen. */
2033 everything_hunky_dory = 0;
2427 everything_hunky_dory = false;
20342428 return;
20352429 }
20362430 if (c.error_info.CommandStatus != 0) {
20372431 fprintf(stderr, "Error getting status for %s "
20382432 "volume %d: Commandstatus is %d\n",
20392433 file, volume_number, c.error_info.CommandStatus);
2040 everything_hunky_dory = 0;
2434 everything_hunky_dory = false;
20412435 return;
20422436 } else {
20432437 if (debug)
21032497 struct identify_physical_device device_data;
21042498 char location[1000];
21052499 int ctlrtype;
2500 char status[100];
21062501
21072502 ctlrtype = lookup_controller(id->board_id);
21082503
21252520 controller_lun[0], controller_lun[1], controller_lun[2], controller_lun[3],
21262521 controller_lun[4], controller_lun[5], controller_lun[6], controller_lun[7],
21272522 bmic_drive_number);
2128 everything_hunky_dory = 0;
2523 everything_hunky_dory = false;
21292524 return;
21302525 }
21312526
2527 find_bus_target(id, bmic_drive_number, &bus, &target);
2528 format_phys_drive_location(location, bus, target, ctlrtype,
2529 controller_lun, rc ? NULL : &device_data);
2530 sprintf(status, "OK");
21322531 /* Check S.M.A.R.T data */
2532
21332533 if (!(device_data.more_physical_drive_flags & 0x01)) /* supports S.M.A.R.T.? */
2534 goto print_data;
2535 if (!(device_data.more_physical_drive_flags & 0x04)) /* S.M.A.R.T enabled? */
2536 goto print_data;
2537 if (device_data.more_physical_drive_flags & 0x02) { /* S.M.A.R.T. predictive failure bit set? */
2538 everything_hunky_dory = false;
2539 sprintf(status, "S.M.A.R.T. predictive failure.");
2540 }
2541 print_data:
2542 if (strcmp(status, "OK") == 0 && !verbose)
21342543 return;
2135 if (!(device_data.more_physical_drive_flags & 0x04)) /* S.M.A.R.T enabled? */
2136 return;
2137 if (device_data.more_physical_drive_flags & 0x02) { /* S.M.A.R.T. predictive failure bit set? */
2138 everything_hunky_dory = 0;
2139 find_bus_target(id, bmic_drive_number, &bus, &target);
2140 format_phys_drive_location(location, bus, target, ctlrtype,
2141 controller_lun, rc ? NULL : &device_data);
2142 printf("%s S.M.A.R.T. predictive failure.\n", location);
2143 }
2544 printf("%s %s\n", location, status);
21442545 }
21452546
21462547 static void check_ctlr_physical_drives(char *file, int fd,
21482549 {
21492550 int i, rc;
21502551 struct identify_controller id;
2552 int physical_drive_count = 0;
21512553
21522554 rc = id_ctlr_fd(file, fd, controller_lun, &id);
21532555 if (rc != 0) {
21552557 file,
21562558 controller_lun[0], controller_lun[1], controller_lun[2], controller_lun[3],
21572559 controller_lun[4], controller_lun[5], controller_lun[6], controller_lun[7]);
2158 everything_hunky_dory = 0;
2560 everything_hunky_dory = false;
21592561 return;
21602562 }
2563
2564 for (i = bmic_next_phy_disk(&id, -1); i != -1; i = bmic_next_phy_disk(&id, i))
2565 physical_drive_count++;
2566
2567 if (verbose)
2568 printf(" Physical drives: %d\n", physical_drive_count);
2569
21612570 /* For each physical disk i... */
21622571 for (i = bmic_next_phy_disk(&id, -1); i != -1; i = bmic_next_phy_disk(&id, i))
21632572 check_physical_drive(file, fd, controller_lun, &id, i);
21672576 {
21682577 int i;
21692578
2170 if (!check_smart_data)
2579 if (!check_smart_data && !verbose)
21712580 return;
21722581
21732582 for (i = 0; i < num_controllers; i++)
21742583 check_ctlr_physical_drives(file, fd, controller_lun_list[i]);
2584 }
2585
2586 static void print_controller_info(struct identify_controller *id, int ctlrtype)
2587 {
2588 if (!verbose)
2589 return;
2590
2591 printf("Controller: %s\n", smartarray_id[ctlrtype].board_name);
2592 printf(" Board ID: 0x%08x\n", id->board_id);
2593 printf(" Logical drives: %hu\n", id->usExtLogicalUnitCount);
2594 printf(" Running firmware: %c%c%c%c\n",
2595 id->running_firm_rev[0], id->running_firm_rev[1],
2596 id->running_firm_rev[2], id->running_firm_rev[3]);
2597 printf(" ROM firmware: %c%c%c%c\n",
2598 id->rom_firm_rev[0], id->rom_firm_rev[1],
2599 id->rom_firm_rev[2], id->rom_firm_rev[3]);
21752600 }
21762601
21772602 static int cciss_status(char *file)
21892614 fprintf(stderr, "%s: open %s: %s\n",
21902615 progname, file, strerror(errno));
21912616 if (persnickety)
2192 everything_hunky_dory = 0;
2617 everything_hunky_dory = false;
21932618 return -1;
21942619 }
21952620
22022627 if (is_msa1000(fd))
22032628 return msa1000_status(file, fd);
22042629
2205 if (!is_hpsa(fd) && !is_hpahcisr(fd)) {
2630 if (!is_smartarray_driver(fd)) {
22062631 fprintf(stderr, "%s: %s: Unknown SCSI device.\n", progname, file);
22072632 if (persnickety)
2208 everything_hunky_dory = 0;
2633 everything_hunky_dory = false;
22092634 close(fd);
22102635 return -1;
22112636 }
22152640 return -1;
22162641
22172642 /* See if it's a smartarray of some kind... */
2218 rc = id_ctlr_fd(file, fd, ZEROLUN, &id);
2643 rc = id_ctlr_fd(file, fd, zero_lun, &id);
22192644 if (rc < 0) {
22202645 if (persnickety)
2221 everything_hunky_dory = 0;
2646 everything_hunky_dory = false;
22222647 return -1;
22232648 }
22242649
22282653 fprintf(stderr, "%s: %s: Unknown controller, board_id = 0x%08x\n",
22292654 progname, file, id.board_id);
22302655 if (persnickety)
2231 everything_hunky_dory = 0;
2656 everything_hunky_dory = false;
22322657 return -1;
22332658 }
2659
2660 print_controller_info(&id, ctlrtype);
22342661
22352662 /* Construct mapping of CISS LUN addresses to "the BMIC way" */
22362663 rc = init_cciss_to_bmic(file, fd);
22372664 if (rc != 0) {
22382665 fprintf(stderr, "%s: Internal error, could not construct CISS to BMIC mapping.\n",
22392666 progname);
2240 everything_hunky_dory = 0;
2667 everything_hunky_dory = false;
22412668 return -1;
22422669 }
22432670
22482675
22492676 /* Check the fan/power/temp status of each controller */
22502677 check_fan_power_temp(file, ctlrtype, fd, num_controllers);
2678 check_nonvolatile_cache_status(file, ctlrtype, fd, num_controllers);
22512679 close(fd);
22522680 return 0;
22532681 }
22762704 { "exhaustive", 0, NULL, 'x'},
22772705 { "smart", 0, NULL, 's'},
22782706 { "copyright", 0, NULL, 'C'}, /* opposite of -q */
2707 { "verbose", 0, NULL, 'V'},
22792708 { NULL, 0, NULL, 0},
22802709 };
22812710
22852714
22862715 do {
22872716
2288 opt = getopt_long(argc, argv, "dqusvxC", longopts, NULL );
2717 opt = getopt_long(argc, argv, "dpqusvVxC", longopts, NULL );
22892718 switch (opt) {
22902719 case 'd': debug = 1;
22912720 continue;
23122741 case 'x' : exhaustive_search = 1;
23132742 /* exhaustive search doesn't really do anything anymore. */
23142743 continue;
2744 case 'V' : verbose = 1;
2745 continue;
23152746 case '?' :
23162747 case ':' :
23172748 usage(); /* usage calls exit(), so no fall thru */
23282759 for (i = optind; i < argc; i++)
23292760 cciss_status(argv[i]);
23302761 free_device_node_cache();
2331 exit((everything_hunky_dory != 1));
2332 }
2333
2762 exit(!everything_hunky_dory);
2763 }
2764
3333 /* 1 if Linux SCSI Generic header file present */
3434 #undef HAVE_SCSI_SG_H
3535
36 /* Define to 1 if stdbool.h conforms to C99. */
37 #undef HAVE_STDBOOL_H
38
3639 /* Define to 1 if you have the <stdint.h> header file. */
3740 #undef HAVE_STDINT_H
3841
6366 /* Define to 1 if you have the <unistd.h> header file. */
6467 #undef HAVE_UNISTD_H
6568
69 /* Define to 1 if the system has the type `_Bool'. */
70 #undef HAVE__BOOL
71
6672 /* Name of package */
6773 #undef PACKAGE
6874
7884 /* Define to the one symbol short name of this package. */
7985 #undef PACKAGE_TARNAME
8086
81 /* Define to the home page for this package. */
82 #undef PACKAGE_URL
83
8487 /* Define to the version of this package. */
8588 #undef PACKAGE_VERSION
8689
+2908
-1373
configure less more
00 #! /bin/sh
11 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.64 for cciss_vol_status 1.09.
2 # Generated by GNU Autoconf 2.63 for cciss_vol_status 1.11.
33 #
44 # Report bugs to <smcameron@users.sourceforge.net>.
55 #
66 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
8 # Foundation, Inc.
9 #
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
108 # This configure script is free software; the Free Software Foundation
119 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
1513
1614 # Be more Bourne compatible
1715 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
1917 emulate sh
2018 NULLCMD=:
2119 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
2321 alias -g '${1+"$@"}'='"$@"'
2422 setopt NO_GLOB_SUBST
2523 else
26 case `(set -o) 2>/dev/null` in #(
27 *posix*) :
28 set -o posix ;; #(
29 *) :
30 ;;
31 esac
32 fi
33
24 case `(set -o) 2>/dev/null` in
25 *posix*) set -o posix ;;
26 esac
27
28 fi
29
30
31
32
33 # PATH needs CR
34 # Avoid depending upon Character Ranges.
35 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38 as_cr_digits='0123456789'
39 as_cr_alnum=$as_cr_Letters$as_cr_digits
3440
3541 as_nl='
3642 '
3945 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4046 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4147 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
42 # Prefer a ksh shell builtin over an external printf program on Solaris,
43 # but without wasting forks for bash or zsh.
44 if test -z "$BASH_VERSION$ZSH_VERSION" \
45 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo='print -r --'
47 as_echo_n='print -rn --'
48 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4949 as_echo='printf %s\n'
5050 as_echo_n='printf %s'
5151 else
5656 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5757 as_echo_n_body='eval
5858 arg=$1;
59 case $arg in #(
59 case $arg in
6060 *"$as_nl"*)
6161 expr "X$arg" : "X\\(.*\\)$as_nl";
6262 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7979 }
8080 fi
8181
82 # Support unset when possible.
83 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
84 as_unset=unset
85 else
86 as_unset=false
87 fi
88
8289
8390 # IFS
8491 # We need space, tab and new line, in precisely that order. Quoting is
8895 IFS=" "" $as_nl"
8996
9097 # Find who we are. Look in the path if we contain no directory separator.
91 case $0 in #((
98 case $0 in
9299 *[\\/]* ) as_myself=$0 ;;
93100 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94101 for as_dir in $PATH
95102 do
96103 IFS=$as_save_IFS
97104 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
105 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 done
100107 IFS=$as_save_IFS
101108
102109 ;;
108115 fi
109116 if test ! -f "$as_myself"; then
110117 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
118 { (exit 1); exit 1; }
119 fi
120
121 # Work around bugs in pre-3.0 UWIN ksh.
122 for as_var in ENV MAIL MAILPATH
123 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
121124 done
122125 PS1='$ '
123126 PS2='> '
129132 LANGUAGE=C
130133 export LANGUAGE
131134
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 if test "x$CONFIG_SHELL" = x; then
136 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
137 emulate sh
138 NULLCMD=:
139 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
140 # is contrary to our usage. Disable this feature.
141 alias -g '\${1+\"\$@\"}'='\"\$@\"'
142 setopt NO_GLOB_SUBST
143 else
144 case \`(set -o) 2>/dev/null\` in #(
145 *posix*) :
146 set -o posix ;; #(
147 *) :
148 ;;
149 esac
150 fi
151 "
152 as_required="as_fn_return () { (exit \$1); }
153 as_fn_success () { as_fn_return 0; }
154 as_fn_failure () { as_fn_return 1; }
155 as_fn_ret_success () { return 0; }
156 as_fn_ret_failure () { return 1; }
157
158 exitcode=0
159 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
160 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
161 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
162 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
163 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164
165 else
166 exitcode=1; echo positional parameters were not saved.
167 fi
168 test x\$exitcode = x0 || exit 1"
169 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
170 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
171 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
172 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
173 test \$(( 1 + 1 )) = 2 || exit 1"
174 if (eval "$as_required") 2>/dev/null; then :
175 as_have_required=yes
176 else
177 as_have_required=no
178 fi
179 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
180
181 else
182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
183 as_found=false
184 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
185 do
186 IFS=$as_save_IFS
187 test -z "$as_dir" && as_dir=.
188 as_found=:
189 case $as_dir in #(
190 /*)
191 for as_base in sh bash ksh sh5; do
192 # Try only shells that exist, to save several forks.
193 as_shell=$as_dir/$as_base
194 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
195 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
196 CONFIG_SHELL=$as_shell as_have_required=yes
197 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 break 2
199 fi
200 fi
201 done;;
202 esac
203 as_found=false
204 done
205 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
206 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
207 CONFIG_SHELL=$SHELL as_have_required=yes
208 fi; }
209 IFS=$as_save_IFS
210
211
212 if test "x$CONFIG_SHELL" != x; then :
213 # We cannot yet assume a decent shell, so we have to provide a
214 # neutralization value for shells without unset; and this also
215 # works around shells that cannot unset nonexistent variables.
216 BASH_ENV=/dev/null
217 ENV=/dev/null
218 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
219 export CONFIG_SHELL
220 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
221 fi
222
223 if test x$as_have_required = xno; then :
224 $as_echo "$0: This script requires a shell more modern than all"
225 $as_echo "$0: the shells that I found on your system."
226 if test x${ZSH_VERSION+set} = xset ; then
227 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
228 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
229 else
230 $as_echo "$0: Please tell bug-autoconf@gnu.org and
231 $0: smcameron@users.sourceforge.net about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
235 fi
236 exit 1
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254 { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
262 {
263 return $1
264 } # as_fn_set_status
265
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
270 {
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
275
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
280 {
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320
321
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334 else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339 fi # as_fn_append
340
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351 else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356 fi # as_fn_arith
357
358
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
364 as_fn_error ()
365 {
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370 fi
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
374
135 # Required to use basename.
375136 if expr a : '\(a\)' >/dev/null 2>&1 &&
376137 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377138 as_expr=expr
385146 as_basename=false
386147 fi
387148
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
392 fi
393
149
150 # Name of the executable.
394151 as_me=`$as_basename -- "$0" ||
395152 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396153 X"$0" : 'X\(//\)$' \| \
410167 }
411168 s/.*/./; q'`
412169
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
170 # CDPATH.
171 $as_unset CDPATH
172
173
174 if test "x$CONFIG_SHELL" = x; then
175 if (eval ":") 2>/dev/null; then
176 as_have_required=yes
177 else
178 as_have_required=no
179 fi
180
181 if test $as_have_required = yes && (eval ":
182 (as_func_return () {
183 (exit \$1)
184 }
185 as_func_success () {
186 as_func_return 0
187 }
188 as_func_failure () {
189 as_func_return 1
190 }
191 as_func_ret_success () {
192 return 0
193 }
194 as_func_ret_failure () {
195 return 1
196 }
197
198 exitcode=0
199 if as_func_success; then
200 :
201 else
202 exitcode=1
203 echo as_func_success failed.
204 fi
205
206 if as_func_failure; then
207 exitcode=1
208 echo as_func_failure succeeded.
209 fi
210
211 if as_func_ret_success; then
212 :
213 else
214 exitcode=1
215 echo as_func_ret_success failed.
216 fi
217
218 if as_func_ret_failure; then
219 exitcode=1
220 echo as_func_ret_failure succeeded.
221 fi
222
223 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
224 :
225 else
226 exitcode=1
227 echo positional parameters were not saved.
228 fi
229
230 test \$exitcode = 0) || { (exit 1); exit 1; }
231
232 (
233 as_lineno_1=\$LINENO
234 as_lineno_2=\$LINENO
235 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
236 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
237 ") 2> /dev/null; then
238 :
239 else
240 as_candidate_shells=
241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
242 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
243 do
244 IFS=$as_save_IFS
245 test -z "$as_dir" && as_dir=.
246 case $as_dir in
247 /*)
248 for as_base in sh bash ksh sh5; do
249 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
250 done;;
251 esac
252 done
253 IFS=$as_save_IFS
254
255
256 for as_shell in $as_candidate_shells $SHELL; do
257 # Try only shells that exist, to save several forks.
258 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
259 { ("$as_shell") 2> /dev/null <<\_ASEOF
260 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
261 emulate sh
262 NULLCMD=:
263 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
264 # is contrary to our usage. Disable this feature.
265 alias -g '${1+"$@"}'='"$@"'
266 setopt NO_GLOB_SUBST
267 else
268 case `(set -o) 2>/dev/null` in
269 *posix*) set -o posix ;;
270 esac
271
272 fi
273
274
275 :
276 _ASEOF
277 }; then
278 CONFIG_SHELL=$as_shell
279 as_have_required=yes
280 if { "$as_shell" 2> /dev/null <<\_ASEOF
281 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
282 emulate sh
283 NULLCMD=:
284 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
285 # is contrary to our usage. Disable this feature.
286 alias -g '${1+"$@"}'='"$@"'
287 setopt NO_GLOB_SUBST
288 else
289 case `(set -o) 2>/dev/null` in
290 *posix*) set -o posix ;;
291 esac
292
293 fi
294
295
296 :
297 (as_func_return () {
298 (exit $1)
299 }
300 as_func_success () {
301 as_func_return 0
302 }
303 as_func_failure () {
304 as_func_return 1
305 }
306 as_func_ret_success () {
307 return 0
308 }
309 as_func_ret_failure () {
310 return 1
311 }
312
313 exitcode=0
314 if as_func_success; then
315 :
316 else
317 exitcode=1
318 echo as_func_success failed.
319 fi
320
321 if as_func_failure; then
322 exitcode=1
323 echo as_func_failure succeeded.
324 fi
325
326 if as_func_ret_success; then
327 :
328 else
329 exitcode=1
330 echo as_func_ret_success failed.
331 fi
332
333 if as_func_ret_failure; then
334 exitcode=1
335 echo as_func_ret_failure succeeded.
336 fi
337
338 if ( set x; as_func_ret_success y && test x = "$1" ); then
339 :
340 else
341 exitcode=1
342 echo positional parameters were not saved.
343 fi
344
345 test $exitcode = 0) || { (exit 1); exit 1; }
346
347 (
348 as_lineno_1=$LINENO
349 as_lineno_2=$LINENO
350 test "x$as_lineno_1" != "x$as_lineno_2" &&
351 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
352
353 _ASEOF
354 }; then
355 break
356 fi
357
358 fi
359
360 done
361
362 if test "x$CONFIG_SHELL" != x; then
363 for as_var in BASH_ENV ENV
364 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
365 done
366 export CONFIG_SHELL
367 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
368 fi
369
370
371 if test $as_have_required = no; then
372 echo This script requires a shell more modern than all the
373 echo shells that I found on your system. Please install a
374 echo modern shell, or manually run the script under such a
375 echo shell if you do have one.
376 { (exit 1); exit 1; }
377 fi
378
379
380 fi
381
382 fi
383
384
385
386 (eval "as_func_return () {
387 (exit \$1)
388 }
389 as_func_success () {
390 as_func_return 0
391 }
392 as_func_failure () {
393 as_func_return 1
394 }
395 as_func_ret_success () {
396 return 0
397 }
398 as_func_ret_failure () {
399 return 1
400 }
401
402 exitcode=0
403 if as_func_success; then
404 :
405 else
406 exitcode=1
407 echo as_func_success failed.
408 fi
409
410 if as_func_failure; then
411 exitcode=1
412 echo as_func_failure succeeded.
413 fi
414
415 if as_func_ret_success; then
416 :
417 else
418 exitcode=1
419 echo as_func_ret_success failed.
420 fi
421
422 if as_func_ret_failure; then
423 exitcode=1
424 echo as_func_ret_failure succeeded.
425 fi
426
427 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
428 :
429 else
430 exitcode=1
431 echo positional parameters were not saved.
432 fi
433
434 test \$exitcode = 0") || {
435 echo No shell found that supports shell functions.
436 echo Please tell bug-autoconf@gnu.org about your system,
437 echo including any error possibly output before this message.
438 echo This can help us improve future autoconf versions.
439 echo Configuration will now proceed without shell functions.
440 }
441
442
443
444 as_lineno_1=$LINENO
445 as_lineno_2=$LINENO
446 test "x$as_lineno_1" != "x$as_lineno_2" &&
447 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448
449 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
450 # uniformly replaced by the line number. The first 'sed' inserts a
451 # line-number line after each line using $LINENO; the second 'sed'
452 # does the real work. The second script uses 'N' to pair each
453 # line-number line with the line containing $LINENO, and appends
454 # trailing '-' during substitution so that $LINENO is not a special
455 # case at line end.
456 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
457 # scripts with optimization help from Paolo Bonzini. Blame Lee
458 # E. McMahon (1931-1989) for sed's syntax. :-)
426459 sed -n '
427460 p
428461 /[$]LINENO/=
439472 s/-\n.*//
440473 ' >$as_me.lineno &&
441474 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
475 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
476 { (exit 1); exit 1; }; }
443477
444478 # Don't try to exec as it changes $[0], causing all sort of problems
445479 # (the dirname of $[0] is not the place where we might find the
449483 exit
450484 }
451485
486
487 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
488 as_dirname=dirname
489 else
490 as_dirname=false
491 fi
492
452493 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
494 case `echo -n x` in
454495 -n*)
455 case `echo 'xy\c'` in
496 case `echo 'x\c'` in
456497 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
498 *) ECHO_C='\c';;
460499 esac;;
461500 *)
462501 ECHO_N='-n';;
463502 esac
503 if expr a : '\(a\)' >/dev/null 2>&1 &&
504 test "X`expr 00001 : '.*\(...\)'`" = X001; then
505 as_expr=expr
506 else
507 as_expr=false
508 fi
464509
465510 rm -f conf$$ conf$$.exe conf$$.file
466511 if test -d conf$$.dir; then
490535 rmdir conf$$.dir 2>/dev/null
491536
492537 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
538 as_mkdir_p=:
494539 else
495540 test -d ./-p && rmdir ./-p
496541 as_mkdir_p=false
509554 if test -d "$1"; then
510555 test -d "$1/.";
511556 else
512 case $1 in #(
557 case $1 in
513558 -*)set "./$1";;
514559 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
560 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
516561 ???[sx]*):;;*)false;;esac;fi
517562 '\'' sh
518563 '
524569
525570 # Sed expression to map a string onto a valid variable name.
526571 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
572
527573
528574
529575 exec 7<&0 </dev/null 6>&1
544590 subdirs=
545591 MFLAGS=
546592 MAKEFLAGS=
593 SHELL=${CONFIG_SHELL-/bin/sh}
547594
548595 # Identity of this package.
549596 PACKAGE_NAME='cciss_vol_status'
550597 PACKAGE_TARNAME='cciss_vol_status'
551 PACKAGE_VERSION='1.09'
552 PACKAGE_STRING='cciss_vol_status 1.09'
598 PACKAGE_VERSION='1.11'
599 PACKAGE_STRING='cciss_vol_status 1.11'
553600 PACKAGE_BUGREPORT='smcameron@users.sourceforge.net'
554 PACKAGE_URL=''
555601
556602 ac_unique_file="cciss_vol_status.c"
557603 # Factoring default headers for most tests.
666712 program_transform_name
667713 prefix
668714 exec_prefix
669 PACKAGE_URL
670715 PACKAGE_BUGREPORT
671716 PACKAGE_STRING
672717 PACKAGE_VERSION
796841 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
797842 # Reject names that are not valid shell variable names.
798843 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
799 as_fn_error "invalid feature name: $ac_useropt"
844 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
845 { (exit 1); exit 1; }; }
800846 ac_useropt_orig=$ac_useropt
801847 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
802848 case $ac_user_opts in
822868 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
823869 # Reject names that are not valid shell variable names.
824870 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
825 as_fn_error "invalid feature name: $ac_useropt"
871 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
872 { (exit 1); exit 1; }; }
826873 ac_useropt_orig=$ac_useropt
827874 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
828875 case $ac_user_opts in
10261073 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
10271074 # Reject names that are not valid shell variable names.
10281075 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1029 as_fn_error "invalid package name: $ac_useropt"
1076 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1077 { (exit 1); exit 1; }; }
10301078 ac_useropt_orig=$ac_useropt
10311079 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
10321080 case $ac_user_opts in
10421090 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
10431091 # Reject names that are not valid shell variable names.
10441092 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1045 as_fn_error "invalid package name: $ac_useropt"
1093 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1094 { (exit 1); exit 1; }; }
10461095 ac_useropt_orig=$ac_useropt
10471096 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
10481097 case $ac_user_opts in
10721121 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
10731122 x_libraries=$ac_optarg ;;
10741123
1075 -*) as_fn_error "unrecognized option: \`$ac_option'
1076 Try \`$0 --help' for more information."
1124 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1125 Try \`$0 --help' for more information." >&2
1126 { (exit 1); exit 1; }; }
10771127 ;;
10781128
10791129 *=*)
10801130 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
10811131 # Reject names that are not valid shell variable names.
1082 case $ac_envvar in #(
1083 '' | [0-9]* | *[!_$as_cr_alnum]* )
1084 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1085 esac
1132 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1133 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1134 { (exit 1); exit 1; }; }
10861135 eval $ac_envvar=\$ac_optarg
10871136 export $ac_envvar ;;
10881137
10991148
11001149 if test -n "$ac_prev"; then
11011150 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1102 as_fn_error "missing argument to $ac_option"
1151 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1152 { (exit 1); exit 1; }; }
11031153 fi
11041154
11051155 if test -n "$ac_unrecognized_opts"; then
11061156 case $enable_option_checking in
11071157 no) ;;
1108 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1158 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1159 { (exit 1); exit 1; }; } ;;
11091160 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
11101161 esac
11111162 fi
11281179 [\\/$]* | ?:[\\/]* ) continue;;
11291180 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
11301181 esac
1131 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1182 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1183 { (exit 1); exit 1; }; }
11321184 done
11331185
11341186 # There might be people who depend on the old broken behavior: `$host'
11581210 ac_pwd=`pwd` && test -n "$ac_pwd" &&
11591211 ac_ls_di=`ls -di .` &&
11601212 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1161 as_fn_error "working directory cannot be determined"
1213 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1214 { (exit 1); exit 1; }; }
11621215 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1163 as_fn_error "pwd does not report name of working directory"
1216 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1217 { (exit 1); exit 1; }; }
11641218
11651219
11661220 # Find the source files, if location was not specified.
11991253 fi
12001254 if test ! -r "$srcdir/$ac_unique_file"; then
12011255 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1202 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1256 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1257 { (exit 1); exit 1; }; }
12031258 fi
12041259 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
12051260 ac_abs_confdir=`(
1206 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1261 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1262 { (exit 1); exit 1; }; }
12071263 pwd)`
12081264 # When building in place, set srcdir=.
12091265 if test "$ac_abs_confdir" = "$ac_pwd"; then
12291285 # Omit some internal or obsolete options to make the list less imposing.
12301286 # This message is too long to be a string in the A/UX 3.1 sh.
12311287 cat <<_ACEOF
1232 \`configure' configures cciss_vol_status 1.09 to adapt to many kinds of systems.
1288 \`configure' configures cciss_vol_status 1.11 to adapt to many kinds of systems.
12331289
12341290 Usage: $0 [OPTION]... [VAR=VALUE]...
12351291
12961352
12971353 if test -n "$ac_init_help"; then
12981354 case $ac_init_help in
1299 short | recursive ) echo "Configuration of cciss_vol_status 1.09:";;
1355 short | recursive ) echo "Configuration of cciss_vol_status 1.11:";;
13001356 esac
13011357 cat <<\_ACEOF
13021358
13831439 test -n "$ac_init_help" && exit $ac_status
13841440 if $ac_init_version; then
13851441 cat <<\_ACEOF
1386 cciss_vol_status configure 1.09
1387 generated by GNU Autoconf 2.64
1388
1389 Copyright (C) 2009 Free Software Foundation, Inc.
1442 cciss_vol_status configure 1.11
1443 generated by GNU Autoconf 2.63
1444
1445 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1446 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
13901447 This configure script is free software; the Free Software Foundation
13911448 gives unlimited permission to copy, distribute and modify it.
13921449 _ACEOF
13931450 exit
13941451 fi
1395
1396 ## ------------------------ ##
1397 ## Autoconf initialization. ##
1398 ## ------------------------ ##
1399
1400 # ac_fn_c_try_compile LINENO
1401 # --------------------------
1402 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1403 ac_fn_c_try_compile ()
1404 {
1405 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1406 rm -f conftest.$ac_objext
1407 if { { ac_try="$ac_compile"
1408 case "(($ac_try" in
1409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1410 *) ac_try_echo=$ac_try;;
1411 esac
1412 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1413 $as_echo "$ac_try_echo"; } >&5
1414 (eval "$ac_compile") 2>conftest.err
1415 ac_status=$?
1416 if test -s conftest.err; then
1417 grep -v '^ *+' conftest.err >conftest.er1
1418 cat conftest.er1 >&5
1419 mv -f conftest.er1 conftest.err
1420 fi
1421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1422 test $ac_status = 0; } && {
1423 test -z "$ac_c_werror_flag" ||
1424 test ! -s conftest.err
1425 } && test -s conftest.$ac_objext; then :
1426 ac_retval=0
1427 else
1428 $as_echo "$as_me: failed program was:" >&5
1429 sed 's/^/| /' conftest.$ac_ext >&5
1430
1431 ac_retval=1
1432 fi
1433 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1434 return $ac_retval
1435
1436 } # ac_fn_c_try_compile
1437
1438 # ac_fn_c_try_cpp LINENO
1439 # ----------------------
1440 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1441 ac_fn_c_try_cpp ()
1442 {
1443 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1444 if { { ac_try="$ac_cpp conftest.$ac_ext"
1445 case "(($ac_try" in
1446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1447 *) ac_try_echo=$ac_try;;
1448 esac
1449 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1450 $as_echo "$ac_try_echo"; } >&5
1451 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1452 ac_status=$?
1453 if test -s conftest.err; then
1454 grep -v '^ *+' conftest.err >conftest.er1
1455 cat conftest.er1 >&5
1456 mv -f conftest.er1 conftest.err
1457 fi
1458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1459 test $ac_status = 0; } >/dev/null && {
1460 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1461 test ! -s conftest.err
1462 }; then :
1463 ac_retval=0
1464 else
1465 $as_echo "$as_me: failed program was:" >&5
1466 sed 's/^/| /' conftest.$ac_ext >&5
1467
1468 ac_retval=1
1469 fi
1470 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1471 return $ac_retval
1472
1473 } # ac_fn_c_try_cpp
1474
1475 # ac_fn_c_try_run LINENO
1476 # ----------------------
1477 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1478 # that executables *can* be run.
1479 ac_fn_c_try_run ()
1480 {
1481 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1482 if { { ac_try="$ac_link"
1483 case "(($ac_try" in
1484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1485 *) ac_try_echo=$ac_try;;
1486 esac
1487 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1488 $as_echo "$ac_try_echo"; } >&5
1489 (eval "$ac_link") 2>&5
1490 ac_status=$?
1491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1492 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1493 { { case "(($ac_try" in
1494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1495 *) ac_try_echo=$ac_try;;
1496 esac
1497 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1498 $as_echo "$ac_try_echo"; } >&5
1499 (eval "$ac_try") 2>&5
1500 ac_status=$?
1501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1502 test $ac_status = 0; }; }; then :
1503 ac_retval=0
1504 else
1505 $as_echo "$as_me: program exited with status $ac_status" >&5
1506 $as_echo "$as_me: failed program was:" >&5
1507 sed 's/^/| /' conftest.$ac_ext >&5
1508
1509 ac_retval=$ac_status
1510 fi
1511 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1512 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1513 return $ac_retval
1514
1515 } # ac_fn_c_try_run
1516
1517 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1518 # -------------------------------------------------------
1519 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1520 # the include files in INCLUDES and setting the cache variable VAR
1521 # accordingly.
1522 ac_fn_c_check_header_mongrel ()
1523 {
1524 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1525 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1527 $as_echo_n "checking for $2... " >&6; }
1528 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1529 $as_echo_n "(cached) " >&6
1530 fi
1531 eval ac_res=\$$3
1532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1533 $as_echo "$ac_res" >&6; }
1534 else
1535 # Is the header compilable?
1536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1537 $as_echo_n "checking $2 usability... " >&6; }
1538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1539 /* end confdefs.h. */
1540 $4
1541 #include <$2>
1542 _ACEOF
1543 if ac_fn_c_try_compile "$LINENO"; then :
1544 ac_header_compiler=yes
1545 else
1546 ac_header_compiler=no
1547 fi
1548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1550 $as_echo "$ac_header_compiler" >&6; }
1551
1552 # Is the header present?
1553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1554 $as_echo_n "checking $2 presence... " >&6; }
1555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1556 /* end confdefs.h. */
1557 #include <$2>
1558 _ACEOF
1559 if ac_fn_c_try_cpp "$LINENO"; then :
1560 ac_header_preproc=yes
1561 else
1562 ac_header_preproc=no
1563 fi
1564 rm -f conftest.err conftest.$ac_ext
1565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1566 $as_echo "$ac_header_preproc" >&6; }
1567
1568 # So? What about this header?
1569 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1570 yes:no: )
1571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1572 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1574 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1575 ;;
1576 no:yes:* )
1577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1578 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1580 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1582 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1584 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1586 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1587 ( cat <<\_ASBOX
1588 ## ---------------------------------------------- ##
1589 ## Report this to smcameron@users.sourceforge.net ##
1590 ## ---------------------------------------------- ##
1591 _ASBOX
1592 ) | sed "s/^/$as_me: WARNING: /" >&2
1593 ;;
1594 esac
1595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1596 $as_echo_n "checking for $2... " >&6; }
1597 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1598 $as_echo_n "(cached) " >&6
1599 else
1600 eval "$3=\$ac_header_compiler"
1601 fi
1602 eval ac_res=\$$3
1603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1604 $as_echo "$ac_res" >&6; }
1605 fi
1606 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1607
1608 } # ac_fn_c_check_header_mongrel
1609
1610 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1611 # -------------------------------------------------------
1612 # Tests whether HEADER exists and can be compiled using the include files in
1613 # INCLUDES, setting the cache variable VAR accordingly.
1614 ac_fn_c_check_header_compile ()
1615 {
1616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1618 $as_echo_n "checking for $2... " >&6; }
1619 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1620 $as_echo_n "(cached) " >&6
1621 else
1622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1623 /* end confdefs.h. */
1624 $4
1625 #include <$2>
1626 _ACEOF
1627 if ac_fn_c_try_compile "$LINENO"; then :
1628 eval "$3=yes"
1629 else
1630 eval "$3=no"
1631 fi
1632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1633 fi
1634 eval ac_res=\$$3
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1636 $as_echo "$ac_res" >&6; }
1637 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1638
1639 } # ac_fn_c_check_header_compile
1640
1641 # ac_fn_c_try_link LINENO
1642 # -----------------------
1643 # Try to link conftest.$ac_ext, and return whether this succeeded.
1644 ac_fn_c_try_link ()
1645 {
1646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647 rm -f conftest.$ac_objext conftest$ac_exeext
1648 if { { ac_try="$ac_link"
1649 case "(($ac_try" in
1650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1651 *) ac_try_echo=$ac_try;;
1652 esac
1653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1654 $as_echo "$ac_try_echo"; } >&5
1655 (eval "$ac_link") 2>conftest.err
1656 ac_status=$?
1657 if test -s conftest.err; then
1658 grep -v '^ *+' conftest.err >conftest.er1
1659 cat conftest.er1 >&5
1660 mv -f conftest.er1 conftest.err
1661 fi
1662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1663 test $ac_status = 0; } && {
1664 test -z "$ac_c_werror_flag" ||
1665 test ! -s conftest.err
1666 } && test -s conftest$ac_exeext && {
1667 test "$cross_compiling" = yes ||
1668 $as_test_x conftest$ac_exeext
1669 }; then :
1670 ac_retval=0
1671 else
1672 $as_echo "$as_me: failed program was:" >&5
1673 sed 's/^/| /' conftest.$ac_ext >&5
1674
1675 ac_retval=1
1676 fi
1677 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1678 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1679 # interfere with the next link command; also delete a directory that is
1680 # left behind by Apple's compiler. We do this before executing the actions.
1681 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1682 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1683 return $ac_retval
1684
1685 } # ac_fn_c_try_link
1686
1687 # ac_fn_c_check_func LINENO FUNC VAR
1688 # ----------------------------------
1689 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1690 ac_fn_c_check_func ()
1691 {
1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1694 $as_echo_n "checking for $2... " >&6; }
1695 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1696 $as_echo_n "(cached) " >&6
1697 else
1698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1699 /* end confdefs.h. */
1700 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1701 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1702 #define $2 innocuous_$2
1703
1704 /* System header to define __stub macros and hopefully few prototypes,
1705 which can conflict with char $2 (); below.
1706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1707 <limits.h> exists even on freestanding compilers. */
1708
1709 #ifdef __STDC__
1710 # include <limits.h>
1711 #else
1712 # include <assert.h>
1713 #endif
1714
1715 #undef $2
1716
1717 /* Override any GCC internal prototype to avoid an error.
1718 Use char because int might match the return type of a GCC
1719 builtin and then its argument prototype would still apply. */
1720 #ifdef __cplusplus
1721 extern "C"
1722 #endif
1723 char $2 ();
1724 /* The GNU C library defines this for functions which it implements
1725 to always fail with ENOSYS. Some functions are actually named
1726 something starting with __ and the normal name is an alias. */
1727 #if defined __stub_$2 || defined __stub___$2
1728 choke me
1729 #endif
1730
1731 int
1732 main ()
1733 {
1734 return $2 ();
1735 ;
1736 return 0;
1737 }
1738 _ACEOF
1739 if ac_fn_c_try_link "$LINENO"; then :
1740 eval "$3=yes"
1741 else
1742 eval "$3=no"
1743 fi
1744 rm -f core conftest.err conftest.$ac_objext \
1745 conftest$ac_exeext conftest.$ac_ext
1746 fi
1747 eval ac_res=\$$3
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1749 $as_echo "$ac_res" >&6; }
1750 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1751
1752 } # ac_fn_c_check_func
17531452 cat >config.log <<_ACEOF
17541453 This file contains any messages produced by compilers while
17551454 running configure, to aid debugging if configure makes a mistake.
17561455
1757 It was created by cciss_vol_status $as_me 1.09, which was
1758 generated by GNU Autoconf 2.64. Invocation command line was
1456 It was created by cciss_vol_status $as_me 1.11, which was
1457 generated by GNU Autoconf 2.63. Invocation command line was
17591458
17601459 $ $0 $@
17611460
17911490 do
17921491 IFS=$as_save_IFS
17931492 test -z "$as_dir" && as_dir=.
1794 $as_echo "PATH: $as_dir"
1795 done
1493 $as_echo "PATH: $as_dir"
1494 done
17961495 IFS=$as_save_IFS
17971496
17981497 } >&5
18291528 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
18301529 esac
18311530 case $ac_pass in
1832 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1531 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
18331532 2)
1834 as_fn_append ac_configure_args1 " '$ac_arg'"
1533 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
18351534 if test $ac_must_keep_next = true; then
18361535 ac_must_keep_next=false # Got value, back to normal.
18371536 else
18471546 -* ) ac_must_keep_next=true ;;
18481547 esac
18491548 fi
1850 as_fn_append ac_configure_args " '$ac_arg'"
1549 ac_configure_args="$ac_configure_args '$ac_arg'"
18511550 ;;
18521551 esac
18531552 done
18541553 done
1855 { ac_configure_args0=; unset ac_configure_args0;}
1856 { ac_configure_args1=; unset ac_configure_args1;}
1554 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1555 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
18571556
18581557 # When interrupted or exit'd, cleanup temporary files, and complete
18591558 # config.log. We remove comments because anyway the quotes in there
18781577 case $ac_val in #(
18791578 *${as_nl}*)
18801579 case $ac_var in #(
1881 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1580 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
18821581 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18831582 esac
18841583 case $ac_var in #(
18851584 _ | IFS | as_nl) ;; #(
18861585 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1887 *) { eval $ac_var=; unset $ac_var;} ;;
1586 *) $as_unset $ac_var ;;
18881587 esac ;;
18891588 esac
18901589 done
19561655 exit $exit_status
19571656 ' 0
19581657 for ac_signal in 1 2 13 15; do
1959 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1658 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
19601659 done
19611660 ac_signal=0
19621661
19631662 # confdefs.h avoids OS command line length limits that DEFS can exceed.
19641663 rm -f -r conftest* confdefs.h
19651664
1966 $as_echo "/* confdefs.h */" > confdefs.h
1967
19681665 # Predefined preprocessor variables.
19691666
19701667 cat >>confdefs.h <<_ACEOF
19711668 #define PACKAGE_NAME "$PACKAGE_NAME"
19721669 _ACEOF
19731670
1671
19741672 cat >>confdefs.h <<_ACEOF
19751673 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
19761674 _ACEOF
19771675
1676
19781677 cat >>confdefs.h <<_ACEOF
19791678 #define PACKAGE_VERSION "$PACKAGE_VERSION"
19801679 _ACEOF
19811680
1681
19821682 cat >>confdefs.h <<_ACEOF
19831683 #define PACKAGE_STRING "$PACKAGE_STRING"
19841684 _ACEOF
19851685
1686
19861687 cat >>confdefs.h <<_ACEOF
19871688 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1988 _ACEOF
1989
1990 cat >>confdefs.h <<_ACEOF
1991 #define PACKAGE_URL "$PACKAGE_URL"
19921689 _ACEOF
19931690
19941691
20091706 do
20101707 test "x$ac_site_file" = xNONE && continue
20111708 if test -r "$ac_site_file"; then
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1709 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
20131710 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
20141711 sed 's/^/| /' "$ac_site_file" >&5
20151712 . "$ac_site_file"
20201717 # Some versions of bash will fail to source /dev/null (special
20211718 # files actually), so we avoid doing that.
20221719 if test -f "$cache_file"; then
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1720 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
20241721 $as_echo "$as_me: loading cache $cache_file" >&6;}
20251722 case $cache_file in
20261723 [\\/]* | ?:[\\/]* ) . "$cache_file";;
20281725 esac
20291726 fi
20301727 else
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1728 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
20321729 $as_echo "$as_me: creating cache $cache_file" >&6;}
20331730 >$cache_file
20341731 fi
20431740 eval ac_new_val=\$ac_env_${ac_var}_value
20441741 case $ac_old_set,$ac_new_set in
20451742 set,)
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1743 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
20471744 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
20481745 ac_cache_corrupted=: ;;
20491746 ,set)
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1747 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
20511748 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
20521749 ac_cache_corrupted=: ;;
20531750 ,);;
20571754 ac_old_val_w=`echo x $ac_old_val`
20581755 ac_new_val_w=`echo x $ac_new_val`
20591756 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1757 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
20611758 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
20621759 ac_cache_corrupted=:
20631760 else
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1761 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
20651762 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
20661763 eval $ac_var=\$ac_old_val
20671764 fi
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1765 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
20691766 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1767 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
20711768 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
20721769 fi;;
20731770 esac
20791776 esac
20801777 case " $ac_configure_args " in
20811778 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2082 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1779 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
20831780 esac
20841781 fi
20851782 done
20861783 if $ac_cache_corrupted; then
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1784 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
20881785 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1786 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
20901787 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2091 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2092 fi
2093 ## -------------------- ##
2094 ## Main body of script. ##
2095 ## -------------------- ##
1788 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1789 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1790 { (exit 1); exit 1; }; }
1791 fi
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
20961816
20971817 ac_ext=c
20981818 ac_cpp='$CPP $CPPFLAGS'
21091829
21101830 ac_aux_dir=
21111831 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2112 for ac_t in install-sh install.sh shtool; do
2113 if test -f "$ac_dir/$ac_t"; then
2114 ac_aux_dir=$ac_dir
2115 ac_install_sh="$ac_aux_dir/$ac_t -c"
2116 break 2
2117 fi
2118 done
1832 if test -f "$ac_dir/install-sh"; then
1833 ac_aux_dir=$ac_dir
1834 ac_install_sh="$ac_aux_dir/install-sh -c"
1835 break
1836 elif test -f "$ac_dir/install.sh"; then
1837 ac_aux_dir=$ac_dir
1838 ac_install_sh="$ac_aux_dir/install.sh -c"
1839 break
1840 elif test -f "$ac_dir/shtool"; then
1841 ac_aux_dir=$ac_dir
1842 ac_install_sh="$ac_aux_dir/shtool install -c"
1843 break
1844 fi
21191845 done
21201846 if test -z "$ac_aux_dir"; then
2121 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
1847 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1848 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1849 { (exit 1); exit 1; }; }
21221850 fi
21231851
21241852 # These three variables are undocumented and unsupported,
21441872 # OS/2's system install, which has a completely different semantic
21451873 # ./install, which can be erroneously created by make from ./install.sh.
21461874 # Reject install programs that cannot install multiple files.
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
1875 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
21481876 $as_echo_n "checking for a BSD-compatible install... " >&6; }
21491877 if test -z "$INSTALL"; then
2150 if test "${ac_cv_path_install+set}" = set; then :
1878 if test "${ac_cv_path_install+set}" = set; then
21511879 $as_echo_n "(cached) " >&6
21521880 else
21531881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21551883 do
21561884 IFS=$as_save_IFS
21571885 test -z "$as_dir" && as_dir=.
2158 # Account for people who put trailing slashes in PATH elements.
2159 case $as_dir/ in #((
2160 ./ | .// | /[cC]/* | \
1886 # Account for people who put trailing slashes in PATH elements.
1887 case $as_dir/ in
1888 ./ | .// | /cC/* | \
21611889 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2162 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1890 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
21631891 /usr/ucb/* ) ;;
21641892 *)
21651893 # OSF1 and SCO ODT 3.0 have their own names for install.
21961924 ;;
21971925 esac
21981926
2199 done
1927 done
22001928 IFS=$as_save_IFS
22011929
22021930 rm -rf conftest.one conftest.two conftest.dir
22121940 INSTALL=$ac_install_sh
22131941 fi
22141942 fi
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
1943 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
22161944 $as_echo "$INSTALL" >&6; }
22171945
22181946 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
22231951
22241952 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
22251953
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
1954 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
22271955 $as_echo_n "checking whether build environment is sane... " >&6; }
22281956 # Just in case
22291957 sleep 1
22341962 '
22351963 case `pwd` in
22361964 *[\\\"\#\$\&\'\`$am_lf]*)
2237 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
1965 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
1966 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
1967 { (exit 1); exit 1; }; };;
22381968 esac
22391969 case $srcdir in
22401970 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2241 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
1971 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
1972 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
1973 { (exit 1); exit 1; }; };;
22421974 esac
22431975
22441976 # Do `set' in a subshell so we don't clobber the current shell's
22601992 # if, for instance, CONFIG_SHELL is bash and it inherits a
22611993 # broken ls alias from the environment. This has actually
22621994 # happened. Such a system could not be considered "sane".
2263 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2264 alias in your environment" "$LINENO" 5
1995 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1996 alias in your environment" >&5
1997 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1998 alias in your environment" >&2;}
1999 { (exit 1); exit 1; }; }
22652000 fi
22662001
22672002 test "$2" = conftest.file
22702005 # Ok.
22712006 :
22722007 else
2273 as_fn_error "newly created file is older than distributed files!
2274 Check your system clock" "$LINENO" 5
2275 fi
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2008 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2009 Check your system clock" >&5
2010 $as_echo "$as_me: error: newly created file is older than distributed files!
2011 Check your system clock" >&2;}
2012 { (exit 1); exit 1; }; }
2013 fi
2014 { $as_echo "$as_me:$LINENO: result: yes" >&5
22772015 $as_echo "yes" >&6; }
22782016 test "$program_prefix" != NONE &&
22792017 program_transform_name="s&^&$program_prefix&;$program_transform_name"
23012039 am_missing_run="$MISSING --run "
23022040 else
23032041 am_missing_run=
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2042 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
23052043 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
23062044 fi
23072045
23222060 if test -n "$ac_tool_prefix"; then
23232061 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
23242062 set dummy ${ac_tool_prefix}strip; ac_word=$2
2325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2063 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23262064 $as_echo_n "checking for $ac_word... " >&6; }
2327 if test "${ac_cv_prog_STRIP+set}" = set; then :
2065 if test "${ac_cv_prog_STRIP+set}" = set; then
23282066 $as_echo_n "(cached) " >&6
23292067 else
23302068 if test -n "$STRIP"; then
23352073 do
23362074 IFS=$as_save_IFS
23372075 test -z "$as_dir" && as_dir=.
2338 for ac_exec_ext in '' $ac_executable_extensions; do
2076 for ac_exec_ext in '' $ac_executable_extensions; do
23392077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23402078 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2079 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23422080 break 2
23432081 fi
23442082 done
2345 done
2083 done
23462084 IFS=$as_save_IFS
23472085
23482086 fi
23492087 fi
23502088 STRIP=$ac_cv_prog_STRIP
23512089 if test -n "$STRIP"; then
2352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2090 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
23532091 $as_echo "$STRIP" >&6; }
23542092 else
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2093 { $as_echo "$as_me:$LINENO: result: no" >&5
23562094 $as_echo "no" >&6; }
23572095 fi
23582096
23622100 ac_ct_STRIP=$STRIP
23632101 # Extract the first word of "strip", so it can be a program name with args.
23642102 set dummy strip; ac_word=$2
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2103 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23662104 $as_echo_n "checking for $ac_word... " >&6; }
2367 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2105 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
23682106 $as_echo_n "(cached) " >&6
23692107 else
23702108 if test -n "$ac_ct_STRIP"; then
23752113 do
23762114 IFS=$as_save_IFS
23772115 test -z "$as_dir" && as_dir=.
2378 for ac_exec_ext in '' $ac_executable_extensions; do
2116 for ac_exec_ext in '' $ac_executable_extensions; do
23792117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23802118 ac_cv_prog_ac_ct_STRIP="strip"
2381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2119 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23822120 break 2
23832121 fi
23842122 done
2385 done
2123 done
23862124 IFS=$as_save_IFS
23872125
23882126 fi
23892127 fi
23902128 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
23912129 if test -n "$ac_ct_STRIP"; then
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2130 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
23932131 $as_echo "$ac_ct_STRIP" >&6; }
23942132 else
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2133 { $as_echo "$as_me:$LINENO: result: no" >&5
23962134 $as_echo "no" >&6; }
23972135 fi
23982136
24012139 else
24022140 case $cross_compiling:$ac_tool_warned in
24032141 yes:)
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2142 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
24052143 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24062144 ac_tool_warned=yes ;;
24072145 esac
24142152 fi
24152153 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
24162154
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2155 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
24182156 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
24192157 if test -z "$MKDIR_P"; then
2420 if test "${ac_cv_path_mkdir+set}" = set; then :
2158 if test "${ac_cv_path_mkdir+set}" = set; then
24212159 $as_echo_n "(cached) " >&6
24222160 else
24232161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24252163 do
24262164 IFS=$as_save_IFS
24272165 test -z "$as_dir" && as_dir=.
2428 for ac_prog in mkdir gmkdir; do
2166 for ac_prog in mkdir gmkdir; do
24292167 for ac_exec_ext in '' $ac_executable_extensions; do
24302168 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
24312169 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
24372175 esac
24382176 done
24392177 done
2440 done
2178 done
24412179 IFS=$as_save_IFS
24422180
24432181 fi
24532191 MKDIR_P="$ac_install_sh -d"
24542192 fi
24552193 fi
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2194 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
24572195 $as_echo "$MKDIR_P" >&6; }
24582196
24592197 mkdir_p="$MKDIR_P"
24662204 do
24672205 # Extract the first word of "$ac_prog", so it can be a program name with args.
24682206 set dummy $ac_prog; ac_word=$2
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2207 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
24702208 $as_echo_n "checking for $ac_word... " >&6; }
2471 if test "${ac_cv_prog_AWK+set}" = set; then :
2209 if test "${ac_cv_prog_AWK+set}" = set; then
24722210 $as_echo_n "(cached) " >&6
24732211 else
24742212 if test -n "$AWK"; then
24792217 do
24802218 IFS=$as_save_IFS
24812219 test -z "$as_dir" && as_dir=.
2482 for ac_exec_ext in '' $ac_executable_extensions; do
2220 for ac_exec_ext in '' $ac_executable_extensions; do
24832221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24842222 ac_cv_prog_AWK="$ac_prog"
2485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2223 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24862224 break 2
24872225 fi
24882226 done
2489 done
2227 done
24902228 IFS=$as_save_IFS
24912229
24922230 fi
24932231 fi
24942232 AWK=$ac_cv_prog_AWK
24952233 if test -n "$AWK"; then
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2234 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
24972235 $as_echo "$AWK" >&6; }
24982236 else
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2237 { $as_echo "$as_me:$LINENO: result: no" >&5
25002238 $as_echo "no" >&6; }
25012239 fi
25022240
25042242 test -n "$AWK" && break
25052243 done
25062244
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2245 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
25082246 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
25092247 set x ${MAKE-make}
25102248 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2511 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2249 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
25122250 $as_echo_n "(cached) " >&6
25132251 else
25142252 cat >conftest.make <<\_ACEOF
25262264 rm -f conftest.make
25272265 fi
25282266 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2267 { $as_echo "$as_me:$LINENO: result: yes" >&5
25302268 $as_echo "yes" >&6; }
25312269 SET_MAKE=
25322270 else
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2271 { $as_echo "$as_me:$LINENO: result: no" >&5
25342272 $as_echo "no" >&6; }
25352273 SET_MAKE="MAKE=${MAKE-make}"
25362274 fi
25502288 am__isrc=' -I$(srcdir)'
25512289 # test to see if srcdir already configured
25522290 if test -f $srcdir/config.status; then
2553 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2291 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2292 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2293 { (exit 1); exit 1; }; }
25542294 fi
25552295 fi
25562296
25662306
25672307 # Define the identity of the package.
25682308 PACKAGE='cciss_vol_status'
2569 VERSION='1.09'
2309 VERSION='1.11'
25702310
25712311
25722312 cat >>confdefs.h <<_ACEOF
26152355 if test -n "$ac_tool_prefix"; then
26162356 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
26172357 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2358 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
26192359 $as_echo_n "checking for $ac_word... " >&6; }
2620 if test "${ac_cv_prog_CC+set}" = set; then :
2360 if test "${ac_cv_prog_CC+set}" = set; then
26212361 $as_echo_n "(cached) " >&6
26222362 else
26232363 if test -n "$CC"; then
26282368 do
26292369 IFS=$as_save_IFS
26302370 test -z "$as_dir" && as_dir=.
2631 for ac_exec_ext in '' $ac_executable_extensions; do
2371 for ac_exec_ext in '' $ac_executable_extensions; do
26322372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26332373 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2374 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26352375 break 2
26362376 fi
26372377 done
2638 done
2378 done
26392379 IFS=$as_save_IFS
26402380
26412381 fi
26422382 fi
26432383 CC=$ac_cv_prog_CC
26442384 if test -n "$CC"; then
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2385 { $as_echo "$as_me:$LINENO: result: $CC" >&5
26462386 $as_echo "$CC" >&6; }
26472387 else
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2388 { $as_echo "$as_me:$LINENO: result: no" >&5
26492389 $as_echo "no" >&6; }
26502390 fi
26512391
26552395 ac_ct_CC=$CC
26562396 # Extract the first word of "gcc", so it can be a program name with args.
26572397 set dummy gcc; ac_word=$2
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2398 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
26592399 $as_echo_n "checking for $ac_word... " >&6; }
2660 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2400 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
26612401 $as_echo_n "(cached) " >&6
26622402 else
26632403 if test -n "$ac_ct_CC"; then
26682408 do
26692409 IFS=$as_save_IFS
26702410 test -z "$as_dir" && as_dir=.
2671 for ac_exec_ext in '' $ac_executable_extensions; do
2411 for ac_exec_ext in '' $ac_executable_extensions; do
26722412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26732413 ac_cv_prog_ac_ct_CC="gcc"
2674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2414 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26752415 break 2
26762416 fi
26772417 done
2678 done
2418 done
26792419 IFS=$as_save_IFS
26802420
26812421 fi
26822422 fi
26832423 ac_ct_CC=$ac_cv_prog_ac_ct_CC
26842424 if test -n "$ac_ct_CC"; then
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2425 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
26862426 $as_echo "$ac_ct_CC" >&6; }
26872427 else
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2428 { $as_echo "$as_me:$LINENO: result: no" >&5
26892429 $as_echo "no" >&6; }
26902430 fi
26912431
26942434 else
26952435 case $cross_compiling:$ac_tool_warned in
26962436 yes:)
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2437 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
26982438 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26992439 ac_tool_warned=yes ;;
27002440 esac
27082448 if test -n "$ac_tool_prefix"; then
27092449 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
27102450 set dummy ${ac_tool_prefix}cc; ac_word=$2
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2451 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27122452 $as_echo_n "checking for $ac_word... " >&6; }
2713 if test "${ac_cv_prog_CC+set}" = set; then :
2453 if test "${ac_cv_prog_CC+set}" = set; then
27142454 $as_echo_n "(cached) " >&6
27152455 else
27162456 if test -n "$CC"; then
27212461 do
27222462 IFS=$as_save_IFS
27232463 test -z "$as_dir" && as_dir=.
2724 for ac_exec_ext in '' $ac_executable_extensions; do
2464 for ac_exec_ext in '' $ac_executable_extensions; do
27252465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27262466 ac_cv_prog_CC="${ac_tool_prefix}cc"
2727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2467 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27282468 break 2
27292469 fi
27302470 done
2731 done
2471 done
27322472 IFS=$as_save_IFS
27332473
27342474 fi
27352475 fi
27362476 CC=$ac_cv_prog_CC
27372477 if test -n "$CC"; then
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2478 { $as_echo "$as_me:$LINENO: result: $CC" >&5
27392479 $as_echo "$CC" >&6; }
27402480 else
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2481 { $as_echo "$as_me:$LINENO: result: no" >&5
27422482 $as_echo "no" >&6; }
27432483 fi
27442484
27482488 if test -z "$CC"; then
27492489 # Extract the first word of "cc", so it can be a program name with args.
27502490 set dummy cc; ac_word=$2
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2491 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
27522492 $as_echo_n "checking for $ac_word... " >&6; }
2753 if test "${ac_cv_prog_CC+set}" = set; then :
2493 if test "${ac_cv_prog_CC+set}" = set; then
27542494 $as_echo_n "(cached) " >&6
27552495 else
27562496 if test -n "$CC"; then
27622502 do
27632503 IFS=$as_save_IFS
27642504 test -z "$as_dir" && as_dir=.
2765 for ac_exec_ext in '' $ac_executable_extensions; do
2505 for ac_exec_ext in '' $ac_executable_extensions; do
27662506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27672507 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
27682508 ac_prog_rejected=yes
27692509 continue
27702510 fi
27712511 ac_cv_prog_CC="cc"
2772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2512 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27732513 break 2
27742514 fi
27752515 done
2776 done
2516 done
27772517 IFS=$as_save_IFS
27782518
27792519 if test $ac_prog_rejected = yes; then
27922532 fi
27932533 CC=$ac_cv_prog_CC
27942534 if test -n "$CC"; then
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2535 { $as_echo "$as_me:$LINENO: result: $CC" >&5
27962536 $as_echo "$CC" >&6; }
27972537 else
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2538 { $as_echo "$as_me:$LINENO: result: no" >&5
27992539 $as_echo "no" >&6; }
28002540 fi
28012541
28072547 do
28082548 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
28092549 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2550 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28112551 $as_echo_n "checking for $ac_word... " >&6; }
2812 if test "${ac_cv_prog_CC+set}" = set; then :
2552 if test "${ac_cv_prog_CC+set}" = set; then
28132553 $as_echo_n "(cached) " >&6
28142554 else
28152555 if test -n "$CC"; then
28202560 do
28212561 IFS=$as_save_IFS
28222562 test -z "$as_dir" && as_dir=.
2823 for ac_exec_ext in '' $ac_executable_extensions; do
2563 for ac_exec_ext in '' $ac_executable_extensions; do
28242564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28252565 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2566 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28272567 break 2
28282568 fi
28292569 done
2830 done
2570 done
28312571 IFS=$as_save_IFS
28322572
28332573 fi
28342574 fi
28352575 CC=$ac_cv_prog_CC
28362576 if test -n "$CC"; then
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2577 { $as_echo "$as_me:$LINENO: result: $CC" >&5
28382578 $as_echo "$CC" >&6; }
28392579 else
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2580 { $as_echo "$as_me:$LINENO: result: no" >&5
28412581 $as_echo "no" >&6; }
28422582 fi
28432583
28512591 do
28522592 # Extract the first word of "$ac_prog", so it can be a program name with args.
28532593 set dummy $ac_prog; ac_word=$2
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2594 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
28552595 $as_echo_n "checking for $ac_word... " >&6; }
2856 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2596 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
28572597 $as_echo_n "(cached) " >&6
28582598 else
28592599 if test -n "$ac_ct_CC"; then
28642604 do
28652605 IFS=$as_save_IFS
28662606 test -z "$as_dir" && as_dir=.
2867 for ac_exec_ext in '' $ac_executable_extensions; do
2607 for ac_exec_ext in '' $ac_executable_extensions; do
28682608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28692609 ac_cv_prog_ac_ct_CC="$ac_prog"
2870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2610 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28712611 break 2
28722612 fi
28732613 done
2874 done
2614 done
28752615 IFS=$as_save_IFS
28762616
28772617 fi
28782618 fi
28792619 ac_ct_CC=$ac_cv_prog_ac_ct_CC
28802620 if test -n "$ac_ct_CC"; then
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2621 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
28822622 $as_echo "$ac_ct_CC" >&6; }
28832623 else
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2624 { $as_echo "$as_me:$LINENO: result: no" >&5
28852625 $as_echo "no" >&6; }
28862626 fi
28872627
28942634 else
28952635 case $cross_compiling:$ac_tool_warned in
28962636 yes:)
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2637 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
28982638 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28992639 ac_tool_warned=yes ;;
29002640 esac
29052645 fi
29062646
29072647
2908 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2648 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
29092649 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2910 as_fn_error "no acceptable C compiler found in \$PATH
2911 See \`config.log' for more details." "$LINENO" 5; }
2650 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2651 See \`config.log' for more details." >&5
2652 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2653 See \`config.log' for more details." >&2;}
2654 { (exit 1); exit 1; }; }; }
29122655
29132656 # Provide some information about the compiler.
2914 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2657 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
29152658 set X $ac_compile
29162659 ac_compiler=$2
2917 for ac_option in --version -v -V -qversion; do
2918 { { ac_try="$ac_compiler $ac_option >&5"
2660 { (ac_try="$ac_compiler --version >&5"
29192661 case "(($ac_try" in
29202662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29212663 *) ac_try_echo=$ac_try;;
29222664 esac
2923 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2924 $as_echo "$ac_try_echo"; } >&5
2925 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2666 $as_echo "$ac_try_echo") >&5
2667 (eval "$ac_compiler --version >&5") 2>&5
29262668 ac_status=$?
2927 if test -s conftest.err; then
2928 sed '10a\
2929 ... rest of stderr output deleted ...
2930 10q' conftest.err >conftest.er1
2931 cat conftest.er1 >&5
2932 rm -f conftest.er1 conftest.err
2933 fi
2934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2935 test $ac_status = 0; }
2936 done
2937
2938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); }
2671 { (ac_try="$ac_compiler -v >&5"
2672 case "(($ac_try" in
2673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2674 *) ac_try_echo=$ac_try;;
2675 esac
2676 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2677 $as_echo "$ac_try_echo") >&5
2678 (eval "$ac_compiler -v >&5") 2>&5
2679 ac_status=$?
2680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2681 (exit $ac_status); }
2682 { (ac_try="$ac_compiler -V >&5"
2683 case "(($ac_try" in
2684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2685 *) ac_try_echo=$ac_try;;
2686 esac
2687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2688 $as_echo "$ac_try_echo") >&5
2689 (eval "$ac_compiler -V >&5") 2>&5
2690 ac_status=$?
2691 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692 (exit $ac_status); }
2693
2694 cat >conftest.$ac_ext <<_ACEOF
2695 /* confdefs.h. */
2696 _ACEOF
2697 cat confdefs.h >>conftest.$ac_ext
2698 cat >>conftest.$ac_ext <<_ACEOF
29392699 /* end confdefs.h. */
2940 #include <stdio.h>
2700
29412701 int
29422702 main ()
29432703 {
2944 FILE *f = fopen ("conftest.out", "w");
2945 return ferror (f) || fclose (f) != 0;
29462704
29472705 ;
29482706 return 0;
29492707 }
29502708 _ACEOF
29512709 ac_clean_files_save=$ac_clean_files
2952 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2710 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
29532711 # Try to create an executable without -o first, disregard a.out.
29542712 # It will help us diagnose broken compilers, and finding out an intuition
29552713 # of exeext.
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2714 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
29572715 $as_echo_n "checking for C compiler default output file name... " >&6; }
29582716 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
29592717
29702728 done
29712729 rm -f $ac_rmfiles
29722730
2973 if { { ac_try="$ac_link_default"
2731 if { (ac_try="$ac_link_default"
29742732 case "(($ac_try" in
29752733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29762734 *) ac_try_echo=$ac_try;;
29772735 esac
2978 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2979 $as_echo "$ac_try_echo"; } >&5
2736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2737 $as_echo "$ac_try_echo") >&5
29802738 (eval "$ac_link_default") 2>&5
29812739 ac_status=$?
2982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2983 test $ac_status = 0; }; then :
2740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); }; then
29842742 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
29852743 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
29862744 # in a Makefile. We should not override ac_cv_exeext if it was cached,
29972755 # certainly right.
29982756 break;;
29992757 *.* )
3000 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2758 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
30012759 then :; else
30022760 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
30032761 fi
30162774 else
30172775 ac_file=''
30182776 fi
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2777
2778 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
30202779 $as_echo "$ac_file" >&6; }
3021 if test -z "$ac_file"; then :
2780 if test -z "$ac_file"; then
30222781 $as_echo "$as_me: failed program was:" >&5
30232782 sed 's/^/| /' conftest.$ac_ext >&5
30242783
3025 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2784 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
30262785 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3027 { as_fn_set_status 77
3028 as_fn_error "C compiler cannot create executables
3029 See \`config.log' for more details." "$LINENO" 5; }; }
3030 fi
2786 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2787 See \`config.log' for more details." >&5
2788 $as_echo "$as_me: error: C compiler cannot create executables
2789 See \`config.log' for more details." >&2;}
2790 { (exit 77); exit 77; }; }; }
2791 fi
2792
30312793 ac_exeext=$ac_cv_exeext
30322794
30332795 # Check that the compiler produces executables we can run. If not, either
30342796 # the compiler is broken, or we cross compile.
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2797 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
30362798 $as_echo_n "checking whether the C compiler works... " >&6; }
2799 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
30372800 # If not cross compiling, check that we can run a simple program.
30382801 if test "$cross_compiling" != yes; then
30392802 if { ac_try='./$ac_file'
3040 { { case "(($ac_try" in
2803 { (case "(($ac_try" in
30412804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30422805 *) ac_try_echo=$ac_try;;
30432806 esac
3044 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3045 $as_echo "$ac_try_echo"; } >&5
2807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2808 $as_echo "$ac_try_echo") >&5
30462809 (eval "$ac_try") 2>&5
30472810 ac_status=$?
3048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3049 test $ac_status = 0; }; }; then
2811 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812 (exit $ac_status); }; }; then
30502813 cross_compiling=no
30512814 else
30522815 if test "$cross_compiling" = maybe; then
30532816 cross_compiling=yes
30542817 else
3055 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2818 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
30562819 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3057 as_fn_error "cannot run C compiled programs.
2820 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
30582821 If you meant to cross compile, use \`--host'.
3059 See \`config.log' for more details." "$LINENO" 5; }
2822 See \`config.log' for more details." >&5
2823 $as_echo "$as_me: error: cannot run C compiled programs.
2824 If you meant to cross compile, use \`--host'.
2825 See \`config.log' for more details." >&2;}
2826 { (exit 1); exit 1; }; }; }
30602827 fi
30612828 fi
30622829 fi
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2830 { $as_echo "$as_me:$LINENO: result: yes" >&5
30642831 $as_echo "yes" >&6; }
30652832
3066 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
2833 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
30672834 ac_clean_files=$ac_clean_files_save
30682835 # Check that the compiler produces executables we can run. If not, either
30692836 # the compiler is broken, or we cross compile.
3070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2837 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
30712838 $as_echo_n "checking whether we are cross compiling... " >&6; }
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2839 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
30732840 $as_echo "$cross_compiling" >&6; }
30742841
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2842 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
30762843 $as_echo_n "checking for suffix of executables... " >&6; }
3077 if { { ac_try="$ac_link"
2844 if { (ac_try="$ac_link"
30782845 case "(($ac_try" in
30792846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30802847 *) ac_try_echo=$ac_try;;
30812848 esac
3082 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3083 $as_echo "$ac_try_echo"; } >&5
2849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2850 $as_echo "$ac_try_echo") >&5
30842851 (eval "$ac_link") 2>&5
30852852 ac_status=$?
3086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3087 test $ac_status = 0; }; then :
2853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2854 (exit $ac_status); }; then
30882855 # If both `conftest.exe' and `conftest' are `present' (well, observable)
30892856 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
30902857 # work properly (i.e., refer to `conftest.exe'), while it won't with
30992866 esac
31002867 done
31012868 else
3102 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2869 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
31032870 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3104 as_fn_error "cannot compute suffix of executables: cannot compile and link
3105 See \`config.log' for more details." "$LINENO" 5; }
3106 fi
2871 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2872 See \`config.log' for more details." >&5
2873 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2874 See \`config.log' for more details." >&2;}
2875 { (exit 1); exit 1; }; }; }
2876 fi
2877
31072878 rm -f conftest$ac_cv_exeext
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2879 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
31092880 $as_echo "$ac_cv_exeext" >&6; }
31102881
31112882 rm -f conftest.$ac_ext
31122883 EXEEXT=$ac_cv_exeext
31132884 ac_exeext=$EXEEXT
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2885 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
31152886 $as_echo_n "checking for suffix of object files... " >&6; }
3116 if test "${ac_cv_objext+set}" = set; then :
2887 if test "${ac_cv_objext+set}" = set; then
31172888 $as_echo_n "(cached) " >&6
31182889 else
3119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2890 cat >conftest.$ac_ext <<_ACEOF
2891 /* confdefs.h. */
2892 _ACEOF
2893 cat confdefs.h >>conftest.$ac_ext
2894 cat >>conftest.$ac_ext <<_ACEOF
31202895 /* end confdefs.h. */
31212896
31222897 int
31282903 }
31292904 _ACEOF
31302905 rm -f conftest.o conftest.obj
3131 if { { ac_try="$ac_compile"
2906 if { (ac_try="$ac_compile"
31322907 case "(($ac_try" in
31332908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31342909 *) ac_try_echo=$ac_try;;
31352910 esac
3136 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3137 $as_echo "$ac_try_echo"; } >&5
2911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2912 $as_echo "$ac_try_echo") >&5
31382913 (eval "$ac_compile") 2>&5
31392914 ac_status=$?
3140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3141 test $ac_status = 0; }; then :
2915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); }; then
31422917 for ac_file in conftest.o conftest.obj conftest.*; do
31432918 test -f "$ac_file" || continue;
31442919 case $ac_file in
31512926 $as_echo "$as_me: failed program was:" >&5
31522927 sed 's/^/| /' conftest.$ac_ext >&5
31532928
3154 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2929 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
31552930 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3156 as_fn_error "cannot compute suffix of object files: cannot compile
3157 See \`config.log' for more details." "$LINENO" 5; }
3158 fi
2931 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2932 See \`config.log' for more details." >&5
2933 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2934 See \`config.log' for more details." >&2;}
2935 { (exit 1); exit 1; }; }; }
2936 fi
2937
31592938 rm -f conftest.$ac_cv_objext conftest.$ac_ext
31602939 fi
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2940 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
31622941 $as_echo "$ac_cv_objext" >&6; }
31632942 OBJEXT=$ac_cv_objext
31642943 ac_objext=$OBJEXT
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2944 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
31662945 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3167 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2946 if test "${ac_cv_c_compiler_gnu+set}" = set; then
31682947 $as_echo_n "(cached) " >&6
31692948 else
3170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2949 cat >conftest.$ac_ext <<_ACEOF
2950 /* confdefs.h. */
2951 _ACEOF
2952 cat confdefs.h >>conftest.$ac_ext
2953 cat >>conftest.$ac_ext <<_ACEOF
31712954 /* end confdefs.h. */
31722955
31732956 int
31812964 return 0;
31822965 }
31832966 _ACEOF
3184 if ac_fn_c_try_compile "$LINENO"; then :
2967 rm -f conftest.$ac_objext
2968 if { (ac_try="$ac_compile"
2969 case "(($ac_try" in
2970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2971 *) ac_try_echo=$ac_try;;
2972 esac
2973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2974 $as_echo "$ac_try_echo") >&5
2975 (eval "$ac_compile") 2>conftest.er1
2976 ac_status=$?
2977 grep -v '^ *+' conftest.er1 >conftest.err
2978 rm -f conftest.er1
2979 cat conftest.err >&5
2980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); } && {
2982 test -z "$ac_c_werror_flag" ||
2983 test ! -s conftest.err
2984 } && test -s conftest.$ac_objext; then
31852985 ac_compiler_gnu=yes
31862986 else
3187 ac_compiler_gnu=no
3188 fi
2987 $as_echo "$as_me: failed program was:" >&5
2988 sed 's/^/| /' conftest.$ac_ext >&5
2989
2990 ac_compiler_gnu=no
2991 fi
2992
31892993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31902994 ac_cv_c_compiler_gnu=$ac_compiler_gnu
31912995
31922996 fi
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2997 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
31942998 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
31952999 if test $ac_compiler_gnu = yes; then
31963000 GCC=yes
31993003 fi
32003004 ac_test_CFLAGS=${CFLAGS+set}
32013005 ac_save_CFLAGS=$CFLAGS
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3006 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
32033007 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3204 if test "${ac_cv_prog_cc_g+set}" = set; then :
3008 if test "${ac_cv_prog_cc_g+set}" = set; then
32053009 $as_echo_n "(cached) " >&6
32063010 else
32073011 ac_save_c_werror_flag=$ac_c_werror_flag
32083012 ac_c_werror_flag=yes
32093013 ac_cv_prog_cc_g=no
32103014 CFLAGS="-g"
3211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3015 cat >conftest.$ac_ext <<_ACEOF
3016 /* confdefs.h. */
3017 _ACEOF
3018 cat confdefs.h >>conftest.$ac_ext
3019 cat >>conftest.$ac_ext <<_ACEOF
32123020 /* end confdefs.h. */
32133021
32143022 int
32193027 return 0;
32203028 }
32213029 _ACEOF
3222 if ac_fn_c_try_compile "$LINENO"; then :
3030 rm -f conftest.$ac_objext
3031 if { (ac_try="$ac_compile"
3032 case "(($ac_try" in
3033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034 *) ac_try_echo=$ac_try;;
3035 esac
3036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3037 $as_echo "$ac_try_echo") >&5
3038 (eval "$ac_compile") 2>conftest.er1
3039 ac_status=$?
3040 grep -v '^ *+' conftest.er1 >conftest.err
3041 rm -f conftest.er1
3042 cat conftest.err >&5
3043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044 (exit $ac_status); } && {
3045 test -z "$ac_c_werror_flag" ||
3046 test ! -s conftest.err
3047 } && test -s conftest.$ac_objext; then
32233048 ac_cv_prog_cc_g=yes
32243049 else
3225 CFLAGS=""
3226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3050 $as_echo "$as_me: failed program was:" >&5
3051 sed 's/^/| /' conftest.$ac_ext >&5
3052
3053 CFLAGS=""
3054 cat >conftest.$ac_ext <<_ACEOF
3055 /* confdefs.h. */
3056 _ACEOF
3057 cat confdefs.h >>conftest.$ac_ext
3058 cat >>conftest.$ac_ext <<_ACEOF
32273059 /* end confdefs.h. */
32283060
32293061 int
32343066 return 0;
32353067 }
32363068 _ACEOF
3237 if ac_fn_c_try_compile "$LINENO"; then :
3238
3239 else
3240 ac_c_werror_flag=$ac_save_c_werror_flag
3069 rm -f conftest.$ac_objext
3070 if { (ac_try="$ac_compile"
3071 case "(($ac_try" in
3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073 *) ac_try_echo=$ac_try;;
3074 esac
3075 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3076 $as_echo "$ac_try_echo") >&5
3077 (eval "$ac_compile") 2>conftest.er1
3078 ac_status=$?
3079 grep -v '^ *+' conftest.er1 >conftest.err
3080 rm -f conftest.er1
3081 cat conftest.err >&5
3082 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); } && {
3084 test -z "$ac_c_werror_flag" ||
3085 test ! -s conftest.err
3086 } && test -s conftest.$ac_objext; then
3087 :
3088 else
3089 $as_echo "$as_me: failed program was:" >&5
3090 sed 's/^/| /' conftest.$ac_ext >&5
3091
3092 ac_c_werror_flag=$ac_save_c_werror_flag
32413093 CFLAGS="-g"
3242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3094 cat >conftest.$ac_ext <<_ACEOF
3095 /* confdefs.h. */
3096 _ACEOF
3097 cat confdefs.h >>conftest.$ac_ext
3098 cat >>conftest.$ac_ext <<_ACEOF
32433099 /* end confdefs.h. */
32443100
32453101 int
32503106 return 0;
32513107 }
32523108 _ACEOF
3253 if ac_fn_c_try_compile "$LINENO"; then :
3109 rm -f conftest.$ac_objext
3110 if { (ac_try="$ac_compile"
3111 case "(($ac_try" in
3112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113 *) ac_try_echo=$ac_try;;
3114 esac
3115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3116 $as_echo "$ac_try_echo") >&5
3117 (eval "$ac_compile") 2>conftest.er1
3118 ac_status=$?
3119 grep -v '^ *+' conftest.er1 >conftest.err
3120 rm -f conftest.er1
3121 cat conftest.err >&5
3122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); } && {
3124 test -z "$ac_c_werror_flag" ||
3125 test ! -s conftest.err
3126 } && test -s conftest.$ac_objext; then
32543127 ac_cv_prog_cc_g=yes
3255 fi
3128 else
3129 $as_echo "$as_me: failed program was:" >&5
3130 sed 's/^/| /' conftest.$ac_ext >&5
3131
3132
3133 fi
3134
32563135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32573136 fi
3137
32583138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32593139 fi
3140
32603141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32613142 ac_c_werror_flag=$ac_save_c_werror_flag
32623143 fi
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3144 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
32643145 $as_echo "$ac_cv_prog_cc_g" >&6; }
32653146 if test "$ac_test_CFLAGS" = set; then
32663147 CFLAGS=$ac_save_CFLAGS
32773158 CFLAGS=
32783159 fi
32793160 fi
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3161 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
32813162 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3282 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3163 if test "${ac_cv_prog_cc_c89+set}" = set; then
32833164 $as_echo_n "(cached) " >&6
32843165 else
32853166 ac_cv_prog_cc_c89=no
32863167 ac_save_CC=$CC
3287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3168 cat >conftest.$ac_ext <<_ACEOF
3169 /* confdefs.h. */
3170 _ACEOF
3171 cat confdefs.h >>conftest.$ac_ext
3172 cat >>conftest.$ac_ext <<_ACEOF
32883173 /* end confdefs.h. */
32893174 #include <stdarg.h>
32903175 #include <stdio.h>
33413226 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
33423227 do
33433228 CC="$ac_save_CC $ac_arg"
3344 if ac_fn_c_try_compile "$LINENO"; then :
3229 rm -f conftest.$ac_objext
3230 if { (ac_try="$ac_compile"
3231 case "(($ac_try" in
3232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233 *) ac_try_echo=$ac_try;;
3234 esac
3235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3236 $as_echo "$ac_try_echo") >&5
3237 (eval "$ac_compile") 2>conftest.er1
3238 ac_status=$?
3239 grep -v '^ *+' conftest.er1 >conftest.err
3240 rm -f conftest.er1
3241 cat conftest.err >&5
3242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243 (exit $ac_status); } && {
3244 test -z "$ac_c_werror_flag" ||
3245 test ! -s conftest.err
3246 } && test -s conftest.$ac_objext; then
33453247 ac_cv_prog_cc_c89=$ac_arg
3346 fi
3248 else
3249 $as_echo "$as_me: failed program was:" >&5
3250 sed 's/^/| /' conftest.$ac_ext >&5
3251
3252
3253 fi
3254
33473255 rm -f core conftest.err conftest.$ac_objext
33483256 test "x$ac_cv_prog_cc_c89" != "xno" && break
33493257 done
33543262 # AC_CACHE_VAL
33553263 case "x$ac_cv_prog_cc_c89" in
33563264 x)
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3265 { $as_echo "$as_me:$LINENO: result: none needed" >&5
33583266 $as_echo "none needed" >&6; } ;;
33593267 xno)
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3268 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
33613269 $as_echo "unsupported" >&6; } ;;
33623270 *)
33633271 CC="$CC $ac_cv_prog_cc_c89"
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3272 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
33653273 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
33663274 esac
3367 if test "x$ac_cv_prog_cc_c89" != xno; then :
3368
3369 fi
3275
33703276
33713277 ac_ext=c
33723278 ac_cpp='$CPP $CPPFLAGS'
33853291 .PHONY: am__doit
33863292 END
33873293 # If we don't find an include directive, just comment out the code.
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3294 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
33893295 $as_echo_n "checking for style of include used by $am_make... " >&6; }
33903296 am__include="#"
33913297 am__quote=
34133319 fi
34143320
34153321
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3322 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
34173323 $as_echo "$_am_result" >&6; }
34183324 rm -f confinc confmf
34193325
34203326 # Check whether --enable-dependency-tracking was given.
3421 if test "${enable_dependency_tracking+set}" = set; then :
3327 if test "${enable_dependency_tracking+set}" = set; then
34223328 enableval=$enable_dependency_tracking;
34233329 fi
34243330
34383344
34393345 depcc="$CC" am_compiler_list=
34403346
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3347 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
34423348 $as_echo_n "checking dependency style of $depcc... " >&6; }
3443 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3349 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
34443350 $as_echo_n "(cached) " >&6
34453351 else
34463352 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
35483454 fi
35493455
35503456 fi
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3457 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
35523458 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
35533459 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
35543460
35733479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35743480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35753481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3482 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
35773483 $as_echo_n "checking how to run the C preprocessor... " >&6; }
35783484 # On Suns, sometimes $CPP names a directory.
35793485 if test -n "$CPP" && test -d "$CPP"; then
35803486 CPP=
35813487 fi
35823488 if test -z "$CPP"; then
3583 if test "${ac_cv_prog_CPP+set}" = set; then :
3489 if test "${ac_cv_prog_CPP+set}" = set; then
35843490 $as_echo_n "(cached) " >&6
35853491 else
35863492 # Double quotes because CPP needs to be expanded
35953501 # <limits.h> exists even on freestanding compilers.
35963502 # On the NeXT, cc -E runs the code through the compiler's parser,
35973503 # not just through cpp. "Syntax error" is here to catch this case.
3598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3504 cat >conftest.$ac_ext <<_ACEOF
3505 /* confdefs.h. */
3506 _ACEOF
3507 cat confdefs.h >>conftest.$ac_ext
3508 cat >>conftest.$ac_ext <<_ACEOF
35993509 /* end confdefs.h. */
36003510 #ifdef __STDC__
36013511 # include <limits.h>
36043514 #endif
36053515 Syntax error
36063516 _ACEOF
3607 if ac_fn_c_try_cpp "$LINENO"; then :
3608
3609 else
3517 if { (ac_try="$ac_cpp conftest.$ac_ext"
3518 case "(($ac_try" in
3519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3520 *) ac_try_echo=$ac_try;;
3521 esac
3522 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3523 $as_echo "$ac_try_echo") >&5
3524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3525 ac_status=$?
3526 grep -v '^ *+' conftest.er1 >conftest.err
3527 rm -f conftest.er1
3528 cat conftest.err >&5
3529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); } >/dev/null && {
3531 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3532 test ! -s conftest.err
3533 }; then
3534 :
3535 else
3536 $as_echo "$as_me: failed program was:" >&5
3537 sed 's/^/| /' conftest.$ac_ext >&5
3538
36103539 # Broken: fails on valid input.
36113540 continue
36123541 fi
3542
36133543 rm -f conftest.err conftest.$ac_ext
36143544
36153545 # OK, works on sane cases. Now check whether nonexistent headers
36163546 # can be detected and how.
3617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3547 cat >conftest.$ac_ext <<_ACEOF
3548 /* confdefs.h. */
3549 _ACEOF
3550 cat confdefs.h >>conftest.$ac_ext
3551 cat >>conftest.$ac_ext <<_ACEOF
36183552 /* end confdefs.h. */
36193553 #include <ac_nonexistent.h>
36203554 _ACEOF
3621 if ac_fn_c_try_cpp "$LINENO"; then :
3555 if { (ac_try="$ac_cpp conftest.$ac_ext"
3556 case "(($ac_try" in
3557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3558 *) ac_try_echo=$ac_try;;
3559 esac
3560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3561 $as_echo "$ac_try_echo") >&5
3562 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3563 ac_status=$?
3564 grep -v '^ *+' conftest.er1 >conftest.err
3565 rm -f conftest.er1
3566 cat conftest.err >&5
3567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); } >/dev/null && {
3569 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3570 test ! -s conftest.err
3571 }; then
36223572 # Broken: success on invalid input.
36233573 continue
36243574 else
3575 $as_echo "$as_me: failed program was:" >&5
3576 sed 's/^/| /' conftest.$ac_ext >&5
3577
36253578 # Passes both tests.
36263579 ac_preproc_ok=:
36273580 break
36283581 fi
3582
36293583 rm -f conftest.err conftest.$ac_ext
36303584
36313585 done
36323586 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
36333587 rm -f conftest.err conftest.$ac_ext
3634 if $ac_preproc_ok; then :
3588 if $ac_preproc_ok; then
36353589 break
36363590 fi
36373591
36433597 else
36443598 ac_cv_prog_CPP=$CPP
36453599 fi
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3600 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
36473601 $as_echo "$CPP" >&6; }
36483602 ac_preproc_ok=false
36493603 for ac_c_preproc_warn_flag in '' yes
36543608 # <limits.h> exists even on freestanding compilers.
36553609 # On the NeXT, cc -E runs the code through the compiler's parser,
36563610 # not just through cpp. "Syntax error" is here to catch this case.
3657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3611 cat >conftest.$ac_ext <<_ACEOF
3612 /* confdefs.h. */
3613 _ACEOF
3614 cat confdefs.h >>conftest.$ac_ext
3615 cat >>conftest.$ac_ext <<_ACEOF
36583616 /* end confdefs.h. */
36593617 #ifdef __STDC__
36603618 # include <limits.h>
36633621 #endif
36643622 Syntax error
36653623 _ACEOF
3666 if ac_fn_c_try_cpp "$LINENO"; then :
3667
3668 else
3624 if { (ac_try="$ac_cpp conftest.$ac_ext"
3625 case "(($ac_try" in
3626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3627 *) ac_try_echo=$ac_try;;
3628 esac
3629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3630 $as_echo "$ac_try_echo") >&5
3631 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3632 ac_status=$?
3633 grep -v '^ *+' conftest.er1 >conftest.err
3634 rm -f conftest.er1
3635 cat conftest.err >&5
3636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637 (exit $ac_status); } >/dev/null && {
3638 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3639 test ! -s conftest.err
3640 }; then
3641 :
3642 else
3643 $as_echo "$as_me: failed program was:" >&5
3644 sed 's/^/| /' conftest.$ac_ext >&5
3645
36693646 # Broken: fails on valid input.
36703647 continue
36713648 fi
3649
36723650 rm -f conftest.err conftest.$ac_ext
36733651
36743652 # OK, works on sane cases. Now check whether nonexistent headers
36753653 # can be detected and how.
3676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3654 cat >conftest.$ac_ext <<_ACEOF
3655 /* confdefs.h. */
3656 _ACEOF
3657 cat confdefs.h >>conftest.$ac_ext
3658 cat >>conftest.$ac_ext <<_ACEOF
36773659 /* end confdefs.h. */
36783660 #include <ac_nonexistent.h>
36793661 _ACEOF
3680 if ac_fn_c_try_cpp "$LINENO"; then :
3662 if { (ac_try="$ac_cpp conftest.$ac_ext"
3663 case "(($ac_try" in
3664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3665 *) ac_try_echo=$ac_try;;
3666 esac
3667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3668 $as_echo "$ac_try_echo") >&5
3669 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3670 ac_status=$?
3671 grep -v '^ *+' conftest.er1 >conftest.err
3672 rm -f conftest.er1
3673 cat conftest.err >&5
3674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); } >/dev/null && {
3676 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3677 test ! -s conftest.err
3678 }; then
36813679 # Broken: success on invalid input.
36823680 continue
36833681 else
3682 $as_echo "$as_me: failed program was:" >&5
3683 sed 's/^/| /' conftest.$ac_ext >&5
3684
36843685 # Passes both tests.
36853686 ac_preproc_ok=:
36863687 break
36873688 fi
3689
36883690 rm -f conftest.err conftest.$ac_ext
36893691
36903692 done
36913693 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
36923694 rm -f conftest.err conftest.$ac_ext
3693 if $ac_preproc_ok; then :
3694
3695 else
3696 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3695 if $ac_preproc_ok; then
3696 :
3697 else
3698 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
36973699 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3698 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3699 See \`config.log' for more details." "$LINENO" 5; }
3700 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3701 See \`config.log' for more details." >&5
3702 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3703 See \`config.log' for more details." >&2;}
3704 { (exit 1); exit 1; }; }; }
37003705 fi
37013706
37023707 ac_ext=c
37063711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37073712
37083713
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3714 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
37103715 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3711 if test "${ac_cv_path_GREP+set}" = set; then :
3716 if test "${ac_cv_path_GREP+set}" = set; then
37123717 $as_echo_n "(cached) " >&6
37133718 else
37143719 if test -z "$GREP"; then
37193724 do
37203725 IFS=$as_save_IFS
37213726 test -z "$as_dir" && as_dir=.
3722 for ac_prog in grep ggrep; do
3727 for ac_prog in grep ggrep; do
37233728 for ac_exec_ext in '' $ac_executable_extensions; do
37243729 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
37253730 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
37393744 $as_echo 'GREP' >> "conftest.nl"
37403745 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
37413746 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3742 as_fn_arith $ac_count + 1 && ac_count=$as_val
3747 ac_count=`expr $ac_count + 1`
37433748 if test $ac_count -gt ${ac_path_GREP_max-0}; then
37443749 # Best one so far, save it but keep looking for a better one
37453750 ac_cv_path_GREP="$ac_path_GREP"
37543759 $ac_path_GREP_found && break 3
37553760 done
37563761 done
3757 done
3762 done
37583763 IFS=$as_save_IFS
37593764 if test -z "$ac_cv_path_GREP"; then
3760 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3765 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3766 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3767 { (exit 1); exit 1; }; }
37613768 fi
37623769 else
37633770 ac_cv_path_GREP=$GREP
37643771 fi
37653772
37663773 fi
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3774 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
37683775 $as_echo "$ac_cv_path_GREP" >&6; }
37693776 GREP="$ac_cv_path_GREP"
37703777
37713778
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3779 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
37733780 $as_echo_n "checking for egrep... " >&6; }
3774 if test "${ac_cv_path_EGREP+set}" = set; then :
3781 if test "${ac_cv_path_EGREP+set}" = set; then
37753782 $as_echo_n "(cached) " >&6
37763783 else
37773784 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
37853792 do
37863793 IFS=$as_save_IFS
37873794 test -z "$as_dir" && as_dir=.
3788 for ac_prog in egrep; do
3795 for ac_prog in egrep; do
37893796 for ac_exec_ext in '' $ac_executable_extensions; do
37903797 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
37913798 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
38053812 $as_echo 'EGREP' >> "conftest.nl"
38063813 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
38073814 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3808 as_fn_arith $ac_count + 1 && ac_count=$as_val
3815 ac_count=`expr $ac_count + 1`
38093816 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
38103817 # Best one so far, save it but keep looking for a better one
38113818 ac_cv_path_EGREP="$ac_path_EGREP"
38203827 $ac_path_EGREP_found && break 3
38213828 done
38223829 done
3823 done
3830 done
38243831 IFS=$as_save_IFS
38253832 if test -z "$ac_cv_path_EGREP"; then
3826 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3833 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3834 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3835 { (exit 1); exit 1; }; }
38273836 fi
38283837 else
38293838 ac_cv_path_EGREP=$EGREP
38313840
38323841 fi
38333842 fi
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3843 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
38353844 $as_echo "$ac_cv_path_EGREP" >&6; }
38363845 EGREP="$ac_cv_path_EGREP"
38373846
38383847
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3848 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
38403849 $as_echo_n "checking for ANSI C header files... " >&6; }
3841 if test "${ac_cv_header_stdc+set}" = set; then :
3850 if test "${ac_cv_header_stdc+set}" = set; then
38423851 $as_echo_n "(cached) " >&6
38433852 else
3844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3853 cat >conftest.$ac_ext <<_ACEOF
3854 /* confdefs.h. */
3855 _ACEOF
3856 cat confdefs.h >>conftest.$ac_ext
3857 cat >>conftest.$ac_ext <<_ACEOF
38453858 /* end confdefs.h. */
38463859 #include <stdlib.h>
38473860 #include <stdarg.h>
38563869 return 0;
38573870 }
38583871 _ACEOF
3859 if ac_fn_c_try_compile "$LINENO"; then :
3872 rm -f conftest.$ac_objext
3873 if { (ac_try="$ac_compile"
3874 case "(($ac_try" in
3875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3876 *) ac_try_echo=$ac_try;;
3877 esac
3878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3879 $as_echo "$ac_try_echo") >&5
3880 (eval "$ac_compile") 2>conftest.er1
3881 ac_status=$?
3882 grep -v '^ *+' conftest.er1 >conftest.err
3883 rm -f conftest.er1
3884 cat conftest.err >&5
3885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3886 (exit $ac_status); } && {
3887 test -z "$ac_c_werror_flag" ||
3888 test ! -s conftest.err
3889 } && test -s conftest.$ac_objext; then
38603890 ac_cv_header_stdc=yes
38613891 else
3862 ac_cv_header_stdc=no
3863 fi
3892 $as_echo "$as_me: failed program was:" >&5
3893 sed 's/^/| /' conftest.$ac_ext >&5
3894
3895 ac_cv_header_stdc=no
3896 fi
3897
38643898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38653899
38663900 if test $ac_cv_header_stdc = yes; then
38673901 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3902 cat >conftest.$ac_ext <<_ACEOF
3903 /* confdefs.h. */
3904 _ACEOF
3905 cat confdefs.h >>conftest.$ac_ext
3906 cat >>conftest.$ac_ext <<_ACEOF
38693907 /* end confdefs.h. */
38703908 #include <string.h>
38713909
38723910 _ACEOF
38733911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3874 $EGREP "memchr" >/dev/null 2>&1; then :
3875
3912 $EGREP "memchr" >/dev/null 2>&1; then
3913 :
38763914 else
38773915 ac_cv_header_stdc=no
38783916 fi
38823920
38833921 if test $ac_cv_header_stdc = yes; then
38843922 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3923 cat >conftest.$ac_ext <<_ACEOF
3924 /* confdefs.h. */
3925 _ACEOF
3926 cat confdefs.h >>conftest.$ac_ext
3927 cat >>conftest.$ac_ext <<_ACEOF
38863928 /* end confdefs.h. */
38873929 #include <stdlib.h>
38883930
38893931 _ACEOF
38903932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3891 $EGREP "free" >/dev/null 2>&1; then :
3892
3933 $EGREP "free" >/dev/null 2>&1; then
3934 :
38933935 else
38943936 ac_cv_header_stdc=no
38953937 fi
38993941
39003942 if test $ac_cv_header_stdc = yes; then
39013943 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3902 if test "$cross_compiling" = yes; then :
3944 if test "$cross_compiling" = yes; then
39033945 :
39043946 else
3905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3947 cat >conftest.$ac_ext <<_ACEOF
3948 /* confdefs.h. */
3949 _ACEOF
3950 cat confdefs.h >>conftest.$ac_ext
3951 cat >>conftest.$ac_ext <<_ACEOF
39063952 /* end confdefs.h. */
39073953 #include <ctype.h>
39083954 #include <stdlib.h>
39293975 return 0;
39303976 }
39313977 _ACEOF
3932 if ac_fn_c_try_run "$LINENO"; then :
3933
3934 else
3935 ac_cv_header_stdc=no
3936 fi
3937 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3938 conftest.$ac_objext conftest.beam conftest.$ac_ext
3939 fi
3940
3941 fi
3942 fi
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3978 rm -f conftest$ac_exeext
3979 if { (ac_try="$ac_link"
3980 case "(($ac_try" in
3981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3982 *) ac_try_echo=$ac_try;;
3983 esac
3984 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3985 $as_echo "$ac_try_echo") >&5
3986 (eval "$ac_link") 2>&5
3987 ac_status=$?
3988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3990 { (case "(($ac_try" in
3991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3992 *) ac_try_echo=$ac_try;;
3993 esac
3994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3995 $as_echo "$ac_try_echo") >&5
3996 (eval "$ac_try") 2>&5
3997 ac_status=$?
3998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); }; }; then
4000 :
4001 else
4002 $as_echo "$as_me: program exited with status $ac_status" >&5
4003 $as_echo "$as_me: failed program was:" >&5
4004 sed 's/^/| /' conftest.$ac_ext >&5
4005
4006 ( exit $ac_status )
4007 ac_cv_header_stdc=no
4008 fi
4009 rm -rf conftest.dSYM
4010 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4011 fi
4012
4013
4014 fi
4015 fi
4016 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
39444017 $as_echo "$ac_cv_header_stdc" >&6; }
39454018 if test $ac_cv_header_stdc = yes; then
39464019
3947 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4020 cat >>confdefs.h <<\_ACEOF
4021 #define STDC_HEADERS 1
4022 _ACEOF
39484023
39494024 fi
39504025
39514026 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4027
4028
4029
4030
4031
4032
4033
4034
4035
39524036 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
39534037 inttypes.h stdint.h unistd.h
3954 do :
3955 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3956 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3957 "
3958 eval as_val=\$$as_ac_Header
3959 if test "x$as_val" = x""yes; then :
4038 do
4039 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4040 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4041 $as_echo_n "checking for $ac_header... " >&6; }
4042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4043 $as_echo_n "(cached) " >&6
4044 else
4045 cat >conftest.$ac_ext <<_ACEOF
4046 /* confdefs.h. */
4047 _ACEOF
4048 cat confdefs.h >>conftest.$ac_ext
4049 cat >>conftest.$ac_ext <<_ACEOF
4050 /* end confdefs.h. */
4051 $ac_includes_default
4052
4053 #include <$ac_header>
4054 _ACEOF
4055 rm -f conftest.$ac_objext
4056 if { (ac_try="$ac_compile"
4057 case "(($ac_try" in
4058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4059 *) ac_try_echo=$ac_try;;
4060 esac
4061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4062 $as_echo "$ac_try_echo") >&5
4063 (eval "$ac_compile") 2>conftest.er1
4064 ac_status=$?
4065 grep -v '^ *+' conftest.er1 >conftest.err
4066 rm -f conftest.er1
4067 cat conftest.err >&5
4068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069 (exit $ac_status); } && {
4070 test -z "$ac_c_werror_flag" ||
4071 test ! -s conftest.err
4072 } && test -s conftest.$ac_objext; then
4073 eval "$as_ac_Header=yes"
4074 else
4075 $as_echo "$as_me: failed program was:" >&5
4076 sed 's/^/| /' conftest.$ac_ext >&5
4077
4078 eval "$as_ac_Header=no"
4079 fi
4080
4081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4082 fi
4083 ac_res=`eval 'as_val=${'$as_ac_Header'}
4084 $as_echo "$as_val"'`
4085 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4086 $as_echo "$ac_res" >&6; }
4087 as_val=`eval 'as_val=${'$as_ac_Header'}
4088 $as_echo "$as_val"'`
4089 if test "x$as_val" = x""yes; then
39604090 cat >>confdefs.h <<_ACEOF
39614091 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
39624092 _ACEOF
39664096 done
39674097
39684098
4099 { $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
4100 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
4101 if test "${ac_cv_header_stdbool_h+set}" = set; then
4102 $as_echo_n "(cached) " >&6
4103 else
4104 cat >conftest.$ac_ext <<_ACEOF
4105 /* confdefs.h. */
4106 _ACEOF
4107 cat confdefs.h >>conftest.$ac_ext
4108 cat >>conftest.$ac_ext <<_ACEOF
4109 /* end confdefs.h. */
4110
4111 #include <stdbool.h>
4112 #ifndef bool
4113 "error: bool is not defined"
4114 #endif
4115 #ifndef false
4116 "error: false is not defined"
4117 #endif
4118 #if false
4119 "error: false is not 0"
4120 #endif
4121 #ifndef true
4122 "error: true is not defined"
4123 #endif
4124 #if true != 1
4125 "error: true is not 1"
4126 #endif
4127 #ifndef __bool_true_false_are_defined
4128 "error: __bool_true_false_are_defined is not defined"
4129 #endif
4130
4131 struct s { _Bool s: 1; _Bool t; } s;
4132
4133 char a[true == 1 ? 1 : -1];
4134 char b[false == 0 ? 1 : -1];
4135 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
4136 char d[(bool) 0.5 == true ? 1 : -1];
4137 bool e = &s;
4138 char f[(_Bool) 0.0 == false ? 1 : -1];
4139 char g[true];
4140 char h[sizeof (_Bool)];
4141 char i[sizeof s.t];
4142 enum { j = false, k = true, l = false * true, m = true * 256 };
4143 /* The following fails for
4144 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
4145 _Bool n[m];
4146 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
4147 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
4148 # if defined __xlc__ || defined __GNUC__
4149 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
4150 reported by James Lemley on 2005-10-05; see
4151 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
4152 This test is not quite right, since xlc is allowed to
4153 reject this program, as the initializer for xlcbug is
4154 not one of the forms that C requires support for.
4155 However, doing the test right would require a runtime
4156 test, and that would make cross-compilation harder.
4157 Let us hope that IBM fixes the xlc bug, and also adds
4158 support for this kind of constant expression. In the
4159 meantime, this test will reject xlc, which is OK, since
4160 our stdbool.h substitute should suffice. We also test
4161 this with GCC, where it should work, to detect more
4162 quickly whether someone messes up the test in the
4163 future. */
4164 char digs[] = "0123456789";
4165 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
4166 # endif
4167 /* Catch a bug in an HP-UX C compiler. See
4168 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
4169 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
4170 */
4171 _Bool q = true;
4172 _Bool *pq = &q;
4173
4174 int
4175 main ()
4176 {
4177
4178 *pq |= q;
4179 *pq |= ! q;
4180 /* Refer to every declared value, to avoid compiler optimizations. */
4181 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
4182 + !m + !n + !o + !p + !q + !pq);
4183
4184 ;
4185 return 0;
4186 }
4187 _ACEOF
4188 rm -f conftest.$ac_objext
4189 if { (ac_try="$ac_compile"
4190 case "(($ac_try" in
4191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4192 *) ac_try_echo=$ac_try;;
4193 esac
4194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4195 $as_echo "$ac_try_echo") >&5
4196 (eval "$ac_compile") 2>conftest.er1
4197 ac_status=$?
4198 grep -v '^ *+' conftest.er1 >conftest.err
4199 rm -f conftest.er1
4200 cat conftest.err >&5
4201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202 (exit $ac_status); } && {
4203 test -z "$ac_c_werror_flag" ||
4204 test ! -s conftest.err
4205 } && test -s conftest.$ac_objext; then
4206 ac_cv_header_stdbool_h=yes
4207 else
4208 $as_echo "$as_me: failed program was:" >&5
4209 sed 's/^/| /' conftest.$ac_ext >&5
4210
4211 ac_cv_header_stdbool_h=no
4212 fi
4213
4214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4215 fi
4216 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
4217 $as_echo "$ac_cv_header_stdbool_h" >&6; }
4218 { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
4219 $as_echo_n "checking for _Bool... " >&6; }
4220 if test "${ac_cv_type__Bool+set}" = set; then
4221 $as_echo_n "(cached) " >&6
4222 else
4223 ac_cv_type__Bool=no
4224 cat >conftest.$ac_ext <<_ACEOF
4225 /* confdefs.h. */
4226 _ACEOF
4227 cat confdefs.h >>conftest.$ac_ext
4228 cat >>conftest.$ac_ext <<_ACEOF
4229 /* end confdefs.h. */
4230 $ac_includes_default
4231 int
4232 main ()
4233 {
4234 if (sizeof (_Bool))
4235 return 0;
4236 ;
4237 return 0;
4238 }
4239 _ACEOF
4240 rm -f conftest.$ac_objext
4241 if { (ac_try="$ac_compile"
4242 case "(($ac_try" in
4243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4244 *) ac_try_echo=$ac_try;;
4245 esac
4246 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4247 $as_echo "$ac_try_echo") >&5
4248 (eval "$ac_compile") 2>conftest.er1
4249 ac_status=$?
4250 grep -v '^ *+' conftest.er1 >conftest.err
4251 rm -f conftest.er1
4252 cat conftest.err >&5
4253 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254 (exit $ac_status); } && {
4255 test -z "$ac_c_werror_flag" ||
4256 test ! -s conftest.err
4257 } && test -s conftest.$ac_objext; then
4258 cat >conftest.$ac_ext <<_ACEOF
4259 /* confdefs.h. */
4260 _ACEOF
4261 cat confdefs.h >>conftest.$ac_ext
4262 cat >>conftest.$ac_ext <<_ACEOF
4263 /* end confdefs.h. */
4264 $ac_includes_default
4265 int
4266 main ()
4267 {
4268 if (sizeof ((_Bool)))
4269 return 0;
4270 ;
4271 return 0;
4272 }
4273 _ACEOF
4274 rm -f conftest.$ac_objext
4275 if { (ac_try="$ac_compile"
4276 case "(($ac_try" in
4277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4278 *) ac_try_echo=$ac_try;;
4279 esac
4280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4281 $as_echo "$ac_try_echo") >&5
4282 (eval "$ac_compile") 2>conftest.er1
4283 ac_status=$?
4284 grep -v '^ *+' conftest.er1 >conftest.err
4285 rm -f conftest.er1
4286 cat conftest.err >&5
4287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); } && {
4289 test -z "$ac_c_werror_flag" ||
4290 test ! -s conftest.err
4291 } && test -s conftest.$ac_objext; then
4292 :
4293 else
4294 $as_echo "$as_me: failed program was:" >&5
4295 sed 's/^/| /' conftest.$ac_ext >&5
4296
4297 ac_cv_type__Bool=yes
4298 fi
4299
4300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4301 else
4302 $as_echo "$as_me: failed program was:" >&5
4303 sed 's/^/| /' conftest.$ac_ext >&5
4304
4305
4306 fi
4307
4308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4309 fi
4310 { $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
4311 $as_echo "$ac_cv_type__Bool" >&6; }
4312 if test "x$ac_cv_type__Bool" = x""yes; then
4313
4314 cat >>confdefs.h <<_ACEOF
4315 #define HAVE__BOOL 1
4316 _ACEOF
4317
4318
4319 fi
4320
4321 if test $ac_cv_header_stdbool_h = yes; then
4322
4323 cat >>confdefs.h <<\_ACEOF
4324 #define HAVE_STDBOOL_H 1
4325 _ACEOF
4326
4327 fi
4328
4329
4330
4331
4332
4333
4334
4335
4336
39694337 for ac_header in errno.h fcntl.h inttypes.h netinet/in.h stdlib.h string.h sys/ioctl.h unistd.h
3970 do :
3971 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3972 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
3973 eval as_val=\$$as_ac_Header
3974 if test "x$as_val" = x""yes; then :
4338 do
4339 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4340 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4341 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4342 $as_echo_n "checking for $ac_header... " >&6; }
4343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4344 $as_echo_n "(cached) " >&6
4345 fi
4346 ac_res=`eval 'as_val=${'$as_ac_Header'}
4347 $as_echo "$as_val"'`
4348 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4349 $as_echo "$ac_res" >&6; }
4350 else
4351 # Is the header compilable?
4352 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4353 $as_echo_n "checking $ac_header usability... " >&6; }
4354 cat >conftest.$ac_ext <<_ACEOF
4355 /* confdefs.h. */
4356 _ACEOF
4357 cat confdefs.h >>conftest.$ac_ext
4358 cat >>conftest.$ac_ext <<_ACEOF
4359 /* end confdefs.h. */
4360 $ac_includes_default
4361 #include <$ac_header>
4362 _ACEOF
4363 rm -f conftest.$ac_objext
4364 if { (ac_try="$ac_compile"
4365 case "(($ac_try" in
4366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4367 *) ac_try_echo=$ac_try;;
4368 esac
4369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4370 $as_echo "$ac_try_echo") >&5
4371 (eval "$ac_compile") 2>conftest.er1
4372 ac_status=$?
4373 grep -v '^ *+' conftest.er1 >conftest.err
4374 rm -f conftest.er1
4375 cat conftest.err >&5
4376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); } && {
4378 test -z "$ac_c_werror_flag" ||
4379 test ! -s conftest.err
4380 } && test -s conftest.$ac_objext; then
4381 ac_header_compiler=yes
4382 else
4383 $as_echo "$as_me: failed program was:" >&5
4384 sed 's/^/| /' conftest.$ac_ext >&5
4385
4386 ac_header_compiler=no
4387 fi
4388
4389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4390 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4391 $as_echo "$ac_header_compiler" >&6; }
4392
4393 # Is the header present?
4394 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4395 $as_echo_n "checking $ac_header presence... " >&6; }
4396 cat >conftest.$ac_ext <<_ACEOF
4397 /* confdefs.h. */
4398 _ACEOF
4399 cat confdefs.h >>conftest.$ac_ext
4400 cat >>conftest.$ac_ext <<_ACEOF
4401 /* end confdefs.h. */
4402 #include <$ac_header>
4403 _ACEOF
4404 if { (ac_try="$ac_cpp conftest.$ac_ext"
4405 case "(($ac_try" in
4406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4407 *) ac_try_echo=$ac_try;;
4408 esac
4409 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4410 $as_echo "$ac_try_echo") >&5
4411 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4412 ac_status=$?
4413 grep -v '^ *+' conftest.er1 >conftest.err
4414 rm -f conftest.er1
4415 cat conftest.err >&5
4416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4417 (exit $ac_status); } >/dev/null && {
4418 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4419 test ! -s conftest.err
4420 }; then
4421 ac_header_preproc=yes
4422 else
4423 $as_echo "$as_me: failed program was:" >&5
4424 sed 's/^/| /' conftest.$ac_ext >&5
4425
4426 ac_header_preproc=no
4427 fi
4428
4429 rm -f conftest.err conftest.$ac_ext
4430 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4431 $as_echo "$ac_header_preproc" >&6; }
4432
4433 # So? What about this header?
4434 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4435 yes:no: )
4436 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4437 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4438 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4439 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4440 ac_header_preproc=yes
4441 ;;
4442 no:yes:* )
4443 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4444 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4445 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4446 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4447 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4448 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4449 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4450 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4451 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4452 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4453 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4454 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4455 ( cat <<\_ASBOX
4456 ## ---------------------------------------------- ##
4457 ## Report this to smcameron@users.sourceforge.net ##
4458 ## ---------------------------------------------- ##
4459 _ASBOX
4460 ) | sed "s/^/$as_me: WARNING: /" >&2
4461 ;;
4462 esac
4463 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4464 $as_echo_n "checking for $ac_header... " >&6; }
4465 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4466 $as_echo_n "(cached) " >&6
4467 else
4468 eval "$as_ac_Header=\$ac_header_preproc"
4469 fi
4470 ac_res=`eval 'as_val=${'$as_ac_Header'}
4471 $as_echo "$as_val"'`
4472 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4473 $as_echo "$ac_res" >&6; }
4474
4475 fi
4476 as_val=`eval 'as_val=${'$as_ac_Header'}
4477 $as_echo "$as_val"'`
4478 if test "x$as_val" = x""yes; then
39754479 cat >>confdefs.h <<_ACEOF
39764480 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
39774481 _ACEOF
39804484
39814485 done
39824486
3983 ac_fn_c_check_header_mongrel "$LINENO" "scsi/sg.h" "ac_cv_header_scsi_sg_h" "$ac_includes_default"
3984 if test "x$ac_cv_header_scsi_sg_h" = x""yes; then :
3985
3986 $as_echo "#define HAVE_SCSI_SG_H 1" >>confdefs.h
3987
3988 else
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: scsi/sg.h not found so MSA1000 support will not be compiled." >&5
4487 if test "${ac_cv_header_scsi_sg_h+set}" = set; then
4488 { $as_echo "$as_me:$LINENO: checking for scsi/sg.h" >&5
4489 $as_echo_n "checking for scsi/sg.h... " >&6; }
4490 if test "${ac_cv_header_scsi_sg_h+set}" = set; then
4491 $as_echo_n "(cached) " >&6
4492 fi
4493 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_scsi_sg_h" >&5
4494 $as_echo "$ac_cv_header_scsi_sg_h" >&6; }
4495 else
4496 # Is the header compilable?
4497 { $as_echo "$as_me:$LINENO: checking scsi/sg.h usability" >&5
4498 $as_echo_n "checking scsi/sg.h usability... " >&6; }
4499 cat >conftest.$ac_ext <<_ACEOF
4500 /* confdefs.h. */
4501 _ACEOF
4502 cat confdefs.h >>conftest.$ac_ext
4503 cat >>conftest.$ac_ext <<_ACEOF
4504 /* end confdefs.h. */
4505 $ac_includes_default
4506 #include <scsi/sg.h>
4507 _ACEOF
4508 rm -f conftest.$ac_objext
4509 if { (ac_try="$ac_compile"
4510 case "(($ac_try" in
4511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4512 *) ac_try_echo=$ac_try;;
4513 esac
4514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4515 $as_echo "$ac_try_echo") >&5
4516 (eval "$ac_compile") 2>conftest.er1
4517 ac_status=$?
4518 grep -v '^ *+' conftest.er1 >conftest.err
4519 rm -f conftest.er1
4520 cat conftest.err >&5
4521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); } && {
4523 test -z "$ac_c_werror_flag" ||
4524 test ! -s conftest.err
4525 } && test -s conftest.$ac_objext; then
4526 ac_header_compiler=yes
4527 else
4528 $as_echo "$as_me: failed program was:" >&5
4529 sed 's/^/| /' conftest.$ac_ext >&5
4530
4531 ac_header_compiler=no
4532 fi
4533
4534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4535 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4536 $as_echo "$ac_header_compiler" >&6; }
4537
4538 # Is the header present?
4539 { $as_echo "$as_me:$LINENO: checking scsi/sg.h presence" >&5
4540 $as_echo_n "checking scsi/sg.h presence... " >&6; }
4541 cat >conftest.$ac_ext <<_ACEOF
4542 /* confdefs.h. */
4543 _ACEOF
4544 cat confdefs.h >>conftest.$ac_ext
4545 cat >>conftest.$ac_ext <<_ACEOF
4546 /* end confdefs.h. */
4547 #include <scsi/sg.h>
4548 _ACEOF
4549 if { (ac_try="$ac_cpp conftest.$ac_ext"
4550 case "(($ac_try" in
4551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4552 *) ac_try_echo=$ac_try;;
4553 esac
4554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4555 $as_echo "$ac_try_echo") >&5
4556 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4557 ac_status=$?
4558 grep -v '^ *+' conftest.er1 >conftest.err
4559 rm -f conftest.er1
4560 cat conftest.err >&5
4561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562 (exit $ac_status); } >/dev/null && {
4563 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4564 test ! -s conftest.err
4565 }; then
4566 ac_header_preproc=yes
4567 else
4568 $as_echo "$as_me: failed program was:" >&5
4569 sed 's/^/| /' conftest.$ac_ext >&5
4570
4571 ac_header_preproc=no
4572 fi
4573
4574 rm -f conftest.err conftest.$ac_ext
4575 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4576 $as_echo "$ac_header_preproc" >&6; }
4577
4578 # So? What about this header?
4579 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4580 yes:no: )
4581 { $as_echo "$as_me:$LINENO: WARNING: scsi/sg.h: accepted by the compiler, rejected by the preprocessor!" >&5
4582 $as_echo "$as_me: WARNING: scsi/sg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4583 { $as_echo "$as_me:$LINENO: WARNING: scsi/sg.h: proceeding with the compiler's result" >&5
4584 $as_echo "$as_me: WARNING: scsi/sg.h: proceeding with the compiler's result" >&2;}
4585 ac_header_preproc=yes
4586 ;;
4587 no:yes:* )
4588 { $as_echo "$as_me:$LINENO: WARNING: scsi/sg.h: present but cannot be compiled" >&5
4589 $as_echo "$as_me: WARNING: scsi/sg.h: present but cannot be compiled" >&2;}
4590 { $as_echo "$as_me:$LINENO: WARNING: scsi/sg.h: check for missing prerequisite headers?" >&5
4591 $as_echo "$as_me: WARNING: scsi/sg.h: check for missing prerequisite headers?" >&2;}
4592 { $as_echo "$as_me:$LINENO: WARNING: scsi/sg.h: see the Autoconf documentation" >&5
4593 $as_echo "$as_me: WARNING: scsi/sg.h: see the Autoconf documentation" >&2;}
4594 { $as_echo "$as_me:$LINENO: WARNING: scsi/sg.h: section \"Present But Cannot Be Compiled\"" >&5
4595 $as_echo "$as_me: WARNING: scsi/sg.h: section \"Present But Cannot Be Compiled\"" >&2;}
4596 { $as_echo "$as_me:$LINENO: WARNING: scsi/sg.h: proceeding with the preprocessor's result" >&5
4597 $as_echo "$as_me: WARNING: scsi/sg.h: proceeding with the preprocessor's result" >&2;}
4598 { $as_echo "$as_me:$LINENO: WARNING: scsi/sg.h: in the future, the compiler will take precedence" >&5
4599 $as_echo "$as_me: WARNING: scsi/sg.h: in the future, the compiler will take precedence" >&2;}
4600 ( cat <<\_ASBOX
4601 ## ---------------------------------------------- ##
4602 ## Report this to smcameron@users.sourceforge.net ##
4603 ## ---------------------------------------------- ##
4604 _ASBOX
4605 ) | sed "s/^/$as_me: WARNING: /" >&2
4606 ;;
4607 esac
4608 { $as_echo "$as_me:$LINENO: checking for scsi/sg.h" >&5
4609 $as_echo_n "checking for scsi/sg.h... " >&6; }
4610 if test "${ac_cv_header_scsi_sg_h+set}" = set; then
4611 $as_echo_n "(cached) " >&6
4612 else
4613 ac_cv_header_scsi_sg_h=$ac_header_preproc
4614 fi
4615 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_scsi_sg_h" >&5
4616 $as_echo "$ac_cv_header_scsi_sg_h" >&6; }
4617
4618 fi
4619 if test "x$ac_cv_header_scsi_sg_h" = x""yes; then
4620
4621 cat >>confdefs.h <<\_ACEOF
4622 #define HAVE_SCSI_SG_H 1
4623 _ACEOF
4624
4625 else
4626 { $as_echo "$as_me:$LINENO: WARNING: scsi/sg.h not found so MSA1000 support will not be compiled." >&5
39904627 $as_echo "$as_me: WARNING: scsi/sg.h not found so MSA1000 support will not be compiled." >&2;}
39914628 fi
39924629
39934630
3994 ac_fn_c_check_header_mongrel "$LINENO" "scsi/scsi.h" "ac_cv_header_scsi_scsi_h" "$ac_includes_default"
3995 if test "x$ac_cv_header_scsi_scsi_h" = x""yes; then :
3996
3997 $as_echo "#define HAVE_SCSI_SCSI_H 1" >>confdefs.h
3998
3999 fi
4000
4001
4002 ac_fn_c_check_header_mongrel "$LINENO" "linux/cciss_ioctl.h" "ac_cv_header_linux_cciss_ioctl_h" "$ac_includes_default"
4003 if test "x$ac_cv_header_linux_cciss_ioctl_h" = x""yes; then :
4004
4005 $as_echo "#define HAVE_LINUX_CCISS_IOCTL_H 1" >>confdefs.h
4006
4007 fi
4008
4009
4010 ac_fn_c_check_header_mongrel "$LINENO" "/usr/src/sys/dev/ciss/cissio.h" "ac_cv_header__usr_src_sys_dev_ciss_cissio_h" "$ac_includes_default"
4011 if test "x$ac_cv_header__usr_src_sys_dev_ciss_cissio_h" = x""yes; then :
4012
4013 $as_echo "#define HAVE_CISSIO_H 1" >>confdefs.h
4631 if test "${ac_cv_header_scsi_scsi_h+set}" = set; then
4632 { $as_echo "$as_me:$LINENO: checking for scsi/scsi.h" >&5
4633 $as_echo_n "checking for scsi/scsi.h... " >&6; }
4634 if test "${ac_cv_header_scsi_scsi_h+set}" = set; then
4635 $as_echo_n "(cached) " >&6
4636 fi
4637 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_scsi_scsi_h" >&5
4638 $as_echo "$ac_cv_header_scsi_scsi_h" >&6; }
4639 else
4640 # Is the header compilable?
4641 { $as_echo "$as_me:$LINENO: checking scsi/scsi.h usability" >&5
4642 $as_echo_n "checking scsi/scsi.h usability... " >&6; }
4643 cat >conftest.$ac_ext <<_ACEOF
4644 /* confdefs.h. */
4645 _ACEOF
4646 cat confdefs.h >>conftest.$ac_ext
4647 cat >>conftest.$ac_ext <<_ACEOF
4648 /* end confdefs.h. */
4649 $ac_includes_default
4650 #include <scsi/scsi.h>
4651 _ACEOF
4652 rm -f conftest.$ac_objext
4653 if { (ac_try="$ac_compile"
4654 case "(($ac_try" in
4655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4656 *) ac_try_echo=$ac_try;;
4657 esac
4658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4659 $as_echo "$ac_try_echo") >&5
4660 (eval "$ac_compile") 2>conftest.er1
4661 ac_status=$?
4662 grep -v '^ *+' conftest.er1 >conftest.err
4663 rm -f conftest.er1
4664 cat conftest.err >&5
4665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); } && {
4667 test -z "$ac_c_werror_flag" ||
4668 test ! -s conftest.err
4669 } && test -s conftest.$ac_objext; then
4670 ac_header_compiler=yes
4671 else
4672 $as_echo "$as_me: failed program was:" >&5
4673 sed 's/^/| /' conftest.$ac_ext >&5
4674
4675 ac_header_compiler=no
4676 fi
4677
4678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4679 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4680 $as_echo "$ac_header_compiler" >&6; }
4681
4682 # Is the header present?
4683 { $as_echo "$as_me:$LINENO: checking scsi/scsi.h presence" >&5
4684 $as_echo_n "checking scsi/scsi.h presence... " >&6; }
4685 cat >conftest.$ac_ext <<_ACEOF
4686 /* confdefs.h. */
4687 _ACEOF
4688 cat confdefs.h >>conftest.$ac_ext
4689 cat >>conftest.$ac_ext <<_ACEOF
4690 /* end confdefs.h. */
4691 #include <scsi/scsi.h>
4692 _ACEOF
4693 if { (ac_try="$ac_cpp conftest.$ac_ext"
4694 case "(($ac_try" in
4695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4696 *) ac_try_echo=$ac_try;;
4697 esac
4698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4699 $as_echo "$ac_try_echo") >&5
4700 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4701 ac_status=$?
4702 grep -v '^ *+' conftest.er1 >conftest.err
4703 rm -f conftest.er1
4704 cat conftest.err >&5
4705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706 (exit $ac_status); } >/dev/null && {
4707 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4708 test ! -s conftest.err
4709 }; then
4710 ac_header_preproc=yes
4711 else
4712 $as_echo "$as_me: failed program was:" >&5
4713 sed 's/^/| /' conftest.$ac_ext >&5
4714
4715 ac_header_preproc=no
4716 fi
4717
4718 rm -f conftest.err conftest.$ac_ext
4719 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4720 $as_echo "$ac_header_preproc" >&6; }
4721
4722 # So? What about this header?
4723 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4724 yes:no: )
4725 { $as_echo "$as_me:$LINENO: WARNING: scsi/scsi.h: accepted by the compiler, rejected by the preprocessor!" >&5
4726 $as_echo "$as_me: WARNING: scsi/scsi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4727 { $as_echo "$as_me:$LINENO: WARNING: scsi/scsi.h: proceeding with the compiler's result" >&5
4728 $as_echo "$as_me: WARNING: scsi/scsi.h: proceeding with the compiler's result" >&2;}
4729 ac_header_preproc=yes
4730 ;;
4731 no:yes:* )
4732 { $as_echo "$as_me:$LINENO: WARNING: scsi/scsi.h: present but cannot be compiled" >&5
4733 $as_echo "$as_me: WARNING: scsi/scsi.h: present but cannot be compiled" >&2;}
4734 { $as_echo "$as_me:$LINENO: WARNING: scsi/scsi.h: check for missing prerequisite headers?" >&5
4735 $as_echo "$as_me: WARNING: scsi/scsi.h: check for missing prerequisite headers?" >&2;}
4736 { $as_echo "$as_me:$LINENO: WARNING: scsi/scsi.h: see the Autoconf documentation" >&5
4737 $as_echo "$as_me: WARNING: scsi/scsi.h: see the Autoconf documentation" >&2;}
4738 { $as_echo "$as_me:$LINENO: WARNING: scsi/scsi.h: section \"Present But Cannot Be Compiled\"" >&5
4739 $as_echo "$as_me: WARNING: scsi/scsi.h: section \"Present But Cannot Be Compiled\"" >&2;}
4740 { $as_echo "$as_me:$LINENO: WARNING: scsi/scsi.h: proceeding with the preprocessor's result" >&5
4741 $as_echo "$as_me: WARNING: scsi/scsi.h: proceeding with the preprocessor's result" >&2;}
4742 { $as_echo "$as_me:$LINENO: WARNING: scsi/scsi.h: in the future, the compiler will take precedence" >&5
4743 $as_echo "$as_me: WARNING: scsi/scsi.h: in the future, the compiler will take precedence" >&2;}
4744 ( cat <<\_ASBOX
4745 ## ---------------------------------------------- ##
4746 ## Report this to smcameron@users.sourceforge.net ##
4747 ## ---------------------------------------------- ##
4748 _ASBOX
4749 ) | sed "s/^/$as_me: WARNING: /" >&2
4750 ;;
4751 esac
4752 { $as_echo "$as_me:$LINENO: checking for scsi/scsi.h" >&5
4753 $as_echo_n "checking for scsi/scsi.h... " >&6; }
4754 if test "${ac_cv_header_scsi_scsi_h+set}" = set; then
4755 $as_echo_n "(cached) " >&6
4756 else
4757 ac_cv_header_scsi_scsi_h=$ac_header_preproc
4758 fi
4759 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_scsi_scsi_h" >&5
4760 $as_echo "$ac_cv_header_scsi_scsi_h" >&6; }
4761
4762 fi
4763 if test "x$ac_cv_header_scsi_scsi_h" = x""yes; then
4764
4765 cat >>confdefs.h <<\_ACEOF
4766 #define HAVE_SCSI_SCSI_H 1
4767 _ACEOF
4768
4769 fi
4770
4771
4772 if test "${ac_cv_header_linux_cciss_ioctl_h+set}" = set; then
4773 { $as_echo "$as_me:$LINENO: checking for linux/cciss_ioctl.h" >&5
4774 $as_echo_n "checking for linux/cciss_ioctl.h... " >&6; }
4775 if test "${ac_cv_header_linux_cciss_ioctl_h+set}" = set; then
4776 $as_echo_n "(cached) " >&6
4777 fi
4778 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_cciss_ioctl_h" >&5
4779 $as_echo "$ac_cv_header_linux_cciss_ioctl_h" >&6; }
4780 else
4781 # Is the header compilable?
4782 { $as_echo "$as_me:$LINENO: checking linux/cciss_ioctl.h usability" >&5
4783 $as_echo_n "checking linux/cciss_ioctl.h usability... " >&6; }
4784 cat >conftest.$ac_ext <<_ACEOF
4785 /* confdefs.h. */
4786 _ACEOF
4787 cat confdefs.h >>conftest.$ac_ext
4788 cat >>conftest.$ac_ext <<_ACEOF
4789 /* end confdefs.h. */
4790 $ac_includes_default
4791 #include <linux/cciss_ioctl.h>
4792 _ACEOF
4793 rm -f conftest.$ac_objext
4794 if { (ac_try="$ac_compile"
4795 case "(($ac_try" in
4796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4797 *) ac_try_echo=$ac_try;;
4798 esac
4799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4800 $as_echo "$ac_try_echo") >&5
4801 (eval "$ac_compile") 2>conftest.er1
4802 ac_status=$?
4803 grep -v '^ *+' conftest.er1 >conftest.err
4804 rm -f conftest.er1
4805 cat conftest.err >&5
4806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807 (exit $ac_status); } && {
4808 test -z "$ac_c_werror_flag" ||
4809 test ! -s conftest.err
4810 } && test -s conftest.$ac_objext; then
4811 ac_header_compiler=yes
4812 else
4813 $as_echo "$as_me: failed program was:" >&5
4814 sed 's/^/| /' conftest.$ac_ext >&5
4815
4816 ac_header_compiler=no
4817 fi
4818
4819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4820 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4821 $as_echo "$ac_header_compiler" >&6; }
4822
4823 # Is the header present?
4824 { $as_echo "$as_me:$LINENO: checking linux/cciss_ioctl.h presence" >&5
4825 $as_echo_n "checking linux/cciss_ioctl.h presence... " >&6; }
4826 cat >conftest.$ac_ext <<_ACEOF
4827 /* confdefs.h. */
4828 _ACEOF
4829 cat confdefs.h >>conftest.$ac_ext
4830 cat >>conftest.$ac_ext <<_ACEOF
4831 /* end confdefs.h. */
4832 #include <linux/cciss_ioctl.h>
4833 _ACEOF
4834 if { (ac_try="$ac_cpp conftest.$ac_ext"
4835 case "(($ac_try" in
4836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4837 *) ac_try_echo=$ac_try;;
4838 esac
4839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4840 $as_echo "$ac_try_echo") >&5
4841 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4842 ac_status=$?
4843 grep -v '^ *+' conftest.er1 >conftest.err
4844 rm -f conftest.er1
4845 cat conftest.err >&5
4846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847 (exit $ac_status); } >/dev/null && {
4848 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4849 test ! -s conftest.err
4850 }; then
4851 ac_header_preproc=yes
4852 else
4853 $as_echo "$as_me: failed program was:" >&5
4854 sed 's/^/| /' conftest.$ac_ext >&5
4855
4856 ac_header_preproc=no
4857 fi
4858
4859 rm -f conftest.err conftest.$ac_ext
4860 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4861 $as_echo "$ac_header_preproc" >&6; }
4862
4863 # So? What about this header?
4864 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4865 yes:no: )
4866 { $as_echo "$as_me:$LINENO: WARNING: linux/cciss_ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&5
4867 $as_echo "$as_me: WARNING: linux/cciss_ioctl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4868 { $as_echo "$as_me:$LINENO: WARNING: linux/cciss_ioctl.h: proceeding with the compiler's result" >&5
4869 $as_echo "$as_me: WARNING: linux/cciss_ioctl.h: proceeding with the compiler's result" >&2;}
4870 ac_header_preproc=yes
4871 ;;
4872 no:yes:* )
4873 { $as_echo "$as_me:$LINENO: WARNING: linux/cciss_ioctl.h: present but cannot be compiled" >&5
4874 $as_echo "$as_me: WARNING: linux/cciss_ioctl.h: present but cannot be compiled" >&2;}
4875 { $as_echo "$as_me:$LINENO: WARNING: linux/cciss_ioctl.h: check for missing prerequisite headers?" >&5
4876 $as_echo "$as_me: WARNING: linux/cciss_ioctl.h: check for missing prerequisite headers?" >&2;}
4877 { $as_echo "$as_me:$LINENO: WARNING: linux/cciss_ioctl.h: see the Autoconf documentation" >&5
4878 $as_echo "$as_me: WARNING: linux/cciss_ioctl.h: see the Autoconf documentation" >&2;}
4879 { $as_echo "$as_me:$LINENO: WARNING: linux/cciss_ioctl.h: section \"Present But Cannot Be Compiled\"" >&5
4880 $as_echo "$as_me: WARNING: linux/cciss_ioctl.h: section \"Present But Cannot Be Compiled\"" >&2;}
4881 { $as_echo "$as_me:$LINENO: WARNING: linux/cciss_ioctl.h: proceeding with the preprocessor's result" >&5
4882 $as_echo "$as_me: WARNING: linux/cciss_ioctl.h: proceeding with the preprocessor's result" >&2;}
4883 { $as_echo "$as_me:$LINENO: WARNING: linux/cciss_ioctl.h: in the future, the compiler will take precedence" >&5
4884 $as_echo "$as_me: WARNING: linux/cciss_ioctl.h: in the future, the compiler will take precedence" >&2;}
4885 ( cat <<\_ASBOX
4886 ## ---------------------------------------------- ##
4887 ## Report this to smcameron@users.sourceforge.net ##
4888 ## ---------------------------------------------- ##
4889 _ASBOX
4890 ) | sed "s/^/$as_me: WARNING: /" >&2
4891 ;;
4892 esac
4893 { $as_echo "$as_me:$LINENO: checking for linux/cciss_ioctl.h" >&5
4894 $as_echo_n "checking for linux/cciss_ioctl.h... " >&6; }
4895 if test "${ac_cv_header_linux_cciss_ioctl_h+set}" = set; then
4896 $as_echo_n "(cached) " >&6
4897 else
4898 ac_cv_header_linux_cciss_ioctl_h=$ac_header_preproc
4899 fi
4900 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_linux_cciss_ioctl_h" >&5
4901 $as_echo "$ac_cv_header_linux_cciss_ioctl_h" >&6; }
4902
4903 fi
4904 if test "x$ac_cv_header_linux_cciss_ioctl_h" = x""yes; then
4905
4906 cat >>confdefs.h <<\_ACEOF
4907 #define HAVE_LINUX_CCISS_IOCTL_H 1
4908 _ACEOF
4909
4910 fi
4911
4912
4913 if test "${ac_cv_header__usr_src_sys_dev_ciss_cissio_h+set}" = set; then
4914 { $as_echo "$as_me:$LINENO: checking for /usr/src/sys/dev/ciss/cissio.h" >&5
4915 $as_echo_n "checking for /usr/src/sys/dev/ciss/cissio.h... " >&6; }
4916 if test "${ac_cv_header__usr_src_sys_dev_ciss_cissio_h+set}" = set; then
4917 $as_echo_n "(cached) " >&6
4918 fi
4919 { $as_echo "$as_me:$LINENO: result: $ac_cv_header__usr_src_sys_dev_ciss_cissio_h" >&5
4920 $as_echo "$ac_cv_header__usr_src_sys_dev_ciss_cissio_h" >&6; }
4921 else
4922 # Is the header compilable?
4923 { $as_echo "$as_me:$LINENO: checking /usr/src/sys/dev/ciss/cissio.h usability" >&5
4924 $as_echo_n "checking /usr/src/sys/dev/ciss/cissio.h usability... " >&6; }
4925 cat >conftest.$ac_ext <<_ACEOF
4926 /* confdefs.h. */
4927 _ACEOF
4928 cat confdefs.h >>conftest.$ac_ext
4929 cat >>conftest.$ac_ext <<_ACEOF
4930 /* end confdefs.h. */
4931 $ac_includes_default
4932 #include </usr/src/sys/dev/ciss/cissio.h>
4933 _ACEOF
4934 rm -f conftest.$ac_objext
4935 if { (ac_try="$ac_compile"
4936 case "(($ac_try" in
4937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4938 *) ac_try_echo=$ac_try;;
4939 esac
4940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4941 $as_echo "$ac_try_echo") >&5
4942 (eval "$ac_compile") 2>conftest.er1
4943 ac_status=$?
4944 grep -v '^ *+' conftest.er1 >conftest.err
4945 rm -f conftest.er1
4946 cat conftest.err >&5
4947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948 (exit $ac_status); } && {
4949 test -z "$ac_c_werror_flag" ||
4950 test ! -s conftest.err
4951 } && test -s conftest.$ac_objext; then
4952 ac_header_compiler=yes
4953 else
4954 $as_echo "$as_me: failed program was:" >&5
4955 sed 's/^/| /' conftest.$ac_ext >&5
4956
4957 ac_header_compiler=no
4958 fi
4959
4960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4961 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4962 $as_echo "$ac_header_compiler" >&6; }
4963
4964 # Is the header present?
4965 { $as_echo "$as_me:$LINENO: checking /usr/src/sys/dev/ciss/cissio.h presence" >&5
4966 $as_echo_n "checking /usr/src/sys/dev/ciss/cissio.h presence... " >&6; }
4967 cat >conftest.$ac_ext <<_ACEOF
4968 /* confdefs.h. */
4969 _ACEOF
4970 cat confdefs.h >>conftest.$ac_ext
4971 cat >>conftest.$ac_ext <<_ACEOF
4972 /* end confdefs.h. */
4973 #include </usr/src/sys/dev/ciss/cissio.h>
4974 _ACEOF
4975 if { (ac_try="$ac_cpp conftest.$ac_ext"
4976 case "(($ac_try" in
4977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4978 *) ac_try_echo=$ac_try;;
4979 esac
4980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4981 $as_echo "$ac_try_echo") >&5
4982 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4983 ac_status=$?
4984 grep -v '^ *+' conftest.er1 >conftest.err
4985 rm -f conftest.er1
4986 cat conftest.err >&5
4987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988 (exit $ac_status); } >/dev/null && {
4989 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4990 test ! -s conftest.err
4991 }; then
4992 ac_header_preproc=yes
4993 else
4994 $as_echo "$as_me: failed program was:" >&5
4995 sed 's/^/| /' conftest.$ac_ext >&5
4996
4997 ac_header_preproc=no
4998 fi
4999
5000 rm -f conftest.err conftest.$ac_ext
5001 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5002 $as_echo "$ac_header_preproc" >&6; }
5003
5004 # So? What about this header?
5005 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5006 yes:no: )
5007 { $as_echo "$as_me:$LINENO: WARNING: /usr/src/sys/dev/ciss/cissio.h: accepted by the compiler, rejected by the preprocessor!" >&5
5008 $as_echo "$as_me: WARNING: /usr/src/sys/dev/ciss/cissio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5009 { $as_echo "$as_me:$LINENO: WARNING: /usr/src/sys/dev/ciss/cissio.h: proceeding with the compiler's result" >&5
5010 $as_echo "$as_me: WARNING: /usr/src/sys/dev/ciss/cissio.h: proceeding with the compiler's result" >&2;}
5011 ac_header_preproc=yes
5012 ;;
5013 no:yes:* )
5014 { $as_echo "$as_me:$LINENO: WARNING: /usr/src/sys/dev/ciss/cissio.h: present but cannot be compiled" >&5
5015 $as_echo "$as_me: WARNING: /usr/src/sys/dev/ciss/cissio.h: present but cannot be compiled" >&2;}
5016 { $as_echo "$as_me:$LINENO: WARNING: /usr/src/sys/dev/ciss/cissio.h: check for missing prerequisite headers?" >&5
5017 $as_echo "$as_me: WARNING: /usr/src/sys/dev/ciss/cissio.h: check for missing prerequisite headers?" >&2;}
5018 { $as_echo "$as_me:$LINENO: WARNING: /usr/src/sys/dev/ciss/cissio.h: see the Autoconf documentation" >&5
5019 $as_echo "$as_me: WARNING: /usr/src/sys/dev/ciss/cissio.h: see the Autoconf documentation" >&2;}
5020 { $as_echo "$as_me:$LINENO: WARNING: /usr/src/sys/dev/ciss/cissio.h: section \"Present But Cannot Be Compiled\"" >&5
5021 $as_echo "$as_me: WARNING: /usr/src/sys/dev/ciss/cissio.h: section \"Present But Cannot Be Compiled\"" >&2;}
5022 { $as_echo "$as_me:$LINENO: WARNING: /usr/src/sys/dev/ciss/cissio.h: proceeding with the preprocessor's result" >&5
5023 $as_echo "$as_me: WARNING: /usr/src/sys/dev/ciss/cissio.h: proceeding with the preprocessor's result" >&2;}
5024 { $as_echo "$as_me:$LINENO: WARNING: /usr/src/sys/dev/ciss/cissio.h: in the future, the compiler will take precedence" >&5
5025 $as_echo "$as_me: WARNING: /usr/src/sys/dev/ciss/cissio.h: in the future, the compiler will take precedence" >&2;}
5026 ( cat <<\_ASBOX
5027 ## ---------------------------------------------- ##
5028 ## Report this to smcameron@users.sourceforge.net ##
5029 ## ---------------------------------------------- ##
5030 _ASBOX
5031 ) | sed "s/^/$as_me: WARNING: /" >&2
5032 ;;
5033 esac
5034 { $as_echo "$as_me:$LINENO: checking for /usr/src/sys/dev/ciss/cissio.h" >&5
5035 $as_echo_n "checking for /usr/src/sys/dev/ciss/cissio.h... " >&6; }
5036 if test "${ac_cv_header__usr_src_sys_dev_ciss_cissio_h+set}" = set; then
5037 $as_echo_n "(cached) " >&6
5038 else
5039 ac_cv_header__usr_src_sys_dev_ciss_cissio_h=$ac_header_preproc
5040 fi
5041 { $as_echo "$as_me:$LINENO: result: $ac_cv_header__usr_src_sys_dev_ciss_cissio_h" >&5
5042 $as_echo "$ac_cv_header__usr_src_sys_dev_ciss_cissio_h" >&6; }
5043
5044 fi
5045 if test "x$ac_cv_header__usr_src_sys_dev_ciss_cissio_h" = x""yes; then
5046
5047 cat >>confdefs.h <<\_ACEOF
5048 #define HAVE_CISSIO_H 1
5049 _ACEOF
40145050
40155051 fi
40165052
40175053
40185054
40195055 # Checks for typedefs, structures, and compiler characteristics.
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5056 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
40215057 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4022 if test "${ac_cv_c_const+set}" = set; then :
5058 if test "${ac_cv_c_const+set}" = set; then
40235059 $as_echo_n "(cached) " >&6
40245060 else
4025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5061 cat >conftest.$ac_ext <<_ACEOF
5062 /* confdefs.h. */
5063 _ACEOF
5064 cat confdefs.h >>conftest.$ac_ext
5065 cat >>conftest.$ac_ext <<_ACEOF
40265066 /* end confdefs.h. */
40275067
40285068 int
40825122 return 0;
40835123 }
40845124 _ACEOF
4085 if ac_fn_c_try_compile "$LINENO"; then :
5125 rm -f conftest.$ac_objext
5126 if { (ac_try="$ac_compile"
5127 case "(($ac_try" in
5128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5129 *) ac_try_echo=$ac_try;;
5130 esac
5131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5132 $as_echo "$ac_try_echo") >&5
5133 (eval "$ac_compile") 2>conftest.er1
5134 ac_status=$?
5135 grep -v '^ *+' conftest.er1 >conftest.err
5136 rm -f conftest.er1
5137 cat conftest.err >&5
5138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139 (exit $ac_status); } && {
5140 test -z "$ac_c_werror_flag" ||
5141 test ! -s conftest.err
5142 } && test -s conftest.$ac_objext; then
40865143 ac_cv_c_const=yes
40875144 else
4088 ac_cv_c_const=no
4089 fi
5145 $as_echo "$as_me: failed program was:" >&5
5146 sed 's/^/| /' conftest.$ac_ext >&5
5147
5148 ac_cv_c_const=no
5149 fi
5150
40905151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40915152 fi
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5153 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
40935154 $as_echo "$ac_cv_c_const" >&6; }
40945155 if test $ac_cv_c_const = no; then
40955156
4096 $as_echo "#define const /**/" >>confdefs.h
5157 cat >>confdefs.h <<\_ACEOF
5158 #define const /**/
5159 _ACEOF
40975160
40985161 fi
40995162
41005163
41015164 # Checks for library functions.
41025165 if test $ac_cv_c_compiler_gnu = yes; then
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
5166 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
41045167 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4105 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
5168 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
41065169 $as_echo_n "(cached) " >&6
41075170 else
41085171 ac_pattern="Autoconf.*'x'"
4109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5172 cat >conftest.$ac_ext <<_ACEOF
5173 /* confdefs.h. */
5174 _ACEOF
5175 cat confdefs.h >>conftest.$ac_ext
5176 cat >>conftest.$ac_ext <<_ACEOF
41105177 /* end confdefs.h. */
41115178 #include <sgtty.h>
41125179 Autoconf TIOCGETP
41135180 _ACEOF
41145181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4115 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
5182 $EGREP "$ac_pattern" >/dev/null 2>&1; then
41165183 ac_cv_prog_gcc_traditional=yes
41175184 else
41185185 ac_cv_prog_gcc_traditional=no
41215188
41225189
41235190 if test $ac_cv_prog_gcc_traditional = no; then
4124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5191 cat >conftest.$ac_ext <<_ACEOF
5192 /* confdefs.h. */
5193 _ACEOF
5194 cat confdefs.h >>conftest.$ac_ext
5195 cat >>conftest.$ac_ext <<_ACEOF
41255196 /* end confdefs.h. */
41265197 #include <termio.h>
41275198 Autoconf TCGETA
41285199 _ACEOF
41295200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4130 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
5201 $EGREP "$ac_pattern" >/dev/null 2>&1; then
41315202 ac_cv_prog_gcc_traditional=yes
41325203 fi
41335204 rm -f conftest*
41345205
41355206 fi
41365207 fi
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
5208 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
41385209 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
41395210 if test $ac_cv_prog_gcc_traditional = yes; then
41405211 CC="$CC -traditional"
41415212 fi
41425213 fi
41435214
5215
41445216 for ac_header in stdlib.h
4145 do :
4146 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4147 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
5217 do
5218 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5220 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5221 $as_echo_n "checking for $ac_header... " >&6; }
5222 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5223 $as_echo_n "(cached) " >&6
5224 fi
5225 ac_res=`eval 'as_val=${'$as_ac_Header'}
5226 $as_echo "$as_val"'`
5227 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5228 $as_echo "$ac_res" >&6; }
5229 else
5230 # Is the header compilable?
5231 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5232 $as_echo_n "checking $ac_header usability... " >&6; }
5233 cat >conftest.$ac_ext <<_ACEOF
5234 /* confdefs.h. */
5235 _ACEOF
5236 cat confdefs.h >>conftest.$ac_ext
5237 cat >>conftest.$ac_ext <<_ACEOF
5238 /* end confdefs.h. */
5239 $ac_includes_default
5240 #include <$ac_header>
5241 _ACEOF
5242 rm -f conftest.$ac_objext
5243 if { (ac_try="$ac_compile"
5244 case "(($ac_try" in
5245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5246 *) ac_try_echo=$ac_try;;
5247 esac
5248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5249 $as_echo "$ac_try_echo") >&5
5250 (eval "$ac_compile") 2>conftest.er1
5251 ac_status=$?
5252 grep -v '^ *+' conftest.er1 >conftest.err
5253 rm -f conftest.er1
5254 cat conftest.err >&5
5255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256 (exit $ac_status); } && {
5257 test -z "$ac_c_werror_flag" ||
5258 test ! -s conftest.err
5259 } && test -s conftest.$ac_objext; then
5260 ac_header_compiler=yes
5261 else
5262 $as_echo "$as_me: failed program was:" >&5
5263 sed 's/^/| /' conftest.$ac_ext >&5
5264
5265 ac_header_compiler=no
5266 fi
5267
5268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5269 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5270 $as_echo "$ac_header_compiler" >&6; }
5271
5272 # Is the header present?
5273 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5274 $as_echo_n "checking $ac_header presence... " >&6; }
5275 cat >conftest.$ac_ext <<_ACEOF
5276 /* confdefs.h. */
5277 _ACEOF
5278 cat confdefs.h >>conftest.$ac_ext
5279 cat >>conftest.$ac_ext <<_ACEOF
5280 /* end confdefs.h. */
5281 #include <$ac_header>
5282 _ACEOF
5283 if { (ac_try="$ac_cpp conftest.$ac_ext"
5284 case "(($ac_try" in
5285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5286 *) ac_try_echo=$ac_try;;
5287 esac
5288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5289 $as_echo "$ac_try_echo") >&5
5290 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5291 ac_status=$?
5292 grep -v '^ *+' conftest.er1 >conftest.err
5293 rm -f conftest.er1
5294 cat conftest.err >&5
5295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 (exit $ac_status); } >/dev/null && {
5297 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5298 test ! -s conftest.err
5299 }; then
5300 ac_header_preproc=yes
5301 else
5302 $as_echo "$as_me: failed program was:" >&5
5303 sed 's/^/| /' conftest.$ac_ext >&5
5304
5305 ac_header_preproc=no
5306 fi
5307
5308 rm -f conftest.err conftest.$ac_ext
5309 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5310 $as_echo "$ac_header_preproc" >&6; }
5311
5312 # So? What about this header?
5313 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5314 yes:no: )
5315 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5316 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5317 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5318 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5319 ac_header_preproc=yes
5320 ;;
5321 no:yes:* )
5322 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5323 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5324 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5325 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5326 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5327 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5328 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5329 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5330 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5331 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5332 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5333 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5334 ( cat <<\_ASBOX
5335 ## ---------------------------------------------- ##
5336 ## Report this to smcameron@users.sourceforge.net ##
5337 ## ---------------------------------------------- ##
5338 _ASBOX
5339 ) | sed "s/^/$as_me: WARNING: /" >&2
5340 ;;
5341 esac
5342 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5343 $as_echo_n "checking for $ac_header... " >&6; }
5344 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5345 $as_echo_n "(cached) " >&6
5346 else
5347 eval "$as_ac_Header=\$ac_header_preproc"
5348 fi
5349 ac_res=`eval 'as_val=${'$as_ac_Header'}
5350 $as_echo "$as_val"'`
5351 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5352 $as_echo "$ac_res" >&6; }
5353
5354 fi
5355 as_val=`eval 'as_val=${'$as_ac_Header'}
5356 $as_echo "$as_val"'`
5357 if test "x$as_val" = x""yes; then
41485358 cat >>confdefs.h <<_ACEOF
4149 #define HAVE_STDLIB_H 1
5359 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
41505360 _ACEOF
41515361
41525362 fi
41535363
41545364 done
41555365
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
5366 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
41575367 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
4158 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
5368 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
41595369 $as_echo_n "(cached) " >&6
41605370 else
4161 if test "$cross_compiling" = yes; then :
5371 if test "$cross_compiling" = yes; then
41625372 ac_cv_func_malloc_0_nonnull=no
41635373 else
4164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5374 cat >conftest.$ac_ext <<_ACEOF
5375 /* confdefs.h. */
5376 _ACEOF
5377 cat confdefs.h >>conftest.$ac_ext
5378 cat >>conftest.$ac_ext <<_ACEOF
41655379 /* end confdefs.h. */
41665380 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
41675381 # include <stdlib.h>
41775391 return 0;
41785392 }
41795393 _ACEOF
4180 if ac_fn_c_try_run "$LINENO"; then :
5394 rm -f conftest$ac_exeext
5395 if { (ac_try="$ac_link"
5396 case "(($ac_try" in
5397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5398 *) ac_try_echo=$ac_try;;
5399 esac
5400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5401 $as_echo "$ac_try_echo") >&5
5402 (eval "$ac_link") 2>&5
5403 ac_status=$?
5404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5406 { (case "(($ac_try" in
5407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5408 *) ac_try_echo=$ac_try;;
5409 esac
5410 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5411 $as_echo "$ac_try_echo") >&5
5412 (eval "$ac_try") 2>&5
5413 ac_status=$?
5414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415 (exit $ac_status); }; }; then
41815416 ac_cv_func_malloc_0_nonnull=yes
41825417 else
4183 ac_cv_func_malloc_0_nonnull=no
4184 fi
4185 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4186 conftest.$ac_objext conftest.beam conftest.$ac_ext
4187 fi
4188
4189 fi
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
5418 $as_echo "$as_me: program exited with status $ac_status" >&5
5419 $as_echo "$as_me: failed program was:" >&5
5420 sed 's/^/| /' conftest.$ac_ext >&5
5421
5422 ( exit $ac_status )
5423 ac_cv_func_malloc_0_nonnull=no
5424 fi
5425 rm -rf conftest.dSYM
5426 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5427 fi
5428
5429
5430 fi
5431 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
41915432 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
4192 if test $ac_cv_func_malloc_0_nonnull = yes; then :
4193
4194 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
4195
4196 else
4197 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
5433 if test $ac_cv_func_malloc_0_nonnull = yes; then
5434
5435 cat >>confdefs.h <<\_ACEOF
5436 #define HAVE_MALLOC 1
5437 _ACEOF
5438
5439 else
5440 cat >>confdefs.h <<\_ACEOF
5441 #define HAVE_MALLOC 0
5442 _ACEOF
41985443
41995444 case " $LIBOBJS " in
42005445 *" malloc.$ac_objext "* ) ;;
42035448 esac
42045449
42055450
4206 $as_echo "#define malloc rpl_malloc" >>confdefs.h
4207
4208 fi
4209
4210
4211 ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
4212 if test "x$ac_cv_func_getopt" = x""yes; then :
4213
4214 fi
4215
4216 ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
4217 if test "x$ac_cv_func_getopt_long" = x""yes; then :
4218
4219 fi
5451 cat >>confdefs.h <<\_ACEOF
5452 #define malloc rpl_malloc
5453 _ACEOF
5454
5455 fi
5456
5457
5458
5459 { $as_echo "$as_me:$LINENO: checking for getopt" >&5
5460 $as_echo_n "checking for getopt... " >&6; }
5461 if test "${ac_cv_func_getopt+set}" = set; then
5462 $as_echo_n "(cached) " >&6
5463 else
5464 cat >conftest.$ac_ext <<_ACEOF
5465 /* confdefs.h. */
5466 _ACEOF
5467 cat confdefs.h >>conftest.$ac_ext
5468 cat >>conftest.$ac_ext <<_ACEOF
5469 /* end confdefs.h. */
5470 /* Define getopt to an innocuous variant, in case <limits.h> declares getopt.
5471 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5472 #define getopt innocuous_getopt
5473
5474 /* System header to define __stub macros and hopefully few prototypes,
5475 which can conflict with char getopt (); below.
5476 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5477 <limits.h> exists even on freestanding compilers. */
5478
5479 #ifdef __STDC__
5480 # include <limits.h>
5481 #else
5482 # include <assert.h>
5483 #endif
5484
5485 #undef getopt
5486
5487 /* Override any GCC internal prototype to avoid an error.
5488 Use char because int might match the return type of a GCC
5489 builtin and then its argument prototype would still apply. */
5490 #ifdef __cplusplus
5491 extern "C"
5492 #endif
5493 char getopt ();
5494 /* The GNU C library defines this for functions which it implements
5495 to always fail with ENOSYS. Some functions are actually named
5496 something starting with __ and the normal name is an alias. */
5497 #if defined __stub_getopt || defined __stub___getopt
5498 choke me
5499 #endif
5500
5501 int
5502 main ()
5503 {
5504 return getopt ();
5505 ;
5506 return 0;
5507 }
5508 _ACEOF
5509 rm -f conftest.$ac_objext conftest$ac_exeext
5510 if { (ac_try="$ac_link"
5511 case "(($ac_try" in
5512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5513 *) ac_try_echo=$ac_try;;
5514 esac
5515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5516 $as_echo "$ac_try_echo") >&5
5517 (eval "$ac_link") 2>conftest.er1
5518 ac_status=$?
5519 grep -v '^ *+' conftest.er1 >conftest.err
5520 rm -f conftest.er1
5521 cat conftest.err >&5
5522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); } && {
5524 test -z "$ac_c_werror_flag" ||
5525 test ! -s conftest.err
5526 } && test -s conftest$ac_exeext && {
5527 test "$cross_compiling" = yes ||
5528 $as_test_x conftest$ac_exeext
5529 }; then
5530 ac_cv_func_getopt=yes
5531 else
5532 $as_echo "$as_me: failed program was:" >&5
5533 sed 's/^/| /' conftest.$ac_ext >&5
5534
5535 ac_cv_func_getopt=no
5536 fi
5537
5538 rm -rf conftest.dSYM
5539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5540 conftest$ac_exeext conftest.$ac_ext
5541 fi
5542 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getopt" >&5
5543 $as_echo "$ac_cv_func_getopt" >&6; }
5544
5545 { $as_echo "$as_me:$LINENO: checking for getopt_long" >&5
5546 $as_echo_n "checking for getopt_long... " >&6; }
5547 if test "${ac_cv_func_getopt_long+set}" = set; then
5548 $as_echo_n "(cached) " >&6
5549 else
5550 cat >conftest.$ac_ext <<_ACEOF
5551 /* confdefs.h. */
5552 _ACEOF
5553 cat confdefs.h >>conftest.$ac_ext
5554 cat >>conftest.$ac_ext <<_ACEOF
5555 /* end confdefs.h. */
5556 /* Define getopt_long to an innocuous variant, in case <limits.h> declares getopt_long.
5557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5558 #define getopt_long innocuous_getopt_long
5559
5560 /* System header to define __stub macros and hopefully few prototypes,
5561 which can conflict with char getopt_long (); below.
5562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5563 <limits.h> exists even on freestanding compilers. */
5564
5565 #ifdef __STDC__
5566 # include <limits.h>
5567 #else
5568 # include <assert.h>
5569 #endif
5570
5571 #undef getopt_long
5572
5573 /* Override any GCC internal prototype to avoid an error.
5574 Use char because int might match the return type of a GCC
5575 builtin and then its argument prototype would still apply. */
5576 #ifdef __cplusplus
5577 extern "C"
5578 #endif
5579 char getopt_long ();
5580 /* The GNU C library defines this for functions which it implements
5581 to always fail with ENOSYS. Some functions are actually named
5582 something starting with __ and the normal name is an alias. */
5583 #if defined __stub_getopt_long || defined __stub___getopt_long
5584 choke me
5585 #endif
5586
5587 int
5588 main ()
5589 {
5590 return getopt_long ();
5591 ;
5592 return 0;
5593 }
5594 _ACEOF
5595 rm -f conftest.$ac_objext conftest$ac_exeext
5596 if { (ac_try="$ac_link"
5597 case "(($ac_try" in
5598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5599 *) ac_try_echo=$ac_try;;
5600 esac
5601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5602 $as_echo "$ac_try_echo") >&5
5603 (eval "$ac_link") 2>conftest.er1
5604 ac_status=$?
5605 grep -v '^ *+' conftest.er1 >conftest.err
5606 rm -f conftest.er1
5607 cat conftest.err >&5
5608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5609 (exit $ac_status); } && {
5610 test -z "$ac_c_werror_flag" ||
5611 test ! -s conftest.err
5612 } && test -s conftest$ac_exeext && {
5613 test "$cross_compiling" = yes ||
5614 $as_test_x conftest$ac_exeext
5615 }; then
5616 ac_cv_func_getopt_long=yes
5617 else
5618 $as_echo "$as_me: failed program was:" >&5
5619 sed 's/^/| /' conftest.$ac_ext >&5
5620
5621 ac_cv_func_getopt_long=no
5622 fi
5623
5624 rm -rf conftest.dSYM
5625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5626 conftest$ac_exeext conftest.$ac_ext
5627 fi
5628 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getopt_long" >&5
5629 $as_echo "$ac_cv_func_getopt_long" >&6; }
5630
5631
5632
42205633
42215634 for ac_func in memset strerror strstr
4222 do :
4223 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4224 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4225 eval as_val=\$$as_ac_var
4226 if test "x$as_val" = x""yes; then :
5635 do
5636 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5637 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
5638 $as_echo_n "checking for $ac_func... " >&6; }
5639 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5640 $as_echo_n "(cached) " >&6
5641 else
5642 cat >conftest.$ac_ext <<_ACEOF
5643 /* confdefs.h. */
5644 _ACEOF
5645 cat confdefs.h >>conftest.$ac_ext
5646 cat >>conftest.$ac_ext <<_ACEOF
5647 /* end confdefs.h. */
5648 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5649 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5650 #define $ac_func innocuous_$ac_func
5651
5652 /* System header to define __stub macros and hopefully few prototypes,
5653 which can conflict with char $ac_func (); below.
5654 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5655 <limits.h> exists even on freestanding compilers. */
5656
5657 #ifdef __STDC__
5658 # include <limits.h>
5659 #else
5660 # include <assert.h>
5661 #endif
5662
5663 #undef $ac_func
5664
5665 /* Override any GCC internal prototype to avoid an error.
5666 Use char because int might match the return type of a GCC
5667 builtin and then its argument prototype would still apply. */
5668 #ifdef __cplusplus
5669 extern "C"
5670 #endif
5671 char $ac_func ();
5672 /* The GNU C library defines this for functions which it implements
5673 to always fail with ENOSYS. Some functions are actually named
5674 something starting with __ and the normal name is an alias. */
5675 #if defined __stub_$ac_func || defined __stub___$ac_func
5676 choke me
5677 #endif
5678
5679 int
5680 main ()
5681 {
5682 return $ac_func ();
5683 ;
5684 return 0;
5685 }
5686 _ACEOF
5687 rm -f conftest.$ac_objext conftest$ac_exeext
5688 if { (ac_try="$ac_link"
5689 case "(($ac_try" in
5690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5691 *) ac_try_echo=$ac_try;;
5692 esac
5693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5694 $as_echo "$ac_try_echo") >&5
5695 (eval "$ac_link") 2>conftest.er1
5696 ac_status=$?
5697 grep -v '^ *+' conftest.er1 >conftest.err
5698 rm -f conftest.er1
5699 cat conftest.err >&5
5700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701 (exit $ac_status); } && {
5702 test -z "$ac_c_werror_flag" ||
5703 test ! -s conftest.err
5704 } && test -s conftest$ac_exeext && {
5705 test "$cross_compiling" = yes ||
5706 $as_test_x conftest$ac_exeext
5707 }; then
5708 eval "$as_ac_var=yes"
5709 else
5710 $as_echo "$as_me: failed program was:" >&5
5711 sed 's/^/| /' conftest.$ac_ext >&5
5712
5713 eval "$as_ac_var=no"
5714 fi
5715
5716 rm -rf conftest.dSYM
5717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5718 conftest$ac_exeext conftest.$ac_ext
5719 fi
5720 ac_res=`eval 'as_val=${'$as_ac_var'}
5721 $as_echo "$as_val"'`
5722 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5723 $as_echo "$ac_res" >&6; }
5724 as_val=`eval 'as_val=${'$as_ac_var'}
5725 $as_echo "$as_val"'`
5726 if test "x$as_val" = x""yes; then
42275727 cat >>confdefs.h <<_ACEOF
42285728 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42295729 _ACEOF
42615761 case $ac_val in #(
42625762 *${as_nl}*)
42635763 case $ac_var in #(
4264 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5764 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
42655765 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
42665766 esac
42675767 case $ac_var in #(
42685768 _ | IFS | as_nl) ;; #(
42695769 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4270 *) { eval $ac_var=; unset $ac_var;} ;;
5770 *) $as_unset $ac_var ;;
42715771 esac ;;
42725772 esac
42735773 done
42755775 (set) 2>&1 |
42765776 case $as_nl`(ac_space=' '; set) 2>&1` in #(
42775777 *${as_nl}ac_space=\ *)
4278 # `set' does not quote correctly, so add quotes: double-quote
4279 # substitution turns \\\\ into \\, and sed turns \\ into \.
5778 # `set' does not quote correctly, so add quotes (double-quote
5779 # substitution turns \\\\ into \\, and sed turns \\ into \).
42805780 sed -n \
42815781 "s/'/'\\\\''/g;
42825782 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
42995799 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
43005800 if test -w "$cache_file"; then
43015801 test "x$cache_file" != "x/dev/null" &&
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5802 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
43035803 $as_echo "$as_me: updating cache $cache_file" >&6;}
43045804 cat confcache >$cache_file
43055805 else
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5806 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
43075807 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
43085808 fi
43095809 fi
43235823 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
43245824 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
43255825 # will be set to the directory where LIBOBJS objects are built.
4326 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4327 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5826 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5827 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
43285828 done
43295829 LIBOBJS=$ac_libobjs
43305830
43405840 fi
43415841
43425842 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
4343 as_fn_error "conditional \"AMDEP\" was never defined.
4344 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5843 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
5844 Usually this means the macro was only invoked conditionally." >&5
5845 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
5846 Usually this means the macro was only invoked conditionally." >&2;}
5847 { (exit 1); exit 1; }; }
43455848 fi
43465849 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
4347 as_fn_error "conditional \"am__fastdepCC\" was never defined.
4348 Usually this means the macro was only invoked conditionally." "$LINENO" 5
5850 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
5851 Usually this means the macro was only invoked conditionally." >&5
5852 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
5853 Usually this means the macro was only invoked conditionally." >&2;}
5854 { (exit 1); exit 1; }; }
43495855 fi
43505856
43515857 : ${CONFIG_STATUS=./config.status}
43525858 ac_write_fail=0
43535859 ac_clean_files_save=$ac_clean_files
43545860 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5861 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
43565862 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4357 as_write_fail=0
4358 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5863 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
43595864 #! $SHELL
43605865 # Generated by $as_me.
43615866 # Run this file to recreate the current configuration.
43655870 debug=false
43665871 ac_cs_recheck=false
43675872 ac_cs_silent=false
4368
43695873 SHELL=\${CONFIG_SHELL-$SHELL}
4370 export SHELL
4371 _ASEOF
4372 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4373 ## -------------------- ##
4374 ## M4sh Initialization. ##
4375 ## -------------------- ##
5874 _ACEOF
5875
5876 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5877 ## --------------------- ##
5878 ## M4sh Initialization. ##
5879 ## --------------------- ##
43765880
43775881 # Be more Bourne compatible
43785882 DUALCASE=1; export DUALCASE # for MKS sh
4379 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5883 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
43805884 emulate sh
43815885 NULLCMD=:
43825886 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
43845888 alias -g '${1+"$@"}'='"$@"'
43855889 setopt NO_GLOB_SUBST
43865890 else
4387 case `(set -o) 2>/dev/null` in #(
4388 *posix*) :
4389 set -o posix ;; #(
4390 *) :
4391 ;;
4392 esac
4393 fi
4394
5891 case `(set -o) 2>/dev/null` in
5892 *posix*) set -o posix ;;
5893 esac
5894
5895 fi
5896
5897
5898
5899
5900 # PATH needs CR
5901 # Avoid depending upon Character Ranges.
5902 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5903 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5904 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5905 as_cr_digits='0123456789'
5906 as_cr_alnum=$as_cr_Letters$as_cr_digits
43955907
43965908 as_nl='
43975909 '
44005912 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
44015913 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44025914 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4403 # Prefer a ksh shell builtin over an external printf program on Solaris,
4404 # but without wasting forks for bash or zsh.
4405 if test -z "$BASH_VERSION$ZSH_VERSION" \
4406 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4407 as_echo='print -r --'
4408 as_echo_n='print -rn --'
4409 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5915 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
44105916 as_echo='printf %s\n'
44115917 as_echo_n='printf %s'
44125918 else
44175923 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
44185924 as_echo_n_body='eval
44195925 arg=$1;
4420 case $arg in #(
5926 case $arg in
44215927 *"$as_nl"*)
44225928 expr "X$arg" : "X\\(.*\\)$as_nl";
44235929 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
44405946 }
44415947 fi
44425948
5949 # Support unset when possible.
5950 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5951 as_unset=unset
5952 else
5953 as_unset=false
5954 fi
5955
44435956
44445957 # IFS
44455958 # We need space, tab and new line, in precisely that order. Quoting is
44495962 IFS=" "" $as_nl"
44505963
44515964 # Find who we are. Look in the path if we contain no directory separator.
4452 case $0 in #((
5965 case $0 in
44535966 *[\\/]* ) as_myself=$0 ;;
44545967 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44555968 for as_dir in $PATH
44565969 do
44575970 IFS=$as_save_IFS
44585971 test -z "$as_dir" && as_dir=.
4459 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4460 done
5972 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5973 done
44615974 IFS=$as_save_IFS
44625975
44635976 ;;
44695982 fi
44705983 if test ! -f "$as_myself"; then
44715984 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4472 exit 1
4473 fi
4474
4475 # Unset variables that we do not need and which cause bugs (e.g. in
4476 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4477 # suppresses any "Segmentation fault" message there. '((' could
4478 # trigger a bug in pdksh 5.2.14.
4479 for as_var in BASH_ENV ENV MAIL MAILPATH
4480 do eval test x\${$as_var+set} = xset \
4481 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5985 { (exit 1); exit 1; }
5986 fi
5987
5988 # Work around bugs in pre-3.0 UWIN ksh.
5989 for as_var in ENV MAIL MAILPATH
5990 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
44825991 done
44835992 PS1='$ '
44845993 PS2='> '
44905999 LANGUAGE=C
44916000 export LANGUAGE
44926001
4493 # CDPATH.
4494 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4495
4496
4497 # as_fn_error ERROR [LINENO LOG_FD]
4498 # ---------------------------------
4499 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4500 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4501 # script with status $?, using 1 if that was 0.
4502 as_fn_error ()
4503 {
4504 as_status=$?; test $as_status -eq 0 && as_status=1
4505 if test "$3"; then
4506 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4507 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
4508 fi
4509 $as_echo "$as_me: error: $1" >&2
4510 as_fn_exit $as_status
4511 } # as_fn_error
4512
4513
4514 # as_fn_set_status STATUS
4515 # -----------------------
4516 # Set $? to STATUS, without forking.
4517 as_fn_set_status ()
4518 {
4519 return $1
4520 } # as_fn_set_status
4521
4522 # as_fn_exit STATUS
4523 # -----------------
4524 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4525 as_fn_exit ()
4526 {
4527 set +e
4528 as_fn_set_status $1
4529 exit $1
4530 } # as_fn_exit
4531
4532 # as_fn_unset VAR
4533 # ---------------
4534 # Portably unset VAR.
4535 as_fn_unset ()
4536 {
4537 { eval $1=; unset $1;}
4538 }
4539 as_unset=as_fn_unset
4540 # as_fn_append VAR VALUE
4541 # ----------------------
4542 # Append the text in VALUE to the end of the definition contained in VAR. Take
4543 # advantage of any shell optimizations that allow amortized linear growth over
4544 # repeated appends, instead of the typical quadratic growth present in naive
4545 # implementations.
4546 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4547 eval 'as_fn_append ()
4548 {
4549 eval $1+=\$2
4550 }'
4551 else
4552 as_fn_append ()
4553 {
4554 eval $1=\$$1\$2
4555 }
4556 fi # as_fn_append
4557
4558 # as_fn_arith ARG...
4559 # ------------------
4560 # Perform arithmetic evaluation on the ARGs, and store the result in the
4561 # global $as_val. Take advantage of shells that can avoid forks. The arguments
4562 # must be portable across $(()) and expr.
4563 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4564 eval 'as_fn_arith ()
4565 {
4566 as_val=$(( $* ))
4567 }'
4568 else
4569 as_fn_arith ()
4570 {
4571 as_val=`expr "$@" || test $? -eq 1`
4572 }
4573 fi # as_fn_arith
4574
4575
6002 # Required to use basename.
45766003 if expr a : '\(a\)' >/dev/null 2>&1 &&
45776004 test "X`expr 00001 : '.*\(...\)'`" = X001; then
45786005 as_expr=expr
45866013 as_basename=false
45876014 fi
45886015
4589 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4590 as_dirname=dirname
4591 else
4592 as_dirname=false
4593 fi
4594
6016
6017 # Name of the executable.
45956018 as_me=`$as_basename -- "$0" ||
45966019 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
45976020 X"$0" : 'X\(//\)$' \| \
46116034 }
46126035 s/.*/./; q'`
46136036
4614 # Avoid depending upon Character Ranges.
4615 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4616 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4617 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4618 as_cr_digits='0123456789'
4619 as_cr_alnum=$as_cr_Letters$as_cr_digits
6037 # CDPATH.
6038 $as_unset CDPATH
6039
6040
6041
6042 as_lineno_1=$LINENO
6043 as_lineno_2=$LINENO
6044 test "x$as_lineno_1" != "x$as_lineno_2" &&
6045 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
6046
6047 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6048 # uniformly replaced by the line number. The first 'sed' inserts a
6049 # line-number line after each line using $LINENO; the second 'sed'
6050 # does the real work. The second script uses 'N' to pair each
6051 # line-number line with the line containing $LINENO, and appends
6052 # trailing '-' during substitution so that $LINENO is not a special
6053 # case at line end.
6054 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6055 # scripts with optimization help from Paolo Bonzini. Blame Lee
6056 # E. McMahon (1931-1989) for sed's syntax. :-)
6057 sed -n '
6058 p
6059 /[$]LINENO/=
6060 ' <$as_myself |
6061 sed '
6062 s/[$]LINENO.*/&-/
6063 t lineno
6064 b
6065 :lineno
6066 N
6067 :loop
6068 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
6069 t loop
6070 s/-\n.*//
6071 ' >$as_me.lineno &&
6072 chmod +x "$as_me.lineno" ||
6073 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
6074 { (exit 1); exit 1; }; }
6075
6076 # Don't try to exec as it changes $[0], causing all sort of problems
6077 # (the dirname of $[0] is not the place where we might find the
6078 # original and so on. Autoconf is especially sensitive to this).
6079 . "./$as_me.lineno"
6080 # Exit status is that of the last command.
6081 exit
6082 }
6083
6084
6085 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6086 as_dirname=dirname
6087 else
6088 as_dirname=false
6089 fi
46206090
46216091 ECHO_C= ECHO_N= ECHO_T=
4622 case `echo -n x` in #(((((
6092 case `echo -n x` in
46236093 -n*)
4624 case `echo 'xy\c'` in
6094 case `echo 'x\c'` in
46256095 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4626 xy) ECHO_C='\c';;
4627 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
4628 ECHO_T=' ';;
6096 *) ECHO_C='\c';;
46296097 esac;;
46306098 *)
46316099 ECHO_N='-n';;
46326100 esac
6101 if expr a : '\(a\)' >/dev/null 2>&1 &&
6102 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6103 as_expr=expr
6104 else
6105 as_expr=false
6106 fi
46336107
46346108 rm -f conf$$ conf$$.exe conf$$.file
46356109 if test -d conf$$.dir; then
46586132 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
46596133 rmdir conf$$.dir 2>/dev/null
46606134
4661
4662 # as_fn_mkdir_p
4663 # -------------
4664 # Create "$as_dir" as a directory, including parents if necessary.
4665 as_fn_mkdir_p ()
4666 {
4667
4668 case $as_dir in #(
4669 -*) as_dir=./$as_dir;;
4670 esac
4671 test -d "$as_dir" || eval $as_mkdir_p || {
4672 as_dirs=
4673 while :; do
4674 case $as_dir in #(
4675 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4676 *) as_qdir=$as_dir;;
4677 esac
4678 as_dirs="'$as_qdir' $as_dirs"
4679 as_dir=`$as_dirname -- "$as_dir" ||
4680 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4681 X"$as_dir" : 'X\(//\)[^/]' \| \
4682 X"$as_dir" : 'X\(//\)$' \| \
4683 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4684 $as_echo X"$as_dir" |
4685 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4686 s//\1/
4687 q
4688 }
4689 /^X\(\/\/\)[^/].*/{
4690 s//\1/
4691 q
4692 }
4693 /^X\(\/\/\)$/{
4694 s//\1/
4695 q
4696 }
4697 /^X\(\/\).*/{
4698 s//\1/
4699 q
4700 }
4701 s/.*/./; q'`
4702 test -d "$as_dir" && break
4703 done
4704 test -z "$as_dirs" || eval "mkdir $as_dirs"
4705 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
4706
4707
4708 } # as_fn_mkdir_p
47096135 if mkdir -p . 2>/dev/null; then
4710 as_mkdir_p='mkdir -p "$as_dir"'
6136 as_mkdir_p=:
47116137 else
47126138 test -d ./-p && rmdir ./-p
47136139 as_mkdir_p=false
47266152 if test -d "$1"; then
47276153 test -d "$1/.";
47286154 else
4729 case $1 in #(
6155 case $1 in
47306156 -*)set "./$1";;
47316157 esac;
4732 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6158 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
47336159 ???[sx]*):;;*)false;;esac;fi
47346160 '\'' sh
47356161 '
47446170
47456171
47466172 exec 6>&1
4747 ## ----------------------------------- ##
4748 ## Main body of $CONFIG_STATUS script. ##
4749 ## ----------------------------------- ##
4750 _ASEOF
4751 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4752
4753 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4754 # Save the log message, to keep $0 and so on meaningful, and to
6173
6174 # Save the log message, to keep $[0] and so on meaningful, and to
47556175 # report actual input values of CONFIG_FILES etc. instead of their
47566176 # values after options handling.
47576177 ac_log="
4758 This file was extended by cciss_vol_status $as_me 1.09, which was
4759 generated by GNU Autoconf 2.64. Invocation command line was
6178 This file was extended by cciss_vol_status $as_me 1.11, which was
6179 generated by GNU Autoconf 2.63. Invocation command line was
47606180
47616181 CONFIG_FILES = $CONFIG_FILES
47626182 CONFIG_HEADERS = $CONFIG_HEADERS
47886208
47896209 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47906210 ac_cs_usage="\
4791 \`$as_me' instantiates files and other configuration actions
4792 from templates according to the current configuration. Unless the files
4793 and actions are specified as TAGs, all are instantiated by default.
4794
4795 Usage: $0 [OPTION]... [TAG]...
6211 \`$as_me' instantiates files from templates according to the
6212 current configuration.
6213
6214 Usage: $0 [OPTION]... [FILE]...
47966215
47976216 -h, --help print this help, then exit
47986217 -V, --version print version number and configuration settings, then exit
48146233 Configuration commands:
48156234 $config_commands
48166235
4817 Report bugs to <smcameron@users.sourceforge.net>."
6236 Report bugs to <bug-autoconf@gnu.org>."
48186237
48196238 _ACEOF
48206239 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48216240 ac_cs_version="\\
4822 cciss_vol_status config.status 1.09
4823 configured by $0, generated by GNU Autoconf 2.64,
6241 cciss_vol_status config.status 1.11
6242 configured by $0, generated by GNU Autoconf 2.63,
48246243 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
48256244
4826 Copyright (C) 2009 Free Software Foundation, Inc.
6245 Copyright (C) 2008 Free Software Foundation, Inc.
48276246 This config.status script is free software; the Free Software Foundation
48286247 gives unlimited permission to copy, distribute and modify it."
48296248
48666285 case $ac_optarg in
48676286 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
48686287 esac
4869 as_fn_append CONFIG_FILES " '$ac_optarg'"
6288 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
48706289 ac_need_defaults=false;;
48716290 --header | --heade | --head | --hea )
48726291 $ac_shift
48736292 case $ac_optarg in
48746293 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
48756294 esac
4876 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6295 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
48776296 ac_need_defaults=false;;
48786297 --he | --h)
48796298 # Conflict between --help and --header
4880 as_fn_error "ambiguous option: \`$1'
4881 Try \`$0 --help' for more information.";;
6299 { $as_echo "$as_me: error: ambiguous option: $1
6300 Try \`$0 --help' for more information." >&2
6301 { (exit 1); exit 1; }; };;
48826302 --help | --hel | -h )
48836303 $as_echo "$ac_cs_usage"; exit ;;
48846304 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
48866306 ac_cs_silent=: ;;
48876307
48886308 # This is an error.
4889 -*) as_fn_error "unrecognized option: \`$1'
4890 Try \`$0 --help' for more information." ;;
4891
4892 *) as_fn_append ac_config_targets " $1"
6309 -*) { $as_echo "$as_me: error: unrecognized option: $1
6310 Try \`$0 --help' for more information." >&2
6311 { (exit 1); exit 1; }; } ;;
6312
6313 *) ac_config_targets="$ac_config_targets $1"
48936314 ac_need_defaults=false ;;
48946315
48956316 esac
49446365 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
49456366 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
49466367
4947 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6368 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6369 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6370 { (exit 1); exit 1; }; };;
49486371 esac
49496372 done
49506373
49716394 trap 'exit_status=$?
49726395 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
49736396 ' 0
4974 trap 'as_fn_exit 1' 1 2 13 15
6397 trap '{ (exit 1); exit 1; }' 1 2 13 15
49756398 }
49766399 # Create a (secure) tmp directory for tmp files.
49776400
49826405 {
49836406 tmp=./conf$$-$RANDOM
49846407 (umask 077 && mkdir "$tmp")
4985 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
6408 } ||
6409 {
6410 $as_echo "$as_me: cannot create a temporary directory in ." >&2
6411 { (exit 1); exit 1; }
6412 }
49866413
49876414 # Set up the scripts for CONFIG_FILES section.
49886415 # No need to generate them if there are no CONFIG_FILES.
49906417 if test -n "$CONFIG_FILES"; then
49916418
49926419
4993 ac_cr=`echo X | tr X '\015'`
4994 # On cygwin, bash can eat \r inside `` if the user requested igncr.
4995 # But we know of no other shell where ac_cr would be empty at this
4996 # point, so we can use a bashism as a fallback.
4997 if test "x$ac_cr" = x; then
4998 eval ac_cr=\$\'\\r\'
4999 fi
6420 ac_cr='
6421 '
50006422 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
50016423 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5002 ac_cs_awk_cr='\r'
6424 ac_cs_awk_cr='\\r'
50036425 else
50046426 ac_cs_awk_cr=$ac_cr
50056427 fi
50136435 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
50146436 echo "_ACEOF"
50156437 } >conf$$subs.sh ||
5016 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6438 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6439 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6440 { (exit 1); exit 1; }; }
50176441 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
50186442 ac_delim='%!_!# '
50196443 for ac_last_try in false false false false false :; do
50206444 . ./conf$$subs.sh ||
5021 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6445 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6446 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6447 { (exit 1); exit 1; }; }
50226448
50236449 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
50246450 if test $ac_delim_n = $ac_delim_num; then
50256451 break
50266452 elif $ac_last_try; then
5027 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6453 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6454 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6455 { (exit 1); exit 1; }; }
50286456 else
50296457 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
50306458 fi
51136541 else
51146542 cat
51156543 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
5116 || as_fn_error "could not setup config files machinery" "$LINENO" 5
6544 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
6545 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
6546 { (exit 1); exit 1; }; }
51176547 _ACEOF
51186548
51196549 # VPATH may cause trouble with some makes, so we remove $(srcdir),
51546584 if test -z "$ac_t"; then
51556585 break
51566586 elif $ac_last_try; then
5157 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
6587 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
6588 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
6589 { (exit 1); exit 1; }; }
51586590 else
51596591 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
51606592 fi
52396671 _ACAWK
52406672 _ACEOF
52416673 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5242 as_fn_error "could not setup config headers machinery" "$LINENO" 5
6674 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
6675 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
6676 { (exit 1); exit 1; }; }
52436677 fi # test -n "$CONFIG_HEADERS"
52446678
52456679
52526686 esac
52536687 case $ac_mode$ac_tag in
52546688 :[FHL]*:*);;
5255 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
6689 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
6690 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
6691 { (exit 1); exit 1; }; };;
52566692 :[FH]-) ac_tag=-:-;;
52576693 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
52586694 esac
52806716 [\\/$]*) false;;
52816717 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
52826718 esac ||
5283 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6719 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
6720 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
6721 { (exit 1); exit 1; }; };;
52846722 esac
52856723 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5286 as_fn_append ac_file_inputs " '$ac_f'"
6724 ac_file_inputs="$ac_file_inputs '$ac_f'"
52876725 done
52886726
52896727 # Let's still pretend it is `configure' which instantiates (i.e., don't
52946732 `' by configure.'
52956733 if test x"$ac_file" != x-; then
52966734 configure_input="$ac_file. $configure_input"
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6735 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
52986736 $as_echo "$as_me: creating $ac_file" >&6;}
52996737 fi
53006738 # Neutralize special characters interpreted by sed in replacement strings.
53076745
53086746 case $ac_tag in
53096747 *:-:* | *:-) cat >"$tmp/stdin" \
5310 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
6748 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6749 $as_echo "$as_me: error: could not create $ac_file" >&2;}
6750 { (exit 1); exit 1; }; } ;;
53116751 esac
53126752 ;;
53136753 esac
53356775 q
53366776 }
53376777 s/.*/./; q'`
5338 as_dir="$ac_dir"; as_fn_mkdir_p
6778 { as_dir="$ac_dir"
6779 case $as_dir in #(
6780 -*) as_dir=./$as_dir;;
6781 esac
6782 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
6783 as_dirs=
6784 while :; do
6785 case $as_dir in #(
6786 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6787 *) as_qdir=$as_dir;;
6788 esac
6789 as_dirs="'$as_qdir' $as_dirs"
6790 as_dir=`$as_dirname -- "$as_dir" ||
6791 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6792 X"$as_dir" : 'X\(//\)[^/]' \| \
6793 X"$as_dir" : 'X\(//\)$' \| \
6794 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6795 $as_echo X"$as_dir" |
6796 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6797 s//\1/
6798 q
6799 }
6800 /^X\(\/\/\)[^/].*/{
6801 s//\1/
6802 q
6803 }
6804 /^X\(\/\/\)$/{
6805 s//\1/
6806 q
6807 }
6808 /^X\(\/\).*/{
6809 s//\1/
6810 q
6811 }
6812 s/.*/./; q'`
6813 test -d "$as_dir" && break
6814 done
6815 test -z "$as_dirs" || eval "mkdir $as_dirs"
6816 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
6817 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
6818 { (exit 1); exit 1; }; }; }
53396819 ac_builddir=.
53406820
53416821 case "$ac_dir" in
53926872 # If the template does not know about datarootdir, expand it.
53936873 # FIXME: This hack should be removed a few years after 2.60.
53946874 ac_datarootdir_hack=; ac_datarootdir_seen=
6875
53956876 ac_sed_dataroot='
53966877 /datarootdir/ {
53976878 p
54016882 /@docdir@/p
54026883 /@infodir@/p
54036884 /@localedir@/p
5404 /@mandir@/p'
6885 /@mandir@/p
6886 '
54056887 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
54066888 *datarootdir*) ac_datarootdir_seen=yes;;
54076889 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6890 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
54096891 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
54106892 _ACEOF
54116893 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
54156897 s&@infodir@&$infodir&g
54166898 s&@localedir@&$localedir&g
54176899 s&@mandir@&$mandir&g
5418 s&\\\${datarootdir}&$datarootdir&g' ;;
6900 s&\\\${datarootdir}&$datarootdir&g' ;;
54196901 esac
54206902 _ACEOF
54216903
54446926 $ac_datarootdir_hack
54456927 "
54466928 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
5447 || as_fn_error "could not create $ac_file" "$LINENO" 5
6929 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6930 $as_echo "$as_me: error: could not create $ac_file" >&2;}
6931 { (exit 1); exit 1; }; }
54486932
54496933 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
54506934 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
54516935 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6936 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
54536937 which seems to be undefined. Please make sure it is defined." >&5
54546938 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
54556939 which seems to be undefined. Please make sure it is defined." >&2;}
54596943 -) cat "$tmp/out" && rm -f "$tmp/out";;
54606944 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
54616945 esac \
5462 || as_fn_error "could not create $ac_file" "$LINENO" 5
6946 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6947 $as_echo "$as_me: error: could not create $ac_file" >&2;}
6948 { (exit 1); exit 1; }; }
54636949 ;;
54646950 :H)
54656951 #
54706956 $as_echo "/* $configure_input */" \
54716957 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
54726958 } >"$tmp/config.h" \
5473 || as_fn_error "could not create $ac_file" "$LINENO" 5
6959 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6960 $as_echo "$as_me: error: could not create $ac_file" >&2;}
6961 { (exit 1); exit 1; }; }
54746962 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6963 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
54766964 $as_echo "$as_me: $ac_file is unchanged" >&6;}
54776965 else
54786966 rm -f "$ac_file"
54796967 mv "$tmp/config.h" "$ac_file" \
5480 || as_fn_error "could not create $ac_file" "$LINENO" 5
6968 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
6969 $as_echo "$as_me: error: could not create $ac_file" >&2;}
6970 { (exit 1); exit 1; }; }
54816971 fi
54826972 else
54836973 $as_echo "/* $configure_input */" \
54846974 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
5485 || as_fn_error "could not create -" "$LINENO" 5
6975 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
6976 $as_echo "$as_me: error: could not create -" >&2;}
6977 { (exit 1); exit 1; }; }
54866978 fi
54876979 # Compute "$ac_file"'s index in $config_headers.
54886980 _am_arg="$ac_file"
55207012 s/.*/./; q'`/stamp-h$_am_stamp_count
55217013 ;;
55227014
5523 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7015 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
55247016 $as_echo "$as_me: executing $ac_file commands" >&6;}
55257017 ;;
55267018 esac
56157107 q
56167108 }
56177109 s/.*/./; q'`
5618 as_dir=$dirpart/$fdir; as_fn_mkdir_p
7110 { as_dir=$dirpart/$fdir
7111 case $as_dir in #(
7112 -*) as_dir=./$as_dir;;
7113 esac
7114 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
7115 as_dirs=
7116 while :; do
7117 case $as_dir in #(
7118 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7119 *) as_qdir=$as_dir;;
7120 esac
7121 as_dirs="'$as_qdir' $as_dirs"
7122 as_dir=`$as_dirname -- "$as_dir" ||
7123 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7124 X"$as_dir" : 'X\(//\)[^/]' \| \
7125 X"$as_dir" : 'X\(//\)$' \| \
7126 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7127 $as_echo X"$as_dir" |
7128 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7129 s//\1/
7130 q
7131 }
7132 /^X\(\/\/\)[^/].*/{
7133 s//\1/
7134 q
7135 }
7136 /^X\(\/\/\)$/{
7137 s//\1/
7138 q
7139 }
7140 /^X\(\/\).*/{
7141 s//\1/
7142 q
7143 }
7144 s/.*/./; q'`
7145 test -d "$as_dir" && break
7146 done
7147 test -z "$as_dirs" || eval "mkdir $as_dirs"
7148 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
7149 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
7150 { (exit 1); exit 1; }; }; }
56197151 # echo "creating $dirpart/$file"
56207152 echo '# dummy' > "$dirpart/$file"
56217153 done
56277159 done # for ac_tag
56287160
56297161
5630 as_fn_exit 0
5631 _ACEOF
7162 { (exit 0); exit 0; }
7163 _ACEOF
7164 chmod +x $CONFIG_STATUS
56327165 ac_clean_files=$ac_clean_files_save
56337166
56347167 test $ac_write_fail = 0 ||
5635 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
7168 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
7169 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
7170 { (exit 1); exit 1; }; }
56367171
56377172
56387173 # configure is writing to config.log, and then calls config.status.
56537188 exec 5>>config.log
56547189 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
56557190 # would make configure fail if this is the last instruction.
5656 $ac_cs_success || as_fn_exit $?
7191 $ac_cs_success || { (exit 1); exit 1; }
56577192 fi
56587193 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7194 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
56607195 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
56617196 fi
56627197
11 # Process this file with autoconf to produce a configure script.
22
33 AC_PREREQ(2.59)
4 AC_INIT(cciss_vol_status, 1.09, smcameron@users.sourceforge.net)
4 AC_INIT(cciss_vol_status, 1.11, smcameron@users.sourceforge.net)
55 AC_CONFIG_SRCDIR([cciss_vol_status.c])
66 AC_CONFIG_HEADER([config.h])
77
1313
1414 # Checks for header files.
1515 AC_HEADER_STDC
16 AC_HEADER_STDBOOL
1617 AC_CHECK_HEADERS([errno.h fcntl.h inttypes.h netinet/in.h stdlib.h string.h sys/ioctl.h unistd.h])
1718 AC_CHECK_HEADER(scsi/sg.h, AC_DEFINE([HAVE_SCSI_SG_H], 1, [1 if Linux SCSI Generic header file present]), AC_MSG_WARN([scsi/sg.h not found so MSA1000 support will not be compiled.]))
1819 AC_CHECK_HEADER(scsi/scsi.h, AC_DEFINE([HAVE_SCSI_SCSI_H], 1, [1 if Linux SCSI header file present]))